diff --git a/config/webpack.core.js b/config/webpack.full.js similarity index 80% rename from config/webpack.core.js rename to config/webpack.full.js index 0599e2b3..48929d42 100644 --- a/config/webpack.core.js +++ b/config/webpack.full.js @@ -1,7 +1,7 @@ const path = require('path'); const config = require('./webpack.config'); config.mode = 'production'; -config.entry = {'formio.core.min.js': './src/core.ts'}; +config.entry = {'formio.full.min.js': './src/core.ts'}; config.output.path = path.resolve(__dirname, '../dist'); config.output.library.export = 'Formio'; module.exports = config; \ No newline at end of file diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 394fcc70..be078fdf 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -2,6 +2,7 @@ const path = require('path'); const config = require('./webpack.config'); config.mode = 'production'; config.entry = { + 'formio.core.min.js': './src/index.ts', 'formio.base.min.js': './src/base/index.ts', 'formio.components.min.js': './src/components/index.ts', 'formio.model.min.js': './src/model/index.ts', diff --git a/dist/formio.core.min.js b/dist/formio.core.min.js index 0e0115e8..68f4a8fd 100644 --- a/dist/formio.core.min.js +++ b/dist/formio.core.min.js @@ -1,2 +1,2 @@ /*! For license information please see formio.core.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.Formio=e():t.Formio=e()}(self,(function(){return function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n0?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=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,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 c(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=t.length:!t.hasOwnProperty(e))||o=e?t:""+Array(e+1-r.length).join(n)+t},d={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+h(r,2,"0")+":"+h(o,2,"0")},m:function t(e,n){if(e.date()=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate().toLocaleString("en-US",{timeZone:t}),u=Math.round((this.toDate()-new Date(r))/1e3/60),s=o(r).$set("millisecond",this.$ms).utcOffset(a-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=u(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return l.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,u=s(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=s(r,n);if(e===o)return[r,e];var i=s(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),u,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),"minute"):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var i=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else i.call(this)};var a=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;var r=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=r,o.$u=0===t,o;if(0!==t){var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(r+i,"minute")).$offset=r,o.$x.$localOffset=i}else o=this.utc();return o};var u=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var s=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var c=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return c.call(this,t,e,r);var o=this.local(),i=n(t).local();return c.call(o,i,e,r)}}}()},7856:function(t){t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,u=Object.create,s="undefined"!=typeof Reflect&&Reflect,c=s.apply,l=s.construct;c||(c=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),a||(a=function(t){return t}),l||(l=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),o=1;o/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]/),F=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="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};function H(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:G(),n=function(e){return t(e)};if(n.version="2.2.7",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,u=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,f=e.NamedNodeMap,O=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,Y=e.Text,Z=e.Comment,J=e.DOMParser,K=e.trustedTypes,X=c.prototype,Q=P(X,"cloneNode"),tt=P(X,"nextSibling"),et=P(X,"childNodes"),nt=P(X,"parentNode");if("function"==typeof u){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var ot=W(K,r),it=ot&&Nt?ot.createHTML(""):"",at=o,ut=at.implementation,st=at.createNodeIterator,ct=at.getElementsByTagName,lt=at.createDocumentFragment,ft=r.importNode,pt={};try{pt=x(o).documentMode?o.documentMode:{}}catch(t){}var ht={};n.isSupported="function"==typeof nt&&ut&&void 0!==ut.createHTMLDocument&&9!==pt;var dt=N,yt=L,vt=$,mt=F,bt=B,gt=q,_t=z,wt=null,Ot=j({},[].concat(H(k),H(T),H(A),H(S),H(C))),jt=null,xt=j({},[].concat(H(R),H(D),H(U),H(I))),Pt=null,kt=null,Tt=!0,At=!0,Mt=!1,St=!1,Et=!1,Ct=!1,Rt=!1,Dt=!1,Ut=!1,It=!0,Nt=!1,Lt=!0,$t=!0,Ft=!1,zt={},Bt=j({},["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,Vt=j({},["audio","video","img","source","image","track"]),Ht=null,Gt=j({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Wt=null,Yt=o.createElement("form"),Zt=function(t){Wt&&Wt===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),t=x(t),wt="ALLOWED_TAGS"in t?j({},t.ALLOWED_TAGS):Ot,jt="ALLOWED_ATTR"in t?j({},t.ALLOWED_ATTR):xt,Ht="ADD_URI_SAFE_ATTR"in t?j(x(Gt),t.ADD_URI_SAFE_ATTR):Gt,qt="ADD_DATA_URI_TAGS"in t?j(x(Vt),t.ADD_DATA_URI_TAGS):Vt,Pt="FORBID_TAGS"in t?j({},t.FORBID_TAGS):{},kt="FORBID_ATTR"in t?j({},t.FORBID_ATTR):{},zt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,At=!1!==t.ALLOW_DATA_ATTR,Mt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,St=t.SAFE_FOR_TEMPLATES||!1,Et=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Ut=t.RETURN_DOM_FRAGMENT||!1,It=!1!==t.RETURN_DOM_IMPORT,Nt=t.RETURN_TRUSTED_TYPE||!1,Rt=t.FORCE_BODY||!1,Lt=!1!==t.SANITIZE_DOM,$t=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,St&&(At=!1),Ut&&(Dt=!0),zt&&(wt=j({},[].concat(H(C))),jt=[],!0===zt.html&&(j(wt,k),j(jt,R)),!0===zt.svg&&(j(wt,T),j(jt,D),j(jt,I)),!0===zt.svgFilters&&(j(wt,A),j(jt,D),j(jt,I)),!0===zt.mathMl&&(j(wt,S),j(jt,U),j(jt,I))),t.ADD_TAGS&&(wt===Ot&&(wt=x(wt)),j(wt,t.ADD_TAGS)),t.ADD_ATTR&&(jt===xt&&(jt=x(jt)),j(jt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&j(Ht,t.ADD_URI_SAFE_ATTR),$t&&(wt["#text"]=!0),Et&&j(wt,["html","head","body"]),wt.table&&(j(wt,["tbody"]),delete Pt.tbody),i&&i(t),Wt=t)},Jt=j({},["mi","mo","mn","ms","mtext"]),Kt=j({},["foreignobject","desc","title","annotation-xml"]),Xt=j({},T);j(Xt,A),j(Xt,M);var Qt=j({},S);j(Qt,E);var te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",re=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:ne,tagName:"template"});var n=y(t.tagName),r=y(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Jt[r]):Boolean(Xt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Kt[r]:Boolean(Qt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Kt[r])return!1;if(e.namespaceURI===te&&!Jt[r])return!1;var o=j({},["title","style","font","a","script"]);return!Qt[n]&&(o[n]||!Xt[n])}return!1},oe=function(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},ie=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!jt[t])if(Dt||Ut)try{oe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ae=function(t){var e=void 0,n=void 0;if(Rt)t=""+t;else{var r=v(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=ot?ot.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){var a=(e=ut.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return t&&n&&e.body.insertBefore(o.createTextNode(n),e.body.childNodes[0]||null),ct.call(e,Et?"html":"body")[0]},ue=function(t){return st.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},se=function(t){return!(t instanceof Y||t instanceof Z||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof O&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===s?"undefined":V(s))?t instanceof s:t&&"object"===(void 0===t?"undefined":V(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},le=function(t,e,r){ht[t]&&p(ht[t],(function(t){t.call(n,e,r,Wt)}))},fe=function(t){var e=void 0;if(le("beforeSanitizeElements",t,null),se(t))return oe(t),!0;if(v(t.nodeName,/[\u0080-\uFFFF]/))return oe(t),!0;var r=y(t.nodeName);if(le("uponSanitizeElement",t,{tagName:r,allowedTags:wt}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return oe(t),!0;if(!wt[r]||Pt[r]){if($t&&!Bt[r]){var o=nt(t),i=et(t);if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),tt(t))}return oe(t),!0}return t instanceof c&&!re(t)?(oe(t),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,e=m(e,dt," "),e=m(e,yt," "),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),le("afterSanitizeElements",t,null),!1):(oe(t),!0)},pe=function(t,e,n){if(Lt&&("id"===e||"name"===e)&&(n in o||n in Yt))return!1;if(At&&_(vt,e));else if(Tt&&_(mt,e));else{if(!jt[e]||kt[e])return!1;if(Ht[e]);else if(_(_t,m(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!qt[t])if(Mt&&!_(bt,m(n,gt,"")));else if(n)return!1}return!0},he=function(t){var e=void 0,r=void 0,o=void 0,i=void 0;le("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:jt};for(i=a.length;i--;){var s=e=a[i],c=s.name,l=s.namespaceURI;if(r=g(e.value),o=y(c),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,le("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(ie(c,t),u.keepAttr))if(_(/\/>/i,r))ie(c,t);else{St&&(r=m(r,dt," "),r=m(r,yt," "));var f=t.nodeName.toLowerCase();if(pe(f,o,r))try{l?t.setAttributeNS(l,c,r):t.setAttribute(c,r),h(n.removed)}catch(t){}}}le("afterSanitizeAttributes",t,null)}},de=function t(e){var n=void 0,r=ue(e);for(le("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)le("uponSanitizeShadowNode",n,null),fe(n)||(n.content instanceof a&&t(n.content),he(n));le("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var i=void 0,u=void 0,c=void 0,l=void 0,f=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!ce(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(ce(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||Zt(o),n.removed=[],"string"==typeof t&&(Ft=!1),Ft);else if(t instanceof s)1===(u=(i=ae("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?i=u:i.appendChild(u);else{if(!Dt&&!St&&!Et&&-1===t.indexOf("<"))return ot&&Nt?ot.createHTML(t):t;if(!(i=ae(t)))return Dt?null:it}i&&Rt&&oe(i.firstChild);for(var p=ue(Ft?t:i);c=p.nextNode();)3===c.nodeType&&c===l||fe(c)||(c.content instanceof a&&de(c.content),he(c),l=c);if(l=null,Ft)return t;if(Dt){if(Ut)for(f=lt.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return It&&(f=ft.call(r,f,!0)),f}var h=Et?i.outerHTML:i.innerHTML;return St&&(h=m(h,dt," "),h=m(h,yt," ")),ot&&Nt?ot.createHTML(h):h},n.setConfig=function(t){Zt(t),Ct=!0},n.clearConfig=function(){Wt=null,Ct=!1},n.isValidAttribute=function(t,e,n){Wt||Zt({});var r=y(t),o=y(e);return pe(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],d(ht[t],e))},n.removeHook=function(t){ht[t]&&h(ht[t])},n.removeHooks=function(t){ht[t]&&(ht[t]=[])},n.removeAllHooks=function(){ht={}},n}()}()},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 u=new o(r,i||t,a),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.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},u.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-1};function p(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function v(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:u&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&u&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?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(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var t=v(this);if(t)return t;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?v(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 t,e,r,o=v(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=m(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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 j(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var P=[301,302,303,307,308];x.redirect=function(t,e){if(-1===P.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function k(t,i){return new n((function(n,a){var s=new O(t,i);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new x(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(u?l.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof y?s.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(i.headers).forEach((function(t){l.setRequestHeader(t,h(i.headers[t]))})),s.signal&&(s.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",f)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,o.fetch||(o.fetch=k,o.Headers=y,o.Request=O,o.Response=x),e.Headers=y,e.Request=O,e.Response=x,e.fetch=k,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},1817:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t={},e={"==":function(t,e){return t==e},"===":function(t,e){return t===e},"!=":function(t,e){return t!=e},"!==":function(t,e){return t!==e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e,n){return void 0===n?t=e?[]:r}};return t.is_logic=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&1===Object.keys(t).length},t.truthy=function(t){return!(Array.isArray(t)&&0===t.length||!t)},t.get_operator=function(t){return Object.keys(t)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(n,r){if(Array.isArray(n))return n.map((function(e){return t.apply(e,r)}));if(!t.is_logic(n))return n;var o,i,a,u,s,c=t.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o0;if(l=l.map((function(e){return t.apply(e,r)})),e.hasOwnProperty(c)&&"function"==typeof e[c])return e[c].apply(r,l);if(c.indexOf(".")>0){var f=String(c).split("."),p=e;for(o=0;o=0;u--)(o=t[u])&&(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),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};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),u=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=u},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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"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])})(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),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]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=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},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},c=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]"+t.t("Unknown Component")+""}},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="'+n+'"]'):this.refs[n]=t.querySelectorAll('[ref="'+n+'"]')},n.prototype.attach=function(t){return s(this,void 0,void 0,(function(){var n,r;return c(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 s(this,void 0,void 0,(function(){return c(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return d.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,data:this.data,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(),h.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){h.appendTo(t,this.element)},n.prototype.prepend=function(t){h.prependTo(t,this.element)},n.prototype.removeChild=function(t){h.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"+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)}))},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=m,l.Components.addDecorator(m,"component"),l.Components.addComponent(m()(),"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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"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),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.__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 u=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return u.NestedComponent}});var s=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return s.DataComponent}});var c=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return c.ArrayComponent}});var l=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return l.Template}}),o(n(9303),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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]'+t.instance.renderComponents()+""}},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="'+this.id+'"]'),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].attach(t))})),[4,Promise.all(n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,this]}}))}))},e.prototype.detach=function(){t.prototype.detach.call(this),this.eachComponent((function(t){return t.detach()}))},e.prototype.renderComponents=function(){var t=this;return this.components.reduce((function(e,n){return e+n.render().replace(/(<[^\>]+)/,'$1 data-within="'+t.id+'"')}),"")},e}(s.Component(t)(e))}}e.NestedComponent=l,u.Components.addDecorator(l,"nested"),u.Components.addComponent(l()(),"nested")},4881: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataTableComponent=e.DataTable=void 0;var a=n(1150),u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.renderClasses=function(){var t="";return this.component.bordered&&(t+=" table-bordered"),this.component.striped&&(t+=" table-striped"),this.component.hover&&(t+=" table-hover"),this.component.condensed&&(t+=" table-condensed"),t},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({classes:this.renderClasses()},t)},t}();e.DataTable=u;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.ArrayComponent({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],e)}(u);e.DataTableComponent=s},5999: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataValueComponent=void 0;var a=n(1150),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.Component({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="val"'+t.attrs+">"+t.value()+""}})],e)}(n(9986).HTML);e.DataValueComponent=u},9986: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLComponent=e.HTML=e.HTMLProperties=void 0;var a=n(1150);e.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="'+t.ref+'"'+t.attrs+">"+t.t(t.content)+""}};var u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.getAttributes=function(){var t=!1,e="";for(var n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){var r=this.component.attrs[n],o=Number.isNaN(parseInt(n)),i=o?n:r.attr,a=o?r:r.value;"class"===i&&this.component.className&&(t=!0,i+=" "+this.component.className),e+=" "+i+'="'+this.interpolate(a,this.evalContext())+'"'}return!t&&this.component.className&&(e+=' class="'+this.interpolate(this.component.className,this.evalContext())+'"'),e},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},t)},t}();e.HTML=u;var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),i([a.Component(e.HTMLProperties)],n)}(u);e.HTMLComponent=s},2835: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLContainerComponent=e.HTMLContainer=void 0;var a=n(1150),u=n(9986),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderContext=function(e){return void 0===e&&(e={}),t.prototype.renderContext.call(this,Object.assign({content:this.renderComponents()},e))},e}(u.HTML);e.HTMLContainer=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.NestedComponent({type:"htmlcontainer",schema:u.HTMLProperties.schema,template:u.HTMLProperties.template})],e)}(s);e.HTMLContainerComponent=c},2740:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputComponent=e.Input=e.DataValueComponent=e.DataTableComponent=e.DataTable=e.HTMLContainerComponent=e.HTMLContainer=e.HTMLComponent=e.HTML=void 0;var o=r(n(2915)),i=n(9986),a=n(2835),u=n(4881),s=n(5999),c=n(9069),l=n(9986);Object.defineProperty(e,"HTML",{enumerable:!0,get:function(){return l.HTML}}),Object.defineProperty(e,"HTMLComponent",{enumerable:!0,get:function(){return l.HTMLComponent}});var f=n(2835);Object.defineProperty(e,"HTMLContainer",{enumerable:!0,get:function(){return f.HTMLContainer}}),Object.defineProperty(e,"HTMLContainerComponent",{enumerable:!0,get:function(){return f.HTMLContainerComponent}});var p=n(4881);Object.defineProperty(e,"DataTable",{enumerable:!0,get:function(){return p.DataTable}}),Object.defineProperty(e,"DataTableComponent",{enumerable:!0,get:function(){return p.DataTableComponent}});var h=n(5999);Object.defineProperty(e,"DataValueComponent",{enumerable:!0,get:function(){return h.DataValueComponent}});var d=n(9069);Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return d.Input}}),Object.defineProperty(e,"InputComponent",{enumerable:!0,get:function(){return d.InputComponent}}),e.default={components:{html:i.HTMLComponent,htmlcontainer:a.HTMLContainerComponent,datatable:u.DataTableComponent,datavalue:s.DataValueComponent,input:c.InputComponent},templates:o.default}},9069: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])})(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.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(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},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},s=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]3?u[3]:"").split("?");l.length>1&&(e=l[0],this.query="?"+l[1])}var f=function(t,n){r[t+"sUrl"]=n+"/"+t;var o=new RegExp("/"+t+"/([^/]+)");return e&&-1!==e.search(o)&&(c=e.match(o),r[t+"Url"]=c?n+c[0]:"",r[t+"Id"]=c.length>1?c[1]:"",n+=c[0]),n},p=function(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(Array.isArray(o))p(o,e,!0);else{var i=f(o,e);e=n?e:i}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==t.pathType)this.projectUrl=s;else{var h="^"+s.replace(/\//g,"\\/")+".[^/]+",d=o.match(new RegExp(h));this.projectUrl=d?d[0]:s}var y=!1;if(t.pathType&&(y="Subdomains"!==t.pathType),!this.noProject){if(a)p(["project"],s),e=e.replace(i,"");else if(s===this.base){if(u&&u.length>3&&e.split("/").length>1){var v=e.split("/");v.shift();var m=v.shift();m&&(this.projectId=m,e="/"+v.join("/"),this.projectUrl=s+"/"+this.projectId)}}else u&&u.length>2&&(u[2].split(".").length>2||s.includes("localhost"))&&!y&&(this.projectUrl=s,this.projectId=u[2].split(".")[0]);this.projectsUrl=this.projectsUrl||this.base+"/project"}if(p(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))p(["form",["submission","action","v"]],this.projectUrl);else{var b=new RegExp("/(submission|action|v)($|/.*)"),g=e.match(b);g&&g.length>1&&(this.pathType=g[1]),e=(e=e.replace(b,"")).replace(/\/$/,""),this.formsUrl=this.projectUrl+"/form",this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var _=["submission","action","v"];for(var w in _)if(_.hasOwnProperty(w)){var O=_[w];this[O+"sUrl"]=this.projectUrl+e+"/"+O,this.pathType===O&&g&&g.length>2&&g[2]&&(this[O+"Id"]=g[2].replace(/^\/+|\/+$/g,""),this[O+"Url"]=this.projectUrl+e+g[0])}}t.projectUrlSet||(t.projectUrl=this.projectUrl)}return t.prototype.delete=function(e,n){var r=e+"Url";return this[e+"Id"]?(t.cache={},this.makeRequest(e,this[r],"delete",null,n)):Promise.reject("Nothing to delete")},t.prototype.index=function(e,n,r){var o=e+"Url";return(n=n||"")&&a.isObject(n)&&(n="?"+t.serialize(n.params)),this.makeRequest(e,this[o]+n,"get",null,r)},t.prototype.save=function(e,n,r){var o=e+"Id",i=e+"Url",a=this[o]||n._id?"put":"post",u=this[o]?this[i]:this[e+"sUrl"];return this[o]||!n._id||"put"!==a||u.includes(n._id)||(u+="/"+n._id),t.cache={},this.makeRequest(e,u+this.query,a,n,r)},t.prototype.load=function(e,n,r){var o=e+"Id",i=e+"Url";return n&&a.isObject(n)&&(n=t.serialize(n.params)),n=n?this.query?this.query+"&"+n:"?"+n:this.query,this[o]?this.makeRequest(e,this[i]+n,"get",null,r):Promise.reject("Missing "+o)},t.prototype.makeRequest=function(e,n,r,o,i){return t.makeRequest(this,e,n,r,o,i)},t.prototype.loadProject=function(t,e){return this.load("project",t,e)},t.prototype.saveProject=function(t,e){return this.save("project",t,e)},t.prototype.deleteProject=function(t){return this.delete("project",t)},t.loadProjects=function(e,n){return e=e||"",a.isObject(e)&&(e="?"+t.serialize(e.params)),t.makeStaticRequest(t.baseUrl+"/project"+e,"GET",null,n)},t.prototype.loadRole=function(t){return this.load("role",null,t)},t.prototype.saveRole=function(t,e){return this.save("role",t,e)},t.prototype.deleteRole=function(t){return this.delete("role",t)},t.prototype.loadRoles=function(t){return this.index("roles",null,t)},t.prototype.loadForm=function(e,n){var r=this;return this.load("form",e,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId?o:(e&&a.isObject(e)&&(e=t.serialize(e.params)),e=e?r.query?r.query+"&"+e:"?"+e:r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then((function(t){return o._vid=t._vid,o.components=t.components,o.settings=t.settings,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))},t.prototype.saveForm=function(t,e){return this.save("form",t,e)},t.prototype.deleteForm=function(t){return this.delete("form",t)},t.prototype.loadForms=function(t,e){return this.index("forms",t,e)},t.prototype.loadSubmission=function(t,e){var n=this;return this.load("submission",t,e).then((function(t){return n.vId=t._fvid,n.vUrl=n.formUrl+"/v/"+n.vId,t}))},t.prototype.saveSubmission=function(t,e){return isNaN(parseInt(this.vId))||(t._fvid=this.vId),this.save("submission",t,e)},t.prototype.deleteSubmission=function(t){return this.delete("submission",t)},t.prototype.loadSubmissions=function(t,e){return this.index("submissions",t,e)},t.prototype.loadAction=function(t,e){return this.load("action",t,e)},t.prototype.saveAction=function(t,e){return this.save("action",t,e)},t.prototype.deleteAction=function(t){return this.delete("action",t)},t.prototype.loadActions=function(t,e){return this.index("actions",t,e)},t.prototype.availableActions=function(){return this.makeRequest("availableActions",this.formUrl+"/actions")},t.prototype.actionInfo=function(t){return this.makeRequest("actionInfo",this.formUrl+"/actions/"+t)},t.prototype.isObjectId=function(t){return new RegExp("^[0-9a-fA-F]{24}$").test(t)},t.prototype.getProjectId=function(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((function(t){return t._id})):Promise.resolve("")},t.prototype.getFormId=function(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((function(t){return t._id})):Promise.resolve("")},t.prototype.currentUser=function(e){return t.currentUser(this,e)},t.prototype.accessInfo=function(){return t.accessInfo(this)},t.prototype.getToken=function(e){return t.getToken(Object.assign({formio:this},this.options,e))},t.prototype.setToken=function(e,n){return t.setToken(e,Object.assign({formio:this},this.options,n))},t.prototype.getTempToken=function(e,n,r){if(!t.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");var o=t.authUrl||this.projectUrl;return this.makeRequest("tempToken",o+"/token","GET",null,{ignoreCache:!0,header:new f({"x-expire":e,"x-allow":n})})},t.prototype.getDownloadUrl=function(t){var e=this;if(!this.submissionId)return Promise.resolve("");if(!t)return this.loadForm().then((function(t){return t?e.getDownloadUrl(t):""}));var n="/project/"+t.project;n+="/form/"+t._id,n+="/submission/"+this.submissionId,n+="/download";var r=this.base+n;return new Promise((function(t,o){e.getTempToken(3600,"GET:"+n).then((function(e){r+="?token="+e.key,t(r)}),(function(){t(r)})).catch(o)}))},t.prototype.userPermissions=function(t,e,n){return Promise.all([void 0!==e?Promise.resolve(e):this.loadForm(),void 0!==t?Promise.resolve(t):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((function(t){var e=t.shift(),n=t.shift()||{_id:!1,roles:[]},r=t.shift(),o=t.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},s={user:n,form:e,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var c in o.roles)if(o.roles.hasOwnProperty(c)){var l=o.roles[c];if(l.default&&!1===n._id)n.roles.push(l._id);else if(l.admin&&-1!==n.roles.indexOf(l._id))return s.create=!0,s.read=!0,s.delete=!0,s.edit=!0,s}if(e&&e.submissionAccess)for(var f=0;f-1&&("read"===t.defaultPermission&&(s[i.read]=!0),"create"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0),"write"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0),"admin"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0,s[i.delete]=!0))}))}})),s}))},t.prototype.canSubmit=function(){var e=this;return this.userPermissions().then((function(n){return!n.create&&t.getUser()?e.userPermissions(null).then((function(e){return!!e.create&&(t.setUser(null),!0)})):n.create}))},t.prototype.getUrlParts=function(e){return t.getUrlParts(e,this)},t.getUrlParts=function(e,n){var r=n&&n.base?n.base:t.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?o+="("+r.replace(/^http[s]?:\/\//,"")+")":o+="([^/]+)",o+="($|\\/.*)",e.match(new RegExp(o))},t.serialize=function(t,e){var n,r=[];for(var o in t)t.hasOwnProperty(o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent((n=t[o],e?e(n):n)));return r.join("&")},t.getRequestArgs=function(t,e,n,r,o,i){r=(r||"GET").toUpperCase(),i&&a.isObject(i)||(i={});var u={url:n,method:r,data:o||null,opts:i};return e&&(u.type=e),t&&(u.formio=t),u},t.makeStaticRequest=function(e,n,r,o){var i=t.getRequestArgs(null,"",e,n,r,o),u=p.default.pluginWait("preRequest",i).then((function(){return p.default.pluginGet("staticRequest",i).then((function(e){return a.isNil(e)?t.request(i.url,i.method,i.data,i.opts.header,i.opts):e}))}));return p.default.pluginAlter("wrapStaticRequestPromise",u,i)},t.makeRequest=function(e,n,r,o,i,u){if(!e)return t.makeStaticRequest(r,o,i,u);var s=t.getRequestArgs(e,n,r,o,i,u);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=a.defaults(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var c=p.default.pluginWait("preRequest",s).then((function(){return p.default.pluginGet("request",s).then((function(e){return a.isNil(e)?t.request(s.url,s.method,s.data,s.opts.header,s.opts):e}))}));return p.default.pluginAlter("wrapRequestPromise",c,s)},t.request=function(e,n,r,o,i){if(!e)return Promise.reject("No url provided");n=(n||"GET").toUpperCase(),a.isBoolean(i)&&(i={ignoreCache:i}),i&&a.isObject(i)||(i={});var u=btoa(encodeURI(e));if(!i.ignoreCache&&"GET"===n&&t.cache.hasOwnProperty(u))return Promise.resolve(t.cloneResponse(t.cache[u]));var s=o||new f(i.headers||{Accept:"application/json","Content-type":"application/json"}),c=t.getToken(i);c&&!i.noToken&&s.append("x-jwt-token",c);var l={};s.forEach((function(t,e){l[e]=t}));var h={method:n,headers:l,mode:"cors"};r&&(h.body=JSON.stringify(r)),((h=p.default.pluginAlter("requestOptions",h,e)).namespace||t.namespace)&&(i.namespace=h.namespace||t.namespace);var d=h.headers["x-jwt-token"];return p.default.pluginAlter("wrapFetchRequestPromise",t.fetch(e,h),{url:e,method:n,data:r,opts:i}).then((function(o){if(!(o=p.default.pluginAlter("requestResponse",o,t,r)).ok)return 440===o.status?(t.setToken(null,i),t.events.emit("formio.sessionExpired",o.body)):401===o.status?t.events.emit("formio.unauthorized",o.body):416===o.status&&t.events.emit("formio.rangeIsNotSatisfiable",o.body),(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){return Promise.reject(t)}));var u=o.headers.get("x-jwt-token"),s=!1;return"GET"!==n||d||!u||i.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),o.status>=200&&o.status<300&&u&&""!==u&&!s&&t.setToken(u,i),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){var e=o.headers.get("content-range");if(e&&a.isObject(t)){if("*"!==(e=e.split("/"))[0]){var n=e[0].split("-");t.skip=Number(n[0]),t.limit=n[1]-n[0]+1}t.serverCount="*"===e[1]?e[1]:Number(e[1])}if(!i.getHeaders)return t;var r={};return o.headers.forEach((function(t,e){r[e]=t})),{result:t,headers:r}}))})).then((function(e){return i.getHeaders?e:("GET"===n&&(t.cache[u]=e),t.cloneResponse(e))})).catch((function(e){return"Bad Token"===e&&(t.setToken(null,i),t.events.emit("formio.badToken",e)),e.message&&(e.message="Could not connect to API server ("+e.message+")",e.networkError=!0),"GET"===n&&delete t.cache[u],Promise.reject(e)}))},Object.defineProperty(t,"token",{get:function(){return t.tokens.formioToken||""},set:function(e){t.tokens.formioToken=e||""},enumerable:!1,configurable:!0}),t.setToken=function(e,n){void 0===e&&(e=""),void 0===n&&(n={}),e=e||"";var r=((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio")+"Token";if(t.tokens||(t.tokens={}),!e){n.fromUser||(n.fromToken=!0,t.setUser(null,n));try{localStorage.removeItem(r)}catch(t){console.log("Error removing token: "+t.message)}return t.tokens[r]=e,Promise.resolve(null)}if(t.tokens[r]!==e){t.tokens[r]=e;try{localStorage.setItem(r,e)}catch(t){console.log("Error setting token: "+t.message)}}return t.currentUser(n.formio,n)},t.getToken=function(e){var n=((e="string"==typeof e?{namespace:e}:e||{}).namespace||t.namespace||"formio")+"Token",r=e.decode?n+"Decoded":n;if(t.tokens||(t.tokens={}),t.tokens[r])return t.tokens[r];try{return t.tokens[n]=localStorage.getItem(n)||"",t.tokens[n]}catch(t){return console.log("Error retrieving token: "+t.message),""}},t.setUser=function(e,n){void 0===n&&(n={});var r=(n.namespace||t.namespace||"formio")+"User";if(!e){n.fromToken||(n.fromUser=!0,t.setToken(null,n)),t.events.emit("formio.user",null);try{return localStorage.removeItem(r)}catch(t){return void console.log("Error removing token: "+t.message)}}try{localStorage.setItem(r,JSON.stringify(e))}catch(t){console.log("Error setting token: "+t.message)}t.events.emit("formio.user",e)},t.getUser=function(e){var n=((e=e||{}).namespace||t.namespace||"formio")+"User";try{return JSON.parse(localStorage.getItem(n)||null)}catch(t){return console.log("Error getting user: "+t.message),{}}},t.setBaseUrl=function(e){t.baseUrl=e,t.projectUrlSet||(t.projectUrl=e)},t.getBaseUrl=function(){return t.baseUrl},t.setApiUrl=function(e){return t.setBaseUrl(e)},t.getApiUrl=function(){return t.getBaseUrl()},t.setAppUrl=function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),t.projectUrl=e,t.projectUrlSet=!0},t.setProjectUrl=function(e){t.projectUrl=e,t.projectUrlSet=!0},t.setAuthUrl=function(e){t.authUrl=e},t.getAppUrl=function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),t.projectUrl},t.getProjectUrl=function(){return t.projectUrl},t.clearCache=function(){t.cache={}},t.accessInfo=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"accessInfo",n+"/access")},t.projectRoles=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"projectRoles",n+"/role")},t.currentUser=function(e,n){void 0===n&&(n={});var r=t.authUrl;r||(r=e?e.projectUrl:t.projectUrl||t.baseUrl),r+="/current";var o=t.getUser(n);if(o)return p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(o),{url:r,method:"GET",options:n});var i=t.getToken(n);return n&&n.external||i?t.makeRequest(e,"currentUser",r,"GET",null,n).then((function(e){return t.setUser(e,n),e})):p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:n})},t.logout=function(e,n){void 0===n&&(n={}),n.formio=e;var r=t.authUrl?t.authUrl:e?e.projectUrl:t.baseUrl;return t.makeRequest(e,"logout",r+"/logout").then((function(e){return t.setToken(null,n),t.setUser(null,n),t.clearCache(),e})).catch((function(e){throw t.setToken(null,n),t.setUser(null,n),t.clearCache(),e}))},t.pageQuery=function(){var t={paths:[]},e=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(e){(n=e.split("=")).length>1&&(t[n[0]]=n[1]&&decodeURIComponent(n[1]))})),e.forEach((function(e){(n=e.split("=")).length>1?t[n[0]]=n[1]&&decodeURIComponent(n[1]):0===e.indexOf("/")&&(t.paths=e.substr(1).split("/"))})),t},t.oAuthCurrentUser=function(e,n){return t.currentUser(e,{external:!0,headers:{Authorization:"Bearer "+n}})},t.samlInit=function(e){void 0===e&&(e={});var n=t.pageQuery();if(n.saml){t.setUser(null);var r=t.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}e.relay||(e.relay=window.location.href);var i=t.authUrl||t.projectUrl;return window.location.href=i+"/saml/sso?relay="+encodeURI(e.relay),!1},t.oktaInit=function(e){if(void 0===e&&(e={}),void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.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),Promise.reject(n)}return new Promise((function(n,r){var o=e.OktaAuth;delete e.OktaAuth;var i=new o(e);i.tokenManager.get("accessToken").then((function(o){o?n(t.oAuthCurrentUser(e.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(t.oAuthCurrentUser(e.formio,r.accessToken))})).catch((function(t){console.warn(t),r(t)})):(i.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))})).catch((function(t){r(t)}))}))},t.ssoInit=function(e,n){switch(void 0===n&&(n={}),e){case"saml":return t.samlInit(n);case"okta":return t.oktaInit(n);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}},t.requireLibrary=function(e,n,r,o){if(void 0===o&&(o=!1),!t.libraries.hasOwnProperty(e)){t.libraries[e]={},t.libraries[e].ready=new Promise((function(n,r){t.libraries[e].resolve=n,t.libraries[e].reject=r}));var i=e+"Callback";o||window[i]||(window[i]=function(){return t.libraries[e].resolve()});var u=a.get(window,n);if(u)t.libraries[e].resolve(u);else if((r=Array.isArray(r)?r:[r]).forEach((function(t){var e={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",e={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":n="link",e={href:t.src,rel:"stylesheet"}}var r=document.createElement(n);if(r.setAttribute)for(var o in e)r.setAttribute(o,e[o]);var i=document.head;i&&i.appendChild(r)})),o)var s=setInterval((function(){var r=a.get(window,n);r&&(clearInterval(s),t.libraries[e].resolve(r))}),200)}return t.libraries[e].ready},t.libraryReady=function(e){return t.libraries.hasOwnProperty(e)&&t.libraries[e].ready?t.libraries[e].ready:Promise.reject(e+" library was not required.")},t.cloneResponse=function(t){var e=a.fastCloneDeep(t);return Array.isArray(t)&&(e.skip=t.skip,e.limit=t.limit,e.serverCount=t.serverCount),e},t.setPathType=function(e){"string"==typeof e&&(t.pathType=e)},t.getPathType=function(){return t.pathType},t.baseUrl="https://api.form.io",t.projectUrl="",t.authUrl="",t.projectUrlSet=!1,t.cache={},t.namespace="",t.events=new s.default,t.libraries={},t.fetch=l,t.Headers=f,t.tokens={},t.version="---VERSION---",t.plugins=p.default.plugins,t.deregisterPlugin=p.default.deregisterPlugin,t.registerPlugin=p.default.registerPlugin,t.getPlugin=p.default.getPlugin,t.pluginWait=p.default.pluginWait,t.pluginGet=p.default.pluginGet,t.pluginAlter=p.default.pluginAlter,t}();e.Formio=h,p.default.Formio=h},7689:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n-1;(o||u.tree||!h)&&(f=n(u,p,e));var d=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?p:u.key&&"form"===u.type?p+".data":i};f||(s?u.columns.forEach((function(e){return t(e.components,n,o,d(),a?u:null)})):c?u.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return t(e.components,n,o,d(),a?u:null)}))})):l&&t(u.components,n,o,d(),a?u:null))}})))},e.guid=a,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e+="-{{guid}}");var r=t.split("."),u=r.slice(0,r.length-1).join("."),s=r.length>1?"."+i.last(r):"";return u=u.substr(0,100),n=Object.assign(n||{},{fileName:u,guid:a()}),(""+o.Evaluator.interpolate(e,n)+s).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928: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)};Object.defineProperty(e,"__esModule",{value:!0}),e.dom=e.override=e.sanitize=e.BaseEvaluator=e.Evaluator=e.Utils=void 0,e.Utils=i(n(6176));var u=n(6550);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return u.Evaluator}}),Object.defineProperty(e,"BaseEvaluator",{enumerable:!0,get:function(){return u.BaseEvaluator}});var s=n(755);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}});var c=n(9395);Object.defineProperty(e,"override",{enumerable:!0,get:function(){return c.override}}),e.dom=i(n(2593)),a(n(974),e),a(n(6444),e),a(n(1475),e)},1475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchInputMask=e.getInputMask=void 0;var r=n(2373);e.getInputMask=function(t,e){if(t instanceof Array)return t;var n=[];n.numeric=!0;for(var r=0;re.length)return!1;for(var n=0;n0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},974:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExCharacters=void 0,e.escapeRegExCharacters=function(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}},3930: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;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]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]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]l||isNaN(s)||s<0||s>12||isNaN(c)||c<0||c>9999?[2,!1]:[2,!0]):[2,!0]}))}))},e}(n(9402).Rule);e.DayRule=u},7887: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]()[\]\\.,;:\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(t)]:[2,!0]}))}))},e}(n(9402).Rule);e.EmailRule=u},8056: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]=e]}))}))},e}(u.Rule);e.MinRule=c},4559: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinLengthRule=u},766: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinWordsRule=u},183: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=+e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinYearRule=u},4703: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]()[\]\\.,;:\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,}))$/,[2,!t||e.test(t)&&!n.test(t)]}))}))},e}(n(9402).Rule);e.UrlRule=u},1456:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2861),o=n(3325),i=n(2452),a=n(7887),u=n(8056),s=n(3773),c=n(3944),l=n(7564),f=n(7893),p=n(2311),h=n(4559),d=n(9424),y=n(766),v=n(4703),m=n(6202),b=n(962),g=n(7042),_=n(5666),w=n(183),O=n(9518),j=n(9540);e.default={custom:r.CustomRule,date:o.DateRule,day:i.DayRule,email:a.EmailRule,mask:u.MaskRule,max:s.MaxRule,maxDate:c.MaxDateRule,maxLength:l.MaxLengthRule,maxWords:f.MaxWordsRule,min:p.MinRule,minDate:h.MinDateRule,minLength:d.MinLengthRule,minWords:y.MinWordsRule,pattern:v.PatternRule,required:m.RequiredRule,select:b.SelectRule,unique:g.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:O.MaxYearRule,time:j.TimeRule}},9520:function(t,e){e.Z=function(t){var e,n="";return Array.prototype.join,n+='\n \n \n ',t.component.components.forEach((function(t){n+="\n \n "})),n+="\n \n \n \n ",t.instance.rows.forEach((function(t){n+="\n \n ",t.forEach((function(t){n+="\n \n "})),n+="\n \n "})),n+="\n \n
"+(null==(e=t.label||t.key)?"":e)+"
"+(null==(e=t.dataValue)?"":e)+"
"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var r=n(5776);return r.Formio}()})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Formio=e():t.Formio=e()}(self,(function(){return function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n0?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=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,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 c(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=t.length:!t.hasOwnProperty(e))||o=e?t:""+Array(e+1-r.length).join(n)+t},d={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+h(r,2,"0")+":"+h(o,2,"0")},m:function t(e,n){if(e.date()=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate().toLocaleString("en-US",{timeZone:t}),u=Math.round((this.toDate()-new Date(r))/1e3/60),s=o(r).$set("millisecond",this.$ms).utcOffset(a-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=u(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return l.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,u=s(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=s(r,n);if(e===o)return[r,e];var i=s(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),u,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),"minute"):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var i=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else i.call(this)};var a=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;var r=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=r,o.$u=0===t,o;if(0!==t){var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(r+i,"minute")).$offset=r,o.$x.$localOffset=i}else o=this.utc();return o};var u=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var s=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var c=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return c.call(this,t,e,r);var o=this.local(),i=n(t).local();return c.call(o,i,e,r)}}}()},7856:function(t){t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,u=Object.create,s="undefined"!=typeof Reflect&&Reflect,c=s.apply,l=s.construct;c||(c=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),a||(a=function(t){return t}),l||(l=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),o=1;o/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]/),F=a(/^aria-[\-\w]+$/),B=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="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};function H(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:G(),n=function(e){return t(e)};if(n.version="2.2.7",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,u=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,f=e.NamedNodeMap,O=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,Y=e.Text,Z=e.Comment,J=e.DOMParser,K=e.trustedTypes,X=c.prototype,Q=P(X,"cloneNode"),tt=P(X,"nextSibling"),et=P(X,"childNodes"),nt=P(X,"parentNode");if("function"==typeof u){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var ot=W(K,r),it=ot&&Nt?ot.createHTML(""):"",at=o,ut=at.implementation,st=at.createNodeIterator,ct=at.getElementsByTagName,lt=at.createDocumentFragment,ft=r.importNode,pt={};try{pt=x(o).documentMode?o.documentMode:{}}catch(t){}var ht={};n.isSupported="function"==typeof nt&&ut&&void 0!==ut.createHTMLDocument&&9!==pt;var dt=N,yt=L,vt=$,mt=F,bt=z,gt=q,_t=B,wt=null,Ot=j({},[].concat(H(k),H(T),H(A),H(S),H(C))),jt=null,xt=j({},[].concat(H(R),H(D),H(U),H(I))),Pt=null,kt=null,Tt=!0,At=!0,Mt=!1,St=!1,Et=!1,Ct=!1,Rt=!1,Dt=!1,Ut=!1,It=!0,Nt=!1,Lt=!0,$t=!0,Ft=!1,Bt={},zt=j({},["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,Vt=j({},["audio","video","img","source","image","track"]),Ht=null,Gt=j({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Wt=null,Yt=o.createElement("form"),Zt=function(t){Wt&&Wt===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),t=x(t),wt="ALLOWED_TAGS"in t?j({},t.ALLOWED_TAGS):Ot,jt="ALLOWED_ATTR"in t?j({},t.ALLOWED_ATTR):xt,Ht="ADD_URI_SAFE_ATTR"in t?j(x(Gt),t.ADD_URI_SAFE_ATTR):Gt,qt="ADD_DATA_URI_TAGS"in t?j(x(Vt),t.ADD_DATA_URI_TAGS):Vt,Pt="FORBID_TAGS"in t?j({},t.FORBID_TAGS):{},kt="FORBID_ATTR"in t?j({},t.FORBID_ATTR):{},Bt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,At=!1!==t.ALLOW_DATA_ATTR,Mt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,St=t.SAFE_FOR_TEMPLATES||!1,Et=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Ut=t.RETURN_DOM_FRAGMENT||!1,It=!1!==t.RETURN_DOM_IMPORT,Nt=t.RETURN_TRUSTED_TYPE||!1,Rt=t.FORCE_BODY||!1,Lt=!1!==t.SANITIZE_DOM,$t=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,St&&(At=!1),Ut&&(Dt=!0),Bt&&(wt=j({},[].concat(H(C))),jt=[],!0===Bt.html&&(j(wt,k),j(jt,R)),!0===Bt.svg&&(j(wt,T),j(jt,D),j(jt,I)),!0===Bt.svgFilters&&(j(wt,A),j(jt,D),j(jt,I)),!0===Bt.mathMl&&(j(wt,S),j(jt,U),j(jt,I))),t.ADD_TAGS&&(wt===Ot&&(wt=x(wt)),j(wt,t.ADD_TAGS)),t.ADD_ATTR&&(jt===xt&&(jt=x(jt)),j(jt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&j(Ht,t.ADD_URI_SAFE_ATTR),$t&&(wt["#text"]=!0),Et&&j(wt,["html","head","body"]),wt.table&&(j(wt,["tbody"]),delete Pt.tbody),i&&i(t),Wt=t)},Jt=j({},["mi","mo","mn","ms","mtext"]),Kt=j({},["foreignobject","desc","title","annotation-xml"]),Xt=j({},T);j(Xt,A),j(Xt,M);var Qt=j({},S);j(Qt,E);var te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",re=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:ne,tagName:"template"});var n=y(t.tagName),r=y(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Jt[r]):Boolean(Xt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Kt[r]:Boolean(Qt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Kt[r])return!1;if(e.namespaceURI===te&&!Jt[r])return!1;var o=j({},["title","style","font","a","script"]);return!Qt[n]&&(o[n]||!Xt[n])}return!1},oe=function(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},ie=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!jt[t])if(Dt||Ut)try{oe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ae=function(t){var e=void 0,n=void 0;if(Rt)t=""+t;else{var r=v(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=ot?ot.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){var a=(e=ut.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return t&&n&&e.body.insertBefore(o.createTextNode(n),e.body.childNodes[0]||null),ct.call(e,Et?"html":"body")[0]},ue=function(t){return st.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},se=function(t){return!(t instanceof Y||t instanceof Z||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof O&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===s?"undefined":V(s))?t instanceof s:t&&"object"===(void 0===t?"undefined":V(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},le=function(t,e,r){ht[t]&&p(ht[t],(function(t){t.call(n,e,r,Wt)}))},fe=function(t){var e=void 0;if(le("beforeSanitizeElements",t,null),se(t))return oe(t),!0;if(v(t.nodeName,/[\u0080-\uFFFF]/))return oe(t),!0;var r=y(t.nodeName);if(le("uponSanitizeElement",t,{tagName:r,allowedTags:wt}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return oe(t),!0;if(!wt[r]||Pt[r]){if($t&&!zt[r]){var o=nt(t),i=et(t);if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),tt(t))}return oe(t),!0}return t instanceof c&&!re(t)?(oe(t),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,e=m(e,dt," "),e=m(e,yt," "),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),le("afterSanitizeElements",t,null),!1):(oe(t),!0)},pe=function(t,e,n){if(Lt&&("id"===e||"name"===e)&&(n in o||n in Yt))return!1;if(At&&_(vt,e));else if(Tt&&_(mt,e));else{if(!jt[e]||kt[e])return!1;if(Ht[e]);else if(_(_t,m(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!qt[t])if(Mt&&!_(bt,m(n,gt,"")));else if(n)return!1}return!0},he=function(t){var e=void 0,r=void 0,o=void 0,i=void 0;le("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:jt};for(i=a.length;i--;){var s=e=a[i],c=s.name,l=s.namespaceURI;if(r=g(e.value),o=y(c),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,le("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(ie(c,t),u.keepAttr))if(_(/\/>/i,r))ie(c,t);else{St&&(r=m(r,dt," "),r=m(r,yt," "));var f=t.nodeName.toLowerCase();if(pe(f,o,r))try{l?t.setAttributeNS(l,c,r):t.setAttribute(c,r),h(n.removed)}catch(t){}}}le("afterSanitizeAttributes",t,null)}},de=function t(e){var n=void 0,r=ue(e);for(le("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)le("uponSanitizeShadowNode",n,null),fe(n)||(n.content instanceof a&&t(n.content),he(n));le("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var i=void 0,u=void 0,c=void 0,l=void 0,f=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!ce(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(ce(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||Zt(o),n.removed=[],"string"==typeof t&&(Ft=!1),Ft);else if(t instanceof s)1===(u=(i=ae("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?i=u:i.appendChild(u);else{if(!Dt&&!St&&!Et&&-1===t.indexOf("<"))return ot&&Nt?ot.createHTML(t):t;if(!(i=ae(t)))return Dt?null:it}i&&Rt&&oe(i.firstChild);for(var p=ue(Ft?t:i);c=p.nextNode();)3===c.nodeType&&c===l||fe(c)||(c.content instanceof a&&de(c.content),he(c),l=c);if(l=null,Ft)return t;if(Dt){if(Ut)for(f=lt.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return It&&(f=ft.call(r,f,!0)),f}var h=Et?i.outerHTML:i.innerHTML;return St&&(h=m(h,dt," "),h=m(h,yt," ")),ot&&Nt?ot.createHTML(h):h},n.setConfig=function(t){Zt(t),Ct=!0},n.clearConfig=function(){Wt=null,Ct=!1},n.isValidAttribute=function(t,e,n){Wt||Zt({});var r=y(t),o=y(e);return pe(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],d(ht[t],e))},n.removeHook=function(t){ht[t]&&h(ht[t])},n.removeHooks=function(t){ht[t]&&(ht[t]=[])},n.removeAllHooks=function(){ht={}},n}()}()},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 u=new o(r,i||t,a),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.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},u.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-1};function p(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function v(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:u&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&u&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?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(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var t=v(this);if(t)return t;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?v(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 t,e,r,o=v(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=m(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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 j(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var P=[301,302,303,307,308];x.redirect=function(t,e){if(-1===P.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function k(t,i){return new n((function(n,a){var s=new O(t,i);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new x(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(u?l.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof y?s.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(i.headers).forEach((function(t){l.setRequestHeader(t,h(i.headers[t]))})),s.signal&&(s.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",f)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,o.fetch||(o.fetch=k,o.Headers=y,o.Request=O,o.Response=x),e.Headers=y,e.Request=O,e.Response=x,e.fetch=k,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},1817:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t={},e={"==":function(t,e){return t==e},"===":function(t,e){return t===e},"!=":function(t,e){return t!=e},"!==":function(t,e){return t!==e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e,n){return void 0===n?t=e?[]:r}};return t.is_logic=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&1===Object.keys(t).length},t.truthy=function(t){return!(Array.isArray(t)&&0===t.length||!t)},t.get_operator=function(t){return Object.keys(t)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(n,r){if(Array.isArray(n))return n.map((function(e){return t.apply(e,r)}));if(!t.is_logic(n))return n;var o,i,a,u,s,c=t.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o0;if(l=l.map((function(e){return t.apply(e,r)})),e.hasOwnProperty(c)&&"function"==typeof e[c])return e[c].apply(r,l);if(c.indexOf(".")>0){var f=String(c).split("."),p=e;for(o=0;o=0;u--)(o=t[u])&&(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),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};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),u=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=u},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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"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])})(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),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]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=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},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},c=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]"+t.t("Unknown Component")+""}},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="'+n+'"]'):this.refs[n]=t.querySelectorAll('[ref="'+n+'"]')},n.prototype.attach=function(t){return s(this,void 0,void 0,(function(){var n,r;return c(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 s(this,void 0,void 0,(function(){return c(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return d.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,data:this.data,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(),h.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){h.appendTo(t,this.element)},n.prototype.prepend=function(t){h.prependTo(t,this.element)},n.prototype.removeChild=function(t){h.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"+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)}))},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=m,l.Components.addDecorator(m,"component"),l.Components.addComponent(m()(),"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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"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),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.__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 u=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return u.NestedComponent}});var s=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return s.DataComponent}});var c=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return c.ArrayComponent}});var l=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return l.Template}}),o(n(9303),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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]'+t.instance.renderComponents()+""}},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="'+this.id+'"]'),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].attach(t))})),[4,Promise.all(n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,this]}}))}))},e.prototype.detach=function(){t.prototype.detach.call(this),this.eachComponent((function(t){return t.detach()}))},e.prototype.renderComponents=function(){var t=this;return this.components.reduce((function(e,n){return e+n.render().replace(/(<[^\>]+)/,'$1 data-within="'+t.id+'"')}),"")},e}(s.Component(t)(e))}}e.NestedComponent=l,u.Components.addDecorator(l,"nested"),u.Components.addComponent(l()(),"nested")},4881: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataTableComponent=e.DataTable=void 0;var a=n(1150),u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.renderClasses=function(){var t="";return this.component.bordered&&(t+=" table-bordered"),this.component.striped&&(t+=" table-striped"),this.component.hover&&(t+=" table-hover"),this.component.condensed&&(t+=" table-condensed"),t},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({classes:this.renderClasses()},t)},t}();e.DataTable=u;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.ArrayComponent({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],e)}(u);e.DataTableComponent=s},5999: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataValueComponent=void 0;var a=n(1150),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.Component({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="val"'+t.attrs+">"+t.value()+""}})],e)}(n(9986).HTML);e.DataValueComponent=u},9986: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLComponent=e.HTML=e.HTMLProperties=void 0;var a=n(1150);e.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="'+t.ref+'"'+t.attrs+">"+t.t(t.content)+""}};var u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.getAttributes=function(){var t=!1,e="";for(var n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){var r=this.component.attrs[n],o=Number.isNaN(parseInt(n)),i=o?n:r.attr,a=o?r:r.value;"class"===i&&this.component.className&&(t=!0,i+=" "+this.component.className),e+=" "+i+'="'+this.interpolate(a,this.evalContext())+'"'}return!t&&this.component.className&&(e+=' class="'+this.interpolate(this.component.className,this.evalContext())+'"'),e},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},t)},t}();e.HTML=u;var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),i([a.Component(e.HTMLProperties)],n)}(u);e.HTMLComponent=s},2835: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLContainerComponent=e.HTMLContainer=void 0;var a=n(1150),u=n(9986),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderContext=function(e){return void 0===e&&(e={}),t.prototype.renderContext.call(this,Object.assign({content:this.renderComponents()},e))},e}(u.HTML);e.HTMLContainer=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.NestedComponent({type:"htmlcontainer",schema:u.HTMLProperties.schema,template:u.HTMLProperties.template})],e)}(s);e.HTMLContainerComponent=c},2740:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputComponent=e.Input=e.DataValueComponent=e.DataTableComponent=e.DataTable=e.HTMLContainerComponent=e.HTMLContainer=e.HTMLComponent=e.HTML=void 0;var o=r(n(2915)),i=n(9986),a=n(2835),u=n(4881),s=n(5999),c=n(9069),l=n(9986);Object.defineProperty(e,"HTML",{enumerable:!0,get:function(){return l.HTML}}),Object.defineProperty(e,"HTMLComponent",{enumerable:!0,get:function(){return l.HTMLComponent}});var f=n(2835);Object.defineProperty(e,"HTMLContainer",{enumerable:!0,get:function(){return f.HTMLContainer}}),Object.defineProperty(e,"HTMLContainerComponent",{enumerable:!0,get:function(){return f.HTMLContainerComponent}});var p=n(4881);Object.defineProperty(e,"DataTable",{enumerable:!0,get:function(){return p.DataTable}}),Object.defineProperty(e,"DataTableComponent",{enumerable:!0,get:function(){return p.DataTableComponent}});var h=n(5999);Object.defineProperty(e,"DataValueComponent",{enumerable:!0,get:function(){return h.DataValueComponent}});var d=n(9069);Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return d.Input}}),Object.defineProperty(e,"InputComponent",{enumerable:!0,get:function(){return d.InputComponent}}),e.default={components:{html:i.HTMLComponent,htmlcontainer:a.HTMLContainerComponent,datatable:u.DataTableComponent,datavalue:s.DataValueComponent,input:c.InputComponent},templates:o.default}},9069: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])})(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.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(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},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},s=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]3?u[3]:"").split("?");l.length>1&&(e=l[0],this.query="?"+l[1])}var f=function(t,n){r[t+"sUrl"]=n+"/"+t;var o=new RegExp("/"+t+"/([^/]+)");return e&&-1!==e.search(o)&&(c=e.match(o),r[t+"Url"]=c?n+c[0]:"",r[t+"Id"]=c.length>1?c[1]:"",n+=c[0]),n},p=function(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(Array.isArray(o))p(o,e,!0);else{var i=f(o,e);e=n?e:i}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==t.pathType)this.projectUrl=s;else{var h="^"+s.replace(/\//g,"\\/")+".[^/]+",d=o.match(new RegExp(h));this.projectUrl=d?d[0]:s}var y=!1;if(t.pathType&&(y="Subdomains"!==t.pathType),!this.noProject){if(a)p(["project"],s),e=e.replace(i,"");else if(s===this.base){if(u&&u.length>3&&e.split("/").length>1){var v=e.split("/");v.shift();var m=v.shift();m&&(this.projectId=m,e="/"+v.join("/"),this.projectUrl=s+"/"+this.projectId)}}else u&&u.length>2&&(u[2].split(".").length>2||s.includes("localhost"))&&!y&&(this.projectUrl=s,this.projectId=u[2].split(".")[0]);this.projectsUrl=this.projectsUrl||this.base+"/project"}if(p(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))p(["form",["submission","action","v"]],this.projectUrl);else{var b=new RegExp("/(submission|action|v)($|/.*)"),g=e.match(b);g&&g.length>1&&(this.pathType=g[1]),e=(e=e.replace(b,"")).replace(/\/$/,""),this.formsUrl=this.projectUrl+"/form",this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var _=["submission","action","v"];for(var w in _)if(_.hasOwnProperty(w)){var O=_[w];this[O+"sUrl"]=this.projectUrl+e+"/"+O,this.pathType===O&&g&&g.length>2&&g[2]&&(this[O+"Id"]=g[2].replace(/^\/+|\/+$/g,""),this[O+"Url"]=this.projectUrl+e+g[0])}}t.projectUrlSet||(t.projectUrl=this.projectUrl)}return t.prototype.delete=function(e,n){var r=e+"Url";return this[e+"Id"]?(t.cache={},this.makeRequest(e,this[r],"delete",null,n)):Promise.reject("Nothing to delete")},t.prototype.index=function(e,n,r){var o=e+"Url";return(n=n||"")&&a.isObject(n)&&(n="?"+t.serialize(n.params)),this.makeRequest(e,this[o]+n,"get",null,r)},t.prototype.save=function(e,n,r){var o=e+"Id",i=e+"Url",a=this[o]||n._id?"put":"post",u=this[o]?this[i]:this[e+"sUrl"];return this[o]||!n._id||"put"!==a||u.includes(n._id)||(u+="/"+n._id),t.cache={},this.makeRequest(e,u+this.query,a,n,r)},t.prototype.load=function(e,n,r){var o=e+"Id",i=e+"Url";return n&&a.isObject(n)&&(n=t.serialize(n.params)),n=n?this.query?this.query+"&"+n:"?"+n:this.query,this[o]?this.makeRequest(e,this[i]+n,"get",null,r):Promise.reject("Missing "+o)},t.prototype.makeRequest=function(e,n,r,o,i){return t.makeRequest(this,e,n,r,o,i)},t.prototype.loadProject=function(t,e){return this.load("project",t,e)},t.prototype.saveProject=function(t,e){return this.save("project",t,e)},t.prototype.deleteProject=function(t){return this.delete("project",t)},t.loadProjects=function(e,n){return e=e||"",a.isObject(e)&&(e="?"+t.serialize(e.params)),t.makeStaticRequest(t.baseUrl+"/project"+e,"GET",null,n)},t.prototype.loadRole=function(t){return this.load("role",null,t)},t.prototype.saveRole=function(t,e){return this.save("role",t,e)},t.prototype.deleteRole=function(t){return this.delete("role",t)},t.prototype.loadRoles=function(t){return this.index("roles",null,t)},t.prototype.loadForm=function(e,n){var r=this;return this.load("form",e,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId?o:(e&&a.isObject(e)&&(e=t.serialize(e.params)),e=e?r.query?r.query+"&"+e:"?"+e:r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then((function(t){return o._vid=t._vid,o.components=t.components,o.settings=t.settings,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))},t.prototype.saveForm=function(t,e){return this.save("form",t,e)},t.prototype.deleteForm=function(t){return this.delete("form",t)},t.prototype.loadForms=function(t,e){return this.index("forms",t,e)},t.prototype.loadSubmission=function(t,e){var n=this;return this.load("submission",t,e).then((function(t){return n.vId=t._fvid,n.vUrl=n.formUrl+"/v/"+n.vId,t}))},t.prototype.saveSubmission=function(t,e){return isNaN(parseInt(this.vId))||(t._fvid=this.vId),this.save("submission",t,e)},t.prototype.deleteSubmission=function(t){return this.delete("submission",t)},t.prototype.loadSubmissions=function(t,e){return this.index("submissions",t,e)},t.prototype.loadAction=function(t,e){return this.load("action",t,e)},t.prototype.saveAction=function(t,e){return this.save("action",t,e)},t.prototype.deleteAction=function(t){return this.delete("action",t)},t.prototype.loadActions=function(t,e){return this.index("actions",t,e)},t.prototype.availableActions=function(){return this.makeRequest("availableActions",this.formUrl+"/actions")},t.prototype.actionInfo=function(t){return this.makeRequest("actionInfo",this.formUrl+"/actions/"+t)},t.prototype.isObjectId=function(t){return new RegExp("^[0-9a-fA-F]{24}$").test(t)},t.prototype.getProjectId=function(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((function(t){return t._id})):Promise.resolve("")},t.prototype.getFormId=function(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((function(t){return t._id})):Promise.resolve("")},t.prototype.currentUser=function(e){return t.currentUser(this,e)},t.prototype.accessInfo=function(){return t.accessInfo(this)},t.prototype.getToken=function(e){return t.getToken(Object.assign({formio:this},this.options,e))},t.prototype.setToken=function(e,n){return t.setToken(e,Object.assign({formio:this},this.options,n))},t.prototype.getTempToken=function(e,n,r){if(!t.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");var o=t.authUrl||this.projectUrl;return this.makeRequest("tempToken",o+"/token","GET",null,{ignoreCache:!0,header:new f({"x-expire":e,"x-allow":n})})},t.prototype.getDownloadUrl=function(t){var e=this;if(!this.submissionId)return Promise.resolve("");if(!t)return this.loadForm().then((function(t){return t?e.getDownloadUrl(t):""}));var n="/project/"+t.project;n+="/form/"+t._id,n+="/submission/"+this.submissionId,n+="/download";var r=this.base+n;return new Promise((function(t,o){e.getTempToken(3600,"GET:"+n).then((function(e){r+="?token="+e.key,t(r)}),(function(){t(r)})).catch(o)}))},t.prototype.userPermissions=function(t,e,n){return Promise.all([void 0!==e?Promise.resolve(e):this.loadForm(),void 0!==t?Promise.resolve(t):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((function(t){var e=t.shift(),n=t.shift()||{_id:!1,roles:[]},r=t.shift(),o=t.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},s={user:n,form:e,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var c in o.roles)if(o.roles.hasOwnProperty(c)){var l=o.roles[c];if(l.default&&!1===n._id)n.roles.push(l._id);else if(l.admin&&-1!==n.roles.indexOf(l._id))return s.create=!0,s.read=!0,s.delete=!0,s.edit=!0,s}if(e&&e.submissionAccess)for(var f=0;f-1&&("read"===t.defaultPermission&&(s[i.read]=!0),"create"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0),"write"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0),"admin"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0,s[i.delete]=!0))}))}})),s}))},t.prototype.canSubmit=function(){var e=this;return this.userPermissions().then((function(n){return!n.create&&t.getUser()?e.userPermissions(null).then((function(e){return!!e.create&&(t.setUser(null),!0)})):n.create}))},t.prototype.getUrlParts=function(e){return t.getUrlParts(e,this)},t.getUrlParts=function(e,n){var r=n&&n.base?n.base:t.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?o+="("+r.replace(/^http[s]?:\/\//,"")+")":o+="([^/]+)",o+="($|\\/.*)",e.match(new RegExp(o))},t.serialize=function(t,e){var n,r=[];for(var o in t)t.hasOwnProperty(o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent((n=t[o],e?e(n):n)));return r.join("&")},t.getRequestArgs=function(t,e,n,r,o,i){r=(r||"GET").toUpperCase(),i&&a.isObject(i)||(i={});var u={url:n,method:r,data:o||null,opts:i};return e&&(u.type=e),t&&(u.formio=t),u},t.makeStaticRequest=function(e,n,r,o){var i=t.getRequestArgs(null,"",e,n,r,o),u=p.default.pluginWait("preRequest",i).then((function(){return p.default.pluginGet("staticRequest",i).then((function(e){return a.isNil(e)?t.request(i.url,i.method,i.data,i.opts.header,i.opts):e}))}));return p.default.pluginAlter("wrapStaticRequestPromise",u,i)},t.makeRequest=function(e,n,r,o,i,u){if(!e)return t.makeStaticRequest(r,o,i,u);var s=t.getRequestArgs(e,n,r,o,i,u);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=a.defaults(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var c=p.default.pluginWait("preRequest",s).then((function(){return p.default.pluginGet("request",s).then((function(e){return a.isNil(e)?t.request(s.url,s.method,s.data,s.opts.header,s.opts):e}))}));return p.default.pluginAlter("wrapRequestPromise",c,s)},t.request=function(e,n,r,o,i){if(!e)return Promise.reject("No url provided");n=(n||"GET").toUpperCase(),a.isBoolean(i)&&(i={ignoreCache:i}),i&&a.isObject(i)||(i={});var u=btoa(encodeURI(e));if(!i.ignoreCache&&"GET"===n&&t.cache.hasOwnProperty(u))return Promise.resolve(t.cloneResponse(t.cache[u]));var s=o||new f(i.headers||{Accept:"application/json","Content-type":"application/json"}),c=t.getToken(i);c&&!i.noToken&&s.append("x-jwt-token",c);var l={};s.forEach((function(t,e){l[e]=t}));var h={method:n,headers:l,mode:"cors"};r&&(h.body=JSON.stringify(r)),((h=p.default.pluginAlter("requestOptions",h,e)).namespace||t.namespace)&&(i.namespace=h.namespace||t.namespace);var d=h.headers["x-jwt-token"];return p.default.pluginAlter("wrapFetchRequestPromise",t.fetch(e,h),{url:e,method:n,data:r,opts:i}).then((function(o){if(!(o=p.default.pluginAlter("requestResponse",o,t,r)).ok)return 440===o.status?(t.setToken(null,i),t.events.emit("formio.sessionExpired",o.body)):401===o.status?t.events.emit("formio.unauthorized",o.body):416===o.status&&t.events.emit("formio.rangeIsNotSatisfiable",o.body),(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){return Promise.reject(t)}));var u=o.headers.get("x-jwt-token"),s=!1;return"GET"!==n||d||!u||i.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),o.status>=200&&o.status<300&&u&&""!==u&&!s&&t.setToken(u,i),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){var e=o.headers.get("content-range");if(e&&a.isObject(t)){if("*"!==(e=e.split("/"))[0]){var n=e[0].split("-");t.skip=Number(n[0]),t.limit=n[1]-n[0]+1}t.serverCount="*"===e[1]?e[1]:Number(e[1])}if(!i.getHeaders)return t;var r={};return o.headers.forEach((function(t,e){r[e]=t})),{result:t,headers:r}}))})).then((function(e){return i.getHeaders?e:("GET"===n&&(t.cache[u]=e),t.cloneResponse(e))})).catch((function(e){return"Bad Token"===e&&(t.setToken(null,i),t.events.emit("formio.badToken",e)),e.message&&(e.message="Could not connect to API server ("+e.message+")",e.networkError=!0),"GET"===n&&delete t.cache[u],Promise.reject(e)}))},Object.defineProperty(t,"token",{get:function(){return t.tokens.formioToken||""},set:function(e){t.tokens.formioToken=e||""},enumerable:!1,configurable:!0}),t.setToken=function(e,n){void 0===e&&(e=""),void 0===n&&(n={}),e=e||"";var r=((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio")+"Token";if(t.tokens||(t.tokens={}),!e){n.fromUser||(n.fromToken=!0,t.setUser(null,n));try{localStorage.removeItem(r)}catch(t){console.log("Error removing token: "+t.message)}return t.tokens[r]=e,Promise.resolve(null)}if(t.tokens[r]!==e){t.tokens[r]=e;try{localStorage.setItem(r,e)}catch(t){console.log("Error setting token: "+t.message)}}return t.currentUser(n.formio,n)},t.getToken=function(e){var n=((e="string"==typeof e?{namespace:e}:e||{}).namespace||t.namespace||"formio")+"Token",r=e.decode?n+"Decoded":n;if(t.tokens||(t.tokens={}),t.tokens[r])return t.tokens[r];try{return t.tokens[n]=localStorage.getItem(n)||"",t.tokens[n]}catch(t){return console.log("Error retrieving token: "+t.message),""}},t.setUser=function(e,n){void 0===n&&(n={});var r=(n.namespace||t.namespace||"formio")+"User";if(!e){n.fromToken||(n.fromUser=!0,t.setToken(null,n)),t.events.emit("formio.user",null);try{return localStorage.removeItem(r)}catch(t){return void console.log("Error removing token: "+t.message)}}try{localStorage.setItem(r,JSON.stringify(e))}catch(t){console.log("Error setting token: "+t.message)}t.events.emit("formio.user",e)},t.getUser=function(e){var n=((e=e||{}).namespace||t.namespace||"formio")+"User";try{return JSON.parse(localStorage.getItem(n)||null)}catch(t){return console.log("Error getting user: "+t.message),{}}},t.setBaseUrl=function(e){t.baseUrl=e,t.projectUrlSet||(t.projectUrl=e)},t.getBaseUrl=function(){return t.baseUrl},t.setApiUrl=function(e){return t.setBaseUrl(e)},t.getApiUrl=function(){return t.getBaseUrl()},t.setAppUrl=function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),t.projectUrl=e,t.projectUrlSet=!0},t.setProjectUrl=function(e){t.projectUrl=e,t.projectUrlSet=!0},t.setAuthUrl=function(e){t.authUrl=e},t.getAppUrl=function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),t.projectUrl},t.getProjectUrl=function(){return t.projectUrl},t.clearCache=function(){t.cache={}},t.accessInfo=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"accessInfo",n+"/access")},t.projectRoles=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"projectRoles",n+"/role")},t.currentUser=function(e,n){void 0===n&&(n={});var r=t.authUrl;r||(r=e?e.projectUrl:t.projectUrl||t.baseUrl),r+="/current";var o=t.getUser(n);if(o)return p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(o),{url:r,method:"GET",options:n});var i=t.getToken(n);return n&&n.external||i?t.makeRequest(e,"currentUser",r,"GET",null,n).then((function(e){return t.setUser(e,n),e})):p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:n})},t.logout=function(e,n){void 0===n&&(n={}),n.formio=e;var r=t.authUrl?t.authUrl:e?e.projectUrl:t.baseUrl;return t.makeRequest(e,"logout",r+"/logout").then((function(e){return t.setToken(null,n),t.setUser(null,n),t.clearCache(),e})).catch((function(e){throw t.setToken(null,n),t.setUser(null,n),t.clearCache(),e}))},t.pageQuery=function(){var t={paths:[]},e=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(e){(n=e.split("=")).length>1&&(t[n[0]]=n[1]&&decodeURIComponent(n[1]))})),e.forEach((function(e){(n=e.split("=")).length>1?t[n[0]]=n[1]&&decodeURIComponent(n[1]):0===e.indexOf("/")&&(t.paths=e.substr(1).split("/"))})),t},t.oAuthCurrentUser=function(e,n){return t.currentUser(e,{external:!0,headers:{Authorization:"Bearer "+n}})},t.samlInit=function(e){void 0===e&&(e={});var n=t.pageQuery();if(n.saml){t.setUser(null);var r=t.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}e.relay||(e.relay=window.location.href);var i=t.authUrl||t.projectUrl;return window.location.href=i+"/saml/sso?relay="+encodeURI(e.relay),!1},t.oktaInit=function(e){if(void 0===e&&(e={}),void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.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),Promise.reject(n)}return new Promise((function(n,r){var o=e.OktaAuth;delete e.OktaAuth;var i=new o(e);i.tokenManager.get("accessToken").then((function(o){o?n(t.oAuthCurrentUser(e.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(t.oAuthCurrentUser(e.formio,r.accessToken))})).catch((function(t){console.warn(t),r(t)})):(i.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))})).catch((function(t){r(t)}))}))},t.ssoInit=function(e,n){switch(void 0===n&&(n={}),e){case"saml":return t.samlInit(n);case"okta":return t.oktaInit(n);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}},t.requireLibrary=function(e,n,r,o){if(void 0===o&&(o=!1),!t.libraries.hasOwnProperty(e)){t.libraries[e]={},t.libraries[e].ready=new Promise((function(n,r){t.libraries[e].resolve=n,t.libraries[e].reject=r}));var i=e+"Callback";o||window[i]||(window[i]=function(){return t.libraries[e].resolve()});var u=a.get(window,n);if(u)t.libraries[e].resolve(u);else if((r=Array.isArray(r)?r:[r]).forEach((function(t){var e={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",e={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":n="link",e={href:t.src,rel:"stylesheet"}}var r=document.createElement(n);if(r.setAttribute)for(var o in e)r.setAttribute(o,e[o]);var i=document.head;i&&i.appendChild(r)})),o)var s=setInterval((function(){var r=a.get(window,n);r&&(clearInterval(s),t.libraries[e].resolve(r))}),200)}return t.libraries[e].ready},t.libraryReady=function(e){return t.libraries.hasOwnProperty(e)&&t.libraries[e].ready?t.libraries[e].ready:Promise.reject(e+" library was not required.")},t.cloneResponse=function(t){var e=a.fastCloneDeep(t);return Array.isArray(t)&&(e.skip=t.skip,e.limit=t.limit,e.serverCount=t.serverCount),e},t.setPathType=function(e){"string"==typeof e&&(t.pathType=e)},t.getPathType=function(){return t.pathType},t.baseUrl="https://api.form.io",t.projectUrl="",t.authUrl="",t.projectUrlSet=!1,t.cache={},t.namespace="",t.events=new s.default,t.libraries={},t.fetch=l,t.Headers=f,t.tokens={},t.version="---VERSION---",t.plugins=p.default.plugins,t.deregisterPlugin=p.default.deregisterPlugin,t.registerPlugin=p.default.registerPlugin,t.getPlugin=p.default.getPlugin,t.pluginWait=p.default.pluginWait,t.pluginGet=p.default.pluginGet,t.pluginAlter=p.default.pluginAlter,t}();e.Formio=h,p.default.Formio=h},7689:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n-1;(o||u.tree||!h)&&(f=n(u,p,e));var d=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?p:u.key&&"form"===u.type?p+".data":i};f||(s?u.columns.forEach((function(e){return t(e.components,n,o,d(),a?u:null)})):c?u.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return t(e.components,n,o,d(),a?u:null)}))})):l&&t(u.components,n,o,d(),a?u:null))}})))},e.guid=a,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e+="-{{guid}}");var r=t.split("."),u=r.slice(0,r.length-1).join("."),s=r.length>1?"."+i.last(r):"";return u=u.substr(0,100),n=Object.assign(n||{},{fileName:u,guid:a()}),(""+o.Evaluator.interpolate(e,n)+s).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928: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)};Object.defineProperty(e,"__esModule",{value:!0}),e.dom=e.override=e.sanitize=e.BaseEvaluator=e.Evaluator=e.Utils=void 0,e.Utils=i(n(6176));var u=n(6550);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return u.Evaluator}}),Object.defineProperty(e,"BaseEvaluator",{enumerable:!0,get:function(){return u.BaseEvaluator}});var s=n(755);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}});var c=n(9395);Object.defineProperty(e,"override",{enumerable:!0,get:function(){return c.override}}),e.dom=i(n(2593)),a(n(974),e),a(n(6444),e),a(n(1475),e)},1475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchInputMask=e.getInputMask=void 0;var r=n(2373);e.getInputMask=function(t,e){if(t instanceof Array)return t;var n=[];n.numeric=!0;for(var r=0;re.length)return!1;for(var n=0;n0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},974:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExCharacters=void 0,e.escapeRegExCharacters=function(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}},3930: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;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]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]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]l||isNaN(s)||s<0||s>12||isNaN(c)||c<0||c>9999?[2,!1]:[2,!0]):[2,!0]}))}))},e}(n(9402).Rule);e.DayRule=u},7887: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]()[\]\\.,;:\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(t)]:[2,!0]}))}))},e}(n(9402).Rule);e.EmailRule=u},8056: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]=e]}))}))},e}(u.Rule);e.MinRule=c},4559: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinLengthRule=u},766: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinWordsRule=u},183: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=+e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinYearRule=u},4703: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]()[\]\\.,;:\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,}))$/,[2,!t||e.test(t)&&!n.test(t)]}))}))},e}(n(9402).Rule);e.UrlRule=u},1456:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2861),o=n(3325),i=n(2452),a=n(7887),u=n(8056),s=n(3773),c=n(3944),l=n(7564),f=n(7893),p=n(2311),h=n(4559),d=n(9424),y=n(766),v=n(4703),m=n(6202),b=n(962),g=n(7042),_=n(5666),w=n(183),O=n(9518),j=n(9540);e.default={custom:r.CustomRule,date:o.DateRule,day:i.DayRule,email:a.EmailRule,mask:u.MaskRule,max:s.MaxRule,maxDate:c.MaxDateRule,maxLength:l.MaxLengthRule,maxWords:f.MaxWordsRule,min:p.MinRule,minDate:h.MinDateRule,minLength:d.MinLengthRule,minWords:y.MinWordsRule,pattern:v.PatternRule,required:m.RequiredRule,select:b.SelectRule,unique:g.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:O.MaxYearRule,time:j.TimeRule}},9520:function(t,e){e.Z=function(t){var e,n="";return Array.prototype.join,n+='\n \n \n ',t.component.components.forEach((function(t){n+="\n \n "})),n+="\n \n \n \n ",t.instance.rows.forEach((function(t){n+="\n \n ",t.forEach((function(t){n+="\n \n "})),n+="\n \n "})),n+="\n \n
"+(null==(e=t.label||t.key)?"":e)+"
"+(null==(e=t.dataValue)?"":e)+"
"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(3607)}()})); \ No newline at end of file diff --git a/dist/formio.full.min.js b/dist/formio.full.min.js new file mode 100644 index 00000000..a87bb19f --- /dev/null +++ b/dist/formio.full.min.js @@ -0,0 +1,2 @@ +/*! For license information please see formio.full.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.Formio=e():t.Formio=e()}(self,(function(){return function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n0?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=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,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 c(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=t.length:!t.hasOwnProperty(e))||o=e?t:""+Array(e+1-r.length).join(n)+t},d={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+h(r,2,"0")+":"+h(o,2,"0")},m:function t(e,n){if(e.date()=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate().toLocaleString("en-US",{timeZone:t}),u=Math.round((this.toDate()-new Date(r))/1e3/60),s=o(r).$set("millisecond",this.$ms).utcOffset(a-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=u(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return l.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,u=s(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=s(r,n);if(e===o)return[r,e];var i=s(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),u,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),"minute"):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var i=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else i.call(this)};var a=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;var r=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=r,o.$u=0===t,o;if(0!==t){var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(r+i,"minute")).$offset=r,o.$x.$localOffset=i}else o=this.utc();return o};var u=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var s=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var c=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return c.call(this,t,e,r);var o=this.local(),i=n(t).local();return c.call(o,i,e,r)}}}()},7856:function(t){t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,u=Object.create,s="undefined"!=typeof Reflect&&Reflect,c=s.apply,l=s.construct;c||(c=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),a||(a=function(t){return t}),l||(l=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),o=1;o/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]/),F=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="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};function H(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:G(),n=function(e){return t(e)};if(n.version="2.2.7",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,u=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,f=e.NamedNodeMap,O=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,Y=e.Text,Z=e.Comment,J=e.DOMParser,K=e.trustedTypes,X=c.prototype,Q=P(X,"cloneNode"),tt=P(X,"nextSibling"),et=P(X,"childNodes"),nt=P(X,"parentNode");if("function"==typeof u){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var ot=W(K,r),it=ot&&Nt?ot.createHTML(""):"",at=o,ut=at.implementation,st=at.createNodeIterator,ct=at.getElementsByTagName,lt=at.createDocumentFragment,ft=r.importNode,pt={};try{pt=x(o).documentMode?o.documentMode:{}}catch(t){}var ht={};n.isSupported="function"==typeof nt&&ut&&void 0!==ut.createHTMLDocument&&9!==pt;var dt=N,yt=L,vt=$,mt=F,bt=B,gt=q,_t=z,wt=null,Ot=j({},[].concat(H(k),H(T),H(A),H(S),H(C))),jt=null,xt=j({},[].concat(H(R),H(D),H(U),H(I))),Pt=null,kt=null,Tt=!0,At=!0,Mt=!1,St=!1,Et=!1,Ct=!1,Rt=!1,Dt=!1,Ut=!1,It=!0,Nt=!1,Lt=!0,$t=!0,Ft=!1,zt={},Bt=j({},["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,Vt=j({},["audio","video","img","source","image","track"]),Ht=null,Gt=j({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Wt=null,Yt=o.createElement("form"),Zt=function(t){Wt&&Wt===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),t=x(t),wt="ALLOWED_TAGS"in t?j({},t.ALLOWED_TAGS):Ot,jt="ALLOWED_ATTR"in t?j({},t.ALLOWED_ATTR):xt,Ht="ADD_URI_SAFE_ATTR"in t?j(x(Gt),t.ADD_URI_SAFE_ATTR):Gt,qt="ADD_DATA_URI_TAGS"in t?j(x(Vt),t.ADD_DATA_URI_TAGS):Vt,Pt="FORBID_TAGS"in t?j({},t.FORBID_TAGS):{},kt="FORBID_ATTR"in t?j({},t.FORBID_ATTR):{},zt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,At=!1!==t.ALLOW_DATA_ATTR,Mt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,St=t.SAFE_FOR_TEMPLATES||!1,Et=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Ut=t.RETURN_DOM_FRAGMENT||!1,It=!1!==t.RETURN_DOM_IMPORT,Nt=t.RETURN_TRUSTED_TYPE||!1,Rt=t.FORCE_BODY||!1,Lt=!1!==t.SANITIZE_DOM,$t=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,St&&(At=!1),Ut&&(Dt=!0),zt&&(wt=j({},[].concat(H(C))),jt=[],!0===zt.html&&(j(wt,k),j(jt,R)),!0===zt.svg&&(j(wt,T),j(jt,D),j(jt,I)),!0===zt.svgFilters&&(j(wt,A),j(jt,D),j(jt,I)),!0===zt.mathMl&&(j(wt,S),j(jt,U),j(jt,I))),t.ADD_TAGS&&(wt===Ot&&(wt=x(wt)),j(wt,t.ADD_TAGS)),t.ADD_ATTR&&(jt===xt&&(jt=x(jt)),j(jt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&j(Ht,t.ADD_URI_SAFE_ATTR),$t&&(wt["#text"]=!0),Et&&j(wt,["html","head","body"]),wt.table&&(j(wt,["tbody"]),delete Pt.tbody),i&&i(t),Wt=t)},Jt=j({},["mi","mo","mn","ms","mtext"]),Kt=j({},["foreignobject","desc","title","annotation-xml"]),Xt=j({},T);j(Xt,A),j(Xt,M);var Qt=j({},S);j(Qt,E);var te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",re=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:ne,tagName:"template"});var n=y(t.tagName),r=y(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Jt[r]):Boolean(Xt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Kt[r]:Boolean(Qt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Kt[r])return!1;if(e.namespaceURI===te&&!Jt[r])return!1;var o=j({},["title","style","font","a","script"]);return!Qt[n]&&(o[n]||!Xt[n])}return!1},oe=function(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},ie=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!jt[t])if(Dt||Ut)try{oe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ae=function(t){var e=void 0,n=void 0;if(Rt)t=""+t;else{var r=v(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=ot?ot.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){var a=(e=ut.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return t&&n&&e.body.insertBefore(o.createTextNode(n),e.body.childNodes[0]||null),ct.call(e,Et?"html":"body")[0]},ue=function(t){return st.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},se=function(t){return!(t instanceof Y||t instanceof Z||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof O&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===s?"undefined":V(s))?t instanceof s:t&&"object"===(void 0===t?"undefined":V(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},le=function(t,e,r){ht[t]&&p(ht[t],(function(t){t.call(n,e,r,Wt)}))},fe=function(t){var e=void 0;if(le("beforeSanitizeElements",t,null),se(t))return oe(t),!0;if(v(t.nodeName,/[\u0080-\uFFFF]/))return oe(t),!0;var r=y(t.nodeName);if(le("uponSanitizeElement",t,{tagName:r,allowedTags:wt}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return oe(t),!0;if(!wt[r]||Pt[r]){if($t&&!Bt[r]){var o=nt(t),i=et(t);if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),tt(t))}return oe(t),!0}return t instanceof c&&!re(t)?(oe(t),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,e=m(e,dt," "),e=m(e,yt," "),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),le("afterSanitizeElements",t,null),!1):(oe(t),!0)},pe=function(t,e,n){if(Lt&&("id"===e||"name"===e)&&(n in o||n in Yt))return!1;if(At&&_(vt,e));else if(Tt&&_(mt,e));else{if(!jt[e]||kt[e])return!1;if(Ht[e]);else if(_(_t,m(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!qt[t])if(Mt&&!_(bt,m(n,gt,"")));else if(n)return!1}return!0},he=function(t){var e=void 0,r=void 0,o=void 0,i=void 0;le("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:jt};for(i=a.length;i--;){var s=e=a[i],c=s.name,l=s.namespaceURI;if(r=g(e.value),o=y(c),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,le("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(ie(c,t),u.keepAttr))if(_(/\/>/i,r))ie(c,t);else{St&&(r=m(r,dt," "),r=m(r,yt," "));var f=t.nodeName.toLowerCase();if(pe(f,o,r))try{l?t.setAttributeNS(l,c,r):t.setAttribute(c,r),h(n.removed)}catch(t){}}}le("afterSanitizeAttributes",t,null)}},de=function t(e){var n=void 0,r=ue(e);for(le("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)le("uponSanitizeShadowNode",n,null),fe(n)||(n.content instanceof a&&t(n.content),he(n));le("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var i=void 0,u=void 0,c=void 0,l=void 0,f=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!ce(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(ce(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||Zt(o),n.removed=[],"string"==typeof t&&(Ft=!1),Ft);else if(t instanceof s)1===(u=(i=ae("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?i=u:i.appendChild(u);else{if(!Dt&&!St&&!Et&&-1===t.indexOf("<"))return ot&&Nt?ot.createHTML(t):t;if(!(i=ae(t)))return Dt?null:it}i&&Rt&&oe(i.firstChild);for(var p=ue(Ft?t:i);c=p.nextNode();)3===c.nodeType&&c===l||fe(c)||(c.content instanceof a&&de(c.content),he(c),l=c);if(l=null,Ft)return t;if(Dt){if(Ut)for(f=lt.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return It&&(f=ft.call(r,f,!0)),f}var h=Et?i.outerHTML:i.innerHTML;return St&&(h=m(h,dt," "),h=m(h,yt," ")),ot&&Nt?ot.createHTML(h):h},n.setConfig=function(t){Zt(t),Ct=!0},n.clearConfig=function(){Wt=null,Ct=!1},n.isValidAttribute=function(t,e,n){Wt||Zt({});var r=y(t),o=y(e);return pe(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],d(ht[t],e))},n.removeHook=function(t){ht[t]&&h(ht[t])},n.removeHooks=function(t){ht[t]&&(ht[t]=[])},n.removeAllHooks=function(){ht={}},n}()}()},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 u=new o(r,i||t,a),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.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},u.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-1};function p(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function v(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:u&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&u&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?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(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var t=v(this);if(t)return t;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?v(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 t,e,r,o=v(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=m(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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 j(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var P=[301,302,303,307,308];x.redirect=function(t,e){if(-1===P.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function k(t,i){return new n((function(n,a){var s=new O(t,i);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new x(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(u?l.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof y?s.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(i.headers).forEach((function(t){l.setRequestHeader(t,h(i.headers[t]))})),s.signal&&(s.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",f)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,o.fetch||(o.fetch=k,o.Headers=y,o.Request=O,o.Response=x),e.Headers=y,e.Request=O,e.Response=x,e.fetch=k,Object.defineProperty(e,"__esModule",{value:!0})}(e),{fetch:t.fetch,Headers:t.Headers,Request:t.Request,Response:t.Response,DOMException:t.DOMException}}()}void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},1817:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t={},e={"==":function(t,e){return t==e},"===":function(t,e){return t===e},"!=":function(t,e){return t!=e},"!==":function(t,e){return t!==e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e,n){return void 0===n?t=e?[]:r}};return t.is_logic=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&1===Object.keys(t).length},t.truthy=function(t){return!(Array.isArray(t)&&0===t.length||!t)},t.get_operator=function(t){return Object.keys(t)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(n,r){if(Array.isArray(n))return n.map((function(e){return t.apply(e,r)}));if(!t.is_logic(n))return n;var o,i,a,u,s,c=t.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o0;if(l=l.map((function(e){return t.apply(e,r)})),e.hasOwnProperty(c)&&"function"==typeof e[c])return e[c].apply(r,l);if(c.indexOf(".")>0){var f=String(c).split("."),p=e;for(o=0;o=0;u--)(o=t[u])&&(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),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};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),u=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=u},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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"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])})(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),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]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=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},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},c=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]"+t.t("Unknown Component")+""}},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="'+n+'"]'):this.refs[n]=t.querySelectorAll('[ref="'+n+'"]')},n.prototype.attach=function(t){return s(this,void 0,void 0,(function(){var n,r;return c(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 s(this,void 0,void 0,(function(){return c(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return d.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,data:this.data,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(),h.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){h.appendTo(t,this.element)},n.prototype.prepend=function(t){h.prependTo(t,this.element)},n.prototype.removeChild=function(t){h.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"+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)}))},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=m,l.Components.addDecorator(m,"component"),l.Components.addComponent(m()(),"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])})(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(9303),u=n(8584);function s(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}(u.NestedComponent(t)(e))}}e.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"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),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.__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 u=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return u.NestedComponent}});var s=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return s.DataComponent}});var c=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return c.ArrayComponent}});var l=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return l.Template}}),o(n(9303),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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]'+t.instance.renderComponents()+""}},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="'+this.id+'"]'),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].attach(t))})),[4,Promise.all(n)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2,this]}}))}))},e.prototype.detach=function(){t.prototype.detach.call(this),this.eachComponent((function(t){return t.detach()}))},e.prototype.renderComponents=function(){var t=this;return this.components.reduce((function(e,n){return e+n.render().replace(/(<[^\>]+)/,'$1 data-within="'+t.id+'"')}),"")},e}(s.Component(t)(e))}}e.NestedComponent=l,u.Components.addDecorator(l,"nested"),u.Components.addComponent(l()(),"nested")},4881: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataTableComponent=e.DataTable=void 0;var a=n(1150),u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.renderClasses=function(){var t="";return this.component.bordered&&(t+=" table-bordered"),this.component.striped&&(t+=" table-striped"),this.component.hover&&(t+=" table-hover"),this.component.condensed&&(t+=" table-condensed"),t},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({classes:this.renderClasses()},t)},t}();e.DataTable=u;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.ArrayComponent({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],e)}(u);e.DataTableComponent=s},5999: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.DataValueComponent=void 0;var a=n(1150),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.Component({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="val"'+t.attrs+">"+t.value()+""}})],e)}(n(9986).HTML);e.DataValueComponent=u},9986: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLComponent=e.HTML=e.HTMLProperties=void 0;var a=n(1150);e.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="'+t.ref+'"'+t.attrs+">"+t.t(t.content)+""}};var u=function(){function t(t,e,n){this.component=t,this.options=e,this.data=n}return t.prototype.getAttributes=function(){var t=!1,e="";for(var n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){var r=this.component.attrs[n],o=Number.isNaN(parseInt(n)),i=o?n:r.attr,a=o?r:r.value;"class"===i&&this.component.className&&(t=!0,i+=" "+this.component.className),e+=" "+i+'="'+this.interpolate(a,this.evalContext())+'"'}return!t&&this.component.className&&(e+=' class="'+this.interpolate(this.component.className,this.evalContext())+'"'),e},t.prototype.renderContext=function(t){return void 0===t&&(t={}),Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},t)},t}();e.HTML=u;var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),i([a.Component(e.HTMLProperties)],n)}(u);e.HTMLComponent=s},2835: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])})(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.__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 u=t.length-1;u>=0;u--)(o=t[u])&&(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.HTMLContainerComponent=e.HTMLContainer=void 0;var a=n(1150),u=n(9986),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.renderContext=function(e){return void 0===e&&(e={}),t.prototype.renderContext.call(this,Object.assign({content:this.renderComponents()},e))},e}(u.HTML);e.HTMLContainer=s;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([a.NestedComponent({type:"htmlcontainer",schema:u.HTMLProperties.schema,template:u.HTMLProperties.template})],e)}(s);e.HTMLContainerComponent=c},2740:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputComponent=e.Input=e.DataValueComponent=e.DataTableComponent=e.DataTable=e.HTMLContainerComponent=e.HTMLContainer=e.HTMLComponent=e.HTML=void 0;var o=r(n(2915)),i=n(9986),a=n(2835),u=n(4881),s=n(5999),c=n(9069),l=n(9986);Object.defineProperty(e,"HTML",{enumerable:!0,get:function(){return l.HTML}}),Object.defineProperty(e,"HTMLComponent",{enumerable:!0,get:function(){return l.HTMLComponent}});var f=n(2835);Object.defineProperty(e,"HTMLContainer",{enumerable:!0,get:function(){return f.HTMLContainer}}),Object.defineProperty(e,"HTMLContainerComponent",{enumerable:!0,get:function(){return f.HTMLContainerComponent}});var p=n(4881);Object.defineProperty(e,"DataTable",{enumerable:!0,get:function(){return p.DataTable}}),Object.defineProperty(e,"DataTableComponent",{enumerable:!0,get:function(){return p.DataTableComponent}});var h=n(5999);Object.defineProperty(e,"DataValueComponent",{enumerable:!0,get:function(){return h.DataValueComponent}});var d=n(9069);Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return d.Input}}),Object.defineProperty(e,"InputComponent",{enumerable:!0,get:function(){return d.InputComponent}}),e.default={components:{html:i.HTMLComponent,htmlcontainer:a.HTMLContainerComponent,datatable:u.DataTableComponent,datavalue:s.DataValueComponent,input:c.InputComponent},templates:o.default}},9069: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])})(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.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(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},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))},s=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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=n.length&&e.addRow(t,r),e.setRowData(t,r)})),n.length>t.length)for(var r=t.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]3?u[3]:"").split("?");l.length>1&&(e=l[0],this.query="?"+l[1])}var f=function(t,n){r[t+"sUrl"]=n+"/"+t;var o=new RegExp("/"+t+"/([^/]+)");return e&&-1!==e.search(o)&&(c=e.match(o),r[t+"Url"]=c?n+c[0]:"",r[t+"Id"]=c.length>1?c[1]:"",n+=c[0]),n},p=function(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(Array.isArray(o))p(o,e,!0);else{var i=f(o,e);e=n?e:i}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==t.pathType)this.projectUrl=s;else{var h="^"+s.replace(/\//g,"\\/")+".[^/]+",d=o.match(new RegExp(h));this.projectUrl=d?d[0]:s}var y=!1;if(t.pathType&&(y="Subdomains"!==t.pathType),!this.noProject){if(a)p(["project"],s),e=e.replace(i,"");else if(s===this.base){if(u&&u.length>3&&e.split("/").length>1){var v=e.split("/");v.shift();var m=v.shift();m&&(this.projectId=m,e="/"+v.join("/"),this.projectUrl=s+"/"+this.projectId)}}else u&&u.length>2&&(u[2].split(".").length>2||s.includes("localhost"))&&!y&&(this.projectUrl=s,this.projectId=u[2].split(".")[0]);this.projectsUrl=this.projectsUrl||this.base+"/project"}if(p(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))p(["form",["submission","action","v"]],this.projectUrl);else{var b=new RegExp("/(submission|action|v)($|/.*)"),g=e.match(b);g&&g.length>1&&(this.pathType=g[1]),e=(e=e.replace(b,"")).replace(/\/$/,""),this.formsUrl=this.projectUrl+"/form",this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var _=["submission","action","v"];for(var w in _)if(_.hasOwnProperty(w)){var O=_[w];this[O+"sUrl"]=this.projectUrl+e+"/"+O,this.pathType===O&&g&&g.length>2&&g[2]&&(this[O+"Id"]=g[2].replace(/^\/+|\/+$/g,""),this[O+"Url"]=this.projectUrl+e+g[0])}}t.projectUrlSet||(t.projectUrl=this.projectUrl)}return t.prototype.delete=function(e,n){var r=e+"Url";return this[e+"Id"]?(t.cache={},this.makeRequest(e,this[r],"delete",null,n)):Promise.reject("Nothing to delete")},t.prototype.index=function(e,n,r){var o=e+"Url";return(n=n||"")&&a.isObject(n)&&(n="?"+t.serialize(n.params)),this.makeRequest(e,this[o]+n,"get",null,r)},t.prototype.save=function(e,n,r){var o=e+"Id",i=e+"Url",a=this[o]||n._id?"put":"post",u=this[o]?this[i]:this[e+"sUrl"];return this[o]||!n._id||"put"!==a||u.includes(n._id)||(u+="/"+n._id),t.cache={},this.makeRequest(e,u+this.query,a,n,r)},t.prototype.load=function(e,n,r){var o=e+"Id",i=e+"Url";return n&&a.isObject(n)&&(n=t.serialize(n.params)),n=n?this.query?this.query+"&"+n:"?"+n:this.query,this[o]?this.makeRequest(e,this[i]+n,"get",null,r):Promise.reject("Missing "+o)},t.prototype.makeRequest=function(e,n,r,o,i){return t.makeRequest(this,e,n,r,o,i)},t.prototype.loadProject=function(t,e){return this.load("project",t,e)},t.prototype.saveProject=function(t,e){return this.save("project",t,e)},t.prototype.deleteProject=function(t){return this.delete("project",t)},t.loadProjects=function(e,n){return e=e||"",a.isObject(e)&&(e="?"+t.serialize(e.params)),t.makeStaticRequest(t.baseUrl+"/project"+e,"GET",null,n)},t.prototype.loadRole=function(t){return this.load("role",null,t)},t.prototype.saveRole=function(t,e){return this.save("role",t,e)},t.prototype.deleteRole=function(t){return this.delete("role",t)},t.prototype.loadRoles=function(t){return this.index("roles",null,t)},t.prototype.loadForm=function(e,n){var r=this;return this.load("form",e,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId?o:(e&&a.isObject(e)&&(e=t.serialize(e.params)),e=e?r.query?r.query+"&"+e:"?"+e:r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then((function(t){return o._vid=t._vid,o.components=t.components,o.settings=t.settings,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))},t.prototype.saveForm=function(t,e){return this.save("form",t,e)},t.prototype.deleteForm=function(t){return this.delete("form",t)},t.prototype.loadForms=function(t,e){return this.index("forms",t,e)},t.prototype.loadSubmission=function(t,e){var n=this;return this.load("submission",t,e).then((function(t){return n.vId=t._fvid,n.vUrl=n.formUrl+"/v/"+n.vId,t}))},t.prototype.saveSubmission=function(t,e){return isNaN(parseInt(this.vId))||(t._fvid=this.vId),this.save("submission",t,e)},t.prototype.deleteSubmission=function(t){return this.delete("submission",t)},t.prototype.loadSubmissions=function(t,e){return this.index("submissions",t,e)},t.prototype.loadAction=function(t,e){return this.load("action",t,e)},t.prototype.saveAction=function(t,e){return this.save("action",t,e)},t.prototype.deleteAction=function(t){return this.delete("action",t)},t.prototype.loadActions=function(t,e){return this.index("actions",t,e)},t.prototype.availableActions=function(){return this.makeRequest("availableActions",this.formUrl+"/actions")},t.prototype.actionInfo=function(t){return this.makeRequest("actionInfo",this.formUrl+"/actions/"+t)},t.prototype.isObjectId=function(t){return new RegExp("^[0-9a-fA-F]{24}$").test(t)},t.prototype.getProjectId=function(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((function(t){return t._id})):Promise.resolve("")},t.prototype.getFormId=function(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((function(t){return t._id})):Promise.resolve("")},t.prototype.currentUser=function(e){return t.currentUser(this,e)},t.prototype.accessInfo=function(){return t.accessInfo(this)},t.prototype.getToken=function(e){return t.getToken(Object.assign({formio:this},this.options,e))},t.prototype.setToken=function(e,n){return t.setToken(e,Object.assign({formio:this},this.options,n))},t.prototype.getTempToken=function(e,n,r){if(!t.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");var o=t.authUrl||this.projectUrl;return this.makeRequest("tempToken",o+"/token","GET",null,{ignoreCache:!0,header:new f({"x-expire":e,"x-allow":n})})},t.prototype.getDownloadUrl=function(t){var e=this;if(!this.submissionId)return Promise.resolve("");if(!t)return this.loadForm().then((function(t){return t?e.getDownloadUrl(t):""}));var n="/project/"+t.project;n+="/form/"+t._id,n+="/submission/"+this.submissionId,n+="/download";var r=this.base+n;return new Promise((function(t,o){e.getTempToken(3600,"GET:"+n).then((function(e){r+="?token="+e.key,t(r)}),(function(){t(r)})).catch(o)}))},t.prototype.userPermissions=function(t,e,n){return Promise.all([void 0!==e?Promise.resolve(e):this.loadForm(),void 0!==t?Promise.resolve(t):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((function(t){var e=t.shift(),n=t.shift()||{_id:!1,roles:[]},r=t.shift(),o=t.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},s={user:n,form:e,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var c in o.roles)if(o.roles.hasOwnProperty(c)){var l=o.roles[c];if(l.default&&!1===n._id)n.roles.push(l._id);else if(l.admin&&-1!==n.roles.indexOf(l._id))return s.create=!0,s.read=!0,s.delete=!0,s.edit=!0,s}if(e&&e.submissionAccess)for(var f=0;f-1&&("read"===t.defaultPermission&&(s[i.read]=!0),"create"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0),"write"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0),"admin"===t.defaultPermission&&(s[i.create]=!0,s[i.read]=!0,s[i.update]=!0,s[i.delete]=!0))}))}})),s}))},t.prototype.canSubmit=function(){var e=this;return this.userPermissions().then((function(n){return!n.create&&t.getUser()?e.userPermissions(null).then((function(e){return!!e.create&&(t.setUser(null),!0)})):n.create}))},t.prototype.getUrlParts=function(e){return t.getUrlParts(e,this)},t.getUrlParts=function(e,n){var r=n&&n.base?n.base:t.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?o+="("+r.replace(/^http[s]?:\/\//,"")+")":o+="([^/]+)",o+="($|\\/.*)",e.match(new RegExp(o))},t.serialize=function(t,e){var n,r=[];for(var o in t)t.hasOwnProperty(o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent((n=t[o],e?e(n):n)));return r.join("&")},t.getRequestArgs=function(t,e,n,r,o,i){r=(r||"GET").toUpperCase(),i&&a.isObject(i)||(i={});var u={url:n,method:r,data:o||null,opts:i};return e&&(u.type=e),t&&(u.formio=t),u},t.makeStaticRequest=function(e,n,r,o){var i=t.getRequestArgs(null,"",e,n,r,o),u=p.default.pluginWait("preRequest",i).then((function(){return p.default.pluginGet("staticRequest",i).then((function(e){return a.isNil(e)?t.request(i.url,i.method,i.data,i.opts.header,i.opts):e}))}));return p.default.pluginAlter("wrapStaticRequestPromise",u,i)},t.makeRequest=function(e,n,r,o,i,u){if(!e)return t.makeStaticRequest(r,o,i,u);var s=t.getRequestArgs(e,n,r,o,i,u);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=a.defaults(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var c=p.default.pluginWait("preRequest",s).then((function(){return p.default.pluginGet("request",s).then((function(e){return a.isNil(e)?t.request(s.url,s.method,s.data,s.opts.header,s.opts):e}))}));return p.default.pluginAlter("wrapRequestPromise",c,s)},t.request=function(e,n,r,o,i){if(!e)return Promise.reject("No url provided");n=(n||"GET").toUpperCase(),a.isBoolean(i)&&(i={ignoreCache:i}),i&&a.isObject(i)||(i={});var u=btoa(encodeURI(e));if(!i.ignoreCache&&"GET"===n&&t.cache.hasOwnProperty(u))return Promise.resolve(t.cloneResponse(t.cache[u]));var s=o||new f(i.headers||{Accept:"application/json","Content-type":"application/json"}),c=t.getToken(i);c&&!i.noToken&&s.append("x-jwt-token",c);var l={};s.forEach((function(t,e){l[e]=t}));var h={method:n,headers:l,mode:"cors"};r&&(h.body=JSON.stringify(r)),((h=p.default.pluginAlter("requestOptions",h,e)).namespace||t.namespace)&&(i.namespace=h.namespace||t.namespace);var d=h.headers["x-jwt-token"];return p.default.pluginAlter("wrapFetchRequestPromise",t.fetch(e,h),{url:e,method:n,data:r,opts:i}).then((function(o){if(!(o=p.default.pluginAlter("requestResponse",o,t,r)).ok)return 440===o.status?(t.setToken(null,i),t.events.emit("formio.sessionExpired",o.body)):401===o.status?t.events.emit("formio.unauthorized",o.body):416===o.status&&t.events.emit("formio.rangeIsNotSatisfiable",o.body),(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){return Promise.reject(t)}));var u=o.headers.get("x-jwt-token"),s=!1;return"GET"!==n||d||!u||i.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),o.status>=200&&o.status<300&&u&&""!==u&&!s&&t.setToken(u,i),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then((function(t){var e=o.headers.get("content-range");if(e&&a.isObject(t)){if("*"!==(e=e.split("/"))[0]){var n=e[0].split("-");t.skip=Number(n[0]),t.limit=n[1]-n[0]+1}t.serverCount="*"===e[1]?e[1]:Number(e[1])}if(!i.getHeaders)return t;var r={};return o.headers.forEach((function(t,e){r[e]=t})),{result:t,headers:r}}))})).then((function(e){return i.getHeaders?e:("GET"===n&&(t.cache[u]=e),t.cloneResponse(e))})).catch((function(e){return"Bad Token"===e&&(t.setToken(null,i),t.events.emit("formio.badToken",e)),e.message&&(e.message="Could not connect to API server ("+e.message+")",e.networkError=!0),"GET"===n&&delete t.cache[u],Promise.reject(e)}))},Object.defineProperty(t,"token",{get:function(){return t.tokens.formioToken||""},set:function(e){t.tokens.formioToken=e||""},enumerable:!1,configurable:!0}),t.setToken=function(e,n){void 0===e&&(e=""),void 0===n&&(n={}),e=e||"";var r=((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio")+"Token";if(t.tokens||(t.tokens={}),!e){n.fromUser||(n.fromToken=!0,t.setUser(null,n));try{localStorage.removeItem(r)}catch(t){console.log("Error removing token: "+t.message)}return t.tokens[r]=e,Promise.resolve(null)}if(t.tokens[r]!==e){t.tokens[r]=e;try{localStorage.setItem(r,e)}catch(t){console.log("Error setting token: "+t.message)}}return t.currentUser(n.formio,n)},t.getToken=function(e){var n=((e="string"==typeof e?{namespace:e}:e||{}).namespace||t.namespace||"formio")+"Token",r=e.decode?n+"Decoded":n;if(t.tokens||(t.tokens={}),t.tokens[r])return t.tokens[r];try{return t.tokens[n]=localStorage.getItem(n)||"",t.tokens[n]}catch(t){return console.log("Error retrieving token: "+t.message),""}},t.setUser=function(e,n){void 0===n&&(n={});var r=(n.namespace||t.namespace||"formio")+"User";if(!e){n.fromToken||(n.fromUser=!0,t.setToken(null,n)),t.events.emit("formio.user",null);try{return localStorage.removeItem(r)}catch(t){return void console.log("Error removing token: "+t.message)}}try{localStorage.setItem(r,JSON.stringify(e))}catch(t){console.log("Error setting token: "+t.message)}t.events.emit("formio.user",e)},t.getUser=function(e){var n=((e=e||{}).namespace||t.namespace||"formio")+"User";try{return JSON.parse(localStorage.getItem(n)||null)}catch(t){return console.log("Error getting user: "+t.message),{}}},t.setBaseUrl=function(e){t.baseUrl=e,t.projectUrlSet||(t.projectUrl=e)},t.getBaseUrl=function(){return t.baseUrl},t.setApiUrl=function(e){return t.setBaseUrl(e)},t.getApiUrl=function(){return t.getBaseUrl()},t.setAppUrl=function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),t.projectUrl=e,t.projectUrlSet=!0},t.setProjectUrl=function(e){t.projectUrl=e,t.projectUrlSet=!0},t.setAuthUrl=function(e){t.authUrl=e},t.getAppUrl=function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),t.projectUrl},t.getProjectUrl=function(){return t.projectUrl},t.clearCache=function(){t.cache={}},t.accessInfo=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"accessInfo",n+"/access")},t.projectRoles=function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"projectRoles",n+"/role")},t.currentUser=function(e,n){void 0===n&&(n={});var r=t.authUrl;r||(r=e?e.projectUrl:t.projectUrl||t.baseUrl),r+="/current";var o=t.getUser(n);if(o)return p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(o),{url:r,method:"GET",options:n});var i=t.getToken(n);return n&&n.external||i?t.makeRequest(e,"currentUser",r,"GET",null,n).then((function(e){return t.setUser(e,n),e})):p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:n})},t.logout=function(e,n){void 0===n&&(n={}),n.formio=e;var r=t.authUrl?t.authUrl:e?e.projectUrl:t.baseUrl;return t.makeRequest(e,"logout",r+"/logout").then((function(e){return t.setToken(null,n),t.setUser(null,n),t.clearCache(),e})).catch((function(e){throw t.setToken(null,n),t.setUser(null,n),t.clearCache(),e}))},t.pageQuery=function(){var t={paths:[]},e=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(e){(n=e.split("=")).length>1&&(t[n[0]]=n[1]&&decodeURIComponent(n[1]))})),e.forEach((function(e){(n=e.split("=")).length>1?t[n[0]]=n[1]&&decodeURIComponent(n[1]):0===e.indexOf("/")&&(t.paths=e.substr(1).split("/"))})),t},t.oAuthCurrentUser=function(e,n){return t.currentUser(e,{external:!0,headers:{Authorization:"Bearer "+n}})},t.samlInit=function(e){void 0===e&&(e={});var n=t.pageQuery();if(n.saml){t.setUser(null);var r=t.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}e.relay||(e.relay=window.location.href);var i=t.authUrl||t.projectUrl;return window.location.href=i+"/saml/sso?relay="+encodeURI(e.relay),!1},t.oktaInit=function(e){if(void 0===e&&(e={}),void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.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),Promise.reject(n)}return new Promise((function(n,r){var o=e.OktaAuth;delete e.OktaAuth;var i=new o(e);i.tokenManager.get("accessToken").then((function(o){o?n(t.oAuthCurrentUser(e.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(t.oAuthCurrentUser(e.formio,r.accessToken))})).catch((function(t){console.warn(t),r(t)})):(i.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))})).catch((function(t){r(t)}))}))},t.ssoInit=function(e,n){switch(void 0===n&&(n={}),e){case"saml":return t.samlInit(n);case"okta":return t.oktaInit(n);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}},t.requireLibrary=function(e,n,r,o){if(void 0===o&&(o=!1),!t.libraries.hasOwnProperty(e)){t.libraries[e]={},t.libraries[e].ready=new Promise((function(n,r){t.libraries[e].resolve=n,t.libraries[e].reject=r}));var i=e+"Callback";o||window[i]||(window[i]=function(){return t.libraries[e].resolve()});var u=a.get(window,n);if(u)t.libraries[e].resolve(u);else if((r=Array.isArray(r)?r:[r]).forEach((function(t){var e={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",e={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":n="link",e={href:t.src,rel:"stylesheet"}}var r=document.createElement(n);if(r.setAttribute)for(var o in e)r.setAttribute(o,e[o]);var i=document.head;i&&i.appendChild(r)})),o)var s=setInterval((function(){var r=a.get(window,n);r&&(clearInterval(s),t.libraries[e].resolve(r))}),200)}return t.libraries[e].ready},t.libraryReady=function(e){return t.libraries.hasOwnProperty(e)&&t.libraries[e].ready?t.libraries[e].ready:Promise.reject(e+" library was not required.")},t.cloneResponse=function(t){var e=a.fastCloneDeep(t);return Array.isArray(t)&&(e.skip=t.skip,e.limit=t.limit,e.serverCount=t.serverCount),e},t.setPathType=function(e){"string"==typeof e&&(t.pathType=e)},t.getPathType=function(){return t.pathType},t.baseUrl="https://api.form.io",t.projectUrl="",t.authUrl="",t.projectUrlSet=!1,t.cache={},t.namespace="",t.events=new s.default,t.libraries={},t.fetch=l,t.Headers=f,t.tokens={},t.version="---VERSION---",t.plugins=p.default.plugins,t.deregisterPlugin=p.default.deregisterPlugin,t.registerPlugin=p.default.registerPlugin,t.getPlugin=p.default.getPlugin,t.pluginWait=p.default.pluginWait,t.pluginGet=p.default.pluginGet,t.pluginAlter=p.default.pluginAlter,t}();e.Formio=h,p.default.Formio=h},7689:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n-1;(o||u.tree||!h)&&(f=n(u,p,e));var d=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?p:u.key&&"form"===u.type?p+".data":i};f||(s?u.columns.forEach((function(e){return t(e.components,n,o,d(),a?u:null)})):c?u.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return t(e.components,n,o,d(),a?u:null)}))})):l&&t(u.components,n,o,d(),a?u:null))}})))},e.guid=a,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e+="-{{guid}}");var r=t.split("."),u=r.slice(0,r.length-1).join("."),s=r.length>1?"."+i.last(r):"";return u=u.substr(0,100),n=Object.assign(n||{},{fileName:u,guid:a()}),(""+o.Evaluator.interpolate(e,n)+s).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928: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)};Object.defineProperty(e,"__esModule",{value:!0}),e.dom=e.override=e.sanitize=e.BaseEvaluator=e.Evaluator=e.Utils=void 0,e.Utils=i(n(6176));var u=n(6550);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return u.Evaluator}}),Object.defineProperty(e,"BaseEvaluator",{enumerable:!0,get:function(){return u.BaseEvaluator}});var s=n(755);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}});var c=n(9395);Object.defineProperty(e,"override",{enumerable:!0,get:function(){return c.override}}),e.dom=i(n(2593)),a(n(974),e),a(n(6444),e),a(n(1475),e)},1475:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchInputMask=e.getInputMask=void 0;var r=n(2373);e.getInputMask=function(t,e){if(t instanceof Array)return t;var n=[];n.numeric=!0;for(var r=0;re.length)return!1;for(var n=0;n0&&e.sanitizeConfig.addAttr.forEach((function(t){r.ADD_ATTR.push(t)})),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addTags)&&e.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=e.sanitizeConfig.addTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedTags)&&e.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=e.sanitizeConfig.allowedTags),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.allowedAttrs)&&e.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=e.sanitizeConfig.allowedAttrs),e.sanitizeConfig&&e.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=e.sanitizeConfig.allowedUriRegex),e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addUriSafeAttr)&&e.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=e.sanitizeConfig.addUriSafeAttr),n.sanitize(t,r)}},974:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExCharacters=void 0,e.escapeRegExCharacters=function(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}},3930: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;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]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]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]l||isNaN(s)||s<0||s>12||isNaN(c)||c<0||c>9999?[2,!1]:[2,!0]):[2,!0]}))}))},e}(n(9402).Rule);e.DayRule=u},7887: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]()[\]\\.,;:\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(t)]:[2,!0]}))}))},e}(n(9402).Rule);e.EmailRule=u},8056: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]=e]}))}))},e}(u.Rule);e.MinRule=c},4559: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinLengthRule=u},766: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinWordsRule=u},183: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]=+e]:[2,!0]}))}))},e}(n(9402).Rule);e.MinYearRule=u},4703: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])})(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{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){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]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]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]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]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]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]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]()[\]\\.,;:\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,}))$/,[2,!t||e.test(t)&&!n.test(t)]}))}))},e}(n(9402).Rule);e.UrlRule=u},1456:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2861),o=n(3325),i=n(2452),a=n(7887),u=n(8056),s=n(3773),c=n(3944),l=n(7564),f=n(7893),p=n(2311),h=n(4559),d=n(9424),y=n(766),v=n(4703),m=n(6202),b=n(962),g=n(7042),_=n(5666),w=n(183),O=n(9518),j=n(9540);e.default={custom:r.CustomRule,date:o.DateRule,day:i.DayRule,email:a.EmailRule,mask:u.MaskRule,max:s.MaxRule,maxDate:c.MaxDateRule,maxLength:l.MaxLengthRule,maxWords:f.MaxWordsRule,min:p.MinRule,minDate:h.MinDateRule,minLength:d.MinLengthRule,minWords:y.MinWordsRule,pattern:v.PatternRule,required:m.RequiredRule,select:b.SelectRule,unique:g.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:O.MaxYearRule,time:j.TimeRule}},9520:function(t,e){e.Z=function(t){var e,n="";return Array.prototype.join,n+='\n \n \n ',t.component.components.forEach((function(t){n+="\n \n "})),n+="\n \n \n \n ",t.instance.rows.forEach((function(t){n+="\n \n ",t.forEach((function(t){n+="\n \n "})),n+="\n \n "})),n+="\n \n
"+(null==(e=t.label||t.key)?"":e)+"
"+(null==(e=t.dataValue)?"":e)+"
"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var r=n(5776);return r.Formio}()})); \ No newline at end of file diff --git a/dist/formio.full.min.js.LICENSE.txt b/dist/formio.full.min.js.LICENSE.txt new file mode 100644 index 00000000..9e64a229 --- /dev/null +++ b/dist/formio.full.min.js.LICENSE.txt @@ -0,0 +1 @@ +/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */ diff --git a/docs/classes/base_components.components.html b/docs/classes/base_components.components.html index 4a4cc0cd..59d79627 100644 --- a/docs/classes/base_components.components.html +++ b/docs/classes/base_components.components.html @@ -139,7 +139,7 @@

Static components

components: any = {}
@@ -154,7 +154,7 @@

Static decorators

decorators: any = {}
@@ -171,7 +171,7 @@

Static addComponent

  • @@ -205,7 +205,7 @@

    Static addDecorator

  • @@ -238,7 +238,7 @@

    Static component

  • @@ -269,7 +269,7 @@

    Static create

  • @@ -318,7 +318,7 @@

    Static importComponent

  • @@ -346,7 +346,7 @@

    Static setComponents

  • diff --git a/docs/classes/base_template.template.html b/docs/classes/base_template.template.html index bcd09f32..60c4307f 100644 --- a/docs/classes/base_template.template.html +++ b/docs/classes/base_template.template.html @@ -146,7 +146,7 @@

    Static _current

    _current: any = {}
    @@ -156,7 +156,7 @@

    Static _framework

    _framework: string = 'bootstrap'
    @@ -166,7 +166,7 @@

    Static templates

    templates: any = []
    @@ -184,7 +184,7 @@

    Static current

  • @@ -197,7 +197,7 @@

    Returns any
    @@ -226,7 +226,7 @@

    Static framework

  • @@ -239,7 +239,7 @@

    Returns string
    @@ -270,7 +270,7 @@

    Static addTemplate

  • @@ -303,7 +303,7 @@

    Static addTemplates

  • @@ -333,7 +333,7 @@

    Static extendTemplate

  • @@ -366,7 +366,7 @@

    Static render

  • @@ -403,7 +403,7 @@

    Static setTemplate

  • diff --git a/docs/classes/components_datatable_datatable.datatable.html b/docs/classes/components_datatable_datatable.datatable.html index c4918434..a68a7c51 100644 --- a/docs/classes/components_datatable_datatable.datatable.html +++ b/docs/classes/components_datatable_datatable.datatable.html @@ -137,7 +137,7 @@

    constructor

  • Parameters

    @@ -193,7 +193,7 @@

    renderClasses

  • Returns string

    @@ -210,7 +210,7 @@

    renderContext

  • Parameters

    diff --git a/docs/classes/components_datatable_datatable.datatablecomponent.html b/docs/classes/components_datatable_datatable.datatablecomponent.html index 9e8f6520..c9001125 100644 --- a/docs/classes/components_datatable_datatable.datatablecomponent.html +++ b/docs/classes/components_datatable_datatable.datatablecomponent.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -182,7 +182,7 @@

    renderClasses

    Returns string

    @@ -200,7 +200,7 @@

    renderContext

    Parameters

    diff --git a/docs/classes/components_datavalue_datavalue.datavaluecomponent.html b/docs/classes/components_datavalue_datavalue.datavaluecomponent.html index c752f7cf..a2c198a9 100644 --- a/docs/classes/components_datavalue_datavalue.datavaluecomponent.html +++ b/docs/classes/components_datavalue_datavalue.datavaluecomponent.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -182,7 +182,7 @@

    getAttributes

    Returns string

    @@ -200,7 +200,7 @@

    renderContext

    Parameters

    diff --git a/docs/classes/components_html_html.html.html b/docs/classes/components_html_html.html.html index 91d9fdcf..8c5d1e2d 100644 --- a/docs/classes/components_html_html.html.html +++ b/docs/classes/components_html_html.html.html @@ -146,7 +146,7 @@

    constructor

  • Parameters

    @@ -202,7 +202,7 @@

    getAttributes

  • Returns string

    @@ -219,7 +219,7 @@

    renderContext

  • Parameters

    diff --git a/docs/classes/components_html_html.htmlcomponent.html b/docs/classes/components_html_html.htmlcomponent.html index 02234c3c..ed82303b 100644 --- a/docs/classes/components_html_html.htmlcomponent.html +++ b/docs/classes/components_html_html.htmlcomponent.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -182,7 +182,7 @@

    getAttributes

    Returns string

    @@ -200,7 +200,7 @@

    renderContext

    Parameters

    diff --git a/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainer.html b/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainer.html index 9ea0d873..a8f72310 100644 --- a/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainer.html +++ b/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainer.html @@ -134,7 +134,7 @@

    constructor

    Parameters

    @@ -194,7 +194,7 @@

    getAttributes

    Returns string

    @@ -212,7 +212,7 @@

    renderContext

    Parameters

    diff --git a/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainercomponent.html b/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainercomponent.html index 18b92447..4f01539f 100644 --- a/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainercomponent.html +++ b/docs/classes/components_htmlcontainer_htmlcontainer.htmlcontainercomponent.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -182,7 +182,7 @@

    getAttributes

    Returns string

    @@ -200,7 +200,7 @@

    renderContext

    Parameters

    diff --git a/docs/classes/components_input_input.input.html b/docs/classes/components_input_input.input.html index 6495ee68..556447ab 100644 --- a/docs/classes/components_input_input.input.html +++ b/docs/classes/components_input_input.input.html @@ -139,7 +139,7 @@

    constructor

    Parameters

    @@ -183,7 +183,7 @@

    element

    element: any
    @@ -208,7 +208,7 @@

    attach

  • Parameters

    @@ -231,7 +231,7 @@

    detach

  • Returns void

    @@ -249,7 +249,7 @@

    getAttributes

    Returns string

    @@ -266,7 +266,7 @@

    onInput

  • Returns void

    @@ -284,7 +284,7 @@

    renderContext

    Parameters

    @@ -307,7 +307,7 @@

    setValue

  • Parameters

    diff --git a/docs/classes/components_input_input.inputcomponent.html b/docs/classes/components_input_input.inputcomponent.html index d2fe4fba..4306b26d 100644 --- a/docs/classes/components_input_input.inputcomponent.html +++ b/docs/classes/components_input_input.inputcomponent.html @@ -127,7 +127,7 @@

    constructor

    Parameters

    @@ -172,7 +172,7 @@

    element

    @@ -198,7 +198,7 @@

    attach

    Parameters

    @@ -222,7 +222,7 @@

    detach

    Returns void

    @@ -240,7 +240,7 @@

    getAttributes

    Returns string

    @@ -258,7 +258,7 @@

    onInput

    Returns void

    @@ -276,7 +276,7 @@

    renderContext

    Parameters

    @@ -300,7 +300,7 @@

    setValue

    Parameters

    diff --git a/docs/classes/modules_jsonlogic.jsonlogicevaluator.html b/docs/classes/modules_jsonlogic.jsonlogicevaluator.html index 35cd97fc..2af929c9 100644 --- a/docs/classes/modules_jsonlogic.jsonlogicevaluator.html +++ b/docs/classes/modules_jsonlogic.jsonlogicevaluator.html @@ -137,7 +137,7 @@

    Static noeval

    @@ -155,7 +155,7 @@

    Static evaluate

    Parameters

    @@ -191,7 +191,7 @@

    Static evaluator

    Parameters

    @@ -218,7 +218,7 @@

    Static execute

    @@ -253,7 +253,7 @@

    Static interpolate

    Parameters

    @@ -280,7 +280,7 @@

    Static interpolateString

    Inherited from BaseEvaluator.interpolateString

    Parameters

    diff --git a/docs/classes/sdk_formio.formio.html b/docs/classes/sdk_formio.formio.html index 42f949d6..0fad78ca 100644 --- a/docs/classes/sdk_formio.formio.html +++ b/docs/classes/sdk_formio.formio.html @@ -256,7 +256,7 @@

    constructor

  • Parameters

    @@ -287,7 +287,7 @@

    actionId

    actionId: string = ''
    @@ -302,7 +302,7 @@

    actionUrl

    actionUrl: string = ''
    @@ -317,7 +317,7 @@

    actionsUrl

    actionsUrl: string = ''
    @@ -337,7 +337,7 @@

    base

    base: string = ''
    @@ -352,7 +352,7 @@

    formId

    formId: string = ''
    @@ -367,7 +367,7 @@

    formUrl

    formUrl: string = ''
    @@ -387,7 +387,7 @@

    formsUrl

    formsUrl: string = ''
    @@ -407,7 +407,7 @@

    noProject

    noProject: boolean = false
    @@ -436,7 +436,7 @@

    Optional pathType

    pathType: FormioPathType
    @@ -451,7 +451,7 @@

    projectId

    projectId: string = ''
    @@ -466,7 +466,7 @@

    projectUrl

    projectUrl: string = ''
    @@ -486,7 +486,7 @@

    projectsUrl

    projectsUrl: string = ''
    @@ -506,7 +506,7 @@

    query

    query: string = ''
    @@ -521,7 +521,7 @@

    roleId

    roleId: string = ''
    @@ -536,7 +536,7 @@

    roleUrl

    roleUrl: string = ''
    @@ -556,7 +556,7 @@

    rolesUrl

    rolesUrl: string = ''
    @@ -576,7 +576,7 @@

    submissionId

    submissionId: string = ''
    @@ -591,7 +591,7 @@

    submissionUrl

    submissionUrl: string = ''
    @@ -611,7 +611,7 @@

    submissionsUrl

    submissionsUrl: string = ''
    @@ -631,7 +631,7 @@

    vId

    vId: string = ''
    @@ -641,7 +641,7 @@

    vUrl

    vUrl: string = ''
    @@ -651,7 +651,7 @@

    vsUrl

    vsUrl: string = ''
    @@ -661,7 +661,7 @@

    Static Headers

    Headers: any = ...
    @@ -676,7 +676,7 @@

    Static authUrl

    authUrl: string = ''
    @@ -691,7 +691,7 @@

    Static baseUrl

    baseUrl: string = 'https://api.form.io'
    @@ -706,7 +706,7 @@

    Static cache

    cache: any = {}
    @@ -721,7 +721,7 @@

    Static deregisterPlugin

    deregisterPlugin: (plugin: string | Plugin) => boolean = ...
    @@ -760,7 +760,7 @@

    Static events

    events: EventEmitterBase<string | symbol, any> = ...
    @@ -775,7 +775,7 @@

    Static fetch

    fetch: any = ...
    @@ -790,7 +790,7 @@

    Static getPlugin

    getPlugin: (name: string) => null | Plugin = ...
    @@ -829,7 +829,7 @@

    Static libraries

    libraries: any = {}
    @@ -844,7 +844,7 @@

    Static namespace

    namespace: string = ''
    @@ -859,7 +859,7 @@

    Static pathType: FormioPathType

    @@ -874,7 +874,7 @@

    Static pluginAlter

    pluginAlter: (pluginFn: any, value: any, ...args: any[]) => any = ...
    @@ -918,7 +918,7 @@

    Static pluginGet

    pluginGet: (pluginFn: any, ...args: any[]) => any = ...
    @@ -959,7 +959,7 @@

    Static pluginWait

    pluginWait: (pluginFn: any, ...args: any[]) => Promise<any[]> = ...
    @@ -1003,7 +1003,7 @@

    Static plugins

    plugins: Plugin[] = ...
    @@ -1013,7 +1013,7 @@

    Static projectUrl

    projectUrl: string = ''
    @@ -1028,7 +1028,7 @@

    Static projectUrlSetprojectUrlSet: boolean = false

    @@ -1043,7 +1043,7 @@

    Static registerPlugin

    registerPlugin: (plugin: Plugin, name: string) => void = ...
    @@ -1088,7 +1088,7 @@

    Static tokens

    tokens: any = {}
    @@ -1103,7 +1103,7 @@

    Static version

    version: string = '---VERSION---'
    @@ -1126,7 +1126,7 @@

    Static token

  • Returns any

    @@ -1134,7 +1134,7 @@

    Returns any

    Parameters

    @@ -1160,7 +1160,7 @@

    accessInfo

  • @@ -1182,7 +1182,7 @@

    actionInfo

  • @@ -1218,7 +1218,7 @@

    availableActions

  • @@ -1240,7 +1240,7 @@

    canSubmit

  • @@ -1262,7 +1262,7 @@

    currentUser

  • @@ -1293,7 +1293,7 @@

    delete

  • @@ -1327,7 +1327,7 @@

    deleteAction

  • @@ -1360,7 +1360,7 @@

    deleteForm

  • @@ -1393,7 +1393,7 @@

    deleteProject

  • @@ -1424,7 +1424,7 @@

    deleteRole

  • @@ -1452,7 +1452,7 @@

    deleteSubmission

  • @@ -1480,7 +1480,7 @@

    getDownloadUrl

  • @@ -1517,7 +1517,7 @@

    getFormId

  • @@ -1544,7 +1544,7 @@

    getProjectId

  • @@ -1571,7 +1571,7 @@

    getTempToken

  • @@ -1614,7 +1614,7 @@

    getToken

  • @@ -1648,7 +1648,7 @@

    getUrlParts

  • Parameters

    @@ -1671,7 +1671,7 @@

    index

  • @@ -1711,7 +1711,7 @@

    isObjectId

  • @@ -1745,7 +1745,7 @@

    load

  • @@ -1787,7 +1787,7 @@

    loadAction

  • @@ -1826,7 +1826,7 @@

    loadActions

  • @@ -1865,7 +1865,7 @@

    loadForm

  • @@ -1904,7 +1904,7 @@

    loadForms

  • @@ -1943,7 +1943,7 @@

    loadProject

  • @@ -1984,7 +1984,7 @@

    loadRole

  • @@ -2017,7 +2017,7 @@

    loadRoles

  • @@ -2050,7 +2050,7 @@

    loadSubmission

  • @@ -2089,7 +2089,7 @@

    loadSubmissions

  • @@ -2134,7 +2134,7 @@

    makeRequest

  • @@ -2188,7 +2188,7 @@

    save

  • @@ -2229,7 +2229,7 @@

    saveAction

  • @@ -2296,7 +2296,7 @@

    saveForm

  • @@ -2364,7 +2364,7 @@

    saveProject

  • @@ -2419,7 +2419,7 @@

    saveRole

  • @@ -2472,7 +2472,7 @@

    saveSubmission

  • @@ -2531,7 +2531,7 @@

    setToken

  • @@ -2571,7 +2571,7 @@

    userPermissions

  • @@ -2614,7 +2614,7 @@

    Static accessInfo

  • @@ -2652,7 +2652,7 @@

    Static clearCache

  • @@ -2693,7 +2693,7 @@

    Static cloneResponse

  • @@ -2723,7 +2723,7 @@

    Static currentUser

  • @@ -2761,7 +2761,7 @@

    Static getApiUrl

  • Returns string

    @@ -2778,7 +2778,7 @@

    Static getAppUrl

  • Returns string

    @@ -2795,7 +2795,7 @@

    Static getBaseUrl

  • @@ -2820,7 +2820,7 @@

    Static getPathType

    @@ -2842,7 +2842,7 @@

    Static getProjectUrl
    @@ -2867,7 +2867,7 @@

    Static getRequestArgs<
  • Parameters

    @@ -2905,7 +2905,7 @@

    Static getToken

  • @@ -2936,7 +2936,7 @@

    Static getUrlParts

    Parameters

    @@ -2962,7 +2962,7 @@

    Static getUser

  • @@ -2996,7 +2996,7 @@

    Static libraryReady

  • @@ -3041,7 +3041,7 @@

    Static loadProjects

  • @@ -3079,7 +3079,7 @@

    Static logout

  • @@ -3117,7 +3117,7 @@

    Static makeRequest

  • @@ -3176,7 +3176,7 @@

    Static makeStaticReque
  • Parameters

    @@ -3208,7 +3208,7 @@

    Static oAuthCurrent
    @@ -3246,7 +3246,7 @@

    Static oktaInit

  • @@ -3288,7 +3288,7 @@

    Static pageQuery

  • @@ -3326,7 +3326,7 @@

    Static projectRoles

  • @@ -3357,7 +3357,7 @@

    Static request

  • @@ -3413,7 +3413,7 @@

    Static requireLibrary

  • @@ -3480,7 +3480,7 @@

    Static samlInit

  • @@ -3537,7 +3537,7 @@

    Static serialize

  • Parameters

    @@ -3563,7 +3563,7 @@

    Static setApiUrl

  • Parameters

    @@ -3586,7 +3586,7 @@

    Static setAppUrl

  • Parameters

    @@ -3609,7 +3609,7 @@

    Static setAuthUrl

  • @@ -3641,7 +3641,7 @@

    Static setBaseUrl

  • @@ -3692,7 +3692,7 @@

    Static setPathType

    @@ -3722,7 +3722,7 @@

    Static setProjectUrl
    @@ -3754,7 +3754,7 @@

    Static setToken

  • @@ -3788,7 +3788,7 @@

    Static setUser

  • @@ -3822,7 +3822,7 @@

    Static ssoInit

  • diff --git a/docs/classes/sdk_plugins.default.html b/docs/classes/sdk_plugins.default.html index 4406254a..36ff22b3 100644 --- a/docs/classes/sdk_plugins.default.html +++ b/docs/classes/sdk_plugins.default.html @@ -140,7 +140,7 @@

    Static Formio

    Formio: any
    @@ -155,7 +155,7 @@

    Static plugins

    plugins: Plugin[] = []
    @@ -177,7 +177,7 @@

    Static deregisterPlugin

    @@ -208,7 +208,7 @@

    Static getPlugin

  • @@ -239,7 +239,7 @@

    Static identity

  • @@ -269,7 +269,7 @@

    Static pluginAlter

  • @@ -305,7 +305,7 @@

    Static pluginGet

  • @@ -338,7 +338,7 @@

    Static pluginWait

  • @@ -374,7 +374,7 @@

    Static registerPlugin

  • diff --git a/docs/classes/utils_evaluator.baseevaluator.html b/docs/classes/utils_evaluator.baseevaluator.html index 6949b79b..7e684471 100644 --- a/docs/classes/utils_evaluator.baseevaluator.html +++ b/docs/classes/utils_evaluator.baseevaluator.html @@ -139,7 +139,7 @@

    Static noeval

    noeval: boolean = false
    @@ -149,7 +149,7 @@

    Static templateSettings: { interpolate: RegExp } = ...

    @@ -174,7 +174,7 @@

    Static evaluate

  • @@ -214,7 +214,7 @@

    Static evaluator

  • Parameters

    @@ -240,7 +240,7 @@

    Static execute

  • @@ -274,7 +274,7 @@

    Static interpolate

  • Parameters

    @@ -300,7 +300,7 @@

    Static interpolateString

    Parameters

    diff --git a/docs/classes/utils_evaluator.evaluator.html b/docs/classes/utils_evaluator.evaluator.html index 7e2d8251..5513ccd4 100644 --- a/docs/classes/utils_evaluator.evaluator.html +++ b/docs/classes/utils_evaluator.evaluator.html @@ -138,7 +138,7 @@

    Static noeval

    @@ -156,7 +156,7 @@

    Static evaluate

    @@ -197,7 +197,7 @@

    Static evaluator

    Parameters

    @@ -224,7 +224,7 @@

    Static execute

    @@ -259,7 +259,7 @@

    Static interpolate

    Parameters

    @@ -286,7 +286,7 @@

    Static interpolateString

    Inherited from BaseEvaluator.interpolateString

    Parameters

    @@ -312,7 +312,7 @@

    Static registerEvaluator
    diff --git a/docs/classes/validator.validator-1.html b/docs/classes/validator.validator-1.html index 3c86d4a7..fb59c3fb 100644 --- a/docs/classes/validator.validator-1.html +++ b/docs/classes/validator.validator-1.html @@ -126,7 +126,7 @@

    Static rules

    rules: any = ...
    @@ -143,7 +143,7 @@

    Static addRules

  • Parameters

    diff --git a/docs/classes/validator_rules_custom.customrule.html b/docs/classes/validator_rules_custom.customrule.html index 8fc0d6e5..16b09dfa 100644 --- a/docs/classes/validator_rules_custom.customrule.html +++ b/docs/classes/validator_rules_custom.customrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{error}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_date.daterule.html b/docs/classes/validator_rules_date.daterule.html index 3df68603..e7417ebf 100644 --- a/docs/classes/validator_rules_date.daterule.html +++ b/docs/classes/validator_rules_date.daterule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} is not a valid date.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_day.dayrule.html b/docs/classes/validator_rules_day.dayrule.html index 28d43a00..abf4fd31 100644 --- a/docs/classes/validator_rules_day.dayrule.html +++ b/docs/classes/validator_rules_day.dayrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} is not a valid day.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_email.emailrule.html b/docs/classes/validator_rules_email.emailrule.html index 18d3247c..3c404230 100644 --- a/docs/classes/validator_rules_email.emailrule.html +++ b/docs/classes/validator_rules_email.emailrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must be a valid email.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_mask.maskrule.html b/docs/classes/validator_rules_mask.maskrule.html index 946ec26e..b80f3a5e 100644 --- a/docs/classes/validator_rules_mask.maskrule.html +++ b/docs/classes/validator_rules_mask.maskrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} does not match the mask.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_max.maxrule.html b/docs/classes/validator_rules_max.maxrule.html index 679cd302..9b41139a 100644 --- a/docs/classes/validator_rules_max.maxrule.html +++ b/docs/classes/validator_rules_max.maxrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} cannot be greater than {{settings.limit}}.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_maxdate.maxdaterule.html b/docs/classes/validator_rules_maxdate.maxdaterule.html index bd422372..60cc439f 100644 --- a/docs/classes/validator_rules_maxdate.maxdaterule.html +++ b/docs/classes/validator_rules_maxdate.maxdaterule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} should not contain date after {{settings.dateLimit}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_maxlength.maxlengthrule.html b/docs/classes/validator_rules_maxlength.maxlengthrule.html index bc7d731b..c8ab47fc 100644 --- a/docs/classes/validator_rules_maxlength.maxlengthrule.html +++ b/docs/classes/validator_rules_maxlength.maxlengthrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must have no more than {{- settings.length}} characters.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_maxwords.maxwordsrule.html b/docs/classes/validator_rules_maxwords.maxwordsrule.html index 4b58e099..02c43e40 100644 --- a/docs/classes/validator_rules_maxwords.maxwordsrule.html +++ b/docs/classes/validator_rules_maxwords.maxwordsrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must have no more than {{- settings.length}} words.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_maxyear.maxyearrule.html b/docs/classes/validator_rules_maxyear.maxyearrule.html index f3843370..8731b3dc 100644 --- a/docs/classes/validator_rules_maxyear.maxyearrule.html +++ b/docs/classes/validator_rules_maxyear.maxyearrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} should not contain year greater than {{maxYear}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_min.minrule.html b/docs/classes/validator_rules_min.minrule.html index 99cab946..4774c3e0 100644 --- a/docs/classes/validator_rules_min.minrule.html +++ b/docs/classes/validator_rules_min.minrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} cannot be less than {{settings.limit}}.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_mindate.mindaterule.html b/docs/classes/validator_rules_mindate.mindaterule.html index b918dd37..d06a1c23 100644 --- a/docs/classes/validator_rules_mindate.mindaterule.html +++ b/docs/classes/validator_rules_mindate.mindaterule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} should not contain date before {{settings.dateLimit}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_minlength.minlengthrule.html b/docs/classes/validator_rules_minlength.minlengthrule.html index bb52534c..64d3da65 100644 --- a/docs/classes/validator_rules_minlength.minlengthrule.html +++ b/docs/classes/validator_rules_minlength.minlengthrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must have no more than {{- settings.length}} characters.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_minwords.minwordsrule.html b/docs/classes/validator_rules_minwords.minwordsrule.html index 78543216..580c2e6d 100644 --- a/docs/classes/validator_rules_minwords.minwordsrule.html +++ b/docs/classes/validator_rules_minwords.minwordsrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must have at least {{- settings.length}} words.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_minyear.minyearrule.html b/docs/classes/validator_rules_minyear.minyearrule.html index d6932dc9..18b609a9 100644 --- a/docs/classes/validator_rules_minyear.minyearrule.html +++ b/docs/classes/validator_rules_minyear.minyearrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} should not contain year less than {{minYear}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_pattern.patternrule.html b/docs/classes/validator_rules_pattern.patternrule.html index f0ad341c..56b78646 100644 --- a/docs/classes/validator_rules_pattern.patternrule.html +++ b/docs/classes/validator_rules_pattern.patternrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} does not match the pattern {{settings.pattern}}'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_required.requiredrule.html b/docs/classes/validator_rules_required.requiredrule.html index 72a78804..d5c55ea6 100644 --- a/docs/classes/validator_rules_required.requiredrule.html +++ b/docs/classes/validator_rules_required.requiredrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} is required'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_rule.rule.html b/docs/classes/validator_rules_rule.rule.html index ce1a89f0..97205612 100644 --- a/docs/classes/validator_rules_rule.rule.html +++ b/docs/classes/validator_rules_rule.rule.html @@ -180,7 +180,7 @@

    constructor

  • Parameters

    @@ -236,7 +236,7 @@

    check

  • Parameters

    diff --git a/docs/classes/validator_rules_select.selectrule.html b/docs/classes/validator_rules_select.selectrule.html index 127e5470..530c6905 100644 --- a/docs/classes/validator_rules_select.selectrule.html +++ b/docs/classes/validator_rules_select.selectrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} contains an invalid selection'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_time.timerule.html b/docs/classes/validator_rules_time.timerule.html index 4d7416f6..e3b7bb65 100644 --- a/docs/classes/validator_rules_time.timerule.html +++ b/docs/classes/validator_rules_time.timerule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must contain valid time'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_unique.uniquerule.html b/docs/classes/validator_rules_unique.uniquerule.html index ab4a3529..f26805e6 100644 --- a/docs/classes/validator_rules_unique.uniquerule.html +++ b/docs/classes/validator_rules_unique.uniquerule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must be unique'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/classes/validator_rules_url.urlrule.html b/docs/classes/validator_rules_url.urlrule.html index da486287..52825466 100644 --- a/docs/classes/validator_rules_url.urlrule.html +++ b/docs/classes/validator_rules_url.urlrule.html @@ -122,7 +122,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    defaultMessage

    defaultMessage: string = '{{field}} must be a valid url.'
    @@ -192,7 +192,7 @@

    check

    Parameters

    diff --git a/docs/enums/sdk_formio.formiopathtype.html b/docs/enums/sdk_formio.formiopathtype.html index 8645d17b..86140270 100644 --- a/docs/enums/sdk_formio.formiopathtype.html +++ b/docs/enums/sdk_formio.formiopathtype.html @@ -97,7 +97,7 @@

    Subdirectories

    Subdirectories: = "Subdirectories"
    @@ -107,7 +107,7 @@

    Subdomains

    Subdomains: = "Subdomains"
    diff --git a/docs/interfaces/base_component_component.componentinterface.html b/docs/interfaces/base_component_component.componentinterface.html index faa714bc..e1658f44 100644 --- a/docs/interfaces/base_component_component.componentinterface.html +++ b/docs/interfaces/base_component_component.componentinterface.html @@ -101,7 +101,7 @@

    constructor

  • Parameters

    diff --git a/docs/interfaces/base_component_component.componentoptions.html b/docs/interfaces/base_component_component.componentoptions.html index 2b2e5057..c74a3924 100644 --- a/docs/interfaces/base_component_component.componentoptions.html +++ b/docs/interfaces/base_component_component.componentoptions.html @@ -109,7 +109,7 @@

    Optional hooks

    hooks: any
    @@ -119,7 +119,7 @@

    Optional i18n

    i18n: any
    @@ -129,7 +129,7 @@

    Optional language

    language: string
    @@ -139,7 +139,7 @@

    Optional namespace

    namespace: string
    @@ -149,7 +149,7 @@

    Optional noInit

    noInit: boolean
    @@ -159,7 +159,7 @@

    Optional template

    template: string
    diff --git a/docs/interfaces/base_component_component.componentschema.html b/docs/interfaces/base_component_component.componentschema.html index 04d69dff..ec64d3a3 100644 --- a/docs/interfaces/base_component_component.componentschema.html +++ b/docs/interfaces/base_component_component.componentschema.html @@ -111,7 +111,7 @@

    key

    key: string
    @@ -121,7 +121,7 @@

    Optional label

    label: string
    @@ -131,7 +131,7 @@

    type

    type: string
    diff --git a/docs/interfaces/base_nested_nestedcomponent.nestedcomponentschema.html b/docs/interfaces/base_nested_nestedcomponent.nestedcomponentschema.html index ebfbd979..33105a4e 100644 --- a/docs/interfaces/base_nested_nestedcomponent.nestedcomponentschema.html +++ b/docs/interfaces/base_nested_nestedcomponent.nestedcomponentschema.html @@ -105,7 +105,7 @@

    components

    components: any[]
    @@ -116,7 +116,7 @@

    key

    @@ -127,7 +127,7 @@

    Optional label

    @@ -138,7 +138,7 @@

    type

    diff --git a/docs/interfaces/model_eventemitter.modelinterface.html b/docs/interfaces/model_eventemitter.modelinterface.html index 1de54f40..3e3b39dc 100644 --- a/docs/interfaces/model_eventemitter.modelinterface.html +++ b/docs/interfaces/model_eventemitter.modelinterface.html @@ -109,7 +109,7 @@

    constructor

  • Parameters

    @@ -137,7 +137,7 @@

    Optional component

    component: any
    @@ -147,7 +147,7 @@

    Optional data

    data: any
    @@ -157,7 +157,7 @@

    Optional options

    options: any
    diff --git a/docs/interfaces/model_model.modeldecoratorinterface.html b/docs/interfaces/model_model.modeldecoratorinterface.html index 3be52eb1..31d44d14 100644 --- a/docs/interfaces/model_model.modeldecoratorinterface.html +++ b/docs/interfaces/model_model.modeldecoratorinterface.html @@ -85,7 +85,7 @@

    Callable

  • Parameters

    diff --git a/docs/interfaces/sdk_formio.formiooptions.html b/docs/interfaces/sdk_formio.formiooptions.html index 20859f6b..aff8f43f 100644 --- a/docs/interfaces/sdk_formio.formiooptions.html +++ b/docs/interfaces/sdk_formio.formiooptions.html @@ -105,7 +105,7 @@

    Optional base

    base: string
    @@ -120,7 +120,7 @@

    Optional project

    project: string
    diff --git a/docs/interfaces/sdk_plugins.plugin.html b/docs/interfaces/sdk_plugins.plugin.html index 0b51f621..b9347731 100644 --- a/docs/interfaces/sdk_plugins.plugin.html +++ b/docs/interfaces/sdk_plugins.plugin.html @@ -107,7 +107,7 @@

    __name

    __name: string
    @@ -122,7 +122,7 @@

    deregister

    @@ -137,7 +137,7 @@

    init

    @@ -152,7 +152,7 @@

    priority

    priority: number
    diff --git a/docs/interfaces/sdk_plugins.pluginderegisterfunction.html b/docs/interfaces/sdk_plugins.pluginderegisterfunction.html index 5bff25f9..1c5c67e3 100644 --- a/docs/interfaces/sdk_plugins.pluginderegisterfunction.html +++ b/docs/interfaces/sdk_plugins.pluginderegisterfunction.html @@ -92,7 +92,7 @@

    Callable

  • diff --git a/docs/interfaces/sdk_plugins.plugininitfunction.html b/docs/interfaces/sdk_plugins.plugininitfunction.html index 83d82dbe..ce598e70 100644 --- a/docs/interfaces/sdk_plugins.plugininitfunction.html +++ b/docs/interfaces/sdk_plugins.plugininitfunction.html @@ -92,7 +92,7 @@

    Callable

  • diff --git a/docs/modules/base_array_arraycomponent.html b/docs/modules/base_array_arraycomponent.html index 5a5e2346..ee1b6c61 100644 --- a/docs/modules/base_array_arraycomponent.html +++ b/docs/modules/base_array_arraycomponent.html @@ -90,7 +90,7 @@

    ArrayComponent

  • diff --git a/docs/modules/base_component_component.html b/docs/modules/base_component_component.html index d0dafc4a..4f7e363b 100644 --- a/docs/modules/base_component_component.html +++ b/docs/modules/base_component_component.html @@ -98,7 +98,7 @@

    Component

  • Parameters

    diff --git a/docs/modules/base_components.html b/docs/modules/base_components.html index d8e1a5ff..01eb1002 100644 --- a/docs/modules/base_components.html +++ b/docs/modules/base_components.html @@ -96,7 +96,7 @@

    render

  • diff --git a/docs/modules/base_data_datacomponent.html b/docs/modules/base_data_datacomponent.html index f3e7efda..974b94a7 100644 --- a/docs/modules/base_data_datacomponent.html +++ b/docs/modules/base_data_datacomponent.html @@ -90,7 +90,7 @@

    DataComponent

  • diff --git a/docs/modules/base_nested_nestedcomponent.html b/docs/modules/base_nested_nestedcomponent.html index 77c53653..392edb9e 100644 --- a/docs/modules/base_nested_nestedcomponent.html +++ b/docs/modules/base_nested_nestedcomponent.html @@ -96,7 +96,7 @@

    NestedComponent

  • Parameters

    diff --git a/docs/modules/components_html_html.html b/docs/modules/components_html_html.html index 2ca35389..b18e293b 100644 --- a/docs/modules/components_html_html.html +++ b/docs/modules/components_html_html.html @@ -93,7 +93,7 @@

    Const HTMLProperties

    HTMLProperties: { schema: { attrs: never[]; className: string; content: string; tag: string }; template: (ctx: any) => string; type: string } = ...
    diff --git a/docs/modules/core.html b/docs/modules/core.html index 66f6d74b..27cb22dc 100644 --- a/docs/modules/core.html +++ b/docs/modules/core.html @@ -106,7 +106,7 @@

    use

  • @@ -136,7 +136,7 @@

    useModule

  • @@ -164,7 +164,7 @@

    usePlugin

  • diff --git a/docs/modules/ejs.html b/docs/modules/ejs.html index 1e93755b..635163af 100644 --- a/docs/modules/ejs.html +++ b/docs/modules/ejs.html @@ -86,7 +86,7 @@

    Const default

    default: string
    diff --git a/docs/modules/model_eventemitter.html b/docs/modules/model_eventemitter.html index f16cc070..7b9aae66 100644 --- a/docs/modules/model_eventemitter.html +++ b/docs/modules/model_eventemitter.html @@ -108,7 +108,7 @@

    EventEmitter

  • Parameters

    diff --git a/docs/modules/model_model.html b/docs/modules/model_model.html index e9038f72..2bfc8ce7 100644 --- a/docs/modules/model_model.html +++ b/docs/modules/model_model.html @@ -110,7 +110,7 @@

    Model

  • Parameters

    diff --git a/docs/modules/model_nestedarraymodel.html b/docs/modules/model_nestedarraymodel.html index 0a9ae441..f3e29ed7 100644 --- a/docs/modules/model_nestedarraymodel.html +++ b/docs/modules/model_nestedarraymodel.html @@ -90,7 +90,7 @@

    NestedArrayModel

  • Parameters

    diff --git a/docs/modules/model_nesteddatamodel.html b/docs/modules/model_nesteddatamodel.html index 1dc86d03..3e8ad68d 100644 --- a/docs/modules/model_nesteddatamodel.html +++ b/docs/modules/model_nesteddatamodel.html @@ -90,7 +90,7 @@

    NestedDataModel

  • Parameters

    diff --git a/docs/modules/model_nestedmodel.html b/docs/modules/model_nestedmodel.html index 24ff5f87..9206d8d9 100644 --- a/docs/modules/model_nestedmodel.html +++ b/docs/modules/model_nestedmodel.html @@ -90,7 +90,7 @@

    NestedModel

  • Parameters

    diff --git a/docs/modules/modules_jsonlogic_jsonlogic.html b/docs/modules/modules_jsonlogic_jsonlogic.html index 850da051..821beaaa 100644 --- a/docs/modules/modules_jsonlogic_jsonlogic.html +++ b/docs/modules/modules_jsonlogic_jsonlogic.html @@ -86,7 +86,7 @@

    Const jsonLogic

    jsonLogic: any = ...
    diff --git a/docs/modules/utils_date.html b/docs/modules/utils_date.html index 465d7255..01b91162 100644 --- a/docs/modules/utils_date.html +++ b/docs/modules/utils_date.html @@ -108,7 +108,7 @@

    convertFormatToMoment

  • @@ -136,7 +136,7 @@

    currentTimezone

  • @@ -158,7 +158,7 @@

    formatDate

  • @@ -192,7 +192,7 @@

    getDateSetting

  • @@ -220,7 +220,7 @@

    momentDate

  • diff --git a/docs/modules/utils_dom.html b/docs/modules/utils_dom.html index be55a5a4..52d28273 100644 --- a/docs/modules/utils_dom.html +++ b/docs/modules/utils_dom.html @@ -93,7 +93,7 @@

    appendTo

  • @@ -126,7 +126,7 @@

    empty

  • @@ -157,7 +157,7 @@

    prependTo

  • @@ -194,7 +194,7 @@

    removeChildFrom

  • diff --git a/docs/modules/utils_formutil.html b/docs/modules/utils_formutil.html index 761cfbe5..f0699e00 100644 --- a/docs/modules/utils_formutil.html +++ b/docs/modules/utils_formutil.html @@ -92,7 +92,7 @@

    eachComponent

  • @@ -147,7 +147,7 @@

    guid

  • Returns string

    @@ -164,7 +164,7 @@

    uniqueName

  • diff --git a/docs/modules/utils_mask.html b/docs/modules/utils_mask.html index eeeebcdc..8bddc00d 100644 --- a/docs/modules/utils_mask.html +++ b/docs/modules/utils_mask.html @@ -91,7 +91,7 @@

    getInputMask

  • @@ -131,7 +131,7 @@

    matchInputMask

  • Parameters

    diff --git a/docs/modules/utils_override.html b/docs/modules/utils_override.html index a3f8cafd..121e3043 100644 --- a/docs/modules/utils_override.html +++ b/docs/modules/utils_override.html @@ -90,7 +90,7 @@

    override

  • diff --git a/docs/modules/utils_sanitize.html b/docs/modules/utils_sanitize.html index afbc0f59..82578f3e 100644 --- a/docs/modules/utils_sanitize.html +++ b/docs/modules/utils_sanitize.html @@ -90,7 +90,7 @@

    sanitize

  • diff --git a/docs/modules/utils_unwind.html b/docs/modules/utils_unwind.html index 443fc7c3..d174aee0 100644 --- a/docs/modules/utils_unwind.html +++ b/docs/modules/utils_unwind.html @@ -93,7 +93,7 @@

    mergeArray

  • Parameters

    @@ -119,7 +119,7 @@

    mergeObject

  • Parameters

    @@ -145,7 +145,7 @@

    rewind

  • Parameters

    @@ -175,7 +175,7 @@

    unwind

  • Parameters

    diff --git a/docs/modules/utils_utils.html b/docs/modules/utils_utils.html index f4e85dc6..36c0e865 100644 --- a/docs/modules/utils_utils.html +++ b/docs/modules/utils_utils.html @@ -90,7 +90,7 @@

    escapeRegExCharacters

  • diff --git a/index.html b/index.html index a58395ad..70b56865 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + diff --git a/package-lock.json b/package-lock.json index 585746dc..f38fa9bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@formio/core", - "version": "0.2.4", + "version": "0.2.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 47e36781..176f5bfe 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { "name": "@formio/core", - "version": "0.2.4", + "version": "0.2.5", "description": "The core Form.io renderering framework.", "main": "lib/index.js", "scripts": { "test": "mocha -r ts-node/register --r mock-local-storage '**/*.spec.ts'", "docs": "./node_modules/typedoc/bin/typedoc --exclude '*.spec.ts' src/*.ts src/**/*.ts src/**/**/*.ts", "build:dev": "webpack --config config/webpack.config.js", - "build:core": "webpack --config config/webpack.core.js", + "build:full": "webpack --config config/webpack.full.js", "build:prod": "webpack --config config/webpack.prod.js", "clean": "rm -rf lib && rm -rf dist && rm -rf docs", - "build": "npm run clean && gulp templates && npm run docs && npm run build:dev && npm run build:prod && npm run build:core", + "build": "npm run clean && gulp templates && npm run docs && npm run build:dev && npm run build:prod && npm run build:full", "prepublish": "npm run build && npm run test" }, "repository": {