@formio/core
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,1 +1,5 @@ | ||
## 0.0.6 | ||
### Changed | ||
- Added a Components.render method. | ||
## 0.0.5 | ||
@@ -19,2 +23,2 @@ ### Changed | ||
### Changed | ||
- Initial commit. | ||
- Initial commit. |
/*! 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.FormioCore=e():t.FormioCore=e()}(self,(function(){return t={715:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"datatable",extends:"array",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable",methods:{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},renderContext:function(t){return t({classes:this.renderClasses()})}}}},519:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"datavalue",extends:"html",template:function(t){return"<"+t.tag+' ref="val"'+t.attrs+">"+t.value()+"</"+t.tag+">"}}},726:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"html",extends:"component",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="'+t.ref+'"'+t.attrs+">"+t.t(t.content)+"</"+t.tag+">"},methods:{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},renderContext:function(t){return t({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes(this)})}}}},594:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(n(726));e.default=r(r({},i.default),{type:"htmlcontainer",extends:"nested"})},946: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});var a=n(975),s=i(n(178));for(var u in s)s.hasOwnProperty(u)&&a.Components.importComponent(s[u])},178: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.DataValue=e.DataTable=e.HTMLContainerComponent=e.HTMLComponent=void 0;var o=r(n(726));e.HTMLComponent=o.default;var i=r(n(594));e.HTMLContainerComponent=i.default;var a=r(n(715));e.DataTable=a.default;var s=r(n(519));e.DataValue=s.default;var u=r(n(628));e.InputComponent=u.default},628:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},r=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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"input",extends:"html",schema:{tag:"input",ref:"input",changeEvent:"input",inputType:"text"},methods:{getAttributes:function(t){var e=(this.component.type+"-"+this.component.key).toLowerCase().replace(/[^a-z0-9\-]+/g,"_");return' type="'+this.component.inputType+'" id="'+e+'" name="'+e+'"'+t.call(this)},onInput:function(){this.updateValue(this.element.value)},attach:function(t,e){return n(this,void 0,void 0,(function(){var n=this;return r(this,(function(r){return[2,t.call(this,e).then((function(){return n.addEventListener(n.element,n.component.changeEvent,n.onInput.bind(n)),n}))]}))}))},detach:function(t){this.removeEventListener(this.element,this.component.changeEvent,this.onInput.bind(this)),t.call(this)},setValue:function(t,e){return this.element&&(this.element.value=e),t.call(this,e)}}}},287: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(285),a=n(53),s=n(650),u=Object.getOwnPropertyDescriptor(i.Component.prototype,"dataValue"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.row=function(t){return t<this.rows.length?this.rows[t]:[]},e.prototype.removeRow=function(t){var e=this;this.row(t).forEach((function(t){return e.removeComponent(t)})),this.dataValue.splice(t,1),this.rows.splice(t,1)},e.prototype.addRow=function(t){void 0===t&&(t={});var e=t;this.dataValue.push(e),this.createComponents(e)},e.prototype.setRowData=function(t,e){this.dataValue[e]=t,this.row(e).forEach((function(e){return e.data=t}))},e.prototype.rowChanged=function(t,e){var n=!1;return this.row(e).forEach((function(e){var r=e.hasChanged(s.lodash.get(t,e.component.key));n=r||n,r&&e.bubble("change",e)})),n},e.prototype.createComponents=function(e){var n=t.prototype.createComponents.call(this,e);return this.rows.push(n),n},e.prototype.initComponents=function(){var t=this;this.rows=[];var e=this.componentData();e.length&&e.forEach((function(e){return t.createComponents(e)}))},Object.defineProperty(e.prototype,"dataValue",{get:function(){return u.get.call(this)},set:function(t){var e=this;if(Array.isArray(t)){var n=this.dataValue;if(t.length>n.length)for(var r=n.length;r<t.length;r++)this.addRow(t[r]);if(n.length>t.length)for(r=t.length;r<n.length;r++)this.removeRow(r);t.forEach((function(t,n){return e.setRowData(t,n)}))}},enumerable:!1,configurable:!0}),e.prototype.hasChanged=function(t){var e=this,n=this.dataValue;if(t.length!==n.length)return this.emit("changed",this),!0;var r=!1;return t.forEach((function(t,n){r=e.rowChanged(t,n)||r})),r},e.prototype.setValue=function(t){var e=!1;return this.eachComponentValue(t,(function(t,n){e=t.setValue(n)||e})),e},e}(a.DataComponent);e.ArrayComponent=c},285: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{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var c=n(388),l=u(n(146)),f=n(650),p=function(t){function e(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=t.call(this)||this;return o.component=e,o.options=n,o.data=r,o.attached=!1,o.refs={},o.template=function(t){return"<span>"+t.t("Unknown Component")+"</span>"},o.id="e"+Math.random().toString(36).substring(7),o.component=f.lodash.merge(o.defaultSchema,o.component),o.options=Object.assign({language:"en",namespace:"formio"},o.options),o.options.noInit||o.init(),o}return o(e,t),e.schema=function(t){return void 0===t&&(t={}),f.lodash.merge({type:"component",key:""},t)},e.prototype.init=function(){this.hook("init"),this.initTemplate()},Object.defineProperty(e.prototype,"defaultSchema",{get:function(){return e.schema()},enumerable:!1,configurable:!0}),e.prototype.initTemplate=function(){this.options.tpl||(this.options.template&&l.default[this.options.template]&&(this.options.tpl=new c.Template(l.default[this.options.template])),this.options.tpl||(this.options.tpl=new c.Template(l.default.bootstrap)))},e.prototype.interpolate=function(t,e){return f.Evaluator.interpolate(t,e)},e.prototype.renderContext=function(t){return void 0===t&&(t={}),this.evalContext(t)},e.prototype.render=function(t){return void 0===t&&(t={}),this.renderTemplate(this.template||this.component.type,this.renderContext(t))},e.prototype.getRefs=function(){return{}},e.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+'"]')},e.prototype.attach=function(t){return i(this,void 0,void 0,(function(){var e,n;return a(this,(function(r){return t&&(e=t.parentNode)&&(n=Array.prototype.indexOf.call(e.children,t),t.outerHTML=String(this.sanitize(this.render())),t=e.children[n],this.loadRefs(t),this.attached=!0),this.element=t,[2,this]}))}))},e.prototype.sanitize=function(t){return f.sanitize(t,this.options)},Object.defineProperty(e.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}),e.prototype.t=function(t){return this.translations[t]?this.translations[t]:t},e.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)},e.prototype.renderTemplate=function(t,e){return void 0===e&&(e={}),this.options.tpl?this.options.tpl.render(t,this.evalContext(e)):"No template defined."},e.prototype.hook=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this.options&&this.options.hooks&&this.options.hooks[t])return this.options.hooks[t].apply(this,e);var r="function"==typeof e[e.length-1]?e[e.length-1]:null;return r?r(null,e[1]):e[1]},Object.defineProperty(e.prototype,"dataValue",{get:function(){return f.lodash.get(this.data,this.component.key)},set:function(t){this.component.key&&f.lodash.set(this.data,this.component.key,t)},enumerable:!1,configurable:!0}),e.prototype.bubble=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.parent?(e=this.parent).bubble.apply(e,s([t],n)):this.emit.apply(this,s([t],n))},e.prototype.hasChanged=function(t){return String(t)!==String(this.dataValue)},e.prototype.updateValue=function(t){var e=this.hasChanged(t);return this.dataValue=t,e&&this.bubble("change",this),e},e.prototype.setValue=function(t){return this.updateValue(t)},e.prototype.getElement=function(){return this.element},e.prototype.detach=function(){this.refs={},this.removeAllListeners()},e.prototype.clear=function(){this.detach(),f.dom.empty(this.getElement())},e.prototype.append=function(t){f.dom.appendTo(t,this.element)},e.prototype.prepend=function(t){f.dom.prependTo(t,this.element)},e.prototype.removeChild=function(t){f.dom.removeChildFrom(t,this.element)},e.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},e.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},e}(u(n(729)).default);e.Component=p},53: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}),s=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};Object.defineProperty(e,"__esModule",{value:!0}),e.DataComponent=void 0;var u=n(285),c=n(228),l=s(n(316)),f=Object.getOwnPropertyDescriptor(u.Component.prototype,"dataValue"),p=Object.getOwnPropertyDescriptor(c.NestedComponent.prototype,"dataValue"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.componentData=function(){var t=l.get(this.data,this.component.key,this.defaultValue);return Object.keys(t).length||l.set(this.data,this.component.key,t),t},Object.defineProperty(e.prototype,"dataValue",{get:function(){return f.get.call(this)},set:function(t){p.set.call(this,t)},enumerable:!1,configurable:!0}),e}(c.NestedComponent);e.DataComponent=d},975: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<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Components=void 0;var o=n(285),i=n(228),a=n(53),s=n(287),u=function(){function t(){}return t.createComponent=function(e,n,r){return t.components[e.type]?new t.components[e.type](e,n,r):new t.components.component(e,n,r)},t.addComponent=function(e){if(e){var n=e.type?t.importComponent(e):e;t.components[n.schema.type]=n}},t.importComponent=function(e){var n=e.extends||"component",o=t.components[n],i=function(t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),o.call(this,t,n,r),e.template&&(this.template=e.template)};(i.prototype=Object.create(o.prototype)).constructor=i,i.schema=function(t){void 0===t&&(t={});var n=Object.assign({},e.schema,t);return o.schema?o.schema(n):n};var a=function(t){e.methods.hasOwnProperty(t)&&(i.prototype[t]=function(){for(var n,i,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.prototype[t]?(n=e.methods[t]).call.apply(n,r([this,o.prototype[t].bind(this)],a)):(i=e.methods[t]).call.apply(i,r([this],a))})};for(var s in e.methods)a(s);return Object.defineProperty(i.prototype,"defaultSchema",{get:function(){return i.schema()}}),t.components[e.type]=i,i},t.components={component:o.Component,nested:i.NestedComponent,data:a.DataComponent,array:s.ArrayComponent},t}();e.Components=u,n(178)},228: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<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=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]}),s=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)&&a(e,t,n);return s(e,t),e},c=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NestedComponent=void 0;var f=n(285),p=n(975),d=u(n(316)),h=function(t){function e(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=t.call(this,e,i({noInit:!0},n),r)||this;return o.template=function(t){return'<div ref="nested">'+t.content+"</div>"},o.components=[],n.noInit||o.init(),o}return o(e,t),e.schema=function(t){return void 0===t&&(t={}),t.components||(t.components=[]),f.Component.schema(t)},e.prototype.init=function(){t.prototype.init.call(this),this.initComponents()},Object.defineProperty(e.prototype,"defaultSchema",{get:function(){return e.schema()},enumerable:!1,configurable:!0}),e.prototype.getComponents=function(){return this.components||[]},e.prototype.eachComponent=function(t){d.each(this.getComponents(),(function(e,n){if(!1===t(e,n))return!1}))},e.prototype.attach=function(e){return c(this,void 0,void 0,(function(){var n,r,o=this;return l(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.componentData=function(){return this.data},e.prototype.removeComponent=function(t){var e=this;(this.components||[]).forEach((function(n,r){var o;n===t&&(n.detach(),null===(o=e.components)||void 0===o||o.splice(r,1))}))},e.prototype.createComponent=function(t,e){var n=p.Components.createComponent(t,i({noInit:!0},this.options),e);return n.parent=this,n.root=this.root||this,n.init(),n},e.prototype.createComponents=function(t){var e=this,n=[];return(this.component.components||[]).forEach((function(r){var o,i=e.createComponent(r,t);null===(o=e.components)||void 0===o||o.push(i),n.push(i)})),n},e.prototype.initComponents=function(){this.createComponents(this.componentData())},e.prototype.renderContext=function(e){var n,r=this;return void 0===e&&(e={}),e.content=null===(n=this.components)||void 0===n?void 0:n.reduce((function(t,e){return t+e.render().replace(/(<[^\>]+)/,'$1 data-within="'+r.id+'"')}),""),t.prototype.renderContext.call(this,e)},Object.defineProperty(e.prototype,"dataValue",{get:function(){return this.data},set:function(t){this.eachComponentValue(t,(function(t,e){t.dataValue=e}))},enumerable:!1,configurable:!0}),e.prototype.eachComponentValue=function(t,e){Object.keys(t).length&&this.eachComponent((function(n){e(n,d.get(t,n.component.key))}))},e.prototype.setValue=function(t){var e=!1;return this.eachComponentValue(t,(function(t,n){e=t.setValue(n)||e})),e},e}(f.Component);e.NestedComponent=h},568: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=e.Templates=e.Util=e.Components=e.render=void 0;var a=n(975);Object.defineProperty(e,"Components",{enumerable:!0,get:function(){return a.Components}}),n(946),e.render=function(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),a.Components.createComponent(e,n,r).attach(t)},e.Util=i(n(650)),e.Templates=i(n(146));var s=n(388);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return s.Template}})},388:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var n=function(){function t(t){this.templates=t}return t.prototype.render=function(t,e,n){return void 0===n&&(n="html"),"function"==typeof t?t(e):this.templates[t]&&this.templates[t][n]?this.templates[t][n](e):"Unknown template"},t}();e.Template=n},66:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n="";return Array.prototype.join,n+='<table class="table'+(null==(e=t.classes)?"":e)+'">\n <thead>\n <tr>\n ',t.component.components.forEach((function(t){n+="\n <th>"+(null==(e=t.label||t.key)?"":e)+"</th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",t.instance.rows.forEach((function(t){n+="\n <tr>\n ",t.forEach((function(t){n+="\n <td>"+(null==(e=t.dataValue)?"":e)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>"}},852: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.html=void 0;var o=r(n(66));e.html=o.default},508: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.datatable=void 0,e.datatable=i(n(852))},146: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});var a=i(n(508));e.default={bootstrap:a}},851: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.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Evaluator=void 0;var s=i(n(316)),u=function(){function t(){}return t.evaluator=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.noeval?(console.warn("No evaluations allowed for this renderer."),s.noop):("object"==typeof n[0]&&(n=s.keys(n[0])),new(Function.bind.apply(Function,a(a([void 0],n),[e]))))},t.interpolateString=function(t,e){return t.replace(/({{\s*(.*?)\s*}})/g,(function(t,n,r){return s.get(e,r)}))},t.interpolate=function(e,n){if("function"==typeof e)try{return e(n)}catch(t){return console.warn("Error interpolating template",t,n),t.message}return t.interpolateString(String(e),n)},t.noeval=!1,t}();e.Evaluator=u},161:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.removeChildFrom=e.prependTo=e.appendTo=void 0,e.appendTo=function(t,e){e&&t&&(null==e||e.appendChild(t))},e.prependTo=function(t,e){if(e&&t)if(e.firstChild)try{e.insertBefore(t,e.firstChild)}catch(n){console.warn(n),e.appendChild(t)}else e.appendChild(t)},e.removeChildFrom=function(t,e){if(e&&t&&e.contains(t))try{e.removeChild(t)}catch(t){console.warn(t)}},e.empty=function(t){if(t)for(;t.firstChild;)t.removeChild(t.firstChild)}},992:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueName=e.guid=e.eachComponent=void 0;var o=n(851),i=n(316);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}e.eachComponent=function t(e,n,o,i,a){e&&(i=i||"",e.forEach((function(s){if(s){var u=s.columns&&Array.isArray(s.columns),c=s.rows&&Array.isArray(s.rows),l=s.components&&Array.isArray(s.components),f=!1,p=s.key?i?i+"."+s.key:s.key:"";a&&(s.parent=r({},a),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows);var d=u||c||l||["htmlelement","content"].indexOf(s.type)>-1;(o||s.tree||!d)&&(f=n(s,p,e));var h=function(){return s.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(s.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(s.type)||s.tree)?p:s.key&&"form"===s.type?p+".data":i};f||(u?s.columns.forEach((function(e){return t(e.components,n,o,h(),a?s:null)})):c?s.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return t(e.components,n,o,h(),a?s:null)}))})):l&&t(s.components,n,o,h(),a?s:null))}})))},e.guid=a,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e+="-{{guid}}");var r=t.split("."),s=r.slice(0,r.length-1).join("."),u=r.length>1?"."+i.last(r):"";return s=s.substr(0,100),n=Object.assign(n||{},{fileName:s,guid:a()}),(""+o.Evaluator.interpolate(e,n)+u).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},650: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.dom=e.sanitize=e.Evaluator=e.Utils=e.lodash=void 0,e.lodash=i(n(316)),e.Utils=i(n(992));var a=n(851);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return a.Evaluator}});var s=n(432);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}}),e.dom=i(n(161))},316: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.last=e.trim=e.intersection=e.pick=e.isEqual=e.find=e.filter=e.findEach=e.isObject=e.isNil=e.isBoolean=e.defaults=e.fastCloneDeep=e.merge=e.set=e.has=e.get=e.pathParts=e.each=e.noop=e.keys=void 0;var o=r(n(996));function i(t,e){var n=Array.isArray(t);for(var r in t)if(t.hasOwnProperty(r)&&!0===e(t[r],n?Number(r):r))break}function a(t){return t?("["===t[0]&&(t=t.replace(/^\[([^\]]+)\]/,"$1")),t.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function s(t,e,n){var r=a(e).reduce((function(t,e){return(t||{})[e]}),t);return void 0!==n&&void 0===r?n:r}function u(t){return t&&"object"==typeof t}function c(t,e,n){i(t,(function(t,r){if(l(f(t,Object.keys(e)),e)&&!0===n(t,r))return!0}))}function l(t,e){var n=!0;return t===e||t&&e&&(Array.isArray(t)||u(t))&&i(t,(function(t,r){return!Array.isArray(t)&&!u(t)||l(e[r],t)?e[r]!==t?(n=!1,!0):void 0:(n=!1,!0)})),n}function f(t,e){return e.reduce((function(e,n){return t&&t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}e.keys=function(t){return Object.keys(t)},e.noop=function(){},e.each=i,e.pathParts=a,e.get=s,e.has=function(t,e){return void 0!==s(t,e,void 0)},e.set=function(t,e,n){var r=a(e);return r.reduce((function(t,e,o){return Number.isNaN(Number(e))||(e=Number(e)),((Array.isArray(t)?e>=t.length:!t.hasOwnProperty(e))||o<r.length-1&&!Array.isArray(t[e])&&!u(t[e]))&&(t[e]=Number.isNaN(Number(r[o+1]))?{}:[]),o===r.length-1&&(t[e]=n),t[e]}),t),t},e.merge=function(t,e,n){return o.default(t,e,n)},e.fastCloneDeep=function(t){try{return JSON.parse(JSON.stringify(t))}catch(t){return console.log("Clone Failed: "+t.message),null}},e.defaults=function(t,e){return i(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)})),t},e.isBoolean=function(t){return"boolean"==typeof t},e.isNil=function(t){return null==t},e.isObject=u,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.find=function(t,e){if(t){if(Array.isArray(t)&&"function"==typeof e)return t.find(e);var n=void 0;return c(t,e,(function(t){return n=t,!0})),n}},e.isEqual=l,e.pick=f,e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))},e.trim=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp("^(["+e+"]*)(.*?)(["+e+"]*)$"),"$2")},e.last=function(t){return t[t.length-1]}},432: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.sanitize=void 0;var o=r(n(856)),i=null;e.sanitize=function(t,e){var n=i||(window?i=o.default(window):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),t;var r={ADD_ATTR:["ref","target","within"],USE_PROFILES:{html:!0}};return e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addAttr)&&e.sanitizeConfig.addAttr.length>0&&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)}},996:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,n,u){(u=u||{}).arrayMerge=u.arrayMerge||o,u.isMergeableObject=u.isMergeableObject||e,u.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(t)?c?u.arrayMerge(t,n,u):function(t,e,n){var o={};return n.isMergeableObject(t)&&i(t).forEach((function(e){o[e]=r(t[e],n)})),i(e).forEach((function(i){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(a(t,i)&&n.isMergeableObject(e[i])?o[i]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(i,n)(t[i],e[i],n):o[i]=r(e[i],n))})),o}(t,n,u):r(n,u)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var u=s;t.exports=u},856: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,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,c=u.apply,l=u.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);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var f,p=w(Array.prototype.forEach),d=w(Array.prototype.pop),h=w(Array.prototype.push),m=w(String.prototype.toLowerCase),y=w(String.prototype.match),v=w(String.prototype.replace),g=w(String.prototype.indexOf),b=w(String.prototype.trim),_=w(RegExp.prototype.test),O=(f=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l(f,e)});function w(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c(t,e,r)}}function A(t,r){e&&e(t,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=m(i);a!==i&&(n(r)||(r[o]=a),i=a)}t[i]=!0}return t}function x(e){var n=s(null),r=void 0;for(r in e)c(t,e,[r])&&(n[r]=e[r]);return n}function C(t,e){for(;null!==t;){var n=o(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=r(t)}return null}var j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),E=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),N=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),I=a(/<%[\s\S]*|[\s\S]*%>/gm),F=a(/^data-[\-\w.\u00B7-\uFFFF]/),U=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),B=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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 W(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var q=function(){return"undefined"==typeof window?null:window},$=function(t,e){if("object"!==(void 0===t?"undefined":G(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(e){return t(e)};if(n.version="2.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,s=e.HTMLTemplateElement,u=e.Node,c=e.Element,l=e.NodeFilter,f=e.NamedNodeMap,w=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,K=e.Text,X=e.Comment,Y=e.DOMParser,J=e.trustedTypes,Z=c.prototype,Q=C(Z,"cloneNode"),tt=C(Z,"nextSibling"),et=C(Z,"childNodes"),nt=C(Z,"parentNode");if("function"==typeof s){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var ot=$(J,r),it=ot&&zt?ot.createHTML(""):"",at=o,st=at.implementation,ut=at.createNodeIterator,ct=at.getElementsByTagName,lt=at.createDocumentFragment,ft=r.importNode,pt={};try{pt=x(o).documentMode?o.documentMode:{}}catch(t){}var dt={};n.isSupported=st&&void 0!==st.createHTMLDocument&&9!==pt;var ht=z,mt=I,yt=F,vt=U,gt=H,bt=B,_t=V,Ot=null,wt=A({},[].concat(W(j),W(T),W(E),W(P),W(k))),At=null,xt=A({},[].concat(W(D),W(N),W(R),W(L))),Ct=null,jt=null,Tt=!0,Et=!0,St=!1,Pt=!1,Mt=!1,kt=!1,Dt=!1,Nt=!1,Rt=!1,Lt=!0,zt=!1,It=!0,Ft=!0,Ut=!1,Vt={},Ht=A({},["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"]),Bt=null,Gt=A({},["audio","video","img","source","image","track"]),Wt=null,qt=A({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),$t=null,Kt=o.createElement("form"),Xt=function(t){$t&&$t===t||(t&&"object"===(void 0===t?"undefined":G(t))||(t={}),t=x(t),Ot="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):wt,At="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):xt,Wt="ADD_URI_SAFE_ATTR"in t?A(x(qt),t.ADD_URI_SAFE_ATTR):qt,Bt="ADD_DATA_URI_TAGS"in t?A(x(Gt),t.ADD_DATA_URI_TAGS):Gt,Ct="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},jt="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},Vt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,St=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pt=t.SAFE_FOR_TEMPLATES||!1,Mt=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,Lt=!1!==t.RETURN_DOM_IMPORT,zt=t.RETURN_TRUSTED_TYPE||!1,Dt=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Ft=!1!==t.KEEP_CONTENT,Ut=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,Pt&&(Et=!1),Rt&&(Nt=!0),Vt&&(Ot=A({},[].concat(W(k))),At=[],!0===Vt.html&&(A(Ot,j),A(At,D)),!0===Vt.svg&&(A(Ot,T),A(At,N),A(At,L)),!0===Vt.svgFilters&&(A(Ot,E),A(At,N),A(At,L)),!0===Vt.mathMl&&(A(Ot,P),A(At,R),A(At,L))),t.ADD_TAGS&&(Ot===wt&&(Ot=x(Ot)),A(Ot,t.ADD_TAGS)),t.ADD_ATTR&&(At===xt&&(At=x(At)),A(At,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Wt,t.ADD_URI_SAFE_ATTR),Ft&&(Ot["#text"]=!0),Mt&&A(Ot,["html","head","body"]),Ot.table&&(A(Ot,["tbody"]),delete Ct.tbody),i&&i(t),$t=t)},Yt=A({},["mi","mo","mn","ms","mtext"]),Jt=A({},["foreignobject","desc","title","annotation-xml"]),Zt=A({},T);A(Zt,E),A(Zt,S);var Qt=A({},P);A(Qt,M);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=m(t.tagName),r=m(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Yt[r]):Boolean(Zt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Jt[r]:Boolean(Qt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Jt[r])return!1;if(e.namespaceURI===te&&!Yt[r])return!1;var o=A({},["title","style","font","a","script"]);return!Qt[n]&&(o[n]||!Zt[n])}return!1},oe=function(t){h(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},ie=function(t,e){try{h(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(n.removed,{attribute:null,from:e})}e.removeAttribute(t)},ae=function(t){var e=void 0,n=void 0;if(Dt)t="<remove></remove>"+t;else{var r=y(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=ot?ot.createHTML(t):t;try{e=(new Y).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){var a=(e=st.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,Mt?"html":"body")[0]},se=function(t){return ut.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},ue=function(t){return!(t instanceof K||t instanceof X||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof w&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===u?"undefined":G(u))?t instanceof u:t&&"object"===(void 0===t?"undefined":G(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},le=function(t,e,r){dt[t]&&p(dt[t],(function(t){t.call(n,e,r,$t)}))},fe=function(t){var e=void 0;if(le("beforeSanitizeElements",t,null),ue(t))return oe(t),!0;if(y(t.nodeName,/[\u0080-\uFFFF]/))return oe(t),!0;var r=m(t.nodeName);if(le("uponSanitizeElement",t,{tagName:r,allowedTags:Ot}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return oe(t),!0;if(!Ot[r]||Ct[r]){if(Ft&&!Ht[r])for(var o=nt(t),i=et(t),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)?(Pt&&3===t.nodeType&&(e=t.textContent,e=v(e,ht," "),e=v(e,mt," "),t.textContent!==e&&(h(n.removed,{element:t.cloneNode()}),t.textContent=e)),le("afterSanitizeElements",t,null),!1):(oe(t),!0)},pe=function(t,e,n){if(It&&("id"===e||"name"===e)&&(n in o||n in Kt))return!1;if(Et&&_(yt,e));else if(Tt&&_(vt,e));else{if(!At[e]||jt[e])return!1;if(Wt[e]);else if(_(_t,v(n,bt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==g(n,"data:")||!Bt[t])if(St&&!_(gt,v(n,bt,"")));else if(n)return!1}return!0},de=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 s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};for(i=a.length;i--;){var u=e=a[i],c=u.name,l=u.namespaceURI;if(r=b(e.value),o=m(c),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,le("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(ie(c,t),s.keepAttr))if(_(/\/>/i,r))ie(c,t);else{Pt&&(r=v(r,ht," "),r=v(r,mt," "));var f=t.nodeName.toLowerCase();if(pe(f,o,r))try{l?t.setAttributeNS(l,c,r):t.setAttribute(c,r),d(n.removed)}catch(t){}}}le("afterSanitizeAttributes",t,null)}},he=function t(e){var n=void 0,r=se(e);for(le("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)le("uponSanitizeShadowNode",n,null),fe(n)||(n.content instanceof a&&t(n.content),de(n));le("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var i=void 0,s=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 O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported){if("object"===G(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(kt||Xt(o),n.removed=[],"string"==typeof t&&(Ut=!1),Ut);else if(t instanceof u)1===(s=(i=ae("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Nt&&!Pt&&!Mt&&-1===t.indexOf("<"))return ot&&zt?ot.createHTML(t):t;if(!(i=ae(t)))return Nt?null:it}i&&Dt&&oe(i.firstChild);for(var p=se(Ut?t:i);c=p.nextNode();)3===c.nodeType&&c===l||fe(c)||(c.content instanceof a&&he(c.content),de(c),l=c);if(l=null,Ut)return t;if(Nt){if(Rt)for(f=lt.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Lt&&(f=ft.call(r,f,!0)),f}var d=Mt?i.outerHTML:i.innerHTML;return Pt&&(d=v(d,ht," "),d=v(d,mt," ")),ot&&zt?ot.createHTML(d):d},n.setConfig=function(t){Xt(t),kt=!0},n.clearConfig=function(){$t=null,kt=!1},n.isValidAttribute=function(t,e,n){$t||Xt({});var r=m(t),o=m(e);return pe(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(dt[t]=dt[t]||[],h(dt[t],e))},n.removeHook=function(t){dt[t]&&d(dt[t])},n.removeHooks=function(t){dt[t]&&(dt[t]=[])},n.removeAllHooks=function(){dt={}},n}()}()},729: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 s=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.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},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s}},e={},function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}(568);var t,e})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FormioCore=e():t.FormioCore=e()}(self,(function(){return t={715:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"datatable",extends:"array",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable",methods:{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},renderContext:function(t){return t({classes:this.renderClasses()})}}}},519:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"datavalue",extends:"html",template:function(t){return"<"+t.tag+' ref="val"'+t.attrs+">"+t.value()+"</"+t.tag+">"}}},726:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"html",extends:"component",schema:{tag:"span",content:"",attrs:[],className:""},template:function(t){return"<"+t.tag+' ref="'+t.ref+'"'+t.attrs+">"+t.t(t.content)+"</"+t.tag+">"},methods:{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},renderContext:function(t){return t({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes(this)})}}}},594:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(n(726));e.default=r(r({},i.default),{type:"htmlcontainer",extends:"nested"})},946: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});var a=n(975),s=i(n(178));for(var u in s)s.hasOwnProperty(u)&&a.Components.importComponent(s[u])},178: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.DataValue=e.DataTable=e.HTMLContainerComponent=e.HTMLComponent=void 0;var o=r(n(726));e.HTMLComponent=o.default;var i=r(n(594));e.HTMLContainerComponent=i.default;var a=r(n(715));e.DataTable=a.default;var s=r(n(519));e.DataValue=s.default;var u=r(n(628));e.InputComponent=u.default},628:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},r=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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"input",extends:"html",schema:{tag:"input",ref:"input",changeEvent:"input",inputType:"text"},methods:{getAttributes:function(t){var e=(this.component.type+"-"+this.component.key).toLowerCase().replace(/[^a-z0-9\-]+/g,"_");return' type="'+this.component.inputType+'" id="'+e+'" name="'+e+'"'+t.call(this)},onInput:function(){this.updateValue(this.element.value)},attach:function(t,e){return n(this,void 0,void 0,(function(){var n=this;return r(this,(function(r){return[2,t.call(this,e).then((function(){return n.addEventListener(n.element,n.component.changeEvent,n.onInput.bind(n)),n}))]}))}))},detach:function(t){this.removeEventListener(this.element,this.component.changeEvent,this.onInput.bind(this)),t.call(this)},setValue:function(t,e){return this.element&&(this.element.value=e),t.call(this,e)}}}},287: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(285),a=n(53),s=n(650),u=Object.getOwnPropertyDescriptor(i.Component.prototype,"dataValue"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.row=function(t){return t<this.rows.length?this.rows[t]:[]},e.prototype.removeRow=function(t){var e=this;this.row(t).forEach((function(t){return e.removeComponent(t)})),this.dataValue.splice(t,1),this.rows.splice(t,1)},e.prototype.addRow=function(t){void 0===t&&(t={});var e=t;this.dataValue.push(e),this.createComponents(e)},e.prototype.setRowData=function(t,e){this.dataValue[e]=t,this.row(e).forEach((function(e){return e.data=t}))},e.prototype.rowChanged=function(t,e){var n=!1;return this.row(e).forEach((function(e){var r=e.hasChanged(s.lodash.get(t,e.component.key));n=r||n,r&&e.bubble("change",e)})),n},e.prototype.createComponents=function(e){var n=t.prototype.createComponents.call(this,e);return this.rows.push(n),n},e.prototype.initComponents=function(){var t=this;this.rows=[];var e=this.componentData();e.length&&e.forEach((function(e){return t.createComponents(e)}))},Object.defineProperty(e.prototype,"dataValue",{get:function(){return u.get.call(this)},set:function(t){var e=this;if(Array.isArray(t)){var n=this.dataValue;if(t.length>n.length)for(var r=n.length;r<t.length;r++)this.addRow(t[r]);if(n.length>t.length)for(r=t.length;r<n.length;r++)this.removeRow(r);t.forEach((function(t,n){return e.setRowData(t,n)}))}},enumerable:!1,configurable:!0}),e.prototype.hasChanged=function(t){var e=this,n=this.dataValue;if(t.length!==n.length)return this.emit("changed",this),!0;var r=!1;return t.forEach((function(t,n){r=e.rowChanged(t,n)||r})),r},e.prototype.setValue=function(t){var e=!1;return this.eachComponentValue(t,(function(t,n){e=t.setValue(n)||e})),e},e}(a.DataComponent);e.ArrayComponent=c},285: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{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var c=n(388),l=u(n(146)),f=n(650),p=function(t){function e(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=t.call(this)||this;return o.component=e,o.options=n,o.data=r,o.attached=!1,o.refs={},o.template=function(t){return"<span>"+t.t("Unknown Component")+"</span>"},o.id="e"+Math.random().toString(36).substring(7),o.component=f.lodash.merge(o.defaultSchema,o.component),o.options=Object.assign({language:"en",namespace:"formio"},o.options),o.options.noInit||o.init(),o}return o(e,t),e.schema=function(t){return void 0===t&&(t={}),f.lodash.merge({type:"component",key:""},t)},e.prototype.init=function(){this.hook("init"),this.initTemplate()},Object.defineProperty(e.prototype,"defaultSchema",{get:function(){return e.schema()},enumerable:!1,configurable:!0}),e.prototype.initTemplate=function(){this.options.tpl||(this.options.template&&l.default[this.options.template]&&(this.options.tpl=new c.Template(l.default[this.options.template])),this.options.tpl||(this.options.tpl=new c.Template(l.default.bootstrap)))},e.prototype.interpolate=function(t,e){return f.Evaluator.interpolate(t,e)},e.prototype.renderContext=function(t){return void 0===t&&(t={}),this.evalContext(t)},e.prototype.render=function(t){return void 0===t&&(t={}),this.renderTemplate(this.template||this.component.type,this.renderContext(t))},e.prototype.getRefs=function(){return{}},e.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+'"]')},e.prototype.attach=function(t){return i(this,void 0,void 0,(function(){var e,n;return a(this,(function(r){return t&&(e=t.parentNode)&&(n=Array.prototype.indexOf.call(e.children,t),t.outerHTML=String(this.sanitize(this.render())),t=e.children[n],this.loadRefs(t),this.attached=!0),this.element=t,[2,this]}))}))},e.prototype.sanitize=function(t){return f.sanitize(t,this.options)},Object.defineProperty(e.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}),e.prototype.t=function(t){return this.translations[t]?this.translations[t]:t},e.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)},e.prototype.renderTemplate=function(t,e){return void 0===e&&(e={}),this.options.tpl?this.options.tpl.render(t,this.evalContext(e)):"No template defined."},e.prototype.hook=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this.options&&this.options.hooks&&this.options.hooks[t])return this.options.hooks[t].apply(this,e);var r="function"==typeof e[e.length-1]?e[e.length-1]:null;return r?r(null,e[1]):e[1]},Object.defineProperty(e.prototype,"dataValue",{get:function(){return f.lodash.get(this.data,this.component.key)},set:function(t){this.component.key&&f.lodash.set(this.data,this.component.key,t)},enumerable:!1,configurable:!0}),e.prototype.bubble=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.parent?(e=this.parent).bubble.apply(e,s([t],n)):this.emit.apply(this,s([t],n))},e.prototype.hasChanged=function(t){return String(t)!==String(this.dataValue)},e.prototype.updateValue=function(t){var e=this.hasChanged(t);return this.dataValue=t,e&&this.bubble("change",this),e},e.prototype.setValue=function(t){return this.updateValue(t)},e.prototype.getElement=function(){return this.element},e.prototype.detach=function(){this.refs={},this.removeAllListeners()},e.prototype.clear=function(){this.detach(),f.dom.empty(this.getElement())},e.prototype.append=function(t){f.dom.appendTo(t,this.element)},e.prototype.prepend=function(t){f.dom.prependTo(t,this.element)},e.prototype.removeChild=function(t){f.dom.removeChildFrom(t,this.element)},e.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},e.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},e}(u(n(729)).default);e.Component=p},53: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}),s=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};Object.defineProperty(e,"__esModule",{value:!0}),e.DataComponent=void 0;var u=n(285),c=n(228),l=s(n(316)),f=Object.getOwnPropertyDescriptor(u.Component.prototype,"dataValue"),p=Object.getOwnPropertyDescriptor(c.NestedComponent.prototype,"dataValue"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.componentData=function(){var t=l.get(this.data,this.component.key,this.defaultValue);return Object.keys(t).length||l.set(this.data,this.component.key,t),t},Object.defineProperty(e.prototype,"dataValue",{get:function(){return f.get.call(this)},set:function(t){p.set.call(this,t)},enumerable:!1,configurable:!0}),e}(c.NestedComponent);e.DataComponent=d},975: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<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Components=void 0;var o=n(285),i=n(228),a=n(53),s=n(287),u=function(){function t(){}return t.createComponent=function(e,n,r){return t.components[e.type]?new t.components[e.type](e,n,r):new t.components.component(e,n,r)},t.addComponent=function(e){if(e){var n=e.type?t.importComponent(e):e;t.components[n.schema.type]=n}},t.importComponent=function(e){var n=e.extends||"component",o=t.components[n],i=function(t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),o.call(this,t,n,r),e.template&&(this.template=e.template)};(i.prototype=Object.create(o.prototype)).constructor=i,i.schema=function(t){void 0===t&&(t={});var n=Object.assign({},e.schema,t);return o.schema?o.schema(n):n};var a=function(t){e.methods.hasOwnProperty(t)&&(i.prototype[t]=function(){for(var n,i,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.prototype[t]?(n=e.methods[t]).call.apply(n,r([this,o.prototype[t].bind(this)],a)):(i=e.methods[t]).call.apply(i,r([this],a))})};for(var s in e.methods)a(s);return Object.defineProperty(i.prototype,"defaultSchema",{get:function(){return i.schema()}}),t.components[e.type]=i,i},t.render=function(e,n,r,o){return void 0===r&&(r={}),void 0===o&&(o={}),t.createComponent(n,r,o).attach(e)},t.components={component:o.Component,nested:i.NestedComponent,data:a.DataComponent,array:s.ArrayComponent},t}();e.Components=u,n(178)},228: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<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=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]}),s=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)&&a(e,t,n);return s(e,t),e},c=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NestedComponent=void 0;var f=n(285),p=n(975),d=u(n(316)),h=function(t){function e(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=t.call(this,e,i({noInit:!0},n),r)||this;return o.template=function(t){return'<div ref="nested">'+t.content+"</div>"},o.components=[],n.noInit||o.init(),o}return o(e,t),e.schema=function(t){return void 0===t&&(t={}),t.components||(t.components=[]),f.Component.schema(t)},e.prototype.init=function(){t.prototype.init.call(this),this.initComponents()},Object.defineProperty(e.prototype,"defaultSchema",{get:function(){return e.schema()},enumerable:!1,configurable:!0}),e.prototype.getComponents=function(){return this.components||[]},e.prototype.eachComponent=function(t){d.each(this.getComponents(),(function(e,n){if(!1===t(e,n))return!1}))},e.prototype.attach=function(e){return c(this,void 0,void 0,(function(){var n,r,o=this;return l(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.componentData=function(){return this.data},e.prototype.removeComponent=function(t){var e=this;(this.components||[]).forEach((function(n,r){var o;n===t&&(n.detach(),null===(o=e.components)||void 0===o||o.splice(r,1))}))},e.prototype.createComponent=function(t,e){var n=p.Components.createComponent(t,i({noInit:!0},this.options),e);return n.parent=this,n.root=this.root||this,n.init(),n},e.prototype.createComponents=function(t){var e=this,n=[];return(this.component.components||[]).forEach((function(r){var o,i=e.createComponent(r,t);null===(o=e.components)||void 0===o||o.push(i),n.push(i)})),n},e.prototype.initComponents=function(){this.createComponents(this.componentData())},e.prototype.renderContext=function(e){var n,r=this;return void 0===e&&(e={}),e.content=null===(n=this.components)||void 0===n?void 0:n.reduce((function(t,e){return t+e.render().replace(/(<[^\>]+)/,'$1 data-within="'+r.id+'"')}),""),t.prototype.renderContext.call(this,e)},Object.defineProperty(e.prototype,"dataValue",{get:function(){return this.data},set:function(t){this.eachComponentValue(t,(function(t,e){t.dataValue=e}))},enumerable:!1,configurable:!0}),e.prototype.eachComponentValue=function(t,e){Object.keys(t).length&&this.eachComponent((function(n){e(n,d.get(t,n.component.key))}))},e.prototype.setValue=function(t){var e=!1;return this.eachComponentValue(t,(function(t,n){e=t.setValue(n)||e})),e},e}(f.Component);e.NestedComponent=h},568: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=e.Templates=e.Util=e.Components=e.render=void 0;var a=n(975);Object.defineProperty(e,"Components",{enumerable:!0,get:function(){return a.Components}}),n(946),e.render=a.Components.render,e.Util=i(n(650)),e.Templates=i(n(146));var s=n(388);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return s.Template}})},388:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var n=function(){function t(t){this.templates=t}return t.prototype.render=function(t,e,n){return void 0===n&&(n="html"),"function"==typeof t?t(e):this.templates[t]&&this.templates[t][n]?this.templates[t][n](e):"Unknown template"},t}();e.Template=n},66:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n="";return Array.prototype.join,n+='<table class="table'+(null==(e=t.classes)?"":e)+'">\n <thead>\n <tr>\n ',t.component.components.forEach((function(t){n+="\n <th>"+(null==(e=t.label||t.key)?"":e)+"</th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",t.instance.rows.forEach((function(t){n+="\n <tr>\n ",t.forEach((function(t){n+="\n <td>"+(null==(e=t.dataValue)?"":e)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>"}},852: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.html=void 0;var o=r(n(66));e.html=o.default},508: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.datatable=void 0,e.datatable=i(n(852))},146: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});var a=i(n(508));e.default={bootstrap:a}},851: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.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Evaluator=void 0;var s=i(n(316)),u=function(){function t(){}return t.evaluator=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.noeval?(console.warn("No evaluations allowed for this renderer."),s.noop):("object"==typeof n[0]&&(n=s.keys(n[0])),new(Function.bind.apply(Function,a(a([void 0],n),[e]))))},t.interpolateString=function(t,e){return t.replace(/({{\s*(.*?)\s*}})/g,(function(t,n,r){return s.get(e,r)}))},t.interpolate=function(e,n){if("function"==typeof e)try{return e(n)}catch(t){return console.warn("Error interpolating template",t,n),t.message}return t.interpolateString(String(e),n)},t.noeval=!1,t}();e.Evaluator=u},161:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.removeChildFrom=e.prependTo=e.appendTo=void 0,e.appendTo=function(t,e){e&&t&&(null==e||e.appendChild(t))},e.prependTo=function(t,e){if(e&&t)if(e.firstChild)try{e.insertBefore(t,e.firstChild)}catch(n){console.warn(n),e.appendChild(t)}else e.appendChild(t)},e.removeChildFrom=function(t,e){if(e&&t&&e.contains(t))try{e.removeChild(t)}catch(t){console.warn(t)}},e.empty=function(t){if(t)for(;t.firstChild;)t.removeChild(t.firstChild)}},992:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueName=e.guid=e.eachComponent=void 0;var o=n(851),i=n(316);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}e.eachComponent=function t(e,n,o,i,a){e&&(i=i||"",e.forEach((function(s){if(s){var u=s.columns&&Array.isArray(s.columns),c=s.rows&&Array.isArray(s.rows),l=s.components&&Array.isArray(s.components),f=!1,p=s.key?i?i+"."+s.key:s.key:"";a&&(s.parent=r({},a),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows);var d=u||c||l||["htmlelement","content"].indexOf(s.type)>-1;(o||s.tree||!d)&&(f=n(s,p,e));var h=function(){return s.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(s.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(s.type)||s.tree)?p:s.key&&"form"===s.type?p+".data":i};f||(u?s.columns.forEach((function(e){return t(e.components,n,o,h(),a?s:null)})):c?s.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return t(e.components,n,o,h(),a?s:null)}))})):l&&t(s.components,n,o,h(),a?s:null))}})))},e.guid=a,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e+="-{{guid}}");var r=t.split("."),s=r.slice(0,r.length-1).join("."),u=r.length>1?"."+i.last(r):"";return s=s.substr(0,100),n=Object.assign(n||{},{fileName:s,guid:a()}),(""+o.Evaluator.interpolate(e,n)+u).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},650: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.dom=e.sanitize=e.Evaluator=e.Utils=e.lodash=void 0,e.lodash=i(n(316)),e.Utils=i(n(992));var a=n(851);Object.defineProperty(e,"Evaluator",{enumerable:!0,get:function(){return a.Evaluator}});var s=n(432);Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return s.sanitize}}),e.dom=i(n(161))},316: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.last=e.trim=e.intersection=e.pick=e.isEqual=e.find=e.filter=e.findEach=e.isObject=e.isNil=e.isBoolean=e.defaults=e.fastCloneDeep=e.merge=e.set=e.has=e.get=e.pathParts=e.each=e.noop=e.keys=void 0;var o=r(n(996));function i(t,e){var n=Array.isArray(t);for(var r in t)if(t.hasOwnProperty(r)&&!0===e(t[r],n?Number(r):r))break}function a(t){return t?("["===t[0]&&(t=t.replace(/^\[([^\]]+)\]/,"$1")),t.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function s(t,e,n){var r=a(e).reduce((function(t,e){return(t||{})[e]}),t);return void 0!==n&&void 0===r?n:r}function u(t){return t&&"object"==typeof t}function c(t,e,n){i(t,(function(t,r){if(l(f(t,Object.keys(e)),e)&&!0===n(t,r))return!0}))}function l(t,e){var n=!0;return t===e||t&&e&&(Array.isArray(t)||u(t))&&i(t,(function(t,r){return!Array.isArray(t)&&!u(t)||l(e[r],t)?e[r]!==t?(n=!1,!0):void 0:(n=!1,!0)})),n}function f(t,e){return e.reduce((function(e,n){return t&&t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}e.keys=function(t){return Object.keys(t)},e.noop=function(){},e.each=i,e.pathParts=a,e.get=s,e.has=function(t,e){return void 0!==s(t,e,void 0)},e.set=function(t,e,n){var r=a(e);return r.reduce((function(t,e,o){return Number.isNaN(Number(e))||(e=Number(e)),((Array.isArray(t)?e>=t.length:!t.hasOwnProperty(e))||o<r.length-1&&!Array.isArray(t[e])&&!u(t[e]))&&(t[e]=Number.isNaN(Number(r[o+1]))?{}:[]),o===r.length-1&&(t[e]=n),t[e]}),t),t},e.merge=function(t,e,n){return o.default(t,e,n)},e.fastCloneDeep=function(t){try{return JSON.parse(JSON.stringify(t))}catch(t){return console.log("Clone Failed: "+t.message),null}},e.defaults=function(t,e){return i(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)})),t},e.isBoolean=function(t){return"boolean"==typeof t},e.isNil=function(t){return null==t},e.isObject=u,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.find=function(t,e){if(t){if(Array.isArray(t)&&"function"==typeof e)return t.find(e);var n=void 0;return c(t,e,(function(t){return n=t,!0})),n}},e.isEqual=l,e.pick=f,e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))},e.trim=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp("^(["+e+"]*)(.*?)(["+e+"]*)$"),"$2")},e.last=function(t){return t[t.length-1]}},432: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.sanitize=void 0;var o=r(n(856)),i=null;e.sanitize=function(t,e){var n=i||(window?i=o.default(window):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),t;var r={ADD_ATTR:["ref","target","within"],USE_PROFILES:{html:!0}};return e.sanitizeConfig&&Array.isArray(e.sanitizeConfig.addAttr)&&e.sanitizeConfig.addAttr.length>0&&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)}},996:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,n,u){(u=u||{}).arrayMerge=u.arrayMerge||o,u.isMergeableObject=u.isMergeableObject||e,u.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(t)?c?u.arrayMerge(t,n,u):function(t,e,n){var o={};return n.isMergeableObject(t)&&i(t).forEach((function(e){o[e]=r(t[e],n)})),i(e).forEach((function(i){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(a(t,i)&&n.isMergeableObject(e[i])?o[i]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(i,n)(t[i],e[i],n):o[i]=r(e[i],n))})),o}(t,n,u):r(n,u)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var u=s;t.exports=u},856: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,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,c=u.apply,l=u.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);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var f,p=w(Array.prototype.forEach),d=w(Array.prototype.pop),h=w(Array.prototype.push),m=w(String.prototype.toLowerCase),y=w(String.prototype.match),v=w(String.prototype.replace),g=w(String.prototype.indexOf),b=w(String.prototype.trim),_=w(RegExp.prototype.test),O=(f=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return l(f,e)});function w(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c(t,e,r)}}function A(t,r){e&&e(t,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=m(i);a!==i&&(n(r)||(r[o]=a),i=a)}t[i]=!0}return t}function x(e){var n=s(null),r=void 0;for(r in e)c(t,e,[r])&&(n[r]=e[r]);return n}function C(t,e){for(;null!==t;){var n=o(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=r(t)}return null}var j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),E=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),N=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),I=a(/<%[\s\S]*|[\s\S]*%>/gm),F=a(/^data-[\-\w.\u00B7-\uFFFF]/),U=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),B=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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 W(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var q=function(){return"undefined"==typeof window?null:window},$=function(t,e){if("object"!==(void 0===t?"undefined":G(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(e){return t(e)};if(n.version="2.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,s=e.HTMLTemplateElement,u=e.Node,c=e.Element,l=e.NodeFilter,f=e.NamedNodeMap,w=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,K=e.Text,X=e.Comment,Y=e.DOMParser,J=e.trustedTypes,Z=c.prototype,Q=C(Z,"cloneNode"),tt=C(Z,"nextSibling"),et=C(Z,"childNodes"),nt=C(Z,"parentNode");if("function"==typeof s){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var ot=$(J,r),it=ot&&zt?ot.createHTML(""):"",at=o,st=at.implementation,ut=at.createNodeIterator,ct=at.getElementsByTagName,lt=at.createDocumentFragment,ft=r.importNode,pt={};try{pt=x(o).documentMode?o.documentMode:{}}catch(t){}var dt={};n.isSupported=st&&void 0!==st.createHTMLDocument&&9!==pt;var ht=z,mt=I,yt=F,vt=U,gt=H,bt=B,_t=V,Ot=null,wt=A({},[].concat(W(j),W(T),W(E),W(P),W(k))),At=null,xt=A({},[].concat(W(D),W(N),W(R),W(L))),Ct=null,jt=null,Tt=!0,Et=!0,St=!1,Pt=!1,Mt=!1,kt=!1,Dt=!1,Nt=!1,Rt=!1,Lt=!0,zt=!1,It=!0,Ft=!0,Ut=!1,Vt={},Ht=A({},["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"]),Bt=null,Gt=A({},["audio","video","img","source","image","track"]),Wt=null,qt=A({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),$t=null,Kt=o.createElement("form"),Xt=function(t){$t&&$t===t||(t&&"object"===(void 0===t?"undefined":G(t))||(t={}),t=x(t),Ot="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):wt,At="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):xt,Wt="ADD_URI_SAFE_ATTR"in t?A(x(qt),t.ADD_URI_SAFE_ATTR):qt,Bt="ADD_DATA_URI_TAGS"in t?A(x(Gt),t.ADD_DATA_URI_TAGS):Gt,Ct="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},jt="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},Vt="USE_PROFILES"in t&&t.USE_PROFILES,Tt=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,St=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pt=t.SAFE_FOR_TEMPLATES||!1,Mt=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,Lt=!1!==t.RETURN_DOM_IMPORT,zt=t.RETURN_TRUSTED_TYPE||!1,Dt=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Ft=!1!==t.KEEP_CONTENT,Ut=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,Pt&&(Et=!1),Rt&&(Nt=!0),Vt&&(Ot=A({},[].concat(W(k))),At=[],!0===Vt.html&&(A(Ot,j),A(At,D)),!0===Vt.svg&&(A(Ot,T),A(At,N),A(At,L)),!0===Vt.svgFilters&&(A(Ot,E),A(At,N),A(At,L)),!0===Vt.mathMl&&(A(Ot,P),A(At,R),A(At,L))),t.ADD_TAGS&&(Ot===wt&&(Ot=x(Ot)),A(Ot,t.ADD_TAGS)),t.ADD_ATTR&&(At===xt&&(At=x(At)),A(At,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Wt,t.ADD_URI_SAFE_ATTR),Ft&&(Ot["#text"]=!0),Mt&&A(Ot,["html","head","body"]),Ot.table&&(A(Ot,["tbody"]),delete Ct.tbody),i&&i(t),$t=t)},Yt=A({},["mi","mo","mn","ms","mtext"]),Jt=A({},["foreignobject","desc","title","annotation-xml"]),Zt=A({},T);A(Zt,E),A(Zt,S);var Qt=A({},P);A(Qt,M);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=m(t.tagName),r=m(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Yt[r]):Boolean(Zt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Jt[r]:Boolean(Qt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Jt[r])return!1;if(e.namespaceURI===te&&!Yt[r])return!1;var o=A({},["title","style","font","a","script"]);return!Qt[n]&&(o[n]||!Zt[n])}return!1},oe=function(t){h(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},ie=function(t,e){try{h(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(n.removed,{attribute:null,from:e})}e.removeAttribute(t)},ae=function(t){var e=void 0,n=void 0;if(Dt)t="<remove></remove>"+t;else{var r=y(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=ot?ot.createHTML(t):t;try{e=(new Y).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){var a=(e=st.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,Mt?"html":"body")[0]},se=function(t){return ut.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},ue=function(t){return!(t instanceof K||t instanceof X||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof w&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===u?"undefined":G(u))?t instanceof u:t&&"object"===(void 0===t?"undefined":G(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},le=function(t,e,r){dt[t]&&p(dt[t],(function(t){t.call(n,e,r,$t)}))},fe=function(t){var e=void 0;if(le("beforeSanitizeElements",t,null),ue(t))return oe(t),!0;if(y(t.nodeName,/[\u0080-\uFFFF]/))return oe(t),!0;var r=m(t.nodeName);if(le("uponSanitizeElement",t,{tagName:r,allowedTags:Ot}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return oe(t),!0;if(!Ot[r]||Ct[r]){if(Ft&&!Ht[r])for(var o=nt(t),i=et(t),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)?(Pt&&3===t.nodeType&&(e=t.textContent,e=v(e,ht," "),e=v(e,mt," "),t.textContent!==e&&(h(n.removed,{element:t.cloneNode()}),t.textContent=e)),le("afterSanitizeElements",t,null),!1):(oe(t),!0)},pe=function(t,e,n){if(It&&("id"===e||"name"===e)&&(n in o||n in Kt))return!1;if(Et&&_(yt,e));else if(Tt&&_(vt,e));else{if(!At[e]||jt[e])return!1;if(Wt[e]);else if(_(_t,v(n,bt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==g(n,"data:")||!Bt[t])if(St&&!_(gt,v(n,bt,"")));else if(n)return!1}return!0},de=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 s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};for(i=a.length;i--;){var u=e=a[i],c=u.name,l=u.namespaceURI;if(r=b(e.value),o=m(c),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,le("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(ie(c,t),s.keepAttr))if(_(/\/>/i,r))ie(c,t);else{Pt&&(r=v(r,ht," "),r=v(r,mt," "));var f=t.nodeName.toLowerCase();if(pe(f,o,r))try{l?t.setAttributeNS(l,c,r):t.setAttribute(c,r),d(n.removed)}catch(t){}}}le("afterSanitizeAttributes",t,null)}},he=function t(e){var n=void 0,r=se(e);for(le("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)le("uponSanitizeShadowNode",n,null),fe(n)||(n.content instanceof a&&t(n.content),de(n));le("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var i=void 0,s=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 O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported){if("object"===G(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(kt||Xt(o),n.removed=[],"string"==typeof t&&(Ut=!1),Ut);else if(t instanceof u)1===(s=(i=ae("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Nt&&!Pt&&!Mt&&-1===t.indexOf("<"))return ot&&zt?ot.createHTML(t):t;if(!(i=ae(t)))return Nt?null:it}i&&Dt&&oe(i.firstChild);for(var p=se(Ut?t:i);c=p.nextNode();)3===c.nodeType&&c===l||fe(c)||(c.content instanceof a&&he(c.content),de(c),l=c);if(l=null,Ut)return t;if(Nt){if(Rt)for(f=lt.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Lt&&(f=ft.call(r,f,!0)),f}var d=Mt?i.outerHTML:i.innerHTML;return Pt&&(d=v(d,ht," "),d=v(d,mt," ")),ot&&zt?ot.createHTML(d):d},n.setConfig=function(t){Xt(t),kt=!0},n.clearConfig=function(){$t=null,kt=!1},n.isValidAttribute=function(t,e,n){$t||Xt({});var r=m(t),o=m(e);return pe(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(dt[t]=dt[t]||[],h(dt[t],e))},n.removeHook=function(t){dt[t]&&d(dt[t])},n.removeHooks=function(t){dt[t]&&(dt[t]=[])},n.removeAllHooks=function(){dt={}},n}()}()},729: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 s=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.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},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s}},e={},function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}(568);var t,e})); |
@@ -56,3 +56,12 @@ /** | ||
static importComponent(definition: any): any; | ||
/** | ||
* Render a component attached to an html component. | ||
* | ||
* @param element | ||
* @param component | ||
* @param options | ||
* @param data | ||
*/ | ||
static render(element: HTMLElement, component: any, options?: any, data?: any): any; | ||
} | ||
import '../components'; |
@@ -127,2 +127,15 @@ "use strict"; | ||
/** | ||
* Render a component attached to an html component. | ||
* | ||
* @param element | ||
* @param component | ||
* @param options | ||
* @param data | ||
*/ | ||
Components.render = function (element, component, options, data) { | ||
if (options === void 0) { options = {}; } | ||
if (data === void 0) { data = {}; } | ||
return Components.createComponent(component, options, data).attach(element); | ||
}; | ||
/** | ||
* An array of Components available to be rendered. | ||
@@ -129,0 +142,0 @@ */ |
import { Components } from './core'; | ||
import './components/import'; | ||
export declare function render(element: HTMLElement, component: any, options?: any, data?: any): any; | ||
export declare const render: typeof Components.render; | ||
export { Components }; | ||
@@ -5,0 +5,0 @@ export * as Util from './util'; |
@@ -26,8 +26,3 @@ "use strict"; | ||
require("./components/import"); | ||
function render(element, component, options, data) { | ||
if (options === void 0) { options = {}; } | ||
if (data === void 0) { data = {}; } | ||
return core_1.Components.createComponent(component, options, data).attach(element); | ||
} | ||
exports.render = render; | ||
exports.render = core_1.Components.render; | ||
exports.Util = __importStar(require("./util")); | ||
@@ -34,0 +29,0 @@ exports.Templates = __importStar(require("./templates")); |
{ | ||
"name": "@formio/core", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "The core Form.io renderering framework.", | ||
@@ -43,3 +43,3 @@ "main": "lib/index.js", | ||
"@types/power-assert": "^1.5.3", | ||
"@types/sinon": "^9.0.10", | ||
"@types/sinon": "^9.0.11", | ||
"@types/uuid": "^8.3.0", | ||
@@ -54,3 +54,3 @@ "chai": "^4.3.3", | ||
"lodash": "^4.17.21", | ||
"mocha": "^8.3.0", | ||
"mocha": "^8.3.1", | ||
"mocha-jsdom": "^2.0.0", | ||
@@ -61,3 +61,3 @@ "mock-local-storage": "^1.1.17", | ||
"ts-node": "^9.1.1", | ||
"typedoc": "^0.20.29", | ||
"typedoc": "^0.20.30", | ||
"typescript": "^4.2.3", | ||
@@ -64,0 +64,0 @@ "webpack": "^5.24.3", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
814477
10225