survey-analytics 1.12.25 → 1.12.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm/shared.js +1366 -0
- package/fesm/shared.js.map +1 -0
- package/fesm/survey.analytics.js +12769 -0
- package/fesm/survey.analytics.js.map +1 -0
- package/fesm/survey.analytics.tabulator.js +1515 -0
- package/fesm/survey.analytics.tabulator.js.map +1 -0
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/svgbundle.d.ts +2 -0
- package/survey-analytics.types/svgbundle.d.ts +2 -0
- package/survey.analytics.css +1 -1
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.js +1 -1
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js.LICENSE.txt +1 -1
- package/survey.analytics.js +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
- package/survey-analytics.types/choices-table.d.ts +0 -17
- package/survey.analytics.datatables/index.d.ts.d.ts +0 -891
- package/survey.analytics.datatables/survey.analytics.datatables.css +0 -325
- package/survey.analytics.datatables/survey.analytics.datatables.js +0 -38982
- package/survey.analytics.datatables/survey.analytics.datatables.min.css +0 -7
- package/survey.analytics.datatables/survey.analytics.datatables.min.js +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* surveyjs - SurveyJS Analytics library v1.7.26
|
|
3
|
-
* Copyright (c) 2015-2019 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
|
-
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
|
-
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SurveyAnalyticsDatatables/surveyAnalyticsDatatables",[],t):"object"==typeof exports?exports["SurveyAnalyticsDatatables/surveyAnalyticsDatatables"]=t():e["SurveyAnalyticsDatatables/surveyAnalyticsDatatables"]=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=24)}([function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a}));var n=function(){function e(){}return e.createSelector=function(t,r,n){var i=document.createElement("div");i.className="sa-question__select-wrapper";var o=document.createElement("select");return o.className="sa-question__select",t.forEach((function(t){var n=e.createElement("option","",{value:t.value,text:t.text,selected:r(t)});o.appendChild(n)})),o.onchange=n,i.appendChild(o),i},e.createButton=function(t,r,n){return void 0===r&&(r=""),void 0===n&&(n="sa-toolbar__button"),e.createElement("span",n,{innerText:r,onclick:t})},e.createElement=function(e,t,r){void 0===t&&(t="");var n=document.createElement(e);return n.className=t,r&&Object.keys(r).forEach((function(e){n[e]=r[e]})),n},e.createSvgElement=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=document.createElementNS("http://www.w3.org/2000/svg","use");return r.setAttributeNS("http://www.w3.org/1999/xlink","href","#sa-svg-"+e),t.appendChild(r),t},e.createSvgButton=function(t){var r=e.createElement("button","sa-table__svg-button");return r.appendChild(e.createSvgElement(t)),r},e.createSvgToggleButton=function(t,r,n,i,o,a,s,l){void 0===s&&(s="first"),void 0===l&&(l="sa-toolbar__button sa-toolbar__svg-button");var u=e.createSvgElement(t),c=e.createSvgElement(r),p=e.createElement("button",l);return"first"===s?(p.title=n,p.appendChild(u)):(s="second")&&(p.title=i,p.appendChild(c)),p.onclick=function(e){"first"===s?(s="second",p.title=i,p.removeChild(u),p.appendChild(c),a(e)):"second"===s&&(s="first",p.title=n,p.removeChild(c),p.appendChild(u),o(e))},p},e.createInput=function(t,r,n){return void 0===r&&(r=""),void 0===n&&(n=""),e.createElement("input",t,{placeholder:r,defaultValue:n})},e}(),i={runningInBrowser:"function"==typeof window.URL.createObjectURL};function o(){return i.runningInBrowser}var a=function(){function e(){}return e.zipArrays=function(e,t){for(var r=[],n=0;n<Math.min(e.length,t.length);n++)r[n]=[e[n],t[n]];return r},e.unzipArrays=function(e){var t={first:[],second:[]};return e.forEach((function(e,r){t.first[r]=e[0],t.second[r]=e[1]})),t},e.sortDictionary=function(e,t,r){var n=this.zipArrays(e,t),i=function(e,t,r){void 0===r&&(r=!0);var n=e[1]<t[1]?1:e[1]==t[1]?0:-1;return r?n:-1*n};n.sort((function(e,t){return r?i(e,t,!1):i(e,t)}));var o=this.unzipArrays(n);return{keys:o.first,values:o.second}},e.toPercentage=function(e,t){return e/t*100},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",showAsColumn:"Show as Column",filterPlaceholder:"Search...",removeRows:"Remove rows",showLabel:"Show",entriesLabel:"entries",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",chartType_bar:"Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",hideButton:"Hide",makePrivateButton:"Make private",makePublicButton:"Make public",showButton:"Show",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages"},i={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var r=t[e];return void 0===r&&(r=this.locales.en[e]||e),r},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var r in this.locales)e.push(r);return e.sort(),e}},o=n;i.locales.en=n,i.localeNames.en="english"},function(e,t,r){"use strict";var n,i,o;r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),function(e){e[e.Visible=0]="Visible",e[e.Invisible=1]="Invisible",e[e.PublicInvisible=2]="PublicInvisible"}(n||(n={})),function(e){e[e.Column=0]="Column",e[e.Row=1]="Row"}(i||(i={})),function(e){e[e.Text=0]="Text",e[e.FileLink=1]="FileLink",e[e.Image=2]="Image"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,r,n){var i=this,o=e.extensions[r];o&&(o=this.sortExtensions(o)).forEach((function(e){if(e.render){var r=e.render(i.table,n);r&&(t.appendChild(r),i.renderedExtensions.push(e))}}))},e.prototype.destroy=function(){this.renderedExtensions.forEach((function(e){e.destroy&&e.destroy()})),this.renderedExtensions=[]},e.registerExtension=function(e){this.extensions[e.location]||(this.extensions[e.location]=[]),this.extensions[e.location].push(e)},e.findExtension=function(e,t){return this.extensions[e]&&this.extensions[e].filter((function(e){return e.name==t}))[0]||null},e.prototype.sortExtensions=function(e){if(Array.isArray(e))return[].concat(e.filter((function(e){return e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},e.extensions={},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function i(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,r){
|
|
7
|
-
/*!
|
|
8
|
-
* surveyjs - Survey JavaScript library v1.7.26
|
|
9
|
-
* Copyright (c) 2015-2020 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
10
|
-
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
11
|
-
*/
|
|
12
|
-
var n;n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=100)}([function(e,t,r){"use strict";var n=r(25);r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var i={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getCurrentStrings:function(){var e=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];return e||(e=this.locales[this.defaultLocale]),e},getString:function(e){var t=this.getCurrentStrings();t[e]||(t=this.locales[this.defaultLocale]);var r=t[e];return void 0===r&&(r=this.locales.en[e]),r},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var r in this.locales)e.push(r);return e.sort(),e}},o=n.a;i.locales.en=n.a,i.localeNames.en="english"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),t.b=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return o}));var n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},o=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}},function(e,t,r){"use strict";var n=r(1),i=r(3);r.d(t,"h",(function(){return o})),r.d(t,"l",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"j",(function(){return c})),r.d(t,"f",(function(){return p})),r.d(t,"e",(function(){return h})),r.d(t,"b",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"g",(function(){return g})),r.d(t,"k",(function(){return m}));var o=function(){function e(e,t,r){void 0===r&&(r=!1),this.name=t,this.typeValue=null,this.choicesValue=null,this.baseValue=null,this.isRequiredValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.dependedProperties=null,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValueValue=null,this.serializationProperty=null,this.displayName=null,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.nextToProperty=null,this.showMode=null,this.maxLength=-1,this.layout=null,this.onGetValue=null,this.onSetValue=null,this.visibleIf=null,this.isArray=!1,this.classInfoValue=e,this.isRequiredValue=r}return Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substr(0,this.typeValue.length-2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&g.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[])),t},set:function(e){this.defaultValueValue=e},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return i.a.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||i.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return e&&(e=e.toLowerCase()),this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!0,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!0,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var r=!this.layout||this.layout==e;return!(!this.visible||!r)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!0,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onPropertyEditorUpdate","maxLength","maxValue","minValue"],e}(),a=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();var n=e.properties;if(n[t])for(var i=n[t],o=0;o<i.length;o++)if(i[o].name==r){n[t].splice(o,1);break}},e.addClass=function(t,r){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();for(var r=[],n=e.properties;t;){var i=n[t];if(i)for(var o=0;o<i.length;o++)r.push(i[o]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var i=e.parentClasses[r];i&&e.createPropertiesCore(t,i)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var r={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,r);var n={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(r){e.setLocalizableStringText(t.name,r)}};Object.defineProperty(e,t.name,n)}else{var i=t.defaultValue;g.metaData.isDescendantOf(t.className,"itemvalue")&&"function"==typeof e.createNewArray&&(e.createNewArray(t.name,(function(r){r.locOwner=e,r.ownerPropertyName=t.name})),e.setPropertyValue(t.name,i),i=null),e.getPropertyValue&&e.setPropertyValue&&(n={get:function(){return t.onGetValue?t.onGetValue(e):e.getPropertyValue(t.name,i)},set:function(r){t.onSetValue?t.onSetValue(e,r,null):e.setPropertyValue(t.name,r)}},Object.defineProperty(e,t.name,n))}},e.properties={},e.parentClasses={},e}(),s=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,this.properties=null,e=e.toLowerCase(),this.parentName&&(this.parentName=this.parentName.toLowerCase(),a.addClass(e,this.parentName)),this.properties=new Array;for(var i=0;i<t.length;i++){var o=this.createProperty(t[i]);o&&this.properties.push(o)}}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.createProperty=function(t){var r="string"==typeof t?t:t.name;if(r){var n=null,a=r.indexOf(e.typeSymbol);a>-1&&(n=r.substring(a+1),r=r.substring(0,a));var s=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new o(this,r,s);if(n&&(l.type=n),"object"==typeof t){if(t.type&&(l.type=t.type),i.a.isValueEmpty(t.default)||(l.defaultValue=t.default),i.a.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),i.a.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),i.a.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),i.a.isValueEmpty(t.displayName)||(l.displayName=t.displayName),i.a.isValueEmpty(t.category)||(l.category=t.category),i.a.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),i.a.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),i.a.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),i.a.isValueEmpty(t.showMode)||(l.showMode=t.showMode),i.a.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),i.a.isValueEmpty(t.minValue)||(l.minValue=t.minValue),i.a.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addDependsOnProperty(e,t[r]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var r=this.find(t);r||(r=m.findProperty(this.parentName,t)),r&&r.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),l=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e=e.toLowerCase();var i=new s(e,t,r,n);return this.classes[e]=i,n&&(n=n.toLowerCase(),this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(i)),i},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var r=this.childrenClasses[t.parentName].indexOf(t);r>-1&&this.childrenClasses[t.parentName].splice(r,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);if(!t)return[];var r=this.classProperties[t.name];return r||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var r=this.classHashProperties[t.name];return r||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=new Array,r={};this.fillProperties(e,t,r),this.classProperties[e]=t,this.classHashProperties[e]=r},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},r=this.getProperties(e.getType()),n=0;n<r.length;n++)t[r[n].name]=r[n];var i=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(i&&i.length>0)for(n=0;n<i.length;n++){var o=i[n];t[o.name]||(t[o.name]=o)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var r=t||e.getDynamicType();if(!r)return[];var n=this.getProperties(r);if(!n||0==n.length)return[];for(var i={},o=this.getProperties(e.getType()),a=0;a<o.length;a++)i[o[a].name]=o[a];var s=[];for(a=0;a<n.length;a++){var l=n[a];i[l.name]||s.push(l)}return s},e.prototype.findProperty=function(e,t){var r=this.getHashProperties(e)[t];return r||null},e.prototype.findProperties=function(e,t){for(var r=[],n=this.getHashProperties(e),i=0;i<t.length;i++){var o=n[t[i]];o&&r.push(o)}return r},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,r=this.getAllClasses(),n=0;n<r.length;n++)for(var i=this.findClass(r[n]),o=0;o<i.properties.length;o++)if(i.properties[o].name==e){t.push(i.properties[o]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var r=this.findClass(e);if(!r)return null;if(r.creator)return r.creator(t);for(var n=r.parentName;n;){if(!(r=this.findClass(n)))return null;if(n=r.parentName,r.creator)return this.createCustomType(e,r.creator,t)}return null},e.prototype.createCustomType=function(e,t,r){void 0===r&&(r=void 0),e=e.toLowerCase();var n=t(r),i=e,o=n.getTemplate?n.getTemplate():n.getType();return n.getType=function(){return i},n.getTemplate=function(){return o},a.createProperties(n),n},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),r=[],n=0;n<t.length;n++)t[n].isRequired&&r.push(t[n].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var r=e.createProperty(t);return r&&(r.isCustom=!0,this.addPropertyToClass(e,r),this.emptyClassPropertiesHash(e),a.addProperty(e.name,r)),r},e.prototype.removeProperty=function(e,t){var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.removePropertyFromClass(r,n),this.emptyClassPropertiesHash(r),a.removeProperty(r.name,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);r<0||e.properties.splice(r,1)},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),r=0;r<t.length;r++)this.classProperties[t[r].name]=null,this.classHashProperties[t[r].name]=null},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var i=0;i<n.length;i++)t&&!n[i].creator||r.push(n[i]),this.fillChildrenClasses(n[i].name,t,r)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var r=this.alternativeNames[e];if(r&&r!=e)return this.findClass(r)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r;do{if(n.name===t)return!0;n=this.classes[n.parentName]}while(n);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.fillProperties=function(e,t,r){var n=this.findClass(e);if(n){n.parentName&&this.fillProperties(n.parentName,t,r);for(var i=0;i<n.properties.length;i++){var o=n.properties[i];this.addPropertyCore(o,t,r),r[o.name]=o}}},e.prototype.addPropertyCore=function(e,t,r){if(r[e.name]){for(var n=-1,i=0;i<t.length;i++)if(t[i].name==e.name){n=i;break}e.mergeWith(t[n]),t[n]=e}else t.push(e)},e}(),u=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),c=function(e){function t(t,r){var n=e.call(this,"unknownproperty","The property '"+t+"' in class '"+r+"' is unknown.")||this;n.propertyName=t,n.className=r;var i=g.metaData.getProperties(r);if(i){n.description="The list of available properties are: ";for(var o=0;o<i.length;o++)o>0&&(n.description+=", "),n.description+=i[o].name;n.description+="."}return n}return r.i(n.b)(t,e),t}(u),p=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;i.baseClassName=t,i.type=r,i.message=n,i.description="The following types are available: ";for(var o=g.metaData.getChildrenClasses(t,!0),a=0;a<o.length;a++)a>0&&(i.description+=", "),i.description+="'"+o[a].name+"'";return i.description+=".",i}return r.i(n.b)(t,e),t}(u),h=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return r.i(n.b)(t,e),t}(p),d=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return r.i(n.b)(t,e),t}(p),f=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return r.i(n.b)(t,e),t}(u),g=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){if(this.toObjectCore(e,t),t.getType){var r=this.getRequiredError(e,t.getType());r&&this.addNewError(r,e)}},e.prototype.toObjectCore=function(t,r){if(t){var n=null,i=void 0,o=!0;if(r.getType&&(i=r.getType(),n=e.metaData.getProperties(i),o=!!i&&!e.metaData.isDescendantOf(i,"itemvalue")),n){for(var a in r.startLoadingFromJson&&r.startLoadingFromJson(),n=this.addDynamicProperties(r,t,n),t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(n,a);s?this.valueToObj(t[a],r,s):o&&this.addNewError(new c(a.toString(),i),t)}else r[a]=t[a];r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r,n){if(void 0===n&&(n=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var i={};return null==r||r.className||(i[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),i,n),this.propertiesToJson(t,this.getDynamicProperties(t),i,n),i},e.prototype.getDynamicProperties=function(e){return m.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName)return r;var n=e.getDynamicPropertyName();if(!n)return r;t[n]&&(e[n]=t[n]);for(var i=this.getDynamicProperties(e),o=[],a=0;a<r.length;a++)o.push(r[a]);for(a=0;a<i.length;a++)o.push(i[a]);return o},e.prototype.propertiesToJson=function(e,t,r,n){void 0===n&&(n=!1);for(var i=0;i<t.length;i++)this.valueToJson(e,r,t[i],n)},e.prototype.valueToJson=function(e,t,r,n){if(void 0===n&&(n=!1),!(!1===r.isSerializable||!1===r.isLightSerializable&&this.lightSerializing)){var i=r.getValue(e);if(n||!r.isDefaultValue(i)){if(this.isValueArray(i)){for(var o=[],a=0;a<i.length;a++)o.push(this.toJsonObjectCore(i[a],r,n));i=o.length>0?o:null}else i=this.toJsonObjectCore(i,r,n);var s="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(r.name,null);(n&&s||!r.isDefaultValue(i))&&(t[r.name]=i)}}},e.prototype.valueToObj=function(e,t,r){if(null!=e)if(this.removePos(r,e),null!=r&&r.hasToUseSetValue)r.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,r.name,r);else{var n=this.createNewObj(e,r);n.newObj&&(this.toObjectCore(e,n.newObj),e=n.newObj),n.error||(null!=r?r.setValue(t,e,this):t[r.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.removePosFromObj(t[r]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,r){var n={newObj:null,error:null},i=t[e.typePropertyName];return!i&&null!=r&&r.className&&(i=r.className),i=r.getClassName(i),n.newObj=i?e.metaData.createClass(i,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,i),n},e.prototype.checkNewObjectOnErrors=function(e,t,r,n){var i=null;return e?i=this.getRequiredError(t,n):r.baseClassName&&(i=n?new d(r.name,r.baseClassName):new h(r.name,r.baseClassName)),i&&this.addNewError(i,t),i},e.prototype.getRequiredError=function(t,r){var n=e.metaData.getRequiredProperties(r);if(!n)return null;for(var i=0;i<n.length;i++)if(!t[n[i]])return new f(n[i],r);return null},e.prototype.addNewError=function(t,r){r&&r[e.positionPropertyName]&&(t.at=r[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,r,n){t[r]&&e.length>0&&t[r].splice(0,t[r].length);var i=t[r]?t[r]:[];this.addValuesIntoArray(e,i,n),t[r]||(t[r]=i)},e.prototype.addValuesIntoArray=function(e,t,r){for(var n=0;n<e.length;n++){var i=this.createNewObj(e[n],r);i.newObj?(e[n].name&&(i.newObj.name=e[n].name),t.push(i.newObj),this.toObjectCore(e[n],i.newObj)):i.error||t.push(e[n])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new l,e}(),m=g.metaData},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var r in t)if(!e.isValueEmpty(t[r]))return!1;return!0}return t&&("string"==typeof t||t instanceof String)&&(t=t.trim()),!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var i=0;i<r.length&&!e.isTwoValueEquals(t[n],r[i]);i++);if(i===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;if(n){for(var i=[],o=[],a=0;a<t.length;a++)i.push(t[a]),o.push(r[a]);i.sort(),o.sort(),t=i,r=o}for(a=0;a<t.length;a++)if(!e.isTwoValueEquals(t[a],r[a]))return!1;return!0},e.isTwoValueEquals=function(t,r,n){if(void 0===n&&(n=!1),t===r)return!0;if(Array.isArray(t)&&0===t.length&&void 0===r)return!0;if(Array.isArray(r)&&0===r.length&&void 0===t)return!0;if(null==t&&("undefined"===r||""===r))return!0;if(null==r&&("undefined"===t||""===t))return!0;if("string"==typeof t&&"string"==typeof r)return t==r;if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(r)&&parseInt(t)===parseInt(r)&&parseFloat(t)===parseFloat(r))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(r)||e.isValueEmpty(t)&&!e.isValueEmpty(r))return!1;if((!0===t||!1===t)&&"string"==typeof r)return t.toString()===r.toLocaleLowerCase();if((!0===r||!1===r)&&"string"==typeof t)return r.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||r instanceof Object))return t==r;if(!(t instanceof Object&&r instanceof Object))return!1;if(t.equals)return t.equals(r);if(t.toJSON&&r.toJSON)return this.isTwoValueEquals(t.toJSON(),r.toJSON());if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,n);for(var i in t)if(t.hasOwnProperty(i)){if(!r.hasOwnProperty(i))return!1;if(t[i]!==r[i]){if("object"!=typeof t[i])return!1;if(!this.isTwoValueEquals(t[i],r[i]))return!1}}for(i in r)if(r.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var r in e)t[r]=e[r];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)&&!isNaN(parseFloat(e))&&isFinite(e)},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getNumberByIndex=function(t,r){if(t<0)return"";var n=1,i="",o=".",a=!0,s="";if(r){for(var l=(s=r).length-1,u=!1,c=0;c<s.length;c++)if(e.isCharDigit(s[c])){u=!0;break}for(var p=function(){return u&&!e.isCharDigit(s[l])||e.isCharNotLetterAndDigit(s[l])};l>=0&&p();)l--;var h="";if(l<s.length-1&&(h=s.substr(l+1),s=s.substr(0,l+1)),s){for(l=0;l<s.length&&p();)l++;l>0&&(i=s.substr(0,l),s=s.substr(l))}(h||i)&&(o=h),s&&(parseInt(s)?n=parseInt(s):1==s.length&&(a=!1))}return a?i+(t+n).toString()+o:i+String.fromCharCode(s.charCodeAt(0)+t)+o},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,r){return void 0!==e[r]?e[r]:t}))})},function(e,t,r){"use strict";var n=r(0),i=r(2);r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var o=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.a.getString("choices_Item")+"1",n.a.getString("choices_Item")+"2",n.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.a.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!0,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.unregisterElement=function(e){delete this.creatorHash[e]},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}(),a=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],o.Instance.unregisterElement(e),t&&i.k.removeClass(e)},e.prototype.getAllTypes=function(){var e=o.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?o.Instance.createQuestion(e,t):r(t)},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(1),i=r(12),o=r(3),a=r(2),s=r(6);r.d(t,"a",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return p})),r.d(t,"b",(function(){return h}));var l=function(){function e(){this.propertyHash={},this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=new h,this.onItemValuePropertyChanged=new h,a.l.createProperties(this),this.onBaseCreating()}return Object.defineProperty(e,"commentPrefix",{get:function(){return s.a.commentPrefix},set:function(e){s.a.commentPrefix=e},enumerable:!0,configurable:!0}),e.prototype.isValueEmpty=function(e){return o.a.isValueEmpty(e)},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.getIsLoadingFromJson()},enumerable:!0,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new a.g).toJsonObject(this)},e.prototype.fromJSON=function(e){return(new a.g).toObject(e,this)},e.prototype.clone=function(){var e=a.k.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((n=this.arraysInfo[t])&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}if(this.localizableStrings)for(var t in this.localizableStrings){var n;(n=this.getLocalizableString(t))&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.getPropertyValueCore(this.propertyHash,e);if(this.IsPropertyEmpty(r)){if(null!=t)return t;var n=a.k.findProperty(this.getType(),e),i=n&&!n.isCustom?n.defaultValue:null;if(!this.IsPropertyEmpty(i))return i}return r},e.prototype.getPropertyValueCore=function(e,t){return this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(e,t):e[t]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,r):e[t]=r},e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)r.push(n);r.forEach((function(r){return e(t.propertyHash,r)}))},e.prototype.setPropertyValue=function(e,t){var r=this.getPropertyValue(e);if(r&&Array.isArray(r)){if(this.isTwoValueEquals(r,t))return;var n=this.arraysInfo[e];this.setArray(e,r,t,!!n&&n.isItemValues,n?n.onPush:null)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.onPropertyValueChangedCallback=function(e,t,r,n,i){},e.prototype.itemValuePropertyChanged=function(e,t,r,n){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:r,newValue:n,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,r){},e.prototype.propertyValueChanged=function(e,t,r,n,i){if(!this.isLoadingFromJson&&(this.onPropertyValueChanged(e,t,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r}),this.doPropertyValueChangedCallback&&this.doPropertyValueChangedCallback(e,t,r,n,this),this.onPropChangeFunctions))for(var o=0;o<this.onPropChangeFunctions.length;o++)this.onPropChangeFunctions[o].name==e&&this.onPropChangeFunctions[o].func(r)},e.prototype.doPropertyValueChangedCallback=function(e,t,r,n,i){i||(i=this);var o=this.getOwnerForPropertyChanged();o?o.doPropertyValueChangedCallback(e,t,r,n,i):this.onPropertyValueChangedCallback(e,t,r,i,n)},e.prototype.getOwnerForPropertyChanged=function(){for(var e=["colOwner","locOwner","survey","owner","errorOwner"],t=0;t<e.length;t++){var r=this[e[t]];if(r&&r.doPropertyValueChangedCallback)return r}return null},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var i=this.onPropChangeFunctions[n];if(i.name==e&&i.key==r)return void(i.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t)return void this.onPropChangeFunctions.splice(r,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,r){void 0===r&&(r=!1);var n=new i.a(t,r);return this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=n,n},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var r=this.getLocalizableString(e);if(!r)return"";var n=r.text;return n||t},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);if(r){var n=r.text;n!==t&&(r.text=t,this.propertyValueChanged(e,n,t))}},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(i=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(i,e);if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var n=0;n<r.length;n++){var i;(i=r[n])&&i.addUsedLocales&&i.addUsedLocales(e)}}},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var r=e.getLocales(),n=0;n<r.length;n++)t.indexOf(r[n])<0&&t.push(r[n])},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,(function(r){r.locOwner=t,r.ownerPropertyName=e}));return this.arraysInfo[e].isItemValues=!0,r},e.prototype.notifyArrayChanged=function(e){e.onArrayChanged&&e.onArrayChanged()},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.createNewArray=function(e,t,i){void 0===t&&(t=null),void 0===i&&(i=null);var o=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var a=this;return o.push=function(r){var n=Object.getPrototypeOf(o).push.call(o,r);t&&t(r,o.length-1);var i=new u(o.length-1,0,[r],[]);return a.propertyValueChanged(e,o,o,i),a.notifyArrayChanged(o),n},o.unshift=function(r){var n=Object.getPrototypeOf(o).unshift.call(o,r);t&&t(r,o.length-1);var i=new u(0,0,[r],[]);return a.propertyValueChanged(e,o,o,i),a.notifyArrayChanged(o),n},o.pop=function(){var t=Object.getPrototypeOf(o).pop.call(o);i&&i(t);var r=new u(o.length-1,1,[],[]);return a.propertyValueChanged(e,o,o,r),a.notifyArrayChanged(o),t},o.splice=function(s,l){for(var c,p=[],h=2;h<arguments.length;h++)p[h-2]=arguments[h];s||(s=0),l||(l=0);var d=(c=Object.getPrototypeOf(o).splice).call.apply(c,r.i(n.d)([o,s,l],p));if(p||(p=[]),i&&d)for(var f=0;f<d.length;f++)i(d[f]);if(t)for(f=0;f<p.length;f++)t(p[f],s+f);var g=new u(s,l,p,d);return a.propertyValueChanged(e,o,o,g),a.notifyArrayChanged(o),d},o},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,r,n,i,o){var a=[].concat(r);if(Object.getPrototypeOf(r).splice.call(r,0,r.length),n)for(var s=0;s<n.length;s++){var l=n[s];i&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(r).push.call(r,l),o&&o(r[s])}var c=new u(0,a.length,r,a);this.propertyValueChanged(t,a,r,c),this.notifyArrayChanged(r)},e.prototype.isTwoValueEquals=function(e,t,r){return void 0===r&&(r=!1),r&&(e=this.getValueInLowCase(e),t=this.getValueInLowCase(t)),o.a.isTwoValueEquals(e,t)},e.copyObject=function(e,t){for(var r in t){var n=t[r];"object"==typeof n&&(n={},this.copyObject(n,t[r])),e[r]=n}},e.prototype.copyCssClasses=function(e,t){t&&("string"==typeof t||t instanceof String?e.root=t:p.copyObject(e,t))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e}(),u=function(e,t,r,n){this.index=e,this.deleteCount=t,this.itemsToAdd=r,this.deletedItems=n},c=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new i.a(this.errorOwner,!0),this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e}(),p=function(e){function t(r){var n=e.call(this)||this;n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.isContentElement=!1,n.name=r,n.createNewArray("errors");var i=n;return n.registerFunctionOnPropertyValueChanged("isReadOnly",(function(){i.onReadOnlyChanged()})),n}return r.i(n.b)(t,e),t.ScrollElementToTop=function(e){if(!e)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var r=t.getBoundingClientRect().top;return r<0&&t.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var r=e[0];"#text"===r.nodeName&&(r.data=""),"#text"===(r=e[e.length-1]).nodeName&&(r.data="")}for(var n=0;n<e.length;n++)if("#text"!=e[n].nodeName&&"#comment"!=e[n].nodeName)return e[n];return null},t.FocusElement=function(e){if(!e)return!1;var t=document.getElementById(e);return!!t&&(t.focus(),!0)},t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue&&(this.surveyDataValue=this.surveyImplValue.geSurveyData(),this.surveyValue=this.surveyImplValue.getSurvey(),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData())},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue||this.surveyImplValue&&(this.surveyValue=this.surveyImplValue.getSurvey()),this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return!!this.survey&&this.survey.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},t.prototype.updateElementCss=function(){},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!0,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.delete=function(){},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!0,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,r){if(void 0===r&&(r=null),!t)return!1;e.removeElement(this);var n=-1;return o.a.isNumber(r)&&(n=parseInt(r)),-1==n&&r&&r.getType&&(n=t.indexOf(r)),t.addElement(this,n),!0},t.prototype.setPage=function(e,t){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.CreateDisabledDesignElements=!1,t}(l),h=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null==this.callbacks||0==this.callbacks.length},enumerable:!0,configurable:!0}),e.prototype.fire=function(e,t){if(null!=this.callbacks)for(var r=0;r<this.callbacks.length;r++)this.callbacks[r](e,t)},e.prototype.clear=function(){this.callbacks=[]},e.prototype.add=function(e){this.hasFunc(e)||(null==this.callbacks&&(this.callbacks=new Array),this.callbacks.push(e))},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1)}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={commentPrefix:"-Comment",webserviceEncodeParameters:!0,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",defaultLocaleName:"default",matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,readOnlyCommentRenderMode:"textarea",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"initial",maximumConditionRunCountOnValueChanged:10}},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(2),a=r(5),s=r(0),l=r(9),u=r(20),c=r(12),p=r(8),h=r(28),d=r(6);r.d(t,"a",(function(){return f}));var f=function(e){function t(r){var n=e.call(this,r)||this;n.name=r,n.conditionRunner=null,n.isCustomWidgetRequested=!1,n.customWidgetData={isNeedRender:!0},n.isReadyValue=!0,n.onReadyChanged=new a.b,n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.locNotificationInData=!1,n.locOwner=null,n.id=t.getQuestionId(),n.onCreating();var i=n;n.createNewArray("validators",(function(e){e.errorOwner=i}));var o=n.createLocalizableString("title",n,!0);return o.onGetTextCallback=function(e){return e||(e=i.name),i.survey?i.survey.getUpdatedQuestionTitle(i,e):e},n.locProcessedTitle=new c.a(n,!0),n.locProcessedTitle.sharedData=o,n.createLocalizableString("description",n,!0),n.createLocalizableString("commentText",n,!0).onGetTextCallback=function(e){return e||s.a.getString("otherItemText")},n.createLocalizableString("requiredErrorText",n),n.registerFunctionOnPropertyValueChanged("width",(function(){i.updateElementCss(),i.parent&&i.parent.elementWidthChanged(i)})),n.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],(function(){i.onIndentChanged()})),n.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],(function(){i.initCommentFromSurvey()})),n}return r.i(n.b)(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.a.readOnlyCommentRenderMode},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!0,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle",!0)},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(this.visible||this.areInvisibleElementsShowing)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber",!1)},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.runConditions=function(){!this.data||this.isLoadingFromJson||this.isDesignMode||(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.questionCreated(this),this.survey&&this.survey.isDesignMode&&!this.isDesignMode&&this.onVisibleChanged(),this.runConditions()},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){return this.data?this.data.getFilteredProperties():null},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e),this.updateElementCss(),this.onParentChanged()},enumerable:!0,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!0,configurable:!0}),t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&this.survey.questionVisibilityChanged(this,this.isVisible)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",s.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=h.b.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e))},t.prototype.beforeDestoyQuestionElement=function(e){},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.updateElementCssCore(t),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!0,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var t=this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot;return t||(t=""),!this.isFlowLayout&&this.hasTitleOnLeft&&e.titleLeftRoot&&(t+=" "+e.titleLeftRoot),this.errors.length>0&&e.hasError&&(t+=" "+e.hasError),e.small&&!this.width&&(t+=" "+e.small),t},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.getPropertyValue("cssHeader","")},enumerable:!0,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){var t=e.header||"";return this.hasTitleOnTop&&e.headerTop&&(t+=" "+e.headerTop),this.hasTitleOnLeft&&e.headerLeft&&(t+=" "+e.headerLeft),this.hasTitleOnBottom&&e.headerBottom&&(t+=" "+e.headerBottom),t},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.getPropertyValue("cssContent","")},enumerable:!0,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){var t=e.content||"";return this.hasTitleOnLeft&&e.contentLeft&&(t+=" "+e.contentLeft),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getPropertyValue("cssTitle","")},enumerable:!0,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){var t=e.title;return this.containsErrors?e.titleOnError&&(t+=" "+e.titleOnError):this.isAnswered&&e.titleOnAnswer&&(t+=" "+e.titleOnAnswer),t},Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getPropertyValue("cssError","")},enumerable:!0,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){var t=e.error.root||"";return"top"==this.errorLocation?e.error.locationTop&&(t+=" "+e.error.locationTop):"bottom"===this.errorLocation&&e.error.locationBottom&&(t+=" "+e.error.locationBottom),t},t.prototype.updateElementCss=function(){this.isLoadingFromJson||this.updateElementCssCore(this.cssClasses)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){this.isRequired&&(t.question.required&&(e.root=(e.root?e.root+" ":"")+r),t.question.titleRequired&&(e.title+=" "+t.question.titleRequired));var r=t[this.getCssType()];if(null!=r)if("string"==typeof r||r instanceof String)e.root=(e.root?e.root+" ":"")+r;else for(var n in r)e[n]=r[n]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth",d.a.minWidth)},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth",d.a.maxWidth)},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&this.survey.scrollElementToTop(this,this,null,this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.d.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},t.prototype.supportComment=function(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.isRequired!=e&&(this.setPropertyValue("isRequired",e),this.isLoadingFromJson||this.locTitle.onChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.areInvisibleElementsShowing||this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t),this.runRequiredIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){var r=this;this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new p.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner.onRunComplete=function(e){r.visible=e},this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){var r=this;this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new p.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.conditionEnabelRunner.onRunComplete=function(e){r.readOnly=!e},this.conditionEnabelRunner.run(e,t))},t.prototype.runRequiredIfCondition=function(e,t){var r=this;this.requiredIf&&(this.conditionRequiredRunner||(this.conditionRequiredRunner=new p.a(this.requiredIf)),this.conditionRequiredRunner.expression=this.requiredIf,this.conditionRequiredRunner.onRunComplete=function(e){r.isRequired=e},this.conditionRequiredRunner.run(e,t))},Object.defineProperty(t.prototype,"no",{get:function(){return i.a.getNumberByIndex(this.visibleIndex,this.getStartIndex())},enumerable:!0,configurable:!0}),t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.updateDisplayValue(),this.updateElementCss()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateElementCss()},t.prototype.initDataFromSurvey=function(){this.data&&(this.updateValueFromSurvey(this.data.getValue(this.getValueName())),this.initCommentFromSurvey())},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.createValueCopy=function(){return i.a.getUnbindValue(this.value)},t.prototype.canClearValueAsInvisible=function(){return!(this.isVisible&&this.isParentVisible||this.page&&this.page.isStarted||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!0,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.updateDisplayValue(),this.getPropertyValue("displayValue","")},enumerable:!0,configurable:!0}),t.prototype.updateDisplayValue=function(){this.isLoadingFromJson||this.setPropertyValue("displayValue",this.getDisplayValue(!0))},t.prototype.getDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return t=null==t?this.createValueCopy():t,i.a.isValueEmpty(t)?"":this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(r.questionType=this.getType()),(e.calculations||[]).forEach((function(e){r[e.propertyName]=t[e.propertyName]})),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:d.a.commentPrefix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),r}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!0,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!i.a.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!0,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.isTwoValueEquals(this.value,this.correctAnswer,!0)?1:0},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.setDefaultValue())},t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){this.value=i.a.getUnbindValue(this.defaultValue)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){e&&(e=e.toString().trim()),this.comment!=e&&this.setQuestionComment(e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!0,configurable:!0}),t.prototype.updateIsAnswered=function(){this.setPropertyValue("isAnswered",this.getIsAnswered())},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){var e=[];return this.addSupportedValidators(e),e},t.prototype.addSupportedValidators=function(e){e.push("expression")},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=(new o.g).toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var r=this.errors.length>0,n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n),this.updateContainsErrors(),r!=n.length>0&&this.updateElementCss(),n.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),t.prototype.addError=function(e){if(e){var t=null;t="string"==typeof e||e instanceof String?new l.a(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,r=t.indexOf(e);-1!==r&&t.splice(r,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&!this.isReadOnly&&this.collectErrors(t,e),t},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var r=this.runValidators();if(r.length>0){e.length=0;for(var n=0;n<r.length;n++)e.push(r[n])}if(this.survey&&0==e.length){var i=this.fireSurveyValidation();i&&e.push(i)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){!t&&this.hasRequiredError()&&e.push(new l.b(this.requiredErrorText,this))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!0,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new u.i,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateElementCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!0,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.locNotificationInData?this.locNotificationInData:!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!0,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged)},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text")},t.prototype.getValidName=function(e){return e?e.trim().replace(/[\{\}]+/g,""):e},t.prototype.updateValueFromSurvey=function(e){e=i.a.getUnbindValue(e),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),this.questionValue=e,this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){this.isLoadingFromJson||this.updateDisplayValue()},t.prototype.setVisibleIndex=function(e){return this.isVisible&&this.hasTitle&&!this.hideNumber||(e=-1),this.setPropertyValue("visibleIndex",e),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getSurveyMarkdownHtml(this,e):this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,this.useDisplayValuesInTitle):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.dispose=function(){},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,t}(a.d);o.k.addClass("question",["!name",{name:"visible:switch",default:!0},{name:"useDisplayValuesInTitle:boolean",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",default:d.a.minWidth},{name:"maxWidth",default:d.a.maxWidth},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var r=e?e.survey:null;return!r||"off"!==r.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},"valueName","enableIf:condition","defaultValue:value","correctAnswer:value","isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}]),o.k.addAlterNativeClassName("question","questionbase")},function(e,t,r){"use strict";var n=r(1),i=r(11),o=r(22);r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l}));var a=function(){function e(e){this.processValue=new i.a,this.parser=new o.a,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},enumerable:!0,configurable:!0}),e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!0,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.runCore=function(e,t){var r=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].onAsyncReady=function(){r.doAsyncFunctionReady()};for(n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.doOnComplete(e),e},e.prototype.doOnComplete=function(e){},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.i(n.b)(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(a),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.i(n.b)(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(a)},function(e,t,r){"use strict";var n=r(1),i=r(0),o=r(5);r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return u})),r.d(t,"l",(function(){return c})),r.d(t,"k",(function(){return p})),r.d(t,"h",(function(){return h})),r.d(t,"g",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"j",(function(){return g})),r.d(t,"f",(function(){return m})),r.d(t,"a",(function(){return y}));var a=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return i.a.getString("requiredError")},t}(o.c),s=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return i.a.getString("requiredErrorInPanel")},t}(o.c),l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return i.a.getString("numericError")},t}(o.c),u=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.maxSize=t,n.locText.text=n.getText(),n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return i.a.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(o.c),c=function(e){function t(t,r,n){void 0===n&&(n=null);var i=e.call(this,null,n)||this;return i.status=t,i.response=r,i}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return i.a.getString("urlRequestError").format(this.status,this.response)},t}(o.c),p=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return i.a.getString("urlGetChoicesError")},t}(o.c),h=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return i.a.getString("otherRequiredError")},t}(o.c),d=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return i.a.getString("uploadingFile")},t}(o.c),f=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return i.a.getString("requiredInAllRowsError")},t}(o.c),g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.minRowCount=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return i.a.getString("minRowCountError").format(this.minRowCount)},t}(o.c),m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return i.a.getString("keyDuplicationError")},t}(o.c),y=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return r.i(n.b)(t,e),t.prototype.getErrorType=function(){return"custom"},t}(o.c)},function(e,t,r){"use strict";var n=r(1),i=r(12),o=r(2),a=r(3),s=r(8),l=r(5),u=r(6);r.d(t,"a",(function(){return c}));var c=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="itemvalue");var a=e.call(this)||this;return a.typeName=n,a.ownerPropertyName="",a.isVisibleValue=!0,a.locTextValue=new i.a(null,!0),a.locTextValue.onGetTextCallback=function(e){return e||(a.isValueItemEmpty?null:a.value.toString())},r&&(a.locText.text=r),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&o.l.createProperties(a),a.onCreating(),a}return r.i(n.b)(t,e),Object.defineProperty(t,"Separator",{get:function(){return u.a.itemValueSeparator},set:function(e){u.a.itemValueSeparator=e},enumerable:!0,configurable:!0}),t.createArray=function(e){var r=[];return t.setupArray(r,e),r},t.setupArray=function(e,t){e.push=function(e){var r=Array.prototype.push.call(this,e);return e.locOwner=t,r},e.unshift=function(e){var r=Array.prototype.unshift.call(this,e);return e.locOwner=t,r},e.splice=function(e,i){for(var o,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var l=(o=Array.prototype.splice).call.apply(o,r.i(n.d)([this,e,i],a));a||(a=[]);for(var u=0;u<a.length;u++)a[u].locOwner=t;return l}},t.setData=function(e,r){e.length=0;for(var n=0;n<r.length;n++){var i,a=r[n];(i="function"==typeof a.getType?o.k.createClass(a.getType()):new t(null)).setData(a),a.originalItem&&(i.originalItem=a.originalItem),e.push(i)}},t.getData=function(e){for(var t=new Array,r=0;r<e.length;r++)t.push(e[r].getData());return t},t.getItemByValue=function(e,t){for(var r=0;r<e.length;r++)if(a.a.isTwoValueEquals(e[r].value,t))return e[r];return null},t.getTextOrHtmlByValue=function(e,r){var n=t.getItemByValue(e,r);return null!==n?n.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.strChanged()},t.runConditionsForItems=function(e,r,n,i,o,a){return void 0===a&&(a=!0),t.runConditionsForItemsCore(e,r,n,i,o,!0,a)},t.runEnabledConditionsForItems=function(e,r,n,i){return t.runConditionsForItemsCore(e,null,r,n,i,!1)},t.runConditionsForItemsCore=function(e,t,r,n,i,o,a){void 0===a&&(a=!0),n||(n={});for(var s=n.item,l=n.choice,u=!1,c=0;c<e.length;c++){var p=e[c];n.item=p.value,n.choice=p.value;var h=!(!a||!p.getConditionRunner)&&p.getConditionRunner(o);h||(h=r);var d=!0;h&&(d=h.run(n,i)),t&&d&&t.push(p),d!=(o?p.isVisible:p.isEnabled)&&(u=!0,o?p.setIsVisible&&p.setIsVisible(d):p.setIsEnabled&&p.setIsEnabled(d))}return s?n.item=s:delete n.item,l?n.choice=l:delete n.choice,u},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getLocale=function(){return this.locText.locale},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue},set:function(e){var t=this.itemValue;if(this.itemValue=e,this.propertyValueChanged("value",t,this.itemValue),this.itemValue){var r=this.itemValue.toString(),n=r.indexOf(u.a.itemValueSeparator);n>-1?(this.itemValue=r.slice(0,n),this.text=r.slice(n+1)):this.hasText||this.locText.onChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){var t=this.locText.text;this.locText.text=e,this.propertyValueChanged("text",t,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!0,configurable:!0}),t.prototype.getData=function(){var e=this.toJSON();return e.value&&e.value.pos&&delete e.value.pos,1!=Object.keys(e).length||a.a.isValueEmpty(e.value)?e:this.value},t.prototype.toJSON=function(){var e={},t=o.k.getProperties(this.getType());t&&0!=t.length||(t=o.k.getProperties("itemvalue"));for(var r=new o.g,n=0;n<t.length;n++)r.valueToJson(this,e,t[n]);return e},t.prototype.setData=function(e){if(!a.a.isValueEmpty(e))if(void 0!==e.value){var t=e;"function"==typeof e.toJSON&&(t=e.toJSON()),(new o.g).toObject(t,this)}else this.value=e},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this.isVisibleValue=e},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!0,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.onPropertyValueChanged=function(e,t,r){this.locOwner&&this.locOwner.itemValuePropertyChanged&&this.locOwner.itemValuePropertyChanged(this,e,t,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new s.a(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new s.a(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"isValueItemEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),t}(l.a);l.a.createItemValue=function(e,t){var r=null;return(r=t?o.g.metaData.createClass(t,{}):"function"==typeof e.getType?new c(null,void 0,e.getType()):new c(null)).setData(e),r},l.a.itemValueLocStrChanged=function(e){c.locStrsChanged(e)},o.h.getItemValuesDefaultValue=function(e){var t=new Array;return c.setData(t,e||[]),t},o.k.addClass("itemvalue",["value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form"}],(function(e){return new c(e)}))},function(e,t,r){"use strict";var n=r(3);r.d(t,"a",(function(){return i}));var i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var r="";if(t&&(r=this.getFirstPropertyName(e,t)))return r;for(var n=0;n<e.length;n++){var i=e[n];if("."==i||"["==i)break;r+=i}return r},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,r){if(t){var n=this.getNonNestedObject(e,t);n&&(e=n.value,t=n.text,e&&t&&(e[t]=r))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),void(e.hasValue=null!==e.value&&!n.a.isValueEmpty(e.value));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){for(var r=0;t&&r<e.length;){var i=e[r];if(n.a.isNumber(i)&&(!Array.isArray(t)||i>=t.length))return null;t=t[i],r++}return t},e.prototype.getValueCore=function(e,t){var r={hasValue:!1,value:null,path:null},i=t;if(!i&&0!==i&&!1!==i)return r;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(r.value=0,r.hasValue=!0);var o=this.getNonNestedObject(i,e);return o?(r.path=o.path,r.value=o.text?this.getObjectValue(o.value,o.text):o.value,r.hasValue=!n.a.isValueEmpty(r.value),r):r},e.prototype.getNonNestedObject=function(e,t){for(var r=this.getFirstPropertyName(t,e),i=r?[r]:null;t!=r&&e;){if("["==t[0]){var o=this.getObjInArray(e,t);if(!o)return null;e=o.value,t=o.text,i.push(o.index)}else{if(!r&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,r),n.a.isValueEmpty(e))return null;t=t.substr(r.length)}t&&"."==t[0]&&(t=t.substr(1)),(r=this.getFirstPropertyName(t,e))&&i.push(r)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var r=1,n="";r<t.length&&"]"!=t[r];)n+=t[r],r++;return t=r<t.length?t.substr(r+1):"",(r=this.getIntValue(n))<0||r>=e.length?null:{value:e[r],text:t,index:r}},e.prototype.getFirstPropertyName=function(e,t){if(!e)return e;if(t.hasOwnProperty(e))return e;var r=(e=e.toLowerCase())[0],n=r.toUpperCase();for(var i in t){var o=i[0];if(o===n||o===r){var a=i.toLowerCase();if(a==e)return i;if(e.length<=a.length)continue;var s=e[a.length];if("."!=s&&"["!=s)continue;if(a==e.substr(0,a.length))return i}}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},function(e,t,r){"use strict";var n=r(3),i=r(0),o=r(6);r.d(t,"a",(function(){return a}));var a=function(){function e(e,t){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.values={},this.htmlValues={},this.renderedText=null,this.calculatedTextValue=null,this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return o.a.defaultLocaleName},set:function(e){o.a.defaultLocaleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!0,configurable:!0}),e.prototype.strChanged=function(){null!==this.renderedText&&(this.calculatedTextValue=this.calText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=null,this.calculatedTextValue=null,this.onChanged()))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=null!==this.calculatedTextValue?this.calculatedTextValue:this.calText(),this.calculatedTextValue=null,this.renderedText},enumerable:!0,configurable:!0}),e.prototype.calText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=o.a.defaultLocaleName);var t=this.getValue(e);return t||e!=o.a.defaultLocaleName||(t=this.getValue(i.a.defaultLocale)),t||e===o.a.defaultLocaleName||(t=this.getValue(o.a.defaultLocaleName)),t||(t=""),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!0,configurable:!0}),e.prototype.getLocaleText=function(e){e||(e=o.a.defaultLocaleName);var t=this.getValue(e);return t||""},e.prototype.setLocaleText=function(e,t){t!=this.getLocaleText(e)&&(t&&e&&e!=o.a.defaultLocaleName&&!this.getValue(e)&&t==this.getLocaleText(o.a.defaultLocaleName)||(e||(e=o.a.defaultLocaleName),delete this.htmlValues[e],t?"string"==typeof t&&(e!=o.a.defaultLocaleName&&t==this.getLocaleText(o.a.defaultLocaleName)?this.setLocaleText(e,null):(this.setValue(e,t),e==o.a.defaultLocaleName&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.strChanged()))},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=o.a.defaultLocaleName)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=o.a.defaultLocaleName||o.a.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&n.a.isTwoValueEquals(this.values,e.values)},e.prototype.onChanged=function(){this.onStrChanged&&this.onStrChanged()},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.calculatedText;if(!e)return!1;var t=this.locale;return t||(t=o.a.defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=o.a.defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),r=0;r<t.length;r++)t[r]!=o.a.defaultLocaleName&&this.getValue(t[r])==e&&this.deleteValue(t[r])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[e]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[e]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[e]},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},e.SerializeAsObject=!1,e}()},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(7),a=r(10),s=r(3),l=r(0),u=r(9),c=r(21),p=r(8),h=r(6);r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return f}));var d=function(e){function t(t){var r=e.call(this,t)||this;r.filteredChoicesValue=null,r.otherItemValue=new a.a("other"),r.choicesFromUrl=null,r.cachedValueForUrlRequests=null,r.isChoicesLoaded=!1,r.enableOnLoadingChoices=!1,r.isSettingDefaultValue=!1,r.isSettingComment=!1,r.isFirstLoadChoicesFromUrl=!0;var n=r;r.createItemValues("choices"),r.registerFunctionOnPropertyValueChanged("choices",(function(){n.filterItems()||n.onVisibleChoicesChanged()})),r.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",(function(){n.updateVisibilityBasedOnChoices()})),r.createNewArray("visibleChoices"),r.choicesByUrl=r.createRestfull(),r.choicesByUrl.owner=r;var i=r.createLocalizableString("otherText",r,!0);return r.createLocalizableString("otherErrorText",r,!0),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(i),i.onGetTextCallback=function(e){return e||l.a.getString("otherItemText")},r.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},r.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},r.createLocalizableString("otherPlaceHolder",r),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.comment},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsEnableCondition(t,r),this.runItemsCondition(t,r)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=null),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,t){this.setConditionalEnableChoicesRunner(),a.a.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t)&&this.clearDisabledValues()},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.a(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.a(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],a.a.runConditionsForItems(this.activeChoices,this.filteredChoices,this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t)},t.prototype.getHasOther=function(e){return e===this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getQuestionComment=function(){return this.commentValue?this.commentValue:this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.commentValue},t.prototype.setQuestionComment=function(t){this.hasComment||this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),this.value=this.rendredValueToData(e)},enumerable:!0,configurable:!0}),t.prototype.setQuestionValue=function(t){if(!this.isLoadingFromJson&&!s.a.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment)){var r=this.isOtherSelected;if(r&&this.prevCommentValue){var n=this.prevCommentValue;this.prevCommentValue="",this.comment=n}!r&&this.comment&&(this.getStoreOthersAsComment()&&(this.prevCommentValue=this.comment),this.comment="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var r=a.a.getItemByValue(this.activeChoices,t);return r?r.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.getQuestionComment()&&(e=this.getQuestionComment()),e},t.prototype.hasUnknownValue=function(e,t){return void 0===t&&(t=!1),!(s.a.isValueEmpty(e)||t&&e==this.otherItem.value||null!=a.a.getItemByValue(this.filteredChoices,e))},t.prototype.isValueDisabled=function(e){var t=a.a.getItemByValue(this.filteredChoices,e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment","default")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",l.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.getLocalizableStringText("otherPlaceHolder")},set:function(e){this.setLocalizableStringText("otherPlaceHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherPlaceHolder",{get:function(){return this.getLocalizableString("otherPlaceHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText",l.a.getString("otherRequiredError"))},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices",[])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++)t[r].isEnabled&&e.push(t[r]);return e},enumerable:!0,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var r=0;r<t.length;r++)e.push(t[r]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.filteredChoices;var e=this.sortVisibleChoices(this.filteredChoices.slice());return this.addToVisibleChoices(e),e},t.prototype.canUseFilteredChoices=function(){return!this.hasOther&&"none"==this.choicesOrder},t.prototype.addToVisibleChoices=function(e){this.hasOther&&e.push(this.otherItem)},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var n=e.prototype.getPlainData.call(this,t);if(n){var i=Array.isArray(this.value)?this.value:[this.value];n.isNode=!0,n.data=(n.data||[]).concat(i.map((function(e,n){var i=a.a.getItemByValue(r.visibleChoices,e),o={name:n,title:"Choice",value:e,displayValue:r.getChoicesDisplayValue(r.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return i&&(t.calculations||[]).forEach((function(e){o[e.propertyName]=i[e.propertyName]})),r.isOtherSelected&&r.otherItemValue===i&&(o.isOther=!0,o.displayValue=r.comment),o})))}return n},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var r=a.a.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},Object.defineProperty(t.prototype,"filteredChoices",{get:function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!0,configurable:!0}),t.prototype.getChoices=function(){return this.choices},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new u.h(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl()},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.choicesByUrl.run(e))}},t.prototype.onBeforeSendRequest=function(){!0!==h.a.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var i=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&e.length>0&&(r=new Array,a.a.setData(r,e)),this.choicesFromUrl=r,this.filterItems(),this.onVisibleChoicesChanged(),r){var o=this.updateCachedValueForUrlRequests(i,r);if(o&&!this.isReadOnly){var l=!s.a.isTwoValueEquals(this.value,o.value);try{this.allowNotifyValueChanged=!1,this.locNotificationInData=!0,this.value=void 0,this.locNotificationInData=!1,this.allowNotifyValueChanged=l,this.value=o.value}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var i=this.updateCachedValueForUrlRequests(e[n],t);if(i&&!this.isValueEmpty(i.value)){var o=i.value;(s=a.a.getItemByValue(t,i.value))&&(o=s.value),r.push(o)}}return{value:r}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.a.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback())},t.prototype.updateVisibilityBasedOnChoices=function(){this.hideIfChoicesEmpty&&(this.visible=!this.filteredChoices||this.filteredChoices.length>0)},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,r){return e.calculatedText<r.calculatedText?-1*t:e.calculatedText>r.calculatedText?1*t:0}))},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.keepIncorrectValues||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){var e=this.cssClasses.column;return this.hasColumns&&(e+=" sv-q-column-"+this.colCount),e},t.prototype.getLabelClass=function(e){var t=this.cssClasses.label;return this.isItemSelected(e)&&(t+=" "+this.cssClasses.labelChecked),t},t.prototype.getControlLabelClass=function(e){var t=this.cssClasses.controlLabel;return this.isItemSelected(e)&&(t+=" "+this.cssClasses.controlLabelChecked),t},Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.colCount;if(this.hasColumns&&this.visibleChoices.length>0)for(var r=0;r<t;r++){for(var n=[],i=r;i<this.visibleChoices.length;i+=t)n.push(this.visibleChoices[i]);e.push(n)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return this.colCount>1},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e})},t}(o.a),f=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t}(d);i.k.addClass("selectbase",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"choices:itemvalue[]",baseValue:function(){return l.a.getString("choices_Item")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition","choicesEnableIf:condition","hasOther:boolean",{name:"otherPlaceHolder",serializationProperty:"locOtherPlaceHolder",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),i.k.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(3),a=r(5),s=r(7),l=r(8),u=r(4),c=r(9),p=r(6);r.d(t,"d",(function(){return h})),r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return g}));var h=function(e,t,r){void 0===r&&(r=-1),this.source=e,this.target=t,this.nestedPanelDepth=r},d=function(e){function t(t){var r=e.call(this)||this;return r.panel=t,r.visible=t.areInvisibleElementsShowing,r.createNewArray("elements"),r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.elements.filter((function(e){return e.isVisible}))},enumerable:!0,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.setWidth=function(){var e=this.visibleElements.length;if(0!=e){for(var t=0,r=[],n=0;n<this.elements.length;n++){var i=this.elements[n];if(this.setElementMaxMinWidth(i),i.isVisible){var o=this.getElementWidth(i);o&&(i.renderWidth=this.getRenderedWidthFromWidth(o),r.push(i)),i.rightIndent=t<e-1?1:0,t++}else i.renderWidth=""}for(n=0;n<this.elements.length;n++)!(i=this.elements[n]).isVisible||r.indexOf(i)>-1||(0==r.length?i.renderWidth=(100/e).toFixed(6)+"%":i.renderWidth=this.getRenderedCalcWidth(i,r,e))}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,r){for(var n="100%",i=0;i<t.length;i++)n+=" - "+t[i].renderWidth;var o=r-t.length;return o>1&&(n="("+n+")/"+o.toString()),"calc("+n+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return o.a.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){return this.visibleElements.length>0},t}(a.a),f=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;return n.name=r,n.isQuestionsReady=!1,n.questionsValue=new Array,n.createNewArray("rows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.registerFunctionOnPropertyValueChanged("questionTitleLocation",n.onVisibleChanged.bind(n)),n.id=t.getPanelId(),n.createLocalizableString("title",n,!0),n.createLocalizableString("description",n,!0),n.createLocalizableString("requiredErrorText",n),n}return r.i(n.b)(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_showTitle",{get:function(){return this.survey.showPageTitles&&this.title.length>0||this.isDesignMode&&p.a.allowShowEmptyTitleInDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey.showPageTitles&&this.description.length>0||this.isDesignMode&&p.a.allowShowEmptyTitleInDesignMode&&p.a.allowShowEmptyDescriptionInDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getSurveyMarkdownHtml(this,e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e={panel:{},error:{},row:""};return this.copyCssClasses(e.panel,this.css.panel),this.copyCssClasses(e.error,this.css.error),this.css.row&&(e.row=this.css.row),this.survey&&this.survey.updatePanelCssClasses(this,e),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!0,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.name==e)return n;var i=n.getPanel();if(i){var o=i.getElementByName(e);if(o)return o}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].getValueName()==e)return t[r];return null},t.prototype.getValue=function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];if(!n.isEmpty()){var i=n.getValueName();if(e[i]=n.value,this.data){var o=this.data.getComment(i);o&&(e[i+p.a.commentPrefix]=o)}}}return e},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],i=this.data.getComment(n.getValueName());i&&(e[n.getValueName()]=i)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;var n=r.getPanel();if(n&&n.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),r=r||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1},this.hasErrorsCore(r),r.firstErrorQuestion&&r.firstErrorQuestion.focus(!0),r.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var r=this.survey.validatePanel(this);r&&(t.push(r),e.result=!0)}e.fireCallback&&(this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),0!=r.length){for(var n=0;n<r.length;n++)if(!r[n].isEmpty())return;e.result=!0,t.push(new c.c(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,r=null,n=0;n<t.length;n++)if((r=t[n]).isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var i=r;if(i.isReadOnly)continue;i.hasErrors(e.fireCallback,e)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.elements,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e){void 0===e&&(e=!1);for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.isVisible)if(n.isPanel){var i=n.getFirstQuestionToFocus(e);if(i)return i}else{var o=n;if(o.hasInput&&(!e||o.currentErrorCount>0))return o}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,i){for(var o=0;o<t.length;o++){var a=t[o];r&&!a.visible||((i&&a.isPanel||!i&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,r,n,i):n&&this.addElementsToListCore(e,a.getElementsInDesign(!1),r,n,i))}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRow=function(){return new d(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onFirstRendering();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel){var r=e;this.survey&&this.survey.panelAdded(r,t,this,this.root)}else if(this.survey){var n=e;this.survey.questionAdded(n,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e);var i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],(function(){i.onElementVisibilityChanged(e)}),this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",(function(){i.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this)},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,r=0;r<t.length;r++){var n=t[r];if(n.elements.indexOf(e)>-1){n.updateVisible();break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,i=n?this.createRow():e[e.length-1];n&&e.push(i),i.addElement(r)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var r=new h(null,e);r.target=e,r.isEdge=this.elements.length>1,this.elements.length<2?r.destination=this:(r.isBottom=t>0,r.destination=0==t?this.elements[1]:this.elements[t-1]),this.dragDropAddTargetToRow(r,null)}},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var r=t.elements.indexOf(e);r<0||(t.elements.splice(r,1),t.elements.length>0?t.updateVisible():t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0){for(var t=0;t<this.elements.length;t++)this.elements[t].setVisibleIndex(-1);return 0}var r=e;e+=this.beforeSetVisibleIndex(e);var n=this.getPanelStartIndex(e),i=n;for(t=0;t<this.elements.length;t++)i+=this.elements[t].setVisibleIndex(i);return this.isContinueNumbering()&&(e+=i-n),e-r},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(){for(var t=0;t<this.elements.length;t++)this.elements[t].updateElementCss();e.prototype.updateElementCss.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=u.a.Instance.createQuestion(e,t);return this.addQuestion(n,r)?n:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){return new g(e)},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.areInvisibleElementsShowing||this.runVisibleCondition(e,t),this.runEnableCondition(e,t)}},t.prototype.runVisibleCondition=function(e,t){var r=this;if(this.visibleIf){var n=new l.a(this.visibleIf);n.onRunComplete=function(e){r.visible=e},n.run(e,t)}},t.prototype.runEnableCondition=function(e,t){var r=this;if(this.enableIf){var n=new l.a(this.enableIf);n.onRunComplete=function(e){r.readOnly=!e},n.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,r=this.rows,n=0;n<r.length;n++)if(r[n].elements.indexOf(t)>-1)return r[n];for(n=0;n<this.elements.length;n++){var i=this.elements[n].getPanel();if(i){var o=i.dragDropFindRow(t);if(o)return o}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);return!n||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t))},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var r=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=r.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},t.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom&&t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r)):this.dragDropAddTargetToNewRow(e,t,r);var i=-1;r==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&n++;var o=this.findRowByElement(e.source);return(o!=t||o.elements.indexOf(e.source)!=n)&&n!=i&&(i>-1&&(t.elements.splice(i,1),i<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),i<0)},t.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=t.panel.createRow();n.addElement(e.target);var i=t.index;if(e.isBottom&&i++,r&&r.panel==n.panel&&r.index==i)return!1;var o=this.findRowByElement(e.source);return!(o&&o.panel==n.panel&&1==o.elements.length&&o.index==i||(t.panel.rows.splice(i,0,n),0))},t.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,r){var n=e.createRow();n.addElement(t),0==e.elements.length||r?e.rows.push(n):e.rows.splice(0,0,n)},t.prototype.dragDropMoveElement=function(e,t,r){r>e.parent.elements.indexOf(e)&&r--,this.removeElement(e),this.addElement(t,r)},t.prototype.dispose=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,t}(a.d),g=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t;var n=r;return r.registerFunctionOnPropertyValueChanged("state",(function(){n.stateChangedCallback&&n.stateChangedCallback()})),r.registerFunctionOnPropertyValueChanged("width",(function(){n.parent&&n.parent.elementWidthChanged(n)})),r.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"panel"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){if(!this.isDesignMode)return"expanded"==this.state},enumerable:!0,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber",!1)},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","default")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!0,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",o.a.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent",0)},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){if(e<1)return"";if(!this.data)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof s.a||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!=this.survey.state)&&1==this.depth},enumerable:!0,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),this.notifySurveyOnVisibilityChanged()},t}(f);i.k.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:boolean",default:!0},"visibleIf:condition","enableIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new f})),i.k.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex"],(function(){return new g}),"panelbase")},function(e,t,r){"use strict";var n=r(3);r.d(t,"a",(function(){return a}));var i=function(){},o=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){}return e.prototype.process=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var i=this.getItems(e),a=i.length-1;a>=0;a--){var s=i[a],l=this.getName(e.substring(s.start+1,s.end));if(l){var u=new o(l,t);if(this.onProcess(u),u.isExists){n.a.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=n.a.isValueEmpty(u.value)?"":u.value;r&&(c=encodeURIComponent(c)),e=e.substr(0,s.start)+c+e.substr(s.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!0,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,n=-1,o="",a=0;a<r;a++)if("{"==(o=e[a])&&(n=a),"}"==o){if(n>-1){var s=new i;s.start=n,s.end=a,t.push(s)}n=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}()},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(17),a=r(11);r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"f",(function(){return c})),r.d(t,"b",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"e",(function(){return d})),r.d(t,"g",(function(){return f}));var s=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e}(),l=function(e){function t(t,r,n,i){void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=!1);var o=e.call(this)||this;return o.operatorName=t,o.left=r,o.right=n,o.isArithmeticValue=i,o.consumer=i?f.binaryFunctions.arithmeticOp(t):f.binaryFunctions[t],null==o.consumer&&f.throwInvalidOperatorError(t),o}return r.i(n.b)(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!0,configurable:!0}),t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+f.safeToString(this.left,e)+" "+f.operatorToString(this.operatorName)+" "+f.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(s),u=function(e){function t(t,r){var n=e.call(this)||this;return n.expressionValue=t,n.operatorName=r,n.consumer=f.unaryFunctions[r],null==n.consumer&&f.throwInvalidOperatorError(r),n}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return f.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(s),c=function(e){function t(t){var r=e.call(this)||this;return r.values=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t}(s),p=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!0,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():f.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):parseFloat(e):e:e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(s),h=function(e){function t(t){var r=e.call(this,t)||this;return r.variableName=t,r.valueInfo={},r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"{"+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!0,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t}(p),d=function(e){function t(t,r){var n=e.call(this)||this;return n.origionalValue=t,n.parameters=r,n.isReadyValue=!1,Array.isArray(r)&&0===r.length&&(n.parameters=new c([])),n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var r=new a.a;r.values=i.a.createCopy(e.values),r.properties=i.a.createCopy(e.properties),r.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(r)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return o.a.Instance.run(this.origionalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.origionalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return o.a.Instance.isAsyncFunction(this.origionalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t}(s),f=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&i.a.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.operatorToString=function(t){var r=e.signs[t];return null==r?t:r},e.unaryFunctions={empty:function(e){return i.a.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(r,n){i.a.isValueEmpty(r)&&!e.isSpaceString(r)&&(r="string"==typeof n?"":0),i.a.isValueEmpty(n)&&!e.isSpaceString(n)&&(n="string"==typeof r?"":0);var o=e.binaryFunctions[t];return null==o?null:o.call(this,r,n)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return e+t},minus:function(e,t){return e-t},mul:function(e,t){return e*t},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.greater(t,r)},lessorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.less(t,r)},equal:function(e,t){return i.a.isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!i.a.isTwoValueEquals(e,t,!0)},contains:function(t,r){return e.binaryFunctions.containsCore(t,r,!0)},notcontains:function(t,r){return!t&&!i.a.isValueEmpty(r)||e.binaryFunctions.containsCore(t,r,!1)},anyof:function(t,r){if(!t&&i.a.isValueEmpty(r))return!0;if(!t||!Array.isArray(t)&&0===t.length)return!1;if(i.a.isValueEmpty(r))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(r,t);if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(e.binaryFunctions.contains(t,r[n]))return!0;return!1},allof:function(t,r){if(!t&&!i.a.isValueEmpty(r))return!1;if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(!e.binaryFunctions.contains(t,r[n]))return!1;return!0},containsCore:function(e,t,r){if(!e)return!1;if(e.length||(e=e.toString()),"string"==typeof e||e instanceof String){if(!t)return!1;t=t.toString();var n=e.indexOf(t)>-1;return r?n:!n}for(var o=Array.isArray(t)?t:[t],a=0;a<o.length;a++){var s=0;for(t=o[a];s<e.length&&!i.a.isTwoValueEquals(e[s],t);s++);if(s==e.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,r){void 0===r&&(r=!1),this.functionHash[e]=t,r&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,r){void 0===r&&(r=null);var n=this.functionHash[e];if(!n)return null;var i={func:n};if(r)for(var o in r)i[o]=r[o];return i.func(t)},e.Instance=new e,e}(),i=n.Instance.register;function o(e,t){if(null!=e)if(Array.isArray(e))for(var r=0;r<e.length;r++)o(e[r],t);else t.push(e)}function a(e,t){var r=[];o(e,r);for(var n=void 0,i=0;i<r.length;i++)void 0===n&&(n=r[i]),t?n>r[i]&&(n=r[i]):n<r[i]&&(n=r[i]);return n}function s(e,t){var r=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var r=e[1];return"string"==typeof r||r instanceof String?{data:t,name:r}:null}(e);if(r){var n=void 0;if(Array.isArray(r.data))for(var i=0;i<r.data.length;i++)(a=r.data[i])&&a[r.name]&&(n=t(n,a[r.name]));else for(var o in r.data){var a;(a=r.data[o])&&a[r.name]&&(n=t(n,a[r.name]))}return n}}function l(e){var t=s(e,(function(e,t){return null==e&&(e=0),+e+ +t}));return void 0!==t?t:0}function u(e){var t=s(e,(function(e,t){return null==e&&(e=0),e+1}));return void 0!==t?t:0}n.Instance.register("sum",(function(e){var t=[];o(e,t);for(var r=0,n=0;n<t.length;n++)r+=t[n];return r})),n.Instance.register("min",(function(e){return a(e,!0)})),n.Instance.register("max",(function(e){return a(e,!1)})),n.Instance.register("count",(function(e){var t=[];return o(e,t),t.length})),n.Instance.register("avg",(function(e){var t=[];o(e,t);for(var r=0,n=0;n<t.length;n++)r+=t[n];return t.length>0?r/t.length:0})),n.Instance.register("sumInArray",l),n.Instance.register("minInArray",(function(e){return s(e,(function(e,t){return null==e?t:e<t?e:t}))})),n.Instance.register("maxInArray",(function(e){return s(e,(function(e,t){return null==e?t:e>t?e:t}))})),n.Instance.register("countInArray",u),n.Instance.register("avgInArray",(function(e){var t=u(e);return 0==t?0:l(e)/t})),n.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),n.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),n.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),r=Date.now()-t.getTime(),n=new Date(r);return Math.abs(n.getUTCFullYear()-1970)})),n.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r)return!1;for(var n=r.questions,i=0;i<n.length;i++)if(n[i].hasErrors(!1))return!1;return!0})),n.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),n.Instance.register("currentDate",(function(){return new Date}))},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(26),a=r(3),s=r(5),l=r(15),u=r(11),c=r(0),p=r(4),h=r(12),d=r(30),f=r(17),g=r(6);function m(e,t,r,n){e.hasOther&&(e.storeOthersAsComment=!1),e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n)}r.d(t,"c",(function(){return y})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return b})),r.d(t,"d",(function(){return P})),r.d(t,"e",(function(){return S}));var y={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,r,n){m(e,0,r,n),e.locOptionsCaption.isEmpty&&!r.locOptionsCaption.isEmpty&&(e.optionsCaption=r.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf","hasSelectAll","hasNone"],onCellQuestionUpdate:function(e,t,r,n){m(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,r,n){m(e,0,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},text:{properties:["placeHolder","inputType","maxLength","min","max","step"],onCellQuestionUpdate:function(e,t,r,n){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,r,n){}},boolean:{properties:["defaultValue"],onCellQuestionUpdate:function(e,t,r,n){e.showTitle=!0}},expression:{properties:["expression","displayStyle","currency"],onCellQuestionUpdate:function(e,t,r,n){}},rating:{properties:["rateValues"]}},v=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;n.colOwnerValue=null,n.indexValue=-1,n._isVisible=!0,n._hasVisibleCell=!0;var i=n;return n.createLocalizableString("totalFormat",n),n.registerFunctionOnPropertyValueChanged("showInMultipleColumns",(function(){i.doShowInMultipleColumnsChanged()})),n.updateTemplateQuestion(),n.name=t,r&&(n.title=r),n}return r.i(n.b)(t,e),t.getColumnTypes=function(){var e=[];for(var t in y)e.push(t);return e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.templateQuestion.endLoadingFromJson()},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType()},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!0,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e),this.updateTemplateQuestion(),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.templateQuestion.requiredText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns",!1)},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType","none")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){r.i(d.b)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.colOwner?this.colOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(),r=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.updateCellQuestion=function(e,t,r){void 0===r&&(r=null),this.setQuestionProperties(e,r),this.callOnCellQuestionUpdate(e,t)},t.prototype.callOnCellQuestionUpdate=function(e,t){var r=e.getType(),n=y[r];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():g.a.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(){var e=this.templateQuestion?this.templateQuestion.getType():"",t=this.calcCellQuestionType();if(t!==e){this.templateQuestion&&this.removeProperties(e),this.templateQuestionValue=this.createNewQuestion(t),this.templateQuestion.locOwner=this,this.addProperties(t);var r=this;this.templateQuestion.onPropertyChanged.add((function(e,t){r.doColumnPropertiesChanged(t.name,t.newValue)}))}},t.prototype.createNewQuestion=function(e){var t=i.k.createClass(e);return t||(t=i.k.createClass("text")),t.loadingOwner=this,this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e,t){if(void 0===t&&(t=null),this.templateQuestion){var r=(new i.g).toJsonObject(this.templateQuestion,!0);t&&t(r),r.type=e.getType(),(new i.g).toObject(r,e)}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),this.doColumnPropertiesChanged(t,n)},t.prototype.doColumnPropertiesChanged=function(e,t){"visibleChoices"!=e&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertyChanged(this,e,t))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this)},t.prototype.getProperties=function(e){return i.k.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,r=this.getProperties(e),n=0;n<r.length;n++){var i=r[n];this.addProperty(t,i.name,!1),i.serializationProperty&&this.addProperty(t,i.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,r){var n={configurable:!0,get:function(){return e[t]}};r||(n.set=function(r){e[t]=r}),Object.defineProperty(this,t,n)},t}(s.a),b=function(){function e(e,t,r){this.column=e,this.row=t,this.data=r,this.questionValue=this.createQuestion(e,t,r),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,r){var n=r.createQuestion(this.row,this.column);return n.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},i.l.getProperties(e.getType()).forEach((function(t){var r=t.name;void 0!==e[r]&&(n[r]=e[r])})),n},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),C=function(e){function t(t,r,n){var i=e.call(this,t,r,n)||this;return i.column=t,i.row=r,i.data=n,i.updateCellQuestion(),i}return r.i(n.b)(t,e),t.prototype.createQuestion=function(e,t,r){var n=i.k.createClass("expression");return n.setSurveyImpl(t),n},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation()},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"";var e=this.column.totalType+"InArray";return f.a.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),P=function(){function e(t,r){this.isSettingValue=!1,this.cells=[],this.data=t,this.textPreProcessor=new l.a;var n=this;this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=0;t<this.cells.length;t++){var r=this.cells[t].question;r.isEmpty()||(e[r.getValueName()]=r.value)}return e},set:function(e){this.isSettingValue=!0;for(var t=0;t<this.cells.length;t++){var r=this.cells[t].question,n=e?e[r.getValueName()]:null;r.updateValueFromSurvey(n),r.onSurveyValueChanged(n)}this.isSettingValue=!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var r in e)t[r]=e[r];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,r){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,r||(r={}),r[e.RowVariableName]=this;for(var n=0;n<this.cells.length;n++)t[e.RowVariableName]=this.value,this.cells[n].runCondition(t,r)},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var r=this.getSurvey();return r?r.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByColumnName(e);return t?t.value:null},e.prototype.setValue=function(t,r){if(!this.isSettingValue){var n=this.value,i=this.getValue(t),o=this.getQuestionByColumnName(t),s=this.data.onRowChanging(this,t,n);o&&!a.a.isTwoValueEquals(s,i)?this.getQuestionByColumnName(t).value=s:(this.data.onRowChanged(this,t,n,null==r&&!o),this.onAnyValueChanged(e.RowVariableName))}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+g.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,r){this.setValue(e+g.a.commentPrefix,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(a.a.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!0,configurable:!0}),e.prototype.getQuestionByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t].question;return null},e.prototype.getQuestionByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t].question;return null},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var r=this.getQuestionByColumnName(t);if(r){var n=r.value;r.clearIncorrectValues(),a.a.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else this.getSharedQuestionByName(t)||this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e){return this.data?this.data.getMarkdownHtml(e):null},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,r){for(var n=0;n<this.cells.length;n++)if(this.cells[n].column===e)return void this.updateCellOnColumnChanged(this.cells[n],t,r)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question&&(this.cells[t].question.readOnly=e)},e.prototype.updateCellOnColumnChanged=function(e,t,r){e.question[t]=r},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,r=0;r<t.length;r++){var n=t[r];if(n.isVisible){var i=this.createCell(n);this.cells.push(i),e&&!a.a.isValueEmpty(e[n.name])&&(i.question.value=e[n.name])}}this.isSettingValue=!1},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!0,configurable:!0}),e.prototype.getProcessedTextValue=function(t){var r=(new u.a).getFirstName(t.name);if(t.isExists=r==e.RowVariableName,t.canProcess=t.isExists,t.isExists){var n={row:this.value};t.value=(new u.a).getValue(t.name,n)}},e.prototype.getTextProcessor=function(){return this},e.prototype.processText=function(e,t){return e=this.textPreProcessor.process(e,t),this.getSurvey()?this.getSurvey().processText(e,t):e},e.prototype.processTextEx=function(e,t){if(e=this.processText(e,t),!this.getSurvey())return e;var r=this.textPreProcessor.hasAllValuesOnLastRun,n=this.getSurvey().processTextEx(e,t,!1);return n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.idCounter=1,e}(),x=function(e){function t(t){var r=e.call(this,t,null)||this;return r.buildCells(null),r}return r.i(n.b)(t,e),t.prototype.createCell=function(e){return new C(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,r){var n,i=0;do{n=a.a.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,r),i++}while(!a.a.isTwoValueEquals(n,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e,t,r){e.updateCellQuestion()},t}(P),w=function(){function e(){this.minWidth="",this.width="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!0,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation()==e&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(){return this.hasQuestion?this.question.survey.questionErrorLocation:""},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isChoice&&"checkbox"==this.question.getType()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!0,configurable:!0}),e.counter=1,e}(),V=function(){function e(){this.cells=[],this.idValue=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),T=function(e){function t(t){var r=e.call(this)||this;return r.matrix=t,r.createNewArray("rows"),r.build(),r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!0,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.buildHeader(),this.buildRows(),this.buildFooter()},t.prototype.onAddedRow=function(){this.rows.length>=this.matrix.visibleRows.length||this.rows.push(this.createHorizontalRow(this.matrix.visibleRows[this.matrix.visibleRows.length-1]))},t.prototype.onRemovedRow=function(e){this.rows.length<=e||this.rows.splice(e,1)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=new V,this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var r=this.matrix.visibleColumns[t];r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{var n=this.matrix.visibleRows;for(t=0;t<n.length;t++)this.headerRow.cells.push(this.createTextCell(n[t].locText));this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasRemoveRows&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=new V,this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var r=e[t];r.column.hasVisibleCell&&(r.column.isShowInMultipleColumns?this.createMutlipleColumnsFooter(this.footerRow,r):this.footerRow.cells.push(this.createEditCell(r)))}this.hasRemoveRows&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.setPropertyValue("rows",e)},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],r=0;r<e.length;r++)t.push(this.createHorizontalRow(e[r]));return t},t.prototype.createHorizontalRow=function(e){var t=new V;this.matrix.hasRowText&&t.cells.push(this.createTextCell(e.locText));for(var r=0;r<e.cells.length;r++){var n=e.cells[r];n.column.hasVisibleCell&&(n.column.isShowInMultipleColumns?this.createMutlipleEditCells(t,n):t.cells.push(this.createEditCell(n)))}return this.hasRemoveRows&&t.cells.push(this.createRemoveRowCell(e)),t},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],r=0;r<e.length;r++){var n=e[r];n.isVisible&&n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,n,r):t.push(this.createVerticalRow(n,r)))}return this.hasRemoveRows&&t.push(this.createVerticalRemoveRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,r){var n=this.getMultipleColumnChoices(t);if(n)for(var i=0;i<n.length;i++)e.push(this.createVerticalRow(t,r,n[i],i))},t.prototype.createVerticalRow=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=-1);var i=new V;if(this.matrix.showHeader){var o=r?r.locText:e.locTitle,a=this.createTextCell(o);r||this.setRequriedToHeaderCell(e,a),i.cells.push(a)}for(var s=this.matrix.visibleRows,l=0;l<s.length;l++){var u=this.createEditCell(s[l].cells[t]);u.item=r,u.choiceIndex=n>=0?n:l,i.cells.push(u)}return this.matrix.hasTotal&&i.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),i},t.prototype.createVerticalRemoveRow=function(){var e=new V;this.matrix.showHeader&&e.cells.push(this.createTextCell(null));for(var t=this.matrix.visibleRows,r=0;r<t.length;r++)e.cells.push(this.createRemoveRowCell(t[r]));return this.matrix.hasTotal&&e.cells.push(this.createTextCell(null)),e},t.prototype.createMutlipleEditCells=function(e,t,r){void 0===r&&(r=!1);var n=this.getMultipleColumnChoices(t.column);if(n)for(var i=0;i<n.length;i++){var o=this.createEditCell(t);r||(o.item=n[i],o.choiceIndex=i),e.cells.push(o)}},t.prototype.createEditCell=function(e){var t=new w;return t.cell=e,t.row=e.row,t.question=e.question,t.matrix=this.matrix,t},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var r=0;r<t.length;r++){var n=this.createTextCell(t[r].locText);this.setHeaderCell(e,n),this.headerRow.cells.push(n)}},t.prototype.getMultipleColumnChoices=function(e){var t;return(t=e.templateQuestion.choices)&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.createHeaderCell=function(e){var t=this.createTextCell(e?e.locTitle:null);return this.setHeaderCell(e,t),t},t.prototype.setHeaderCell=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):"",t.width=null!=e?e.width:this.matrix.getRowTitleWidth(),this.setRequriedToHeaderCell(e,t)},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new w;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),t},t.prototype.createTextCell=function(e){var t=new w;return t.locTitle=e||new h.a(this.matrix,!1),t},t}(s.a),S=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.lockResetRenderedTable=!1,r.isDoingonAnyValueChanged=!1;var n=r;return r.createItemValues("choices"),r.createLocalizableString("optionsCaption",r),r.registerFunctionOnPropertyValueChanged("columns",(function(e){n.updateColumnsIndexes(e),n.generatedVisibleRows=null,n.generatedTotalRow=null,n.resetRenderedTable(),n.fireCallback(n.columnsChangedCallback)})),r.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation"],(function(){n.fireCallback(n.columnLayoutChangedCallback)})),r.registerFunctionOnPropertiesValueChanged(["cellType","optionsCaption","columnColCount","rowTitleWidth"],(function(){n.generatedVisibleRows=null,n.resetRenderedTable(),n.fireCallback(n.columnsChangedCallback)})),r.registerFunctionOnPropertiesValueChanged(["columnLayout","showHeader","minRowCount","isReadOnly","rowCount","hasFooter"],(function(){n.resetRenderedTable()})),r}return r.i(n.b)(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return g.a.matrixDefaultCellType},set:function(e){g.a.matrixDefaultCellType=e},enumerable:!0,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.a.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e}))},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onRemovedRow(e)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isLoadingFromJson||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!0,configurable:!0}),t.prototype.createRenderedTable=function(){return new T(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.visibleColumns.length;r++){t.column=this.visibleColumns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",g.a.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.cellType!=e&&(this.setPropertyValue("cellType",e),this.updateColumnsCellType(),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount",0)},set:function(e){e<0||e>4||(this.setPropertyValue("columnColCount",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!0,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertyChanged=function(e,t,r){if(this.updateHasFooter(),this.generatedVisibleRows){for(var n=0;n<this.generatedVisibleRows.length;n++)this.generatedVisibleRows[n].updateCellQuestionOnColumnChanged(e,t,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,r),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable(),e.isShowInMultipleColumns&&this.onShowInMultipleColumnsChanged(e)}},t.prototype.onShowInMultipleColumnsChanged=function(e){this.generatedVisibleRows=null,this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.generatedVisibleRows=null,this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!0,configurable:!0}),t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);for(var n="",i=r.length-1;i>=0&&"."!=r[i];i--)n=r[i]+n;var o=this.getColumnByName(n);if(!o)return null;var a=o.createCellQuestion(null);return a?a.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){if(e.prototype.clearErrors.call(this),this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)r.cells[n].question.clearErrors()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r);var n,i=0;do{n=a.a.getUnbindValue(this.totalValue),this.runCellsCondition(t,r),this.runTotalsCondition(t,r),i++}while(!a.a.isTwoValueEquals(n,this.totalValue)&&i<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var r=this.getRowConditionValues(e),n=this.generatedVisibleRows,i=0;i<n.length;i++)n[i].runCondition(r,t);this.checkColumnsVisibility()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,r=!1,n=this.generatedVisibleRows,i=0;i<n.length;i++){var o=n[i].cells[e.index];if(o&&o.question&&o.question.isVisible){r=!0;break}}return t!=r&&(e.hasVisibleCell=r),t!=r},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t={};e&&e instanceof Object&&(t=JSON.parse(JSON.stringify(e)));var r={};return a.a.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=r,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);var t=this.generatedVisibleRows;if(t){for(var r=this.columns,n=0;n<r.length;n++)r[n].locStrsChanged();for(n=0;n<t.length;n++)t[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",c.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new v(e,t);return this.columns.push(r),r},t.prototype.getVisibleRows=function(){var e=this;return this.isLoadingFromJson?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows)),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),r=this.createNewValue(),n=0;n<e.length;n++){var i=e[n],o=this.getRowValue(n),a=i.value;this.isTwoValueEquals(o,a)||(r=this.getNewValueOnRowChanged(i,"",a,!1,r).value)}this.isTwoValueEquals(t,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!0,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isLoadingFromJson)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.generatedVisibleRows=null,this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var r=this.createNewValue();return this.getRowValueCore(t[e],r)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=t,this.onRowChanged(r[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new x(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t&&t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t&&(t[e.rowName]=n)),n},t.prototype.getRowDisplayValue=function(e,t){if(!t)return t;for(var r in t){var n=e.getQuestionByColumnName(r);n||(n=this.getSharedQuestionByName(r,e)),n&&(t[r]=n.displayValue)}return t},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.visibleRows.map((function(e){var n={name:e.rowName,title:e.rowName,value:e.value,displayValue:r.getRowDisplayValue(e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),n},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var i=r[n].question;if(i&&(!i.supportGoNextPageAutomatic()||!i.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var n=0;n<r.length;n++){var i=r[n].cells;if(i)for(var o=0;o<i.length;o++)if(i[o]){var a=i[o].question;if(a&&a.isVisible)if(e(a)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=this.hasErrorInColumns(t,r);return e.prototype.hasErrors.call(this,t)||n},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++)if(r[n]){var i=r[n].question;if(i&&i.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows;if(null===r)return t;for(var n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.cells.length;o++){var a=i.cells[o].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInColumns=function(e,t){var r=this;if(!this.generatedVisibleRows)return!1;for(var n=!1,i=0;i<this.generatedVisibleRows.length;i++){var o=this.generatedVisibleRows[i].cells;if(o)for(var a=0;a<o.length;a++)if(o[a]){var s=o[a].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(n=s.hasErrors(e,t)||n))}}return n},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t].cells,n=0;n<r.length;n++){if(!e)return r[n].question;if(r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return this.isReadOnly&&(r.readOnly=!0),r.setSurveyImpl(e),r},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e);var n=this.visibleTotalRow;n&&n.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,r){var n=this;return{row:e,columnName:t,rowValue:r,value:r?r[t]:null,getCellQuestion:function(t){for(var r=0;n.columns.length;r++)if(n.columns[r].name===t)return e.cells[r].question;return null}}},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(n),this.survey.matrixCellValueChanged(this,n)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n=this,i={row:e,columnName:t,rowValue:r,value:r[t],getCellQuestion:function(t){for(var r=0;n.columns.length;r++)if(n.columns[r].name===t)return e.cells[r].question;return null}};return this.survey.matrixCellValidate(this,i)}},t.prototype.onRowChanging=function(e,t,r){if(!this.survey)return r?r[t]:null;var n=this.getOnCellValueChangedOptions(e,t,r),i=this.getRowValueCore(e,this.createNewValue(),!0);return n.oldValue=i?i[t]:null,this.survey.matrixCellValueChanging(this,n),n.value},t.prototype.onRowChanged=function(e,t,r,n){var i=this.createNewValue(!0),o=this.getNewValueOnRowChanged(e,t,r,n,this.createNewValue());this.isTwoValueEquals(i,o.value)||(this.isRowChanging=!0,this.setNewValue(o.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,o.rowValue))},t.prototype.getNewValueOnRowChanged=function(e,t,r,n,i){var o=this.getRowValueCore(e,i,!0);n&&delete o[t];for(var a=0;a<e.cells.length;a++)delete o[s=e.cells[a].question.getValueName()];if(r)for(var s in r=JSON.parse(JSON.stringify(r)))this.isValueEmpty(r[s])||(o[s]=r[s]);return this.isObject(o)&&0===Object.keys(o).length&&(i=this.deleteRowValue(i,e)),{value:i,rowValue:o}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(t);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isLoadingFromJson&&!this.isSett&&this.data.setValue(this.getValueName()+g.a.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByColumnName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},t.prototype.getSurvey=function(){return this.survey},t}(o.a);i.k.addClass("matrixdropdowncolumn",["!name",{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=v.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean","minWidth","width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return r.i(d.b)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1}],(function(){return new v("")})),i.k.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},"horizontalScroll:boolean",{name:"choices:itemvalue[]"},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return v.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth"],(function(){return new S("")}),"matrixbase")},function(e,t,r){"use strict";var n=r(1),i=r(7),o=r(2);r.d(t,"a",(function(){return a}));var a=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(i.a);o.k.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(9),a=r(0),s=r(2),l=r(8),u=r(3);r.d(t,"g",(function(){return c})),r.d(t,"e",(function(){return p})),r.d(t,"i",(function(){return h})),r.d(t,"c",(function(){return d})),r.d(t,"f",(function(){return f})),r.d(t,"a",(function(){return g})),r.d(t,"d",(function(){return m})),r.d(t,"b",(function(){return y})),r.d(t,"h",(function(){return v}));var c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.errorOwner?this.errorOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new o.a(this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(i.a),h=function(){function e(){}return e.prototype.run=function(e){var t=this,r=[],n=null,i=null;this.prepareAsyncValidators();for(var o=[],a=e.getValidators(),s=0;s<a.length;s++){var l=a[s];!n&&l.isValidateAllValues&&(n=e.getDataFilteredValues(),i=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&o.push(e.error),t.onAsyncCompleted){for(var r=0;r<t.asyncValidators.length;r++)if(t.asyncValidators[r].isRunning)return;t.onAsyncCompleted(o)}})}for(a=e.getValidators(),s=0;s<a.length;s++){var u=(l=a[s]).validate(e.validatedValue,e.getValidatorTitle(),n,i);u&&u.error&&r.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),r},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),d=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),u.a.isValueEmpty(e))return null;if(!u.a.isNumber(e))return new c(null,new o.d(null,this.errorOwner));var i=new c(parseFloat(e));return null!==this.minValue&&this.minValue>i.value||null!==this.maxValue&&this.maxValue<i.value?(i.error=this.createCustomError(t),i):"number"==typeof e?null:i},t.prototype.getDefaultErrorText=function(e){var t=e||a.a.getString("value");return null!==this.minValue&&null!==this.maxValue?a.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?a.a.getString("numericMin").format(t,this.minValue):a.a.getString("numericMax").format(t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!0,configurable:!0}),t}(p),f=function(e){function t(t,r,n){void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=!0);var i=e.call(this)||this;return i.minLength=t,i.maxLength=r,i.allowDigits=n,i}return r.i(n.b)(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),""!==e&&u.a.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?a.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?a.a.getString("textMinLength").format(this.minLength):a.a.getString("textMaxLength").format(this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits",!0)},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!0,configurable:!0}),t}(p),g=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null==e||e.constructor!=Array)return null;var i=e.length;return this.minCount&&i<this.minCount?new c(null,this.createCustomError(a.a.getString("minSelectError").format(this.minCount))):this.maxCount&&i>this.maxCount?new c(null,this.createCustomError(a.a.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!0,configurable:!0}),t}(p),m=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.regex||u.a.isValueEmpty(e))return null;var i=new RegExp(this.regex);if(Array.isArray(e))for(var o=0;o<e.length;o++){var a=this.hasError(i,e[o],t);if(a)return a}return this.hasError(i,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new c(t,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!0,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return r.i(n.b)(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.conditionRunner=null,r.isRunningValue=!1,r.expression=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),t.prototype.validate=function(e,t,r,n){var i=this;if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(t){i.isRunningValue=!1,i.onAsyncCompleted&&i.onAsyncCompleted(i.generateError(t,e))},this.isRunningValue=!0;var o=this.conditionRunner.run(r,n);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(o,e))},t.prototype.generateError=function(e,t){return e?null:new c(t,this.createCustomError(name))},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidExpression").format(this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new l.a(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t}(p);s.k.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.k.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new d}),"surveyvalidator"),s.k.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],(function(){return new f}),"surveyvalidator"),s.k.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new g}),"surveyvalidator"),s.k.addClass("regexvalidator",["regex"],(function(){return new m}),"surveyvalidator"),s.k.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.k.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(10),a=r(2),s=r(9),l=r(6);r.d(t,"a",(function(){return c}));var u=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],i={};this.xml2Json(n,i),this.assignValue(t,n.nodeName,i)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),c=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.error=null,t}return r.i(n.b)(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.a.webserviceEncodeParameters},set:function(e){l.a.webserviceEncodeParameters=e},enumerable:!0,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){var r=e.objHash,n=t.sendingSameRequests[r];return n?(n.push(e),!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,r){var n=t.sendingSameRequests[e.objHash];delete t.sendingSameRequests[e.objHash];for(var i=0;i<n.length;i++)n[i].getResultCallback&&n[i].getResultCallback(r)},t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!0,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){if(e){var t=e.processTextEx(this.url,!1,l.a.webserviceEncodeParameters),r=e.processTextEx(this.path,!1,l.a.webserviceEncodeParameters);t.hasAllValuesOnLastRun&&r.hasAllValuesOnLastRun?(this.processedUrl=t.text,this.processedPath=r.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=this.url,this.processedPath=this.path},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new u).parseXmlString(e);else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){this.isRunningValue=!0;var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this,n=this.objHash;e.onload=function(){r.isRunningValue=!1,200===e.status?r.onLoad(r.parseResponse(e.response),n):r.onError(e.statusText,e.responseText)};var i={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,i),this.beforeSendRequest(),i.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!0,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=a.k.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&"enableIf"!==e[r].name&&t.push(e[r]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)e[t[r]]&&(this[t[r]]=e[t[r]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)this[t[r]]&&(e[t[r]]=this[t[r]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse",!1)},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems",!1)},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.k.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.onLoad=function(e,r){void 0===r&&(r=null),r||(r=this.objHash);var n=new Array,i=this.getResultAfterPath(e);if(i&&i.length)for(var a=0;a<i.length;a++){var l=i[a];if(l){var u=this.getItemValueCallback?this.getItemValueCallback(l):this.getValue(l),c=this.getTitle(l),p=new o.a(u,c);this.setCustomProperties(p,l),this.attachOriginalItems&&(p.originalItem=l);var h=this.getImageLink(l);h&&(p.imageLink=h),n.push(p)}}else this.allowEmptyResponse||(this.error=new s.k(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),t.itemsResult[r]=n,this.callResultCallback(n,r),t.unregisterSameRequests(this,n)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var i=r[n],o=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(o)||(e[i.name]=o)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,r){this.error=new s.l(e,r,this.owner),this.doEmptyResultCallback(r),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.getTitle=function(e){var t=this.titleName?this.titleName:"title";return this.getValueCore(e,t)},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!0,configurable:!0}),t.itemsResult={},t.sendingSameRequests={},t}(i.a);a.k.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean",default:!1},{name:"attachOriginalItems:boolean",default:!1,visible:!1}],(function(){return new c}))},function(e,t,r){"use strict";var n=r(43);r.d(t,"a",(function(){return o}));var i=function(e,t){this.at=e,this.code=t},o=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/==/g,"= ").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var o=e.parserCache[t];return void 0===o&&((o=r.i(n.a)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=o)),o}catch(e){e instanceof n.b&&(this.conditionError=new i(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!0,configurable:!0}),e.parserCache={},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:i;return e||(e=i),e}},i={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",cell:"sv_matrix_cell"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"sv_q_text_root",expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-file__decorator",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};n.standard=i},function(e,t,r){"use strict";var n=r(6);r.d(t,"a",(function(){return i}));var i=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return n.a.surveyServiceUrl},set:function(e){n.a.surveyServiceUrl=e},enumerable:!0,configurable:!0}),e.prototype.loadSurvey=function(t,r){var n=new XMLHttpRequest;n.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);r(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,r,n){var i=new XMLHttpRequest;i.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=JSON.parse(i.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==i.status,t,r,i.response)},i.send()},e.prototype.sendResult=function(t,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=!1);var a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(r)};i&&(s.clientId=i),o&&(s.isPartialCompleted=!0);var l=JSON.stringify(s);a.onload=a.onerror=function(){n&&n(200===a.status,a.response,a)},a.send(l)},e.prototype.sendFile=function(t,r,n){var i=new XMLHttpRequest;i.onload=i.onerror=function(){n&&n(200==i.status,JSON.parse(i.response))},i.open("POST",e.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",r),o.append("postId",t),i.send(o)},e.prototype.getResult=function(t,r,n){var i=new XMLHttpRequest,o="resultId="+t+"&name="+r;i.open("GET",e.serviceUrl+"/getResult?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=null,t=null;if(200==i.status)for(var r in t=[],(e=JSON.parse(i.response)).QuestionResult){var o={name:r,value:e.QuestionResult[r]};t.push(o)}n(200==i.status,e,t,i.response)},i.send()},e.prototype.isCompleted=function(t,r,n){var i=new XMLHttpRequest,o="resultId="+t+"&clientId="+r;i.open("GET",e.serviceUrl+"/isCompleted?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=null;200==i.status&&(e=JSON.parse(i.response)),n(200==i.status,e,i.response)},i.send()},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",optionsCaption:"Choose...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",cleanCaption:"Clean",clearCaption:"Clear",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title"}},function(e,t,r){"use strict";var n=r(1),i=r(10),o=r(7),a=r(2),s=r(8),l=r(3);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.generatedVisibleRows=null,r.generatedTotalRow=null,r.filteredRows=null,r.filteredColumns=null,r.columns=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return r.i(n.b)(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.shouldRunColumnExpression=function(){return!0},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var r=null;if(this.filteredRows&&!l.a.isValueEmpty(this.defaultValue)){r=[];for(var n=0;n<this.filteredRows.length;n++)r.push(this.filteredRows[n])}var i=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),o=this.runConditionsForColumns(e,t);return(i=o||i)&&((this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),r&&this.restoreNewVisibleRowsValues(r),this.generatedVisibleRows=null,o&&this.onColumnsChanged(),this.onRowsChanged()),i},t.prototype.runConditionsForRows=function(e,t){var r=this.rowsVisibleIf?new s.a(this.rowsVisibleIf):null;this.filteredRows=[];var n=i.a.runConditionsForItems(this.rows,this.filteredRows,r,e,t);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),n},t.prototype.runConditionsForColumns=function(e,t){var r=this.columnsVisibleIf?new s.a(this.columnsVisibleIf):null;this.filteredColumns=[];var n=i.a.runConditionsForItems(this.columns,this.filteredColumns,r,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),n},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,o=this.filteredRows?this.filteredRows:this.rows,a=this.filteredColumns?this.filteredColumns:this.columns;for(var s in t)i.a.getItemByValue(o,s)&&i.a.getItemByValue(a,t[s])?(null==r&&(r={}),r[s]=t[s]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=l.a.getUnbindValue(this.value),t=this.rows,r=0;r<t.length;r++){var n=t[r].value;e[n]&&!t[r].isVisible&&delete e[n]}l.a.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,r=this.defaultValue,n=l.a.getUnbindValue(this.value),o=!1;for(var a in r)i.a.getItemByValue(t,a)&&!i.a.getItemByValue(e,a)&&(null==n&&(n={}),n[a]=r[a],o=!0);o&&(this.value=n)},t}(o.a);a.k.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition",{name:"showHeader:boolean",default:!0}],void 0,"question")},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(3),a=r(14);r.d(t,"a",(function(){return s}));var s=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t,r.hasShownValue=!1,r.isRandomizing=!1,r.timeSpent=0;var n=r;return r.locTitle.onGetTextCallback=function(e){return n.num>0?n.num+". "+e:e},r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={page:{},pageTitle:"",pageDescription:"",row:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),this.survey&&this.survey.updatePageCssClasses(this,t),t},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(t){return!this.isStarted&&e.prototype.getIsPageVisible.call(this,t)},Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!0,configurable:!0}),t.prototype.setWasShown=function(e){e!=this.hasShownValue&&(this.hasShownValue=e,this.isDesignMode||1==e&&this.areQuestionsRandomized&&this.randomizeElements())},t.prototype.randomizeElements=function(){if(!this.isRandomizing){this.isRandomizing=!0;for(var e=[],t=this.elements,r=0;r<t.length;r++)e.push(t[r]);var n=o.a.randomizeArray(e);for(this.elements.splice(0,this.elements.length),r=0;r<n.length;r++)this.elements.push(n[r]);this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=new Array;return this.addPanelsIntoList(r,e,t),r},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropInfo=new a.d(e,t,r)},t.prototype.dragDropMoveTo=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var n=this.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,n)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.survey)return!0;var t=null,r=null,n=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var i=e.parent;if(i){var o=i.elements,a=o.indexOf(e);a>-1&&(t=e,r=e,this.dragDropInfo.isBottom?t=a<o.length-1?o[a+1]:null:r=a>0?o[a-1]:null)}}var s={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:n,insertAfter:r,insertBefore:t};return this.survey.dragAndDropAllow(s)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropFindRow(t),n=this.dragDropGetElementIndex(t,r);if(this.updateRowsRemoveElementFromRow(t,r),!e&&r){var i=this.dragDropInfo.source;i&&i.parent&&(r.panel==i.parent?(r.panel.dragDropMoveElement(i,t,n),n=-1):i.parent.removeElement(i)),n>-1&&r.panel.addElement(t,n)}return this.dragDropInfo=null,e?null:t}},t.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var r=t.elements.indexOf(e);if(0==t.index)return r;var n=t.panel.rows[t.index-1],i=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(i)+1},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;return!!this.dragDropCanDropCore(e,t)&&this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var r=e;if(r.containsElement(t)||r.getElementByName(t.name))return!1}return!0},t.prototype.dragDropCanDropNotNext=function(e,t,r,n){if(!t||t.isPanel&&!r)return!0;if(e.parent!==t.parent)return!0;var i=e.parent,o=i.elements.indexOf(e),a=i.elements.indexOf(t);return a<o&&!n&&a--,n&&a++,o<a?a-o>1:o-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t}(a.b);i.k.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0,minValue:0}],(function(){return new s}),"panelbase")},function(e,t,r){"use strict";var n=r(5);r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var i=function(){function e(e,t){this.name=e,this.widgetJson=t,this.isFirstRender=!0,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var r=this;this.isFirstRender&&(this.isFirstRender=!1,e.survey.onLocaleChangedEvent.add((function(){r.widgetJson.willUnmount(e,t),r.widgetJson.afterRender(e,t)}))),this.widgetJson.afterRender&&this.widgetJson.afterRender(e,t)},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!0,configurable:!0}),e}(),o=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.b}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;r||(r="widget_"+this.widgets.length+1);var n=new i(r,e);this.widgetsValues.push(n),n.init(),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(4),a=r(13),s=r(0),l=r(10);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.minMaxChoices=[],r.createLocalizableString("optionsCaption",r);var n=r;return r.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.getPropertyValue("showOptionsCaption",!0)},set:function(e){this.setPropertyValue("showOptionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",s.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var r=[],n=0;n<t.length;n++)r.push(t[n]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(new l.a(n));return r=r.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin",0)},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax",0)},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep",1)},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!0,configurable:!0}),t}(a.b);i.k.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"showOptionsCaption:boolean",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1}],(function(){return new u("")}),"selectbase"),o.a.Instance.registerQuestion("dropdown",(function(e){var t=new u(e);return t.choices=o.a.DefaultChoices,t}))},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(7),a=r(2),s=r(4),l=r(8);r.d(t,"a",(function(){return u})),t.b=c;var u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.createLocalizableString("format",r);var n=r;return r.registerFunctionOnPropertyValueChanged("expression",(function(){n.expressionRunner&&(n.expressionRunner=new l.b(n.expression))})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,r){var n=this;e.prototype.runCondition.call(this,t,r),this.expression&&!this.expressionIsRunning&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.b(this.expression)),this.expressionRunner.onRunComplete=function(e){i.a.isTwoValueEquals(e,n.value)||(n.value=e),n.unlocCalculation()},this.expressionRunner.run(t,r))},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var r=this.isValueEmpty(t)?this.defaultValue:t;if(this.isValueEmpty(r))return"";var n=this.getValueAsStr(r);return this.format?this.format.format(n):n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping",!0)},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!0,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&i.a.isNumber(e)){var r=this.getLocale();r||(r="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,n)}return e.toString()},t}(o.a);function c(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}a.k.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"commentText",visible:!1},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"validators",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new u("")}),"question"),s.a.Instance.registerQuestion("expression",(function(e){return new u(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(4),o=r(2),a=r(7),s=r(3),l=r(20);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return r.i(n.b)(t,e),t.prototype.isTextValue=function(){return"text"==this.inputType},t.prototype.getType=function(){return"text"},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"==(e=e.toLowerCase())&&(e="datetime-local"),this.min=void 0,this.max=void 0,this.step=void 0,this.setPropertyValue("inputType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some((function(e){return"emailvalidator"===e.getType()}))||t.push(new l.b),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.setPropertyValue("min",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){var e=this.getPropertyValue("max");return e||"date"!==this.inputType&&"datetime-local"!==this.inputType||(e="2999-12-31"),e},set:function(e){this.setPropertyValue("max",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportGoNextPageError=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:s.a.isNumber(e)?parseFloat(e):""},t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("numeric","text","regex","email")},t}(a.a),c=["number","range","date","datetime-local","month","time","week"];o.k.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",default:25},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"==e.inputType}},{name:"min",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"max",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&"number"===e.inputType}},{name:"maxLength:number",default:-1},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],(function(){return new u("")}),"question"),i.a.Instance.registerQuestion("text",(function(e){return new u(e)}))},function(e,t,r){"use strict";var n=r(23);r.d(t,"a",(function(){return i}));var i=function(){function e(){this.sheet=null,e.Enabled&&(this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return e.findSheet=function(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode&&document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,r){var i;if(void 0===t&&(t="default"),void 0===r&&(r=".sv_main"),"modern"===t&&(r=".sv-root-modern "),-1!==["bootstrap","bootstrapmaterial","modern"].indexOf(t)?(i=e[t+"ThemeCss"],n.a.currentType=t):(i=e.ThemeCss,n.a.currentType="standard"),e.Enabled){var o=e.findSheet(t+r);if(!o){o=e.createSheet(t+r);var a=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach((function(e){var t=i[e];Object.keys(a).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),a[e])}));try{o.insertRule(r+e+" { "+t+" }",0)}catch(e){}}))}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach((function(r){try{t.insertRule(r+" { "+e.Styles[r]+" }",0)}catch(e){}})),Object.keys(e.Media).forEach((function(r){try{t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)}catch(e){}})))},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_bootstrap_css .sv-paneldynamic__progress-container ":"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;",".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both; min-width:300px;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: inline-block; vertical-align: top; overflow: auto; min-width:300px;",".sv_p_container":"display: inline-block; vertical-align: top; min-width:300px;",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn .sv_q_imgsel > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".sv_qstn td":"position: relative;",".sv_q_mt_item_value":"float: left;",'[dir="rtl"] .sv_q_mt_item_value':"float: right;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",'[dir="rtl"] .sv_qstn .title-left':"float: right; margin-left: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline, .sv_q_imagepicker_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_imgsel .sv_q_imagepicker_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_p_footer":"padding-left: 1em; padding-bottom: 1em;padding-top: 1em;",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: initial;",".sv_main .sv-hidden":"display: none !important;",".sv_main .sv-visuallyhidden":"position: absolute; height: 1px !important; width: 1px !important; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);",".sv_main .sv-progress":"height: 0.19em; background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; margin-right: 250px; margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right; margin-top: -18px;",".sv_main .sv-paneldynamic__add-btn--list-mode":" float: none; margin-top: 1em;",".sv_main .sv-paneldynamic__remove-btn ":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;",".sv_main .sv-paneldynamic__prev-btn":"left: -1.3em; transform: rotate(90deg);",".sv_main .sv-paneldynamic__next-btn ":"right: -1.3em; transform: rotate(270deg);",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"cursor: auto;",".sv_main .sv-paneldynamic__progress-text":"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em",".sv_main .sv-boolean__switch":"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;",".sv_main .sv-boolean__slider":"display: inline-block; width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;",".sv_main .sv-boolean__label":"vertical-align: middle; cursor: pointer;",".sv_main .sv-boolean--indeterminate .sv-boolean__slider":"margin-left: calc(50% - 10px);",".sv_main .sv-boolean--checked .sv-boolean__slider":"margin-left: calc(100% - 20px);","[dir='rtl'] .sv-boolean__label ":"float: right;","[dir='rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[dir='rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[dir='rtl'] .sv-boolean__switch":"float: right;","[style*='direction:rtl'] .sv-boolean__label ":"float: right;","[style*='direction:rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[style*='direction:rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[style*='direction:rtl'] .sv-boolean__switch":"float: right;",".sv_main .sv_q_num":"",".sv_main .sv_q_num + span":"",".sv_main .sjs_sp_container":"position: relative;",".sv_main .sjs_sp_controls":"position: absolute; left: 0; bottom: 0;",".sv_main .sjs_sp_controls > button":"user-select: none;",".sv_main .sjs_sp_container>div>canvas:focus":"outline: none;",".sv_main .sv_logo":"",".sv_main .sv-logo--left":"display: inline-block; vertical-align: top; margin-right: 2em;",".sv_main .sv-logo--right":"display: inline-block; vertical-align: top; margin-left: 2em; float: right;",".sv_main .sv-logo--right+.sv-logo--right-tail":"clear: both;",".sv_main .sv-logo--top":"display: block; width: 100%; text-align: center;",".sv_main .sv-logo--bottom":"display: block; width: 100%; text-align: center;",".sv_main .sv_header__text":"display: inline-block; vertical-align: top;"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(headers);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(headers); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"},".sv_main.sv_bootstrap_css .sv-progress__text":{style:"margin-left: 8em;",media:"@media (min-width: 768px)"},".sv_row":{style:" display: flex; flex-wrap: wrap;",media:"@supports (display: flex)"},".sv-vue-row-additional-div":{style:" display: flex; flex-wrap: wrap; flex-basis: 100%;",media:"@supports (display: flex)"},".sv-row > .sv-row__panel, .sv-row__question:not(:last-child)":{style:"float: left;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},"[dir='rtl'],[style*='direction:rtl'] .sv-row__question:not(:last-child)":{style:"float: right;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},".sv-row > .sv-row__panel, .sv-row__question":{style:"width: 100% !important; padding-right: 0 !important;",media:"@media only screen and (max-width: 600px)"}},e.ThemeColors={default:{"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},orange:{"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},darkblue:{"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},darkrose:{"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},stone:{"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},winter:{"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},winterstone:{"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},modern:{"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$inputs-background-color":"#f4f4f4","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$dropdown-border-color":"#d4d4d4","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$body-background-color":"#ffffff"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control ":"background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",'.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_file_choose_button":"color: $body-background-color; background-color: $main-color;",".sv_main .sv_q_file_choose_button:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.modernThemeCss={".sv-boolean__switch":"background-color: $main-color;",".sv-boolean__slider":"background-color: $slider-color;",".sv-boolean__label--disabled":"color: $disabled-label-color;",".sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv-btn":"color: $inputs-background-color;",".sv-checkbox__svg":"border-color: $border-color; fill: transparent;",".sv-checkbox--allowhover:hover .sv-checkbox__svg":"background-color: $main-hover-color; fill: $inputs-background-color;",".sv-checkbox--checked .sv-checkbox__svg":"background-color: $main-color; fill: $inputs-background-color;",".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg":"background-color: $disable-color; fill: $inputs-background-color;",".sv-checkbox--disabled .sv-checkbox__svg":"border-color: $disable-color;",".sv-comment":"border-color: $text-border-color;",".sv-comment:focus":"border-color: $main-color;",".sv-completedpage":"color: $text-color; background-color: $body-container-background-color;",".sv-container-modern":"color: $text-color;",".sv-container-modern__title":"color: $main-color;",".sv-description":"color: $disabled-text-color;",".sv-dropdown":"border-bottom: 0.06em solid $text-border-color;",".sv-dropdown:focus":"border-color: $dropdown-border-color;",".sv-dropdown--error":"border-color: $error-color; color: $error-color;",".sv-dropdown--error::placeholder":"color: $error-color;",".sv-dropdown--error::-ms-input-placeholder":"color: $error-color;",".sv-file__decorator":"background-color: $body-container-background-color;",".sv-file__clean-btn":"background-color: $remove-button-color;",".sv-file__choose-btn":"background-color: $add-button-color;",".sv-file__choose-btn--disabled":"background-color: $disable-color;",".sv-file__remove-svg":"fill: #ff1800;",".sv-file__sign a":"color: $text-color;",".sv-footer__complete-btn":"background-color: $main-color;",".sv-footer__next-btn":"background-color: $main-color;",".sv-footer__prev-btn":"background-color: $main-color;",".sv-footer__start-btn":"background-color: $main-color;",".sv-footer__preview-btn":"background-color: $main-color;",".sv-footer__edit-btn":"background-color: $main-color;",".sv-imagepicker__item--allowhover:hover .sv-imagepicker__image":"background-color: $main-hover-color; border-color: $main-hover-color;",".sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $main-color; border-color: $main-color;",".sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $disable-color; border-color: $disable-color;",".sv-item__control:focus + .sv-item__decorator":"border-color: $main-color;",".sv-matrix__text--сhecked":"color: $inputs-background-color; background-color: $main-color;",".sv-matrix__text--disabled.sv-matrix__text--сhecked":"background-color: $disable-color;",".sv-matrixdynamic__add-btn":"background-color: $add-button-color;",".sv-matrixdynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__add-btn":"background-color: $add-button-color;",".sv-paneldynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__prev-btn, .sv-paneldynamic__next-btn":"fill: $text-color;",".sv-paneldynamic__prev-btn--disabled, .sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv-progress":"background-color: $header-background-color;",".sv-progress__bar":"background-color: $main-color;",".sv-progress__text":"color: $progress-text-color;",".sv-question__erbox":"color: $error-color;",".sv-question__title--answer":"background-color: $answer-background-color;",".sv-question__title--error":"background-color: $error-background-color;",".sv-panel__title--error":"background-color: $error-background-color;",".sv-radio__svg":"border-color: $border-color; fill: transparent;",".sv-radio--allowhover:hover .sv-radio__svg":"fill: $border-color;",".sv-radio--checked .sv-radio__svg":"border-color: $radio-checked-color; fill: $radio-checked-color;",".sv-radio--disabled .sv-radio__svg":"border-color: $disable-color;",".sv-radio--disabled.sv-radio--checked .sv-radio__svg":"fill: $disable-color;",".sv-rating":"color: $text-color;",".sv-rating input:focus + .sv-rating__min-text + .sv-rating__item-text, .sv-rating input:focus + .sv-rating__item-text":"outline-color: $main-color;",".sv-rating__item-text":"color: $main-hover-color; border: solid 0.1875em $main-hover-color;",".sv-rating__item-text:hover":"background-color: $main-hover-color; color: $body-background-color;",".sv-rating__item--selected .sv-rating__item-text":"background-color: $main-color; color: $body-background-color; border-color: $main-color;",".sv-rating--disabled .sv-rating__item-text":"color: $disable-color; border-color: $disable-color;",".sv-rating--disabled .sv-rating__item-text:hover":"background-color: transparent;",".sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text":"background-color: $disable-color; color: $body-background-color;","::-webkit-scrollbar":"background-color: $main-hover-color;","::-webkit-scrollbar-thumb":"background: $main-color;",".sv-selectbase__clear-btn":"background-color: $clean-button-color;",".sv-table":"background-color: rgba($main-hover-color, 0.1);",".sv-text:focus":"border-color: $main-color;",'.sv-text[type="date"]::-webkit-calendar-picker-indicator':"color: transparent; background: transparent;",".sv-text--error":"color: $error-color; border-color: $error-color;",".sv-text--error::placeholder":"color: $error-color;",".sv-text--error::-ms-placeholder":"color: $error-color;",".sv-text--error:-ms-placeholder":"color: $error-color;",".sv-text::placeholder":"color: $text-color;",".sv-text::-ms-placeholder":"color: $text-color;",".sv-text:-ms-placeholder":"color: $text-color;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;",".sv_main .sv_q_image":"display: inline-block;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"linear-gradient(0deg, $main-color 2px, $main-color 0),linear-gradient(0deg, #D2D2D2 1px, transparent 0);",".sv_main.sv_bootstrapmaterial_css .sv_qstn":"margin-bottom: 1rem;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .sv_q_image":"display: inline-block;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%; height: 1.5em;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean .checkbox-decorator":"display: none;",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label.sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean__label":"color: $text-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.Enabled=!0,e}()},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(2),a=r(5),s=r(23),l=r(27),u=r(15),c=r(11),p=r(24),h=r(0),d=r(9),f=r(12),g=r(32),m=r(34),y=r(8),v=r(6);r.d(t,"a",(function(){return b}));var b=function(e){function t(r){void 0===r&&(r=null);var n=e.call(this)||this;n.valuesHash={},n.variablesHash={},n.localeValue="",n.completedStateValue="",n.completedStateTextValue="",n.isTimerStarted=!1,n.onCompleting=new a.b,n.onComplete=new a.b,n.onNavigateToUrl=new a.b,n.onStarted=new a.b,n.onPartialSend=new a.b,n.onCurrentPageChanging=new a.b,n.onCurrentPageChanged=new a.b,n.onValueChanging=new a.b,n.onValueChanged=new a.b,n.onVisibleChanged=new a.b,n.onPageVisibleChanged=new a.b,n.onPanelVisibleChanged=new a.b,n.onQuestionCreated=new a.b,n.onQuestionAdded=new a.b,n.onQuestionRemoved=new a.b,n.onPanelAdded=new a.b,n.onPanelRemoved=new a.b,n.onPageAdded=new a.b,n.onValidateQuestion=new a.b,n.onSettingQuestionErrors=new a.b,n.onServerValidateQuestions=new a.b,n.onValidatePanel=new a.b,n.onErrorCustomText=new a.b,n.onValidatedErrorsOnCurrentPage=new a.b,n.onProcessHtml=new a.b,n.onGetQuestionTitle=new a.b,n.onTextMarkdown=new a.b,n.onSendResult=new a.b,n.onGetResult=new a.b,n.onUploadFiles=new a.b,n.onDownloadFile=new a.b,n.onClearFiles=new a.b,n.onLoadChoicesFromServer=new a.b,n.onLoadedSurveyFromService=new a.b,n.onProcessTextValue=new a.b,n.onUpdateQuestionCssClasses=new a.b,n.onUpdatePanelCssClasses=new a.b,n.onUpdatePageCssClasses=new a.b,n.onAfterRenderSurvey=new a.b,n.onAfterRenderHeader=new a.b,n.onAfterRenderPage=new a.b,n.onAfterRenderQuestion=new a.b,n.onAfterRenderQuestionInput=new a.b,n.onAfterRenderPanel=new a.b,n.onMatrixRowAdded=new a.b,n.onMatrixBeforeRowAdded=new a.b,n.onMatrixRowRemoved=new a.b,n.onMatrixAllowRemoveRow=new a.b,n.onMatrixCellCreated=new a.b,n.onMatrixAfterCellRender=new a.b,n.onMatrixCellValueChanged=new a.b,n.onMatrixCellValueChanging=new a.b,n.onMatrixCellValidate=new a.b,n.onDynamicPanelAdded=new a.b,n.onDynamicPanelRemoved=new a.b,n.onTimer=new a.b,n.onTimerPanelInfoText=new a.b,n.onDynamicPanelItemValueChanged=new a.b,n.onIsAnswerCorrect=new a.b,n.onDragDropAllow=new a.b,n.onScrollingElementToTop=new a.b,n.onLocaleChangedEvent=new a.b,n.jsonErrors=null,n.cssValue=null,n.hideRequiredErrors=!1,n._isDesignMode=!1,n.ignoreValidation=!1,n.isNavigationButtonPressed=!1,n.runningPages=null,n.origionalPages=null,n.isTriggerIsRunning=!1,n.conditionValues=null,n.isValueChangedOnRunningCondition=!1,n.conditionRunnerCounter=0,n.conditionUpdateVisibleIndexes=!1,n.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,n.isEndLoadingFromJson=null,n.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},n.timerFunc=null,n.timeSpent=0;var i=n;return"undefined"!=typeof document&&(t.stylesManager=new g.a),n.createLocalizableString("title",n,!0),n.createLocalizableString("description",n,!0),n.createLocalizableString("logo",n,!1),n.createLocalizableString("completedHtml",n),n.createLocalizableString("completedBeforeHtml",n),n.createLocalizableString("loadingHtml",n),n.createLocalizableString("startSurveyText",n),n.createLocalizableString("pagePrevText",n),n.createLocalizableString("pageNextText",n),n.createLocalizableString("completeText",n),n.createLocalizableString("previewText",n),n.createLocalizableString("editText",n),n.createLocalizableString("questionTitleTemplate",n,!0),n.textPreProcessor=new u.a,n.textPreProcessor.onProcess=function(e){i.getProcessedTextValue(e)},n.createNewArray("pages",(function(e){i.doOnPageAdded(e)})),n.createNewArray("triggers",(function(e){e.setOwner(i)})),n.createNewArray("calculatedValues",(function(e){e.setOwner(i)})),n.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=i})),n.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=i})),n.registerFunctionOnPropertyValueChanged("firstPageIsStarted",(function(){i.onFirstPageIsStartedChanged()})),n.registerFunctionOnPropertyValueChanged("mode",(function(){i.onModeChanged()})),n.onBeforeCreating(),r&&(("string"==typeof r||r instanceof String)&&(r=JSON.parse(r)),r&&r.clientId&&(n.clientId=r.clientId),n.fromJSON(r),n.surveyId&&n.loadSurveyFromService(n.surveyId,n.clientId)),n.onCreating(),n}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return v.a.commentPrefix},set:function(e){v.a.commentPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageValue",{get:function(){return this.getPropertyValue("currentPageValue",null)},set:function(e){this.setPropertyValue("currentPageValue",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,r){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!0,configurable:!0}),t.prototype.getCss=function(){return this.css},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,s.a.getCss())),this.cssValue},set:function(e){this.mergeValues(e,this.css)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.complete)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.preview)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.prev)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.next)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedCss",{get:function(){var e=this.css;return e.body+" "+e.completedPage},enumerable:!0,configurable:!0}),t.prototype.getNavigationCss=function(e,t){var r="";return e&&(r=e),t&&(r+=" "+t),r},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic",!0)},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError",!0)},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton",!0)},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle",!0)},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles",!0)},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage",!0)},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!0)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl()};this.onNavigateToUrl.fire(this,e),e.url&&window&&window.location&&(window.location.href=e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!0,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){if(this.hideRequiredErrors)for(var r=0;r<t.length;r++)"required"==t[r].getErrorType()&&(t[r].visible=!1);this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength",0)},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength",0)},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].clearIncorrectValues()},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){h.a.currentLocale=e,this.localeValue=h.a.currentLocale,this.setPropertyValue("locale",this.localeValue),this.locStrsChanged(),this.onLocaleChanged(),this.onLocaleChangedEvent.fire(this,e)},enumerable:!0,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var r=h.a.defaultLocale,n=e.indexOf(r);n>-1&&e.splice(n,1),t=e.indexOf("default"),e[t]=r}return e},t.prototype.onLocaleChanged=function(){},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.isStartedState&&this.startedPage&&this.startedPage.locStrsChanged(),this.currentPage&&this.currentPage.locStrsChanged()},t.prototype.getMarkdownHtml=function(e){return this.getSurveyMarkdownHtml(this,e)},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return h.a.getString(e)},t.prototype.getErrorCustomText=function(e,t){var r={text:e,name:t.getErrorType(),error:t};return this.onErrorCustomText.fire(this,r),r.text},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth",300)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight",200)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition","left")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return!!this.logo&&"none"!==this.logoPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.hasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.hasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return this.css.logo+" "+{left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new y.b(e).run(t,r)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new y.a(e).run(t,r)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!0,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t,r))return e[n];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText",this.getLocString("startSurveyText"))},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText",this.getLocString("pagePrevText"))},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText",this.getLocString("pageNextText"))},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText",this.getLocString("completeText"))},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText",this.getLocString("previewText"))},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText",this.getLocString("editText"))},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+r+" "+t}),e.push({value:"numTitle",text:r+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!0,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var r=(e=e.substr(e.indexOf("{")+1)).indexOf("}");if(r<0)break;t.push(e.substr(0,r)),e=e.substr(r+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,r,n){if(t="{"+t+"}",!e||e.indexOf(t)<0)return r;for(var i=e.indexOf(t),o="",a="",s=i-1;s>=0&&"}"!=e[s];s--);for(s<i-1&&(o=e.substr(s+1,i-s-1)),s=i+=t.length;s<e.length&&"{"!=e[s];s++);for(s>i&&(a=e.substr(i,s-i)),s=0;s<o.length&&o.charCodeAt(s)<33;)s++;for(o=o.substr(s),s=a.length-1;s>=0&&a.charCodeAt(s)<33;)s--;return a=a.substr(0,s+1),o||a?o+(r||n)+a:r},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!0,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){this.setPropertyValue("progressBarType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return"top"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return"bottom"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss()},enumerable:!0,configurable:!0}),t.prototype.updateElementCss=function(){for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].updateElementCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!0,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}},Object.defineProperty(t.prototype,"data",{get:function(){var e={};for(var t in this.valuesHash){var r=this.getDataValueCore(this.valuesHash,t);void 0!==r&&(e[t]=r)}return this.setCalcuatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!0,configurable:!0}),t.prototype.mergeData=function(e){e&&this.setDataCore(e)},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},t.prototype.setCalcuatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var r=this.calculatedValues[t];r.includeIntoResult&&r.name&&void 0!==this.getVariable(r.name)&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1});var t=[];return this.getAllQuestions().forEach((function(r){var n=r.getPlainData(e);n&&t.push(n)})),t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];for(var t in this.valuesHash)e[t]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getDataValueCore=function(e,t){return e[t]},t.prototype.setDataValueCore=function(e,t,r){e[t]=r},t.prototype.deleteDataValueCore=function(e,t){delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){var e={};for(var t in this.valuesHash)t.indexOf(this.commentPrefix)>0&&(e[t]=this.getDataValueCore(this.valuesHash,t));return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.pages[t].isVisible&&e.push(this.pages[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null;return e&&e.onFirstRendering(),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.onContainsPageCallback&&this.onContainsPageCallback(this.currentPageValue)||(this.currentPage=null)),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){var t=this.getPageByObject(e);if(!e||t){var r=this.visiblePages;if(!(null!=t&&r.indexOf(t)<0)&&t!=this.currentPageValue){var n=this.currentPageValue;this.currentPageChanging(t,n)&&(t&&t.onFirstRendering(),this.currentPageValue=t,t&&(t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,n))}}},enumerable:!0,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.currentPage;e&&(e.scrollToTop(),e.focusFirstQuestion())},t.prototype.scrollToTopOnPageChange=function(){var e=this.currentPage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!0,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.timeSpent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1);this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){if(t&&e)for(var r in e){var n=e[r];n&&"object"==typeof n?(t[r]||(t[r]={}),this.mergeValues(n,t[r])):t[r]=n}},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,r=0;r<t.length;r++)t[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var r={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)};return this.onCurrentPageChanging.fire(this,r),r.allowChanging},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)})},t.prototype.isNextPage=function(e,t){return!(!e||!t)&&e.visibleIndex==t.visibleIndex+1},t.prototype.isPrevPage=function(e,t){return!(!e||!t)&&e.visibleIndex+1==t.visibleIndex},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("questions"===this.progressBarType){var e=(t=this.getQuestionsWithInput()).reduce((function(e,t){return e+(t.isEmpty()?0:1)}),0);return Math.ceil(100*e/t.length)}if("correctQuestions"===this.progressBarType){var t=this.getQuestionsWithInput(),r=this.getCorrectedAnswerCount();return Math.ceil(100*r/t.length)}var n=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*n/this.visiblePageCount)},t.prototype.getQuestionsWithInput=function(){for(var e=this.getAllQuestions(),t=new Array,r=0;r<e.length;r++)e[r].hasInput&&t.push(e[r]);return t},Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.isEditMode&&(!this.isShowPreviewBeforeComplete||"preview"==this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!0,configurable:!0}),t.prototype.setDesignMode=function(e){this._isDesignMode=e,this.onQuestionsOnPageModeChanged("standard")},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!0,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!0,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){if(this.ignoreValidation||!this.isEditMode)return!1;if("onComplete"==this.checkErrorsMode){if(!this.isLastPage)return!1;if(this.hasErrors(!0,!0))return!0}else if(this.isCurrentPageHasErrors)return!0;return this.checkForAsyncQuestionValidation(e)},t.prototype.checkForAsyncQuestionValidation=function(e){var t=this;this.clearAsyncValidationQuesitons();for(var r=this.currentPage.questions,n=0;n<r.length;n++)r[n].isRunningValidators&&(r[n].onCompletedAsyncValidators=function(r){t.onCompletedAsyncQuestionValidators(e,r)},this.asyncValidationQuesitons.push(r[n]));return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t){if(t)this.clearAsyncValidationQuesitons();else{for(var r=this.asyncValidationQuesitons,n=0;n<r.length;n++)if(r[n].isRunningValidators)return;this.doCurrentPageCompleteCore(e)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);for(var r=this.visiblePages,n=null,i=!1,o=0;o<r.length;o++)r[o].hasErrors(e,t)&&(n||(n=r[o]),i=!0);return t&&n&&(this.currentPage=n),i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,r=0;r<t.length;r++)this.ensureUniqueNames(t[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var r=t(e.name);if(r&&r!=e){for(var n=this.getNewName(e.name);t(n);)n=this.getNewName(e.name);e.name=n}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var r=e.substr(0,t),n=0;return t<e.length&&(n=parseInt(e.substr(t))),r+ ++n},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.currentPage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var r=e.hasErrors(!0,t);return this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,r=new Array,n=new Array,i=0;i<t.length;i++){var o=t[i];if(o.errors.length>0){r.push(o);for(var a=0;a<o.errors.length;a++)n.push(o.errors[a])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:n,page:e})}},t.prototype.prevPage=function(){if(this.isFirstPage)return!1;this.resetNavigationButton();var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t-1]},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(!0)&&(this.isShowingPreview=!0,!0)},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,i.a.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){var t=this.getVisiblePageIndexByRootPanel(e);this.cancelPreview(t>-1?t:void 0)},t.prototype.getVisiblePageIndexByRootPanel=function(e){if(!e)return-1;for(var t=this.getAllPanels(),r=0,n=0;n<t.length;n++)if(t[n].parent===this.currentPageValue){if(t[n]==e)return r;r++}return-1},t.prototype.doCurrentPageComplete=function(e){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation()&&(e?this.doComplete():this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode","standard")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!0,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete","noPreview")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!0,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=null),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=null):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var r=this.firstPageIsStarted?1:0;e.prototype.startLoadingFromJson.call(this);var n=this.createPagesForQuestionOnPageMode(t,r),i=this.pages.length-r;this.pages.splice(r,i);for(var o=0;o<n.length;o++)this.pages.push(n[o]);for(e.prototype.endLoadingFromJson.call(this),o=0;o<n.length;o++)n[o].endLoadingFromJson(),n[o].setSurveyImpl(this);this.doElementsOnLoad()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],i=o.k.createClass("panel");t.addPanel(i);var a=(new o.g).toJsonObject(n);(new o.g).toObject(a,i),this.showPageTitles||(i.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],r=e;r<this.pages.length;r++){var n=this.pages[r];n.setWasShown(!0);for(var i=0;i<n.elements.length;i++){var a=n.elements[i],s=o.k.createClass(a.getType());if(s){var l=new o.g;l.lightSerializing=!0;var u=l.toJsonObject(n),c=o.k.createClass(n.getType());c.fromJSON(u),c.name="page"+(t.length+1),c.setSurveyImpl(this),t.push(c);var p=(new o.g).toJsonObject(a);(new o.g).toObject(p,s),c.addElement(s)}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!0,configurable:!0}),t.prototype.doComplete=function(e){void 0===e&&(e=!1);var t={allowComplete:!0,isCompleteOnTrigger:e};if(this.onCompleting.fire(this,t),t.allowComplete){var r=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var n=this,i=!1,o={isCompleteOnTrigger:e,showDataSaving:function(e){i=!0,n.setCompletedState("saving",e)},showDataSavingError:function(e){n.setCompletedState("error",e)},showDataSavingSuccess:function(e){n.setCompletedState("success",e),n.navigateTo()},showDataSavingClear:function(e){n.setCompletedState("","")}};this.onComplete.fire(this,o),!r&&this.surveyPostId&&this.sendResult(),i||this.navigateTo()}},t.prototype.start=function(){return!!this.firstPageIsStarted&&!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!0,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(){if(!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;for(var e=this,t={data:{},errors:{},survey:this,complete:function(){e.completeServerValidation(t)}},r=0;r<this.currentPage.questions.length;r++){var n=this.currentPage.questions[r];if(n.visible){var i=this.getValue(n.getValueName());this.isValueEmpty(i)||(t.data[n.getValueName()]=i)}}return this.setIsValidatingOnServer(!0),"function"==typeof this.onServerValidateQuestions?this.onServerValidateQuestions(this,t):this.onServerValidateQuestions.fire(this,t),!0},t.prototype.completeServerValidation=function(e){if(this.setIsValidatingOnServer(!1),e||e.survey){var t=e.survey,r=!1;if(e.errors)for(var n in e.errors){var i=t.getQuestionByName(n);i&&i.errors&&(r=!0,i.addError(new d.a(e.errors[n],this)))}r||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete(!0);else{this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0);var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){if(null==this.currentPage)return"";if("questions"===this.progressBarType){var e=(t=this.getQuestionsWithInput()).reduce((function(e,t){return e+(t.isEmpty()?0:1)}),0);return this.getLocString("questionsProgressText").format(e,t.length)}if("correctQuestions"===this.progressBarType){var t=this.getQuestionsWithInput(),r=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText").format(r,t.length)}var n=this.visiblePages,i=n.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(i,n.length)},enumerable:!0,configurable:!0}),t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.currentPage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId;if(r&&t.id!==r&&"undefined"!=typeof document){var n=document.getElementById(r);n&&(t=n)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,r){var n=this.getQuestionsByValueNameCore(e);if(n){for(var i=0;i<n.length;i++){var o=n[i].getQuestionFromArray(t,r);if(o)return o}return null}},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixAllowRemoveRow=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,n),n.allow},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new d.a(t.error,this):null},t.prototype.dynamicPanelAdded=function(e){this.onDynamicPanelAdded.fire(this,{question:e})},t.prototype.dynamicPanelRemoved=function(e,t,r){for(var n=r?r.questions:[],i=0;i<n.length;i++)n[i].clearOnDeletingContainer();this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:r})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.scrollElementToTop=function(e,t,r,n){var i={element:e,question:t,page:r,elementId:n,cancel:!1};this.onScrollingElementToTop.fire(this,i),i.cancel||a.d.ScrollElementToTop(i.elementId)},t.prototype.uploadFiles=function(e,t,r,n){this.onUploadFiles.isEmpty?n("error",r):this.onUploadFiles.fire(this,{question:e,name:t,files:r||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(t,r,n)},t.prototype.downloadFile=function(e,t,r){this.onDownloadFile.isEmpty&&r&&r("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:r})},t.prototype.clearFiles=function(e,t,r,n,i){this.onClearFiles.isEmpty&&i&&i("success",r),this.onClearFiles.fire(this,{question:e,name:t,value:r,fileName:n,callback:i})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.createSurveyService=function(){return new p.a},t.prototype.uploadFilesCore=function(e,t,r){var n=this,i=[];t.forEach((function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,(function(n,o){n?(i.push({content:o,file:e}),i.length===t.length&&r&&r("success",i)):r&&r("error",{response:o,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e){null!=e&&(this.pages.push(e),this.updateVisibleIndexes())},t.prototype.addNewPage=function(e){void 0===e&&(e=null);var t=this.createNewPage(e);return this.addPage(t),t},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null),this.updateVisibleIndexes())},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var r=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return r?r[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getQuestionsByValueNameCore(e,t);return r?r[0]:null},t.prototype.getQuestionsByValueNameCore=function(e,t){void 0===t&&(t=!1);var r=(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e];return r||null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var i=this.getQuestionByName(e[n],t);i&&r.push(i)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0;t<this.pages.length;t++)if(this.pages[t].isVisible)for(var r=this.pages[t].questions,n=0;n<r.length;n++){var i=r[n];i.quizQuestionCount>0&&e.push(i)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var i=r[n].name;if(t&&(i=i.toLowerCase()),i==e)return r[n]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){return new l.a(e)},t.prototype.questionOnValueChanging=function(e,t){if(this.onValueChanging.isEmpty)return t;var r={name:e,question:this.getQuestionByValueName(e),value:t,oldValue:this.getValue(e)};return this.onValueChanging.fire(this,r),r.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueNameCore(e);if(r)for(var n=0;n<r.length;n++)this.isTwoValueEquals(r[n].value,t)||r[n].updateValueFromSurvey(t)}},t.prototype.checkQuestionErrorOnValueChanged=function(e){if(!this.isNavigationButtonPressed&&("onValueChanged"==this.checkErrorsMode||e.errors.length>0)){var t=e.errors.length;e.hasErrors(!0,{isOnValueChanged:!0}),e.page&&(t>0||e.errors.length>0)&&this.fireValidatedErrorsOnPage(e.page)}},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueNameCore(e);if(r)for(var n=0;n<r.length;n++){var i=r[n];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.notifyElementsOnAnyValueOrVariableChanged(e)}},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var r=e[t],n=r.getValueName();r.updateValueFromSurvey(this.getValue(n)),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(n))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(!0),t={},r=0;r<e.length;r++){var n=e[r].getValueName();t[n]=this.getValue(n)}this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],r=this.currentPage;if(!r)return t;for(var n=0;n<r.questions.length;n++){var i=r.questions[n];(e||i.visible)&&i.name&&t.push(i)}return t},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length&&!this.isTriggerIsRunning){this.isTriggerIsRunning=!0;for(var r=this.getFilteredValues(),n=this.getFilteredProperties(),i=0;i<this.triggers.length;i++){var o=this.triggers[i];o.isOnNextPage==t&&o.checkExpression(e,r,n)}this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!0,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPageValue);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.a.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(e){for(var t=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);for(r=0;r<t.length;r++)t[r].runCondition(this.conditionValues,e)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPageValue);if(!(t<=e+1))for(var r=e+1;r<t;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}},t.prototype.sendResult=function(e,t,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!r||this.clientId))){var n=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,r){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error","")),n.onSendResult.fire(n,{success:e,response:t,request:r})}),this.clientId,r)}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,(function(e,t,n,i){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:i})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,n,i){r.isLoading=!1,e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,n){r.isLoading=!1,e&&r.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var r="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)r+=this.pages[t].setVisibleIndex(r)}},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,r=0;r<this.pages.length;r++){var n=this.pages[r].isVisible;this.pages[r].visibleIndex=n?t++:-1,this.pages[r].num=e&&n?this.pages[r].visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new o.g;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.isStartedState=this.firstPageIsStarted,this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t))if("pageno"!==t){if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:h.a.defaultLocale);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestionCount());var r=(new c.a).getFirstName(t,this.data),n=this.getVariable(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);r&&(r=r.toLowerCase());var i=this.getQuestionByValueName(r,!0);if(i){e.isExists=!0,t=(t=i.getValueName()+t.substr(r.length)).toLocaleLowerCase();var o={};return o[r]=e.returnDisplayValue?i.getDisplayValue(!1,void 0):i.value,void(e.value=(new c.a).getValue(t,o))}var a=this.getValue(e.name);void 0!==a&&(e.isExists=!0,e.value=a)}else{e.isExists=!0;var s=this.currentPage;e.value=null!=s?this.visiblePages.indexOf(s)+1:0}},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueNameCore(e);if(!t)return!1;for(var r=0;r<t.length;r++)if(t[r].isVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueNameCore(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return i.a.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.a).hasValue(e,this.variablesHash)?(new c.a).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t))},t.prototype.getUnbindValue=function(e){return i.a.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!0);var i=t;if(n&&(i=this.questionOnValueChanging(e,t)),!(this.isValueEqual(e,i)&&this.isTwoValueEquals(i,t)||(this.isValueEmpty(i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),this.updateQuestionValue(e,i),!0===r))){var o={};o[e]=i,this.checkTriggers(o,!1),this.runConditionOnValueChanged(e,i),n&&this.notifyQuestionOnValueChanged(e,i),"text"!==r&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var r=this.getValue(e);return""!==r&&void 0!==r||(r=null),null===t||null===r?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e);var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var i=1;r[t+i];)i++;return t+i},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(!t.hasErrors(!1)||t.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(t)<0)){for(var n=0;n<r.length;n++)if(r[n].hasInput&&r[n].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&this.completeLastPage():this.nextPage())}}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t,r){if(void 0===r&&(r=!1),t||(t=""),!i.a.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentPrefix;i.a.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var o=this.getQuestionsByValueNameCore(e);if(o)for(var a=0;a<o.length;a++)o[a].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[a]);"text"!==r&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:n,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!0,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t}),e&&!e.visible&&"onHidden"==this.clearInvisibleValues&&e.clearValue()},t.prototype.pageVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t})},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name})},t.prototype.questionRenamed=function(e,t,r){this.questionHashesRemoved(e,t,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,r=0;r<t.length;r++)this.questionHashesAdded(t[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,r){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,r){var n;(n=e[r])?(n=e[r]).indexOf(t)<0&&n.push(t):e[r]=[t]},t.prototype.questionHashRemovedCore=function(e,t,r){var n=e[r];if(n){var i=n.indexOf(t);i>-1&&n.splice(i,1),0==n.length&&delete e[r]}},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name})},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new d.a(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new d.a(t.error,this):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,r){var n={text:this.processTextCore(e,t,r),hasAllValuesOnLastRun:!0};return n.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,n},t.prototype.processTextCore=function(e,t,r){return void 0===r&&(r=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,r)},t.prototype.getSurveyMarkdownHtml=function(e,t){var r={element:e,text:t,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)t+=e[r].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),r=0,n={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},i=0;i<t.length;i++){var o=t[i],a=o.quizQuestionCount;if(n.question=o,n.correctAnswers=o.correctAnswerCount,n.incorrectAnswers=a-n.correctAnswers,n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),e){if(n.result||n.correctAnswers<a){var s=n.correctAnswers;0==s&&n.result&&(s=1),r+=s}}else(!n.result||n.incorrectAnswers<a)&&(r+=n.incorrectAnswers)}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel","none")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode","all")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.a(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!0,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=this.getPageMaxTimeToFinish(e),i=this.getDisplayTime(n),o=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,i):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(r,o):"all"==this.showTimerPanelMode?n<=0&&this.maxTimeToFinish<=0?this.getLocString("timerSpentAll").format(t,r):n>0&&this.maxTimeToFinish>0?this.getLocString("timerLimitAll").format(t,i,r,o):this.getTimerInfoPageText(e,t,i)+" "+this.getTimerInfoSurveyText(r,o):""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,r):this.getLocString("timerSpentPage").format(t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return t>0&&(n+=t+" "+this.getLocString("timerMin")),n&&0==r?n:(n&&(n+=" "),n+r+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,m.a.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,m.a.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!0,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.timeSpent=this.timeSpent+1,this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){if(e)if(r)this.setVariable(e,t);else{var n=new c.a,i=n.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getValue(i))return;var o=this.getUnbindValue(this.getFilteredValues());n.setValue(o,e,t),this.setValue(i,o[i])}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var r=(new c.a).getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.focusQuestion=function(e){var t=this.getQuestionByName(e,!0);return!!(t&&t.isVisible&&t.page)&&(this.currentPage=t.page,setTimeout((function(){t.focus()})),!0)},t.prototype.dispose=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].dispose();this.pages.splice(0,this.pages.length)},t.stylesManager=null,t.platform="unknown",t}(a.a);o.k.addClass("survey",[{name:"locale",choices:function(){return h.a.getLocales()},onGetValue:function(e){return e.locale==h.a.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth:number",default:300,minValue:0},{name:"logoHeight:number",default:200,minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","correctQuestions"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]}])},function(e,t,r){"use strict";var n=r(5);r.d(t,"a",(function(){return a}));var i=function(e){return window.setTimeout(e,1e3)},o=function(e){window.clearTimeout(e)},a=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.b}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!0,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=i((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=i((function(){e.doTimer()})))},e.instanceValue=null,e}()},function(e,t,r){"use strict";var n=r(6);function i(e){return n.a&&n.a.confirmActionFunc?n.a.confirmActionFunc(e):confirm(e)}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";r(45),r(46),r(47),r(48),r(49),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(69),r(70),r(71),r(72),r(73),r(75),r(77),r(79),r(78),r(80),r(76),r(74)},function(e,t,r){"use strict";var n=r(38),i=(r.n(n),r(39)),o=(r.n(i),r(6));r.d(t,"b",(function(){return o.a}));var a=r(3);r.d(t,"c",(function(){return a.a}));var s=r(20);r.d(t,"d",(function(){return s.a})),r.d(t,"e",(function(){return s.b})),r.d(t,"f",(function(){return s.c})),r.d(t,"g",(function(){return s.d})),r.d(t,"h",(function(){return s.e})),r.d(t,"i",(function(){return s.f})),r.d(t,"j",(function(){return s.g})),r.d(t,"k",(function(){return s.h})),r.d(t,"l",(function(){return s.i}));var l=r(10);r.d(t,"m",(function(){return l.a}));var u=r(5);r.d(t,"n",(function(){return u.a})),r.d(t,"o",(function(){return u.b})),r.d(t,"p",(function(){return u.c})),r.d(t,"q",(function(){return u.d}));var c=r(41);r.d(t,"r",(function(){return c.a}));var p=r(9);r.d(t,"s",(function(){return p.a})),r.d(t,"t",(function(){return p.b})),r.d(t,"u",(function(){return p.c})),r.d(t,"v",(function(){return p.d})),r.d(t,"w",(function(){return p.e}));var h=r(12);r.d(t,"x",(function(){return h.a}));var d=r(42);r.d(t,"y",(function(){return d.a})),r.d(t,"z",(function(){return d.b}));var f=r(21);r.d(t,"A",(function(){return f.a}));var g=r(17);r.d(t,"B",(function(){return g.a})),r.d(t,"C",(function(){return g.b}));var m=r(8);r.d(t,"D",(function(){return m.a})),r.d(t,"E",(function(){return m.b}));var y=r(16);r.d(t,"F",(function(){return y.a})),r.d(t,"G",(function(){return y.b})),r.d(t,"H",(function(){return y.c})),r.d(t,"I",(function(){return y.d})),r.d(t,"J",(function(){return y.e})),r.d(t,"K",(function(){return y.f}));var v=r(22);r.d(t,"L",(function(){return v.a}));var b=r(11);r.d(t,"M",(function(){return b.a}));var C=r(2);r.d(t,"N",(function(){return C.a})),r.d(t,"O",(function(){return C.b})),r.d(t,"P",(function(){return C.c})),r.d(t,"Q",(function(){return C.d})),r.d(t,"R",(function(){return C.e})),r.d(t,"S",(function(){return C.f})),r.d(t,"T",(function(){return C.g})),r.d(t,"U",(function(){return C.h})),r.d(t,"V",(function(){return C.i})),r.d(t,"W",(function(){return C.j})),r.d(t,"X",(function(){return C.k}));var P=r(18);r.d(t,"Y",(function(){return P.a})),r.d(t,"Z",(function(){return P.b})),r.d(t,"_0",(function(){return P.c})),r.d(t,"_1",(function(){return P.d})),r.d(t,"_2",(function(){return P.e}));var x=r(91);r.d(t,"_3",(function(){return x.a})),r.d(t,"_4",(function(){return x.b}));var w=r(92);r.d(t,"_5",(function(){return w.a})),r.d(t,"_6",(function(){return w.b}));var V=r(90);r.d(t,"_7",(function(){return V.a})),r.d(t,"_8",(function(){return V.b})),r.d(t,"_9",(function(){return V.c}));var T=r(93);r.d(t,"_10",(function(){return T.a})),r.d(t,"_11",(function(){return T.b}));var S=r(14);r.d(t,"_12",(function(){return S.a})),r.d(t,"_13",(function(){return S.b})),r.d(t,"_14",(function(){return S.c}));var O=r(44);r.d(t,"_15",(function(){return O.a}));var R=r(27);r.d(t,"_16",(function(){return R.a}));var E=r(7);r.d(t,"_17",(function(){return E.a}));var _=r(19);r.d(t,"_18",(function(){return _.a}));var k=r(85);r.d(t,"_19",(function(){return k.a}));var I=r(13);r.d(t,"_20",(function(){return I.a})),r.d(t,"_21",(function(){return I.b}));var L=r(82);r.d(t,"_22",(function(){return L.a}));var A=r(83);r.d(t,"_23",(function(){return A.a}));var N=r(29);r.d(t,"_24",(function(){return N.a}));var D=r(4);r.d(t,"_25",(function(){return D.a})),r.d(t,"_26",(function(){return D.b}));var j=r(86);r.d(t,"_27",(function(){return j.a}));var q=r(87);r.d(t,"_28",(function(){return q.a}));var F=r(95);r.d(t,"_29",(function(){return F.a}));var M=r(96);r.d(t,"_30",(function(){return M.a}));var z=r(30);r.d(t,"_31",(function(){return z.a}));var B=r(31);r.d(t,"_32",(function(){return B.a}));var Q=r(81);r.d(t,"_33",(function(){return Q.a}));var H=r(89);r.d(t,"_34",(function(){return H.a}));var U=r(88);r.d(t,"_35",(function(){return U.a}));var $=r(97);r.d(t,"_36",(function(){return $.a}));var J=r(94);r.d(t,"_37",(function(){return J.a})),r.d(t,"_38",(function(){return J.b}));var W=r(34);r.d(t,"_39",(function(){return W.a}));var G=r(33);r.d(t,"_40",(function(){return G.a}));var K=r(99);r.d(t,"_41",(function(){return K.a})),r.d(t,"_42",(function(){return K.b})),r.d(t,"_43",(function(){return K.c})),r.d(t,"_44",(function(){return K.d})),r.d(t,"_45",(function(){return K.e})),r.d(t,"_46",(function(){return K.f})),r.d(t,"_47",(function(){return K.g}));var X=r(98);r.d(t,"_48",(function(){return X.a}));var Z=r(15);r.d(t,"_49",(function(){return Z.a}));var Y=r(24);r.d(t,"_50",(function(){return Y.a}));var ee=r(25);r.d(t,"_51",(function(){return ee.a}));var te=r(0);r.d(t,"_52",(function(){return te.a})),r.d(t,"_53",(function(){return te.b}));var re=r(28);r.d(t,"_54",(function(){return re.a})),r.d(t,"_55",(function(){return re.b}));var ne=r(84);r.d(t,"_56",(function(){return ne.a})),r.d(t,"_57",(function(){return ne.b})),r.d(t,"_58",(function(){return ne.c})),r.d(t,"_59",(function(){return ne.d}));var ie,oe=r(32);r.d(t,"_60",(function(){return oe.a})),r.d(t,"a",(function(){return ie})),ie="1.7.26"},function(e,t){},function(e,t){},function(e,t,r){"use strict";
|
|
13
|
-
/*!
|
|
14
|
-
* Signature Pad v2.3.2
|
|
15
|
-
* https://github.com/szimek/signature_pad
|
|
16
|
-
*
|
|
17
|
-
* Copyright 2017 Szymon Nowak
|
|
18
|
-
* Released under the MIT license
|
|
19
|
-
*
|
|
20
|
-
* The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
|
|
21
|
-
* http://corner.squareup.com/2012/07/smoother-signatures.html
|
|
22
|
-
*
|
|
23
|
-
* Implementation of interpolation using cubic Bézier curves is taken from:
|
|
24
|
-
* http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
|
|
25
|
-
*
|
|
26
|
-
* Algorithm for approximated length of a Bézier curve is taken from:
|
|
27
|
-
* http://www.lemoda.net/maths/bezier-length/index.html
|
|
28
|
-
*
|
|
29
|
-
*/function n(e,t,r){this.x=e,this.y=t,this.time=r||(new Date).getTime()}function i(e,t,r,n){this.startPoint=e,this.control1=t,this.control2=r,this.endPoint=n}function o(e,t){var r=this,n=t||{};this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle="throttle"in n?n.throttle:16,this.minDistance="minDistance"in n?n.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,r){var n,i,o,a=null,s=0;r||(r={});var l=function(){s=!1===r.leading?0:Date.now(),a=null,o=e.apply(n,i),a||(n=i=null)};return function(){var u=Date.now();s||!1!==r.leading||(s=u);var c=t-(u-s);return n=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(n,i),a||(n=i=null)):a||!1===r.trailing||(a=setTimeout(l,c)),o}}(o.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=o.prototype._strokeUpdate,this.dotSize=n.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.onBegin=n.onBegin,this.onEnd=n.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(r._mouseButtonDown=!0,r._strokeBegin(e))},this._handleMouseMove=function(e){r._mouseButtonDown&&r._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&r._mouseButtonDown&&(r._mouseButtonDown=!1,r._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];r._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];r._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===r._canvas&&(e.preventDefault(),r._strokeEnd(e))},this.on()}n.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},n.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},n.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},i.prototype.length=function(){for(var e=0,t=void 0,r=void 0,n=0;n<=10;n+=1){var i=n/10,o=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){var s=o-t,l=a-r;e+=Math.sqrt(s*s+l*l)}t=o,r=a}return e},i.prototype._point=function(e,t,r,n,i){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*n*(1-e)*e*e+i*e*e*e},o.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},o.prototype.fromDataURL=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Image,i=r.ratio||window.devicePixelRatio||1,o=r.width||this._canvas.width/i,a=r.height||this._canvas.height/i;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,o,a)},this._isEmpty=!1},o.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return(t=this._canvas).toDataURL.apply(t,[e].concat(n))}},o.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},o.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},o.prototype.isEmpty=function(){return this._isEmpty},o.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},o.prototype._strokeUpdate=function(e){var t=e.clientX,r=e.clientY,n=this._createPoint(t,r),i=this._data[this._data.length-1],o=i&&i[i.length-1],a=o&&n.distanceTo(o)<this.minDistance;if(!o||!a){var s=this._addPoint(n),l=s.curve,u=s.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:n.x,y:n.y,time:n.time,color:this.penColor})}},o.prototype._strokeEnd=function(e){var t=this.points.length>2,r=this.points[0];if(!t&&r&&this._drawDot(r),r){var n=this._data[this._data.length-1],i=n[n.length-1];r.equals(i)||n.push({x:r.x,y:r.y,time:r.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},o.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},o.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},o.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},o.prototype._createPoint=function(e,t,r){var i=this._canvas.getBoundingClientRect();return new n(e-i.left,t-i.top,r||(new Date).getTime())},o.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var r=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,n=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,o=new i(t[1],r,n,t[2]),a=this._calculateCurveWidths(o);return t.shift(),{curve:o,widths:a}}return{}},o.prototype._calculateCurveControlPoints=function(e,t,r){var i=e.x-t.x,o=e.y-t.y,a=t.x-r.x,s=t.y-r.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+r.x)/2,p=(t.y+r.y)/2,h=Math.sqrt(i*i+o*o),d=Math.sqrt(a*a+s*s),f=d/(h+d),g=c+(l-c)*f,m=p+(u-p)*f,y=t.x-g,v=t.y-m;return{c1:new n(l+y,u+v),c2:new n(c+y,p+v)}},o.prototype._calculateCurveWidths=function(e){var t=e.startPoint,r=e.endPoint,n={start:null,end:null},i=this.velocityFilterWeight*r.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(i);return n.start=this._lastWidth,n.end=o,this._lastVelocity=i,this._lastWidth=o,n},o.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},o.prototype._drawPoint=function(e,t,r){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1},o.prototype._drawCurve=function(e,t,r){var n=this._ctx,i=r-t,o=Math.floor(e.length());n.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,p=c*c,h=p*c,d=h*e.startPoint.x;d+=3*p*s*e.control1.x,d+=3*c*l*e.control2.x,d+=u*e.endPoint.x;var f=h*e.startPoint.y;f+=3*p*s*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var g=t+u*i;this._drawPoint(d,f,g)}n.closePath(),n.fill()},o.prototype._drawDot=function(e){var t=this._ctx,r="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,r),t.closePath(),t.fill()},o.prototype._fromData=function(e,t,r){for(var i=0;i<e.length;i+=1){var o=e[i];if(o.length>1)for(var a=0;a<o.length;a+=1){var s=o[a],l=new n(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(l);else if(a!==o.length-1){var c=this._addPoint(l),p=c.curve,h=c.widths;p&&h&&t(p,h,u)}}else this._reset(),r(o[0])}},o.prototype._toSVG=function(){var e=this,t=this._data,r=this._canvas,n=Math.max(window.devicePixelRatio||1,1),i=r.width/n,o=r.height/n,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",r.width),a.setAttributeNS(null,"height",r.height),this._fromData(t,(function(e,t,r){var n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var i="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);n.setAttribute("d",i),n.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),n.setAttribute("stroke",r),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),a.appendChild(n)}}),(function(t){var r=document.createElement("circle"),n="function"==typeof e.dotSize?e.dotSize():e.dotSize;r.setAttribute("r",n),r.setAttribute("cx",t.x),r.setAttribute("cy",t.y),r.setAttribute("fill",t.color),a.appendChild(r)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+i+" "+o+'" width="'+i+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},o.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,r){return t._drawCurve(e,r.start,r.end)}),(function(e){return t._drawDot(e)})),this._data=e},o.prototype.toData=function(){return this._data},t.a=o},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(5),a=r(8),s=r(2);r.d(t,"a",(function(){return l}));var l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.expressionIsRunning=!1,n.isCalculated=!1,t&&(n.name=t),r&&(n.expression=r),n}return r.i(n.b)(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!0,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,r){this.isCalculated||(this.runExpressionCore(e,t,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!0,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,r){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,r),this.expressionRunner.run(t,r))},t.prototype.runDependentExpressions=function(e,t,r){var n=this.expressionRunner.getVariables();if(n)for(var i=0;i<e.length;i++){var o=e[i];o===this||n.indexOf(o.name)<0||(o.doCalculation(e,t,r),t[o.name]=o.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new a.b(this.expression),this.expressionRunner.onRunComplete=function(e){i.a.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(o.a);s.k.addClass("calculatedvalue",["!name","expression:expression","includeIntoResult:boolean"],(function(){return new l}),"base")},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(5),a=r(8);r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return u}));var s=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.createLocalizableString("html",r),r.expression=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new a.a(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(o.a),l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("html",n),n.html=r,n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),t}(s),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("url",n),n.url=r,n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!0,configurable:!0}),t}(s);i.k.addClass("expressionitem",["expression:condition"],(function(){return new s}),"base"),i.k.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l}),"expressionitem"),i.k.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new u}),"expressionitem")},function(e,t,r){"use strict";var n=r(1),i=r(16);r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var o=function(e){function t(r,n,i,o){var a=e.call(this)||this;return a.message=r,a.expected=n,a.found=i,a.location=o,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return r.i(n.b)(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((a=t)?'"'+n(a)+'"':"end of input")+" found.";var a},t}(Error),a=function(e,t){t=void 0!==t?t:{};var r,n={},a={Expression:Me},s=Me,l=function(e,t){return ct(e,t,!0)},u=Le("||",!1),c=Le("or",!0),p=Le("&&",!1),h=Le("and",!0),d=function(e,t){return ct(e,t)},f=Le("<=",!1),g=Le("lessorequal",!0),m=Le(">=",!1),y=Le("greaterorequal",!0),v=Le("=",!1),b=Le("equal",!0),C=Le("!=",!1),P=Le("notequal",!0),x=Le("<",!1),w=Le("less",!0),V=Le(">",!1),T=Le("greater",!0),S=Le("+",!1),O=Le("-",!1),R=Le("*",!1),E=Le("/",!1),_=Le("%",!1),k=Le("^",!1),I=Le("power",!0),L=Le("*=",!1),A=Le("contains",!0),N=Le("contain",!0),D=Le("notcontains",!0),j=Le("notcontain",!0),q=Le("anyof",!0),F=Le("allof",!0),M=Le("(",!1),z=Le(")",!1),B=Le("!",!1),Q=Le("negate",!0),H=Le("empty",!0),U=Le("notempty",!0),$=Le("undefined",!1),J=Le("null",!1),W=Le("{",!1),G=Le("}",!1),K=Le("'",!1),X=Le('"',!1),Z=Le("[",!1),Y=Le("]",!1),ee=Le(",",!1),te=Le("true",!0),re=Le("false",!0),ne=Le("0x",!1),ie=/^[\-]/,oe=Ae(["-"],!1,!1),ae=Le(".",!1),se=Le("0",!1),le=function(e){return e.join("")},ue=Le("\\'",!1),ce=Le('\\"',!1),pe=/^[^"'{}]/,he=Ae(['"',"'","{","}"],!0,!1),de=function(){return Ie()},fe=/^[^{}]/,ge=Ae(["{","}"],!0,!1),me=/^[0-9]/,ye=Ae([["0","9"]],!1,!1),ve=/^[1-9]/,be=Ae([["1","9"]],!1,!1),Ce=/^[a-zA-Z]/,Pe=Ae([["a","z"],["A","Z"]],!1,!1),xe=Ne("whitespace"),we=/^[ \t\n\r]/,Ve=Ae([" ","\t","\n","\r"],!1,!1),Te=0,Se=0,Oe=[{line:1,column:1}],Re=0,Ee=[],_e=0,ke={};if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=a[t.startRule]}function Ie(){return e.substring(Se,Te)}function Le(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ae(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ne(e){return{type:"other",description:e}}function De(t){var r,n=Oe[t];if(n)return n;for(r=t-1;!Oe[r];)r--;for(n={line:(n=Oe[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Oe[t]=n,n}function je(e,t){var r=De(e),n=De(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function qe(e){Te<Re||(Te>Re&&(Re=Te,Ee=[]),Ee.push(e))}function Fe(e,t,r){return new o(o.buildMessage(e,t),e,t,r)}function Me(){var e,t,r,i,o,a,s,u,c=34*Te+0,p=ke[c];if(p)return Te=p.nextPos,p.result;if(e=Te,ut()!==n)if((t=Be())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=ze())!==n&&(s=ut())!==n&&(u=Be())!==n?i=o=[o,a,s,u]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=ze())!==n&&(s=ut())!==n&&(u=Be())!==n?i=o=[o,a,s,u]:(Te=i,i=n);r!==n&&(i=ut())!==n?(Se=e,e=l(t,r)):(Te=e,e=n)}else Te=e,e=n;else Te=e,e=n;return ke[c]={nextPos:Te,result:e},e}function ze(){var t,r,i=34*Te+1,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"||"===e.substr(Te,2)?(r="||",Te+=2):(r=n,0===_e&&qe(u)),r===n&&("or"===e.substr(Te,2).toLowerCase()?(r=e.substr(Te,2),Te+=2):(r=n,0===_e&&qe(c))),r!==n&&(Se=t,r="or"),t=r,ke[i]={nextPos:Te,result:t},t)}function Be(){var e,t,r,i,o,a,s,u,c=34*Te+2,p=ke[c];if(p)return Te=p.nextPos,p.result;if(e=Te,(t=He())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Qe())!==n&&(s=ut())!==n&&(u=He())!==n?i=o=[o,a,s,u]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Qe())!==n&&(s=ut())!==n&&(u=He())!==n?i=o=[o,a,s,u]:(Te=i,i=n);r!==n?(Se=e,e=t=l(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[c]={nextPos:Te,result:e},e}function Qe(){var t,r,i=34*Te+3,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"&&"===e.substr(Te,2)?(r="&&",Te+=2):(r=n,0===_e&&qe(p)),r===n&&("and"===e.substr(Te,3).toLowerCase()?(r=e.substr(Te,3),Te+=3):(r=n,0===_e&&qe(h))),r!==n&&(Se=t,r="and"),t=r,ke[i]={nextPos:Te,result:t},t)}function He(){var e,t,r,i,o,a,s,l,u=34*Te+4,c=ke[u];if(c)return Te=c.nextPos,c.result;if(e=Te,(t=$e())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Ue())!==n&&(s=ut())!==n&&(l=$e())!==n?i=o=[o,a,s,l]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Ue())!==n&&(s=ut())!==n&&(l=$e())!==n?i=o=[o,a,s,l]:(Te=i,i=n);r!==n?(Se=e,e=t=d(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[u]={nextPos:Te,result:e},e}function Ue(){var t,r,i=34*Te+5,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"<="===e.substr(Te,2)?(r="<=",Te+=2):(r=n,0===_e&&qe(f)),r===n&&("lessorequal"===e.substr(Te,11).toLowerCase()?(r=e.substr(Te,11),Te+=11):(r=n,0===_e&&qe(g))),r!==n&&(Se=t,r="lessorequal"),(t=r)===n&&(t=Te,">="===e.substr(Te,2)?(r=">=",Te+=2):(r=n,0===_e&&qe(m)),r===n&&("greaterorequal"===e.substr(Te,14).toLowerCase()?(r=e.substr(Te,14),Te+=14):(r=n,0===_e&&qe(y))),r!==n&&(Se=t,r="greaterorequal"),(t=r)===n&&(t=Te,61===e.charCodeAt(Te)?(r="=",Te++):(r=n,0===_e&&qe(v)),r===n&&("equal"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(b))),r!==n&&(Se=t,r="equal"),(t=r)===n&&(t=Te,"!="===e.substr(Te,2)?(r="!=",Te+=2):(r=n,0===_e&&qe(C)),r===n&&("notequal"===e.substr(Te,8).toLowerCase()?(r=e.substr(Te,8),Te+=8):(r=n,0===_e&&qe(P))),r!==n&&(Se=t,r="notequal"),(t=r)===n&&(t=Te,60===e.charCodeAt(Te)?(r="<",Te++):(r=n,0===_e&&qe(x)),r===n&&("less"===e.substr(Te,4).toLowerCase()?(r=e.substr(Te,4),Te+=4):(r=n,0===_e&&qe(w))),r!==n&&(Se=t,r="less"),(t=r)===n&&(t=Te,62===e.charCodeAt(Te)?(r=">",Te++):(r=n,0===_e&&qe(V)),r===n&&("greater"===e.substr(Te,7).toLowerCase()?(r=e.substr(Te,7),Te+=7):(r=n,0===_e&&qe(T))),r!==n&&(Se=t,r="greater"),t=r))))),ke[i]={nextPos:Te,result:t},t)}function $e(){var e,t,r,i,o,a,s,u,c=34*Te+6,p=ke[c];if(p)return Te=p.nextPos,p.result;if(e=Te,(t=We())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Je())!==n&&(s=ut())!==n&&(u=We())!==n?i=o=[o,a,s,u]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Je())!==n&&(s=ut())!==n&&(u=We())!==n?i=o=[o,a,s,u]:(Te=i,i=n);r!==n?(Se=e,e=t=l(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[c]={nextPos:Te,result:e},e}function Je(){var t,r,i=34*Te+7,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,43===e.charCodeAt(Te)?(r="+",Te++):(r=n,0===_e&&qe(S)),r!==n&&(Se=t,r="plus"),(t=r)===n&&(t=Te,45===e.charCodeAt(Te)?(r="-",Te++):(r=n,0===_e&&qe(O)),r!==n&&(Se=t,r="minus"),t=r),ke[i]={nextPos:Te,result:t},t)}function We(){var e,t,r,i,o,a,s,u,c=34*Te+8,p=ke[c];if(p)return Te=p.nextPos,p.result;if(e=Te,(t=Ke())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Ge())!==n&&(s=ut())!==n&&(u=Ke())!==n?i=o=[o,a,s,u]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Ge())!==n&&(s=ut())!==n&&(u=Ke())!==n?i=o=[o,a,s,u]:(Te=i,i=n);r!==n?(Se=e,e=t=l(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[c]={nextPos:Te,result:e},e}function Ge(){var t,r,i=34*Te+9,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,42===e.charCodeAt(Te)?(r="*",Te++):(r=n,0===_e&&qe(R)),r!==n&&(Se=t,r="mul"),(t=r)===n&&(t=Te,47===e.charCodeAt(Te)?(r="/",Te++):(r=n,0===_e&&qe(E)),r!==n&&(Se=t,r="div"),(t=r)===n&&(t=Te,37===e.charCodeAt(Te)?(r="%",Te++):(r=n,0===_e&&qe(_)),r!==n&&(Se=t,r="mod"),t=r)),ke[i]={nextPos:Te,result:t},t)}function Ke(){var e,t,r,i,o,a,s,u,c=34*Te+10,p=ke[c];if(p)return Te=p.nextPos,p.result;if(e=Te,(t=Ze())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Xe())!==n&&(s=ut())!==n&&(u=Ze())!==n?i=o=[o,a,s,u]:(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Xe())!==n&&(s=ut())!==n&&(u=Ze())!==n?i=o=[o,a,s,u]:(Te=i,i=n);r!==n?(Se=e,e=t=l(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[c]={nextPos:Te,result:e},e}function Xe(){var t,r,i=34*Te+11,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,94===e.charCodeAt(Te)?(r="^",Te++):(r=n,0===_e&&qe(k)),r===n&&("power"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(I))),r!==n&&(Se=t,r="power"),t=r,ke[i]={nextPos:Te,result:t},t)}function Ze(){var e,t,r,i,o,a,s,l,u=34*Te+12,c=ke[u];if(c)return Te=c.nextPos,c.result;if(e=Te,(t=et())!==n){for(r=[],i=Te,(o=ut())!==n&&(a=Ye())!==n&&(s=ut())!==n?((l=et())===n&&(l=null),l!==n?i=o=[o,a,s,l]:(Te=i,i=n)):(Te=i,i=n);i!==n;)r.push(i),i=Te,(o=ut())!==n&&(a=Ye())!==n&&(s=ut())!==n?((l=et())===n&&(l=null),l!==n?i=o=[o,a,s,l]:(Te=i,i=n)):(Te=i,i=n);r!==n?(Se=e,e=t=d(t,r)):(Te=e,e=n)}else Te=e,e=n;return ke[u]={nextPos:Te,result:e},e}function Ye(){var t,r,i=34*Te+13,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"*="===e.substr(Te,2)?(r="*=",Te+=2):(r=n,0===_e&&qe(L)),r===n&&("contains"===e.substr(Te,8).toLowerCase()?(r=e.substr(Te,8),Te+=8):(r=n,0===_e&&qe(A)),r===n&&("contain"===e.substr(Te,7).toLowerCase()?(r=e.substr(Te,7),Te+=7):(r=n,0===_e&&qe(N)))),r!==n&&(Se=t,r="contains"),(t=r)===n&&(t=Te,"notcontains"===e.substr(Te,11).toLowerCase()?(r=e.substr(Te,11),Te+=11):(r=n,0===_e&&qe(D)),r===n&&("notcontain"===e.substr(Te,10).toLowerCase()?(r=e.substr(Te,10),Te+=10):(r=n,0===_e&&qe(j))),r!==n&&(Se=t,r="notcontains"),(t=r)===n&&(t=Te,"anyof"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(q)),r!==n&&(Se=t,r="anyof"),(t=r)===n&&(t=Te,"allof"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(F)),r!==n&&(Se=t,r="allof"),t=r))),ke[i]={nextPos:Te,result:t},t)}function et(){var t,r,o,a,s=34*Te+14,l=ke[s];return l?(Te=l.nextPos,l.result):(t=Te,40===e.charCodeAt(Te)?(r="(",Te++):(r=n,0===_e&&qe(M)),r!==n&&ut()!==n&&(o=Me())!==n&&ut()!==n?(41===e.charCodeAt(Te)?(a=")",Te++):(a=n,0===_e&&qe(z)),a===n&&(a=null),a!==n?(Se=t,t=r=o):(Te=t,t=n)):(Te=t,t=n),t===n&&(t=function(){var t,r,o,a,s,l=34*Te+15,u=ke[l];return u?(Te=u.nextPos,u.result):(t=Te,(r=at())!==n?(40===e.charCodeAt(Te)?(o="(",Te++):(o=n,0===_e&&qe(M)),o!==n&&(a=rt())!==n?(41===e.charCodeAt(Te)?(s=")",Te++):(s=n,0===_e&&qe(z)),s===n&&(s=null),s!==n?(Se=t,r=function(e,t){return new i.e(e,t)}(r,a),t=r):(Te=t,t=n)):(Te=t,t=n)):(Te=t,t=n),ke[l]={nextPos:Te,result:t},t)}())===n&&(t=function(){var t,r,o,a,s=34*Te+16,l=ke[s];return l?(Te=l.nextPos,l.result):(t=Te,33===e.charCodeAt(Te)?(r="!",Te++):(r=n,0===_e&&qe(B)),r===n&&("negate"===e.substr(Te,6).toLowerCase()?(r=e.substr(Te,6),Te+=6):(r=n,0===_e&&qe(Q))),r!==n&&ut()!==n&&(o=Me())!==n?(Se=t,a=o,r=new i.h(a,"negate"),t=r):(Te=t,t=n),t===n&&(t=Te,(r=tt())!==n&&ut()!==n&&(o=function(){var t,r,i=34*Te+17,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"empty"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(H)),r!==n&&(Se=t,r="empty"),(t=r)===n&&(t=Te,"notempty"===e.substr(Te,8).toLowerCase()?(r=e.substr(Te,8),Te+=8):(r=n,0===_e&&qe(U)),r!==n&&(Se=t,r="notempty"),t=r),ke[i]={nextPos:Te,result:t},t)}())!==n?(Se=t,r=function(e,t){return new i.h(e,t)}(r,o),t=r):(Te=t,t=n)),ke[s]={nextPos:Te,result:t},t)}())===n&&(t=tt())===n&&(t=function(){var t,r,i,o,a=34*Te+20,s=ke[a];return s?(Te=s.nextPos,s.result):(t=Te,91===e.charCodeAt(Te)?(r="[",Te++):(r=n,0===_e&&qe(Z)),r!==n&&(i=rt())!==n?(93===e.charCodeAt(Te)?(o="]",Te++):(o=n,0===_e&&qe(Y)),o!==n?(Se=t,t=r=i):(Te=t,t=n)):(Te=t,t=n),ke[a]={nextPos:Te,result:t},t)}()),ke[s]={nextPos:Te,result:t},t)}function tt(){var t,r,o,a,s,l=34*Te+18,u=ke[l];return u?(Te=u.nextPos,u.result):(t=Te,ut()!==n?("undefined"===e.substr(Te,9)?(r="undefined",Te+=9):(r=n,0===_e&&qe($)),r===n&&("null"===e.substr(Te,4)?(r="null",Te+=4):(r=n,0===_e&&qe(J))),r!==n?(Se=t,t=null):(Te=t,t=n)):(Te=t,t=n),t===n&&(t=Te,ut()!==n&&(r=function(){var t,r,i,o,a=34*Te+19,s=ke[a];return s?(Te=s.nextPos,s.result):((t=function(){var t,r,i=34*Te+22,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"true"===e.substr(Te,4).toLowerCase()?(r=e.substr(Te,4),Te+=4):(r=n,0===_e&&qe(te)),r!==n&&(Se=t,r=!0),(t=r)===n&&(t=Te,"false"===e.substr(Te,5).toLowerCase()?(r=e.substr(Te,5),Te+=5):(r=n,0===_e&&qe(re)),r!==n&&(Se=t,r=!1),t=r),ke[i]={nextPos:Te,result:t},t)}())===n&&(t=function(){var t,r,i,o,a=34*Te+23,s=ke[a];return s?(Te=s.nextPos,s.result):(t=Te,"0x"===e.substr(Te,2)?(r="0x",Te+=2):(r=n,0===_e&&qe(ne)),r!==n&&(i=st())!==n?(Se=t,r=parseInt(Ie(),16),t=r):(Te=t,t=n),t===n&&(t=Te,ie.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(oe)),r===n&&(r=null),r!==n&&(i=function(){var t,r,i,o=34*Te+24,a=ke[o];return a?(Te=a.nextPos,a.result):(t=Te,(r=st())!==n?(46===e.charCodeAt(Te)?(i=".",Te++):(i=n,0===_e&&qe(ae)),i!==n&&st()!==n?(Se=t,r=parseFloat(Ie()),t=r):(Te=t,t=n)):(Te=t,t=n),t===n&&(t=Te,(r=function(){var t,r,i=34*Te+31,o=ke[i];if(o)return Te=o.nextPos,o.result;if(t=[],ve.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(be)),r!==n)for(;r!==n;)t.push(r),ve.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(be));else t=n;return ke[i]={nextPos:Te,result:t},t}())!==n?((i=st())===n&&(i=null),i!==n?(Se=t,r=parseInt(Ie(),10),t=r):(Te=t,t=n)):(Te=t,t=n),t===n&&(t=Te,48===e.charCodeAt(Te)?(r="0",Te++):(r=n,0===_e&&qe(se)),r!==n&&(Se=t,r=0),t=r)),ke[o]={nextPos:Te,result:t},t)}())!==n?(Se=t,o=i,t=r=null==r?o:-o):(Te=t,t=n)),ke[a]={nextPos:Te,result:t},t)}())===n&&(t=at())===n&&(t=Te,39===e.charCodeAt(Te)?(r="'",Te++):(r=n,0===_e&&qe(K)),r!==n&&(i=nt())!==n?(39===e.charCodeAt(Te)?(o="'",Te++):(o=n,0===_e&&qe(K)),o!==n?(Se=t,t=r=i):(Te=t,t=n)):(Te=t,t=n),t===n&&(t=Te,34===e.charCodeAt(Te)?(r='"',Te++):(r=n,0===_e&&qe(X)),r!==n&&(i=nt())!==n?(34===e.charCodeAt(Te)?(o='"',Te++):(o=n,0===_e&&qe(X)),o!==n?(Se=t,t=r=i):(Te=t,t=n)):(Te=t,t=n))),ke[a]={nextPos:Te,result:t},t)}())!==n?(Se=t,s=r,t=new i.b(s)):(Te=t,t=n),t===n&&(t=Te,ut()!==n?(123===e.charCodeAt(Te)?(r="{",Te++):(r=n,0===_e&&qe(W)),r!==n&&(o=function(){var e,t,r,i=34*Te+25,o=ke[i];if(o)return Te=o.nextPos,o.result;if(e=Te,t=[],(r=ot())!==n)for(;r!==n;)t.push(r),r=ot();else t=n;return t!==n&&(Se=e,t=le(t)),e=t,ke[i]={nextPos:Te,result:e},e}())!==n?(125===e.charCodeAt(Te)?(a="}",Te++):(a=n,0===_e&&qe(G)),a!==n?(Se=t,t=function(e){return new i.d(e)}(o)):(Te=t,t=n)):(Te=t,t=n)):(Te=t,t=n))),ke[l]={nextPos:Te,result:t},t)}function rt(){var t,r,o,a,s,l,u,c,p=34*Te+21,h=ke[p];if(h)return Te=h.nextPos,h.result;if(t=Te,(r=Me())===n&&(r=null),r!==n){for(o=[],a=Te,(s=ut())!==n?(44===e.charCodeAt(Te)?(l=",",Te++):(l=n,0===_e&&qe(ee)),l!==n&&(u=ut())!==n&&(c=Me())!==n?a=s=[s,l,u,c]:(Te=a,a=n)):(Te=a,a=n);a!==n;)o.push(a),a=Te,(s=ut())!==n?(44===e.charCodeAt(Te)?(l=",",Te++):(l=n,0===_e&&qe(ee)),l!==n&&(u=ut())!==n&&(c=Me())!==n?a=s=[s,l,u,c]:(Te=a,a=n)):(Te=a,a=n);o!==n?(Se=t,t=r=function(e,t){if(null==e)return new i.f([]);var r=[e];if(Array.isArray(t))for(var n=function(e){return[].concat.apply([],e)}(t),o=3;o<n.length;o+=4)r.push(n[o]);return new i.f(r)}(r,o)):(Te=t,t=n)}else Te=t,t=n;return ke[p]={nextPos:Te,result:t},t}function nt(){var e,t,r,i=34*Te+26,o=ke[i];if(o)return Te=o.nextPos,o.result;if(e=Te,t=[],(r=it())!==n)for(;r!==n;)t.push(r),r=it();else t=n;return t!==n&&(Se=e,t=le(t)),e=t,ke[i]={nextPos:Te,result:e},e}function it(){var t,r,i=34*Te+27,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,"\\'"===e.substr(Te,2)?(r="\\'",Te+=2):(r=n,0===_e&&qe(ue)),r!==n&&(Se=t,r="'"),(t=r)===n&&(t=Te,'\\"'===e.substr(Te,2)?(r='\\"',Te+=2):(r=n,0===_e&&qe(ce)),r!==n&&(Se=t,r='"'),(t=r)===n&&(t=Te,pe.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(he)),r!==n&&(Se=t,r=de()),t=r)),ke[i]={nextPos:Te,result:t},t)}function ot(){var t,r,i=34*Te+28,o=ke[i];return o?(Te=o.nextPos,o.result):(t=Te,fe.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(ge)),r!==n&&(Se=t,r=de()),t=r,ke[i]={nextPos:Te,result:t},t)}function at(){var e,t,r,i,o,a,s=34*Te+29,l=ke[s];if(l)return Te=l.nextPos,l.result;if(e=Te,lt()!==n){if(t=[],r=Te,(i=st())!==n){for(o=[],a=lt();a!==n;)o.push(a),a=lt();o!==n?r=i=[i,o]:(Te=r,r=n)}else Te=r,r=n;for(;r!==n;)if(t.push(r),r=Te,(i=st())!==n){for(o=[],a=lt();a!==n;)o.push(a),a=lt();o!==n?r=i=[i,o]:(Te=r,r=n)}else Te=r,r=n;t!==n?(Se=e,e=de()):(Te=e,e=n)}else Te=e,e=n;return ke[s]={nextPos:Te,result:e},e}function st(){var t,r,i=34*Te+30,o=ke[i];if(o)return Te=o.nextPos,o.result;if(t=[],me.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(ye)),r!==n)for(;r!==n;)t.push(r),me.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(ye));else t=n;return ke[i]={nextPos:Te,result:t},t}function lt(){var t,r,i=34*Te+32,o=ke[i];if(o)return Te=o.nextPos,o.result;if(t=[],Ce.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(Pe)),r!==n)for(;r!==n;)t.push(r),Ce.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(Pe));else t=n;return ke[i]={nextPos:Te,result:t},t}function ut(){var t,r,i=34*Te+33,o=ke[i];if(o)return Te=o.nextPos,o.result;for(_e++,t=[],we.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(Ve));r!==n;)t.push(r),we.test(e.charAt(Te))?(r=e.charAt(Te),Te++):(r=n,0===_e&&qe(Ve));return _e--,t===n&&(r=n,0===_e&&qe(xe)),ke[i]={nextPos:Te,result:t},t}function ct(e,t,r){return void 0===r&&(r=!1),t.reduce((function(e,t){return new i.c(t[1],e,t[3],r)}),e)}if((r=s())!==n&&Te===e.length)return r;throw r!==n&&Te<e.length&&qe({type:"end"}),Fe(Ee,Re<e.length?e.charAt(Re):null,Re<e.length?je(Re,Re+1):je(Re,Re))}},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(14);r.d(t,"a",(function(){return a}));var a=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.createLocalizableString("content",r,!0);var n=r;return r.registerFunctionOnPropertyValueChanged("content",(function(){n.onContentChanged()})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!0,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,r=this.content,n=0,i=null;null!==(i=t.exec(r));){i.index>n&&(e.push(r.substr(n,i.index-n)),n=i.index);var o=this.getQuestionFromText(i[0]);o?e.push(this.getHtmlForQuestion(o)):e.push(r.substr(n,i.index+i[0].length-n)),n=i.index+i[0].length}return n<r.length&&e.push(r.substr(n,r.length-n)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substr(1,e.length-2)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,r){e.prototype.onAddElement.call(this,t,r),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var r=this.getElementContentText(t);this.content=this.content.replace(r,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!window&&!window.getSelection)return!1;var r=window.getSelection();if(r.getRangeAt&&r.rangeCount){var n=r.getRangeAt(0);if(n.deleteContents(),n.insertNode(document.createTextNode(e)),this.getContent){var i=this.getContent(t);this.content=i}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(o.a);i.k.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},function(e,t,r){"use strict";var n=r(0);n.a.locales.ar={pagePrevText:"السابق",pageNextText:"التالي",completeText:"إرسال البيانات",progressText:"{1} صفحة {0} من",otherItemText:"نص آخر",emptySurvey:"لا توجد صفحة مرئية أو سؤال في النموذج",completingSurvey:"شكرا لكم لاستكمال النموذج!",loadingSurvey:"...يتم تحميل النموذج",optionsCaption:"...اختر",requiredError:".يرجى الإجابة على السؤال",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة رقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حروف",textMaxLength:"الرجاء إدخال أقل من {0} حروف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حروف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} وتساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"الرجاء إدخال بريد الكتروني صحيح",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب البيانات فارغ أو 'المسار' غير صحيح ",exceedMaxSize:"ينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"تحميل الملف الخاص بك. يرجى الانتظار عدة ثوان والمحاولة لاحقًا",addRow:"اضافة صف",removeRow:"إزالة صف"},n.a.localeNames.ar="العربية"},function(e,t,r){"use strict";var n=r(0);n.a.locales.bg={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",optionsCaption:"Изберете...",value:"value",requiredError:"Моля, отговорете на следния въпрос.",requiredErrorInPanel:"Моля, отговорете поне на един от въпросите.",requiredInAllRowsError:"Моля, отговорете на въпросите на всички редове.",numericError:"Стойността следва да бъде число.",textMinLength:"Моля, използвайте поне {0} символа.",textMaxLength:"Моля, използвайте не повече от {0} символа.",textMinMaxLength:"Моля, използвайте повече от {0} и по-малко от {1} символа.",minRowCountError:"Моля, попълнете поне {0} реда.",minSelectError:"Моля, изберете поне {0} варианта.",maxSelectError:"Моля, изберете не повече от {0} варианта.",numericMinMax:"Стойността '{0}' следва да бъде равна или по-голяма от {1} и равна или по-малка от {2}",numericMin:"Стойността '{0}' следва да бъде равна или по-голяма от {1}",numericMax:"Стойността '{0}' следва да бъде равна или по-малка от {1}",invalidEmail:"Моля, въведете валиден адрес на електронна поща.",invalidExpression:"Изразът: {0} трябва да дава резултат 'true' (истина).",urlRequestError:"Заявката води до грешка '{0}'. {1}",urlGetChoicesError:"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена",exceedMaxSize:"Размерът на файла следва да не превишава {0}.",otherRequiredError:"Моля, въведете другата стойност.",uploadingFile:"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.",loadingFile:"Зареждане...",chooseFile:"Изберете файл(ове)...",confirmDelete:"Желаете ли да изтриете записа?",keyDuplicationError:"Стойността следва да бъде уникална.",addColumn:"Добавяне на колона",addRow:"Добавяне на ред",removeRow:"Премахване на ред",addPanel:"Добавяне на панел",removePanel:"Премахване на панел",choices_Item:"елемент",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се запазват на сървъра...",savingDataError:"Поради възникнала грешка резултатите не можаха да бъдат запазени.",savingDataSuccess:"Резултатите бяха запазени успешно!",saveAgainButton:"Нов опит",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вие използвахте {0} на тази страница и общо {1}.",timerSpentPage:"Вие използвахте {0} на тази страница.",timerSpentSurvey:"Вие използвахте общо {0}.",timerLimitAll:"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.",timerLimitPage:"Вие използвахте {0} от {1} на тази страница.",timerLimitSurvey:"Вие използвахте общо {0} от {1}.",cleanCaption:"Изчистване",clearCaption:"Начално състояние",removeFileCaption:"Премахване на файла"},n.a.localeNames.bg="Bulgarian"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ca={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"},n.a.localeNames.ca="català"},function(e,t,r){"use strict";var n=r(0);n.a.locales.cs={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",otherItemText:"Jiná odpověď (napište)",progressText:"Strana {0} z {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",requiredError:"Odpovězte prosím na otázku.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",addRow:"Přidat řádek",removeRow:"Odstranit"},n.a.localeNames.cs="čeština"},function(e,t,r){"use strict";var n=r(0);n.a.locales.da={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"Vælg alle",progressText:"Side {0} af {1}",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemført dette spørgeskema.",loadingSurvey:"Spørgeskemaet hentes fra serveren...",optionsCaption:"Vælg...",value:"værdi",requiredError:"Besvar venligst spørgsmålet.",requiredErrorInPanel:"Besvar venligst mindst ét spørgsmål.",requiredInAllRowsError:"Besvar venligst spørgsmål i alle rækker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} rækker.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Forespørgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.",loadingFile:"Indlæser...",chooseFile:"Vælg fil(er)...",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne værdi skal være unik.",addColumn:"Tilføj kolonne",addRow:"Tilføj række",removeRow:"Fjern",addPanel:"Tilføj ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"Række",savingData:"Resultaterne bliver gemt på serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Prøv igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} på denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} på denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} på denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",cleanCaption:"Rens",clearCaption:"Fjern",removeFileCaption:"Fjern denne fil"},n.a.localeNames.da="dansk"},function(e,t,r){"use strict";var n=r(0);n.a.locales.nl={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",startSurveyText:"Start",otherItemText:"Anders, nl.",noneItemText:"Geen",selectAllItemText:"Selecteer Alles",progressText:"Pagina {0} van {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Geantwoord {0}/{1} vragen",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",completingSurveyBefore:"Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",value:"waarde",requiredError:"Dit is een vereiste vraag",requiredErrorInPanel:"Gelieve ten minste een vraag te beantwoorden.",numericError:"Het antwoord moet een getal zijn",textMinLength:"Vul minstens {0} karakters in",minSelectError:"Selecteer minimum {0} antwoorden",maxSelectError:"Selecteer niet meer dan {0} antwoorden",textMaxLength:"Gelieve minder dan {0} karakters in te vullen.",textMinMaxLength:"Gelieve meer dan {0} en minder dan {1} karakters in te vullen.",minRowCountError:"Gelieve ten minste {0} rijen in te vullen.",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Vul een geldig e-mailadres in",invalidExpression:"De uitdrukking: {0} moet 'waar' teruggeven.",urlRequestError:"De vraag keerde een fout terug '{0}'. {1}",urlGetChoicesError:"De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}",otherRequiredError:"Vul het veld 'Anders, nl.' in",requiredInAllRowsError:"Deze vraag vereist één antwoord per rij",uploadingFile:"Uw bestand wordt opgeladen. Gelieve enkele seconden te wachten en opnieuw te proberen.",loadingFile:"Opladen...",chooseFile:"Kies uw bestand(en)...",noFileChosen:"Geen bestand gekozen",confirmDelete:"Wil je deze gegevens verwijderen?",keyDuplicationError:"Deze waarde moet uniek zijn.",addColumn:"Voeg kolom toe",addRow:"Voeg rij toe",removeRow:"Verwijder",addPanel:"Nieuwe toevoegen",removePanel:"Verwijder",choices_Item:"onderwerp",matrix_column:"Kolom",matrix_row:"Rij",savingData:"De resultaten worden bewaard op de server...",savingDataError:"Er was een probleem en we konden de resultaten niet bewaren.",savingDataSuccess:"De resultaten werden succesvol bewaard!",saveAgainButton:"Probeer opnieuw",timerMin:"minimum",timerSec:"sec",timerSpentAll:"U heeft {0} gespendeerd op deze pagina en {1} in totaal.",timerSpentPage:"U heeft {0} op deze pagina gespendeerd.",timerSpentSurvey:"U heeft in totaal {0} gespendeerd.",timerLimitAll:"U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.",timerLimitPage:"U heeft {0} van {1} gespendeerd op deze pagina.",timerLimitSurvey:"U heeft {0} van {1} in het totaal.",cleanCaption:"Kuis op",clearCaption:"Kuis op",chooseFileCaption:"Gekozen bestand",removeFileCaption:"Verwijder deze file",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Neen",confirmRemoveFile:"Bent u zeker dat u deze file wilt verwijderen: {0}?",confirmRemoveAllFiles:"Bent u zeker dat u al deze files wilt verwijderen?"},n.a.localeNames.nl="nederlands"},function(e,t,r){"use strict";var n=r(0);n.a.locales.et={pagePrevText:"Tagasi",pageNextText:"Edasi",completeText:"Lõpeta",startSurveyText:"Alusta",otherItemText:"Muu (täpsusta)",noneItemText:"Mitte midagi",selectAllItemText:"Vali kõik",progressText:"Lehekülg {0}/{1}",panelDynamicProgressText:"Kirje {0}/{1}",questionsProgressText:"Vastatud {0} küsimust {1}-st",emptySurvey:"Selles uuringus ei ole ühtki nähtavat lehekülge või küsimust.",completingSurvey:"Aitäh, et vastasid ankeedile!",completingSurveyBefore:"Meie andmetel oled sa sellele ankeedile juba vastanud.",loadingSurvey:"Laen ankeeti...",optionsCaption:"Vali...",value:"väärtus",requiredError:"Palun vasta küsimusele.",requiredErrorInPanel:"Palun vasta vähemalt ühele küsimusele.",requiredInAllRowsError:"Palun anna vastus igal real.",numericError:"See peaks olema numbriline väärtus.",textMinLength:"Palun sisesta vähemalt {0} tähemärki.",textMaxLength:"Palun ära sisesta rohkem kui {0} tähemärki.",textMinMaxLength:"Sisesta palun {0} - {1} tähemärki.",minRowCountError:"Sisesta plaun vähemalt {0} rida.",minSelectError:"Palun vali vähemalt {0} varianti.",maxSelectError:"Palun vali kõige rohkem {0} varianti.",numericMinMax:"'{0}' peaks olema võrdne või suurem kui {1} ja võrdne või väiksem kui {2}",numericMin:"'{0}' peaks olema võrdne või suurem kui {1}",numericMax:"'{0}' peaks olema võrnde või väiksem kui {1}",invalidEmail:"Sisesta palun korrektne e-posti aadress.",exceedMaxSize:"Faili suurus ei tohi ületada {0}.",otherRequiredError:"Sisesta palun muu vastus.",uploadingFile:"Sinu fail laeb üles. Palun oota mõned sekundid ning proovi seejärel uuesti.",loadingFile:"Laen...",chooseFile:"Vali fail(id)...",noFileChosen:"Faili pole valitud",confirmDelete:"Kas tahad kirje kustutada?",keyDuplicationError:"See väärtus peab olema unikaalne.",addColumn:"Lisa veerg",addRow:"Lisa rida",removeRow:"Eemalda",addPanel:"Lisa uus",removePanel:"Eemalda",matrix_column:"Veerg",matrix_row:"Rida",savingData:"Salvestan andmed serveris...",savingDataError:"Tekkis viga ning me ei saanud vastuseid salvestada.",savingDataSuccess:"Vastuste salvestamine õnnestus!",saveAgainButton:"Proovi uuesti",timerMin:"min",timerSec:"sek",timerSpentAll:"Oled veetnud {0} sellel lehel ning kokku {1}.",timerSpentPage:"Oled veetnud {0} sellel lehel.",timerSpentSurvey:"Oled veetnud {0} kokku.",timerLimitAll:"Oled kulutanud {0} võimalikust {1} sellel lehel ning {2} võimalikust {3} kokku.",timerLimitPage:"Oled kulutanud {0} võimalikust {1} sellel lehel.",timerLimitSurvey:"Oled kulutanud {0} võimalikust {1} koguajast.",cleanCaption:"Puhasta",clearCaption:"Puhasta",chooseFileCaption:"Vali fail",removeFileCaption:"Eemalda see fail",booleanCheckedLabel:"Jah",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Oled sa kindel, et soovid selle faili eemaldada: {0}?",confirmRemoveAllFiles:"Oled sa kindel, et soovid eemaldada kõik failid?",questionTitlePatternText:"Küsimuse pealkiri"},n.a.localeNames.et="eesti keel"},function(e,t,r){"use strict";var n=r(0);n.a.locales.fi={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",otherItemText:"Muu (kuvaile)",progressText:"Sivu {0}/{1}",emptySurvey:"Tässä kyselyssä ei ole yhtäkään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",requiredError:"Vastaa kysymykseen, kiitos.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Ole hyvä ja syötä vähintään {0} merkkiä.",minSelectError:"Ole hyvä ja valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Ole hyvä ja valitse enintään {0} vaihtoehtoa.",numericMinMax:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1} ja vähemmän tai yhtä suuri kuin {2}",numericMin:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1}",numericMax:"'{0}' täytyy olla vähemmän tai yhtä suuri kuin {1}",invalidEmail:"Syötä validi sähköpostiosoite.",otherRequiredError:'Ole hyvä ja syötä "Muu (kuvaile)"'},n.a.localeNames.fi="suomalainen"},function(e,t,r){"use strict";var n=r(0);n.a.locales.fr={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",progressText:"Page {0} sur {1}",panelDynamicProgressText:"Enregistrement {0} sur {1}",questionsProgressText:"{0}/{1} question(s) répondue(s)",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",noFileChosen:"Aucun fichier ajouté",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Nettoyer",clearCaption:"Vider",chooseFileCaption:"Ajouter un fichier",removeFileCaption:"Enlever ce fichier",booleanCheckedLabel:"Oui",booleanUncheckedLabel:"Non",confirmRemoveFile:"Êtes-vous certains de vouloir supprimer ce fichier : {0}?",confirmRemoveAllFiles:"Êtes-vous certains de vouloir supprimer tous les fichiers?",questionTitlePatternText:"Titre de la question"},n.a.localeNames.fr="français"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ka={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"},n.a.localeNames.ka="ქართული"},function(e,t,r){"use strict";var n=r(0);n.a.locales.de={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Abschließen",previewText:"Vorschau",editText:"Bearbeiten",startSurveyText:"Start",otherItemText:"Sonstiges (Bitte angeben)",noneItemText:"Nichts trifft zu",selectAllItemText:"Alles auswählen",progressText:"Seite {0} von {1}",panelDynamicProgressText:"Eintrag {0} von {1}",questionsProgressText:"{0}/{1} Fragen beantwortet",emptySurvey:"Es sind keine Fragen vorhanden.",completingSurvey:"Vielen Dank, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Umfrage wird geladen...",optionsCaption:"Bitte auswählen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte wählen Sie mindestens {0} Antwort(en) aus.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Antwort(en) aus.",numericMinMax:"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss größer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr' zurückgeben.",urlRequestError:"Ein Netzwerkdienst hat folgenden Fehler zurückgegeben '{0}'. {1}",urlGetChoicesError:"Eine Netzwerkdienst hat ungültige Daten zurückgegeben",exceedMaxSize:"Die Datei darf nicht größer als {0} sein.",otherRequiredError:"Bitte geben Sie einen Wert an.",uploadingFile:"Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.",loadingFile:"Wird hochgeladen...",chooseFile:"Datei(en) auswählen...",noFileChosen:"Keine Datei ausgewählt",confirmDelete:"Wollen Sie den Eintrag löschen?",keyDuplicationError:"Dieser Wert muss einmalig sein.",addColumn:"Spalte hinzufügen",addRow:"Zeile hinzufügen",removeRow:"Entfernen",addPanel:"Neu hinzufügen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Erneut absenden",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} gebraucht.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} gebraucht.",cleanCaption:"Alles löschen",clearCaption:"Auswahl entfernen",chooseFileCaption:"Datei auswählen",removeFileCaption:"Datei löschen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nein",confirmRemoveFile:"Sind Sie sicher, dass Sie diese Datei löschen möchten: {0}?",confirmRemoveAllFiles:"Sind Sie sicher, dass Sie alle Dateien löschen möchten?",questionTitlePatternText:"Fragentitel"},n.a.localeNames.de="deutsch"},function(e,t,r){"use strict";var n=r(0);n.a.locales.gr={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",progressText:"Σελίδα {0} από {1}",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμητική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση"},n.a.localeNames.gr="ελληνικά"},function(e,t,r){"use strict";var n=r(0);n.a.locales.he={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",progressText:"דף {1} מתוך {0}",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",loadingSurvey:"טעינה מהשרת...",otherItemText:"אחר (נא לתאר)",optionsCaption:"בחר...",requiredError:"אנא השב על השאלה",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',otherRequiredError:'נא להזין נתונים בשדה "אחר"'},n.a.localeNames.he="עברית"},function(e,t,r){"use strict";var n=r(0);n.a.locales.hu={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",otherItemText:"Egyéb (adja meg)",progressText:"{0}./{1} oldal",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra"},n.a.localeNames.hu="magyar"},function(e,t,r){"use strict";var n=r(0);n.a.locales.is={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",otherItemText:"Hinn (skýring)",progressText:"Síða {0} of {1}",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",requiredError:"Vinsamlegast svarið spurningunni.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",addRow:"Bæta við röð",removeRow:"Fjarlægja",choices_firstItem:"fyrsti hlutur",choices_secondItem:"annar hlutur",choices_thirdItem:"þriðji hlutur",matrix_column:"Dálkur",matrix_row:"Röð"},n.a.localeNames.is="íslenska"},function(e,t,r){"use strict";var n=r(0);n.a.locales.id={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",optionsCaption:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",cleanCaption:"Bersihkan",clearCaption:"Bersihkan",removeFileCaption:"Hapus berkas ini"},n.a.localeNames.id="Bahasa Indonesia"},function(e,t,r){"use strict";var n=r(0);n.a.locales.it={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",progressText:"Pagina {0} di {1}",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",loadingFile:"Caricamento...",chooseFile:"Selezionare file(s)...",noFileChosen:"Nessun file selezionato",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci",confirmRemoveFile:"Sei sicuro di voler elminare questo file: {0}?",confirmRemoveAllFiles:"Sei sicuro di voler elminare tutti i files?"},n.a.localeNames.it="italiano"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ja={pagePrevText:"前の",pageNextText:"次へ",completeText:"完了",startSurveyText:"スタート",otherItemText:"その他(説明)",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",loadingSurvey:"調査をダウンロード中",optionsCaption:"選択",requiredError:"質問にお答え下さい",numericError:"数字でご記入下さい",textMinLength:"{0} 文字以上で入力して下さい",minRowCountError:"{0}行以上で入力して下さい",minSelectError:"{0}種類以上を選択して下さい",numericMin:"'{0}' は同等か{1}より大きくなければなりません",numericMax:"'{0}' は同等か{1}より小さくなければなりません",invalidEmail:"有効なメールアドレスをご記入下さい",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",cleanCaption:"削除",clearCaption:"空白",removeFileCaption:"このファイルを削除"},n.a.localeNames.ja="日本語"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ko={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",startSurveyText:"시작",otherItemText:"기타(설명)",progressText:"페이지 {1} 중 {0}",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",requiredInAllRowsError:"모든 행에 있는 질문에 답하십시오.",numericError:"값은 숫자여야 합니다.",textMinLength:"답변의 길이는 최소 {0}자여야 입니다.",textMaxLength:"답변의 길이는 {0}자를 초과 할 수 없습니다.",textMinMaxLength:"답변의 길이는 {0} - {1}자 사이여야 합니다.",minRowCountError:"최소 {0}개의 행을 채우십시오",minSelectError:"최소 {0}개의 변수를 선택하십시오.",maxSelectError:"최대 {0}개의 변수를 선택하십시오.",numericMinMax:"'{0}'은 {1}보다 크거나 같고 {2}보다 작거나 같아야합니다.",numericMin:"'{0}'은 {1}보다 크거나 같아야합니다.",numericMax:"'{0}'은 {1}보다 작거나 같아야합니다.",invalidEmail:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기"},n.a.localeNames.ko="한국어"},function(e,t,r){"use strict";var n=r(0);n.a.locales.lv={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",progressText:"Lappuse {0} no {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",loadingSurvey:"Ielāde no servera...",otherItemText:"Cits (lūdzu, aprakstiet!)",optionsCaption:"Izvēlēties...",requiredError:"Lūdzu, atbildiet uz jautājumu!",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",otherRequiredError:'Lūdzu, ievadiet datus laukā "Cits"'},n.a.localeNames.lv="latviešu"},function(e,t,r){"use strict";var n=r(0);n.a.locales.lt={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",optionsCaption:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",cleanCaption:"Išvalyti",clearCaption:"Valyti",removeFileCaption:"Ištrinti šį failą"},n.a.localeNames.lt="Lietuvių"},function(e,t,r){"use strict";var n=r(0);n.a.locales.no={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",startSurveyText:"Start",otherItemText:"Annet (beskriv)",progressText:"Side {0} av {1}",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens"},n.a.localeNames.no="norsk"},function(e,t,r){"use strict";var n=r(0);n.a.locales.fa={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",previewText:"پیش نمایش",editText:"ویرایش",startSurveyText:"شروع",otherItemText:"دیگر(توضیح)",noneItemText:"هیچ",selectAllItemText:"انتخاب همه",progressText:"صفحه {0} از {1}",panelDynamicProgressText:"مورد {0} از {1}",questionsProgressText:"تعداد پاسخ {0}/{1} سوال",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredInAllRowsError:"لطفا سوالات تمام سطرها را پاسخ دهید.",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",invalidExpression:"عبارت: {0} پاسخ باید 'true' باشد.",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود است. لطفا صبر کنید.",loadingFile:"بارگیری...",chooseFile:"انتخاب فایل(ها)...",noFileChosen:"هیچ فایلی انتخاب نشده",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addColumn:"ستون جدید",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور است",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید",timerMin:"دقیقه",timerSec:"ثانیه",timerSpentAll:"شما مدت {0} در این صفحه و مدت {1} را در مجموع سپری کرده اید.",timerSpentPage:"شما مدت {0} را در این صفحه سپری کرده اید.",timerSpentSurvey:"شما مدت {0} را در مجموع سپری کرده اید.",timerLimitAll:"شما مدت {0} از {1} در این صفحه و مدت {2} از {3} را در مجموع سپری کرده اید.",timerLimitPage:"شما مدت {0} از {1} را در این صفحه سپری کرده اید.",timerLimitSurvey:"شما مدت {0} از {1} را در مجموع سپری کرده اید.",cleanCaption:"پاکسازی",clearCaption:"خالی کردن",chooseFileCaption:"انتخاب فایل",removeFileCaption:"حذف این فایل",booleanCheckedLabel:"بله",booleanUncheckedLabel:"خیر",confirmRemoveFile:"آیا میخواهید این فایل را پاک کنید: {0}?",confirmRemoveAllFiles:"آیا میخواهید تمام فایل ها را پاک کنید?",questionTitlePatternText:"عنوان سوال"},n.a.localeNames.fa="فارْسِى"},function(e,t,r){"use strict";var n=r(0);n.a.locales.pl={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",otherItemText:"Inna odpowiedź (wpisz)",progressText:"Strona {0} z {1}",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",addRow:"Dodaj wiersz",removeRow:"Usuń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w sumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść"},n.a.localeNames.pl="polski"},function(e,t,r){"use strict";var n=r(0);n.a.locales.pt={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"Página {0} de {1}",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos uma pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"Carregando...",chooseFile:"Selecione o(s) arquivo(s)...",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser único.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",removeFileCaption:"Remover este arquivo",booleanCheckedLabel:"Sim",booleanUncheckedLabel:"Não",confirmRemoveFile:"Tem certeza que deseja remover este arquivo: {0}?",confirmRemoveAllFiles:"Tem certeza que deseja remover todos os arquivos?",questionTitlePatternText:"Título da questão"},n.a.localeNames.pt="português"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ro={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",otherItemText:"Altul(precizaţi)",progressText:"Pagina {0} din {1}",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați câmpul 'Altul'.",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",value:"valoare",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total."},n.a.localeNames.ro="română"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ru={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",requiredInAllRowsError:"Пожалуйста, ответьте на вопросы в каждой строке.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста введите больше {0} символов.",textMaxLength:"Пожалуйста введите меньше {0} символов.",textMinMaxLength:"Пожалуйста введите больше {0} и меньше {1} символов.",minRowCountError:"Пожалуйста, заполните не меньше {0} строк.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть не меньше чем {1}, и не больше чем {2}",numericMin:"'{0}' должно быть не меньше чем {1}",numericMax:"'{0}' должно быть не больше чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",removeFileCaption:"Удалить файл"},n.a.localeNames.ru="русский"},function(e,t,r){"use strict";var n=r(0);n.a.locales["zh-cn"]={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurveyBefore:"你已完成问卷.",completingSurvey:"感谢您的参与!",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1}, 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",cleanCaption:"清理",clearCaption:"清除",removeFileCaption:"移除文件"},n.a.localeNames["zh-cn"]="简体中文"},function(e,t,r){"use strict";var n=r(0);n.a.locales.es={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completar",otherItemText:"Otro (describa)",progressText:"Página {0} de {1}",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",requiredError:"Por favor conteste la pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",choices_firstItem:"primer artículo",choices_secondItem:"segundo artículo",choices_thirdItem:"tercera artículo",matrix_column:"Columna",matrix_row:"Hilera"},n.a.localeNames.es="español"},function(e,t,r){"use strict";var n=r(0);n.a.locales.sw={pagePrevText:"Iliyotangulia",pageNextText:"Ifuatayo",completeText:"Kamili",previewText:"Hakiki",editText:"Hariri",startSurveyText:"Anza",otherItemText:"Nyingine (eleza)",noneItemText:"Hakuna",selectAllItemText:"Chagua Zote",progressText:"Ukurasa {0} wa {1}",panelDynamicProgressText:"Rekodi {0} ya {1}",questionsProgressText:"Yaliyojibiwa {0}/{1} maswali",emptySurvey:"Hakuna ukurasa unaoonekana au swali katika utafiti.",completingSurvey:"Asanti kwa kukamilisha utafiti!",completingSurveyBefore:"Recodi zetu zinatuonyesha tayari umekamilisha utafiti.",loadingSurvey:"Tunaandaa utafiti...",optionsCaption:"Chagua...",value:"thamani",requiredError:"Tafadhali jibu hili swali.",requiredErrorInPanel:"Tafadhali jibu swali angalau moja.",requiredInAllRowsError:"Tafadhali jibu maswali katika safu zote.",numericError:"Thamani inapaswa kuwa ya nambari.",textMinLength:"Tafadhali ingiza angalau{0} husika.",textMaxLength:"Tafadhali ingiza isiozidi {0} husika.",textMinMaxLength:"Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.",minRowCountError:"Tafadhali jaza isiopungua {0} safu.",minSelectError:"Tafadhali chagua angalau {0} lahaja.",maxSelectError:"Tafadhali changua isiozidi {0} lahaja.",numericMinMax:" '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}",numericMin:" '{0}'inapaswa kuwa sawa au zaidi ya {1}",numericMax:" '{0}'inapaswa kuwa sawa au chini ya {1}",invalidEmail:"Tafadhali ingiza anwani halali ya barua-pepe.",invalidExpression:"Usemi:{0} inapaswa kurudi 'kweli'.",urlRequestError:"Ombi lina kosa '{0}'. {1}",urlGetChoicesError:"Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi",exceedMaxSize:"Saizi ya faili haipaswi kuzidi {0}.",otherRequiredError:"Tafadhali ingiza thamani nyingine.",uploadingFile:"Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.",loadingFile:"Inapakia...",chooseFile:"Chagua faili...",noFileChosen:"Hujachagua faili",confirmDelete:"Je! Unataka kufuta rekodi?",keyDuplicationError:"Thamani hii inapaswa kuwa ya kipekee.",addColumn:"Ongeza Kolamu",addRow:"Ongeza safu",removeRow:"Toa",addPanel:"Ongeza mpya",removePanel:"Toa",choices_Item:"kitu",matrix_column:"Kolamu",matrix_row:"Safu",savingData:"Matokeo yamehifadhiwa kwa seva...",savingDataError:"Kosa limetokea na hatukuweza kuhifadhi matokeo.",savingDataSuccess:"Matokeo yamehifadhiwa!",saveAgainButton:"Jaribu tena",timerMin:"dakika",timerSec:"sekunde",timerSpentAll:"Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.",timerSpentPage:"Umetumia {0} kwenye ukurasa huu.",timerSpentSurvey:"Umetumia {0} kwa jumla.",timerLimitAll:"Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.",timerLimitPage:"Umetumia {0} ya {1} kwenye ukurasa huu.",timerLimitSurvey:"Umetumia {0} ya {1} kwa jumla.",cleanCaption:"Safisha",clearCaption:"Ondoa",chooseFileCaption:"Chagua faili",removeFileCaption:"Ondoa faili",booleanCheckedLabel:"Ndio",booleanUncheckedLabel:"Hapana",confirmRemoveFile:"Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?",confirmRemoveAllFiles:"Je! Una uhakika kuwa unataka kuondoa faili zote?",questionTitlePatternText:"Kichwa cha Swali"},n.a.localeNames.sw="Swahili"},function(e,t,r){"use strict";var n=r(0);n.a.locales.sv={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",otherItemText:"Annat (beskriv)",progressText:"Sida {0} av {1}",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",requiredError:"Var vänlig besvara frågan.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",addRow:"Lägg till rad",removeRow:"Ta bort"},n.a.localeNames.sv="svenska"},function(e,t,r){"use strict";var n=r(0);n.a.locales.tg={pagePrevText:"Бозгашт",pageNextText:"Оянда",completeText:"Иҷро шуд",startSurveyText:"Оғоз",otherItemText:"Дигар (лутфан тавсиф кунед)",noneItemText:"Не",selectAllItemText:"Ҳамаро интихоб кардан",progressText:"Саҳифаи {0} аз {1}",emptySurvey:"Ягон савол вуҷуд надорад.",completingSurvey:"Ташаккур барои пур кардани саволнома!",completingSurveyBefore:"Шумо аллакай ин пурсишро анҷом додаед.",loadingSurvey:"Боргирӣ аз сервер...",optionsCaption:"Интихоб кардан...",value:"қиммат",requiredError:"Илтимос, ба савол ҷавоб диҳед.",requiredErrorInPanel:"Илтимос, ақалан ба як савол ҷавоб диҳед.",requiredInAllRowsError:"Илтимос, ба ҳамаи саволҳо дар ҳамаи сатрҳо ҷавоб диҳед.",numericError:"Ҷавоб бояд рақам бошад.",textMinLength:"Илтимос, аз {0} зиёдтар рамз ворид кунед.",textMaxLength:"Илтимос, аз {0} камтар рамз ворид кунед.",textMinMaxLength:"Илтимос, аз {0} зиёдтар ва аз {1} камтар рамз ворид кунед.",minRowCountError:"Илтимос, на камтар аз {0} сатр пур кунед.",minSelectError:"Илтимос, ақалан {0} вариант интихоб кунед.",maxSelectError:"Илтимос, на зиёдтар аз {0} вариант интихоб кунед.",numericMinMax:"'{0}' бояд на кам аз {1} ва на бисёр аз {2} бошад",numericMin:"'{0}' бояд на кам аз {1} бошад",numericMax:"'{0}' бояд на зиёд аз {1} бошад",invalidEmail:"Илтимос, почтаи электронии воқеиро ворид кунед.",invalidExpression:"Ифодаи {0} бояд 'true' баргардонад.",urlRequestError:"Дархост хатогӣ бозгардонд '{0}'. {1}",urlGetChoicesError:"Ҷавоб ба дархост холӣ омад ё хосияти 'path' нодуруст муайян карда шудааст",exceedMaxSize:"Андозаи файл бояд на калон аз {0} бошад.",otherRequiredError:"Илтимос, ба майдони 'Дигар' додаҳоро ворид кунед",uploadingFile:"Файли шумо бор шуда истодааст. Якчанд сония интизор шавед ва бори дигар кӯшиш кунед.",loadingFile:"Боркунӣ...",chooseFile:"Файл(ҳо)-ро интихоб кунед...",confirmDelete:"Шумо мутмаин ҳастед, ки мехоҳед воридро тоза кунед?",keyDuplicationError:"Ин арзиш бояд беназир бошад.",addColumn:"Иловаи сутун",addRow:"Иловаи сатр",removeRow:"Нест кардан",addPanel:"Илова кардан",removePanel:"Нест кардан",choices_Item:"Вариант",matrix_column:"Сутун",matrix_row:"Сатр",savingData:"Натиҷа ба сервер сабт шуда истодаанд...",savingDataError:"Хатогӣ ба амал омад, натиҷа сабт нашуд.",savingDataSuccess:"Натиҷа бомуваффакият сабт шуд!",saveAgainButton:"Бори дигар кӯшиш карданд",timerMin:"дақ",timerSec:"сон",timerSpentAll:"Шумо {0} дар ин саҳифа ва {1} дар умум сарф кардед.",timerSpentPage:"Шумо {0} дар ин саҳифа сарф кардед.",timerSpentSurvey:"Шумо {0} дар ин тест сарф намудед.",timerLimitAll:"Шумо {0} аз {1} дар ин саҳифа ва {2} аз {3} дар умум сарф кардед дар дохили ин тест.",timerLimitPage:"Шумо {0} аз {1} дар ин саҳифа сарф кардед.",timerLimitSurvey:"Шумо {0} аз {1} дар ҳамаи тест сарф кардед.",cleanCaption:"Тоза кардан",clearCaption:"Тоза кардан",removeFileCaption:"Файлро нест кардан"},n.a.localeNames.tg="тоҷикӣ"},function(e,t,r){"use strict";var n=r(0);n.a.locales.th={pagePrevText:"ก่อนหน้า",pageNextText:"ถัดไป",completeText:"สำเร็จ",startSurveyText:"เริ่ม",otherItemText:"อื่นๆ (โปรดระบุ)",noneItemText:"ไม่มี",selectAllItemText:"เลือกทั้งหมด",progressText:"หน้าที่ {0} จาก {1}",panelDynamicProgressText:"รายการที่ {0} จาก {1}",questionsProgressText:"คำตอบที่ {0}/{1} จำนวนคำถาม",emptySurvey:"ไม่มีหน้าเพจที่มองเห็น หรือ คำถามใน survey นี้",completingSurvey:"ขอบคุณที่ทำ survey จนเสร็จ",completingSurveyBefore:"รายการของเราแสดงว่าคุณได้ทำ survey เสร็จเรียบร้อยแล้ว",loadingSurvey:"กำลังโหลด Survey...",optionsCaption:"เลือก...",value:"ข้อมูล",requiredError:"กรุณาตอบคำถาม",requiredErrorInPanel:"กรุณาตอบขั้นต่ำหนึ่งคำถาม",requiredInAllRowsError:"กรุณาตอบคำถามในทุกๆแถว",numericError:"ข้อมูลที่ใส่ต้องเป็นตัวเลข",textMinLength:"กรุณาใส่ขั้นต่ำจำนวน {0} ตัวอักษร",textMaxLength:"กรุณาใส่ไม่เกินจำนวน {0} ตัวอักษร",textMinMaxLength:"กรุณาใส่ขั้นต่ำจำนวน {0} และไม่เกินจำนวน {1} ตัวอักษร",minRowCountError:"กรุณาใส่ขั้นต่ำจำนวน {0} แถว",minSelectError:"กรุณาเลือกอย่างน้อย {0} รายการ",maxSelectError:"กรุณาเลือกไม่เกิน {0} รายการ",numericMinMax:"'{0}' ต้องมากกว่าหรือเท่ากับ {1} และน้อยกว่าหรือเท่ากับ {2}",numericMin:"'{0}' ต้องมากกว่าหรือเท่ากับ {1}",numericMax:"'{0}' น้อยกว่าหรือเท่ากับ {1}",invalidEmail:"กรุณาใส่อีเมล์แอดเดรสที่ถูกต้อง",invalidExpression:"The expression: {0} ต้องรีเทิร์น 'true'.",urlRequestError:"รีเควสรีเทิร์น error '{0}'. {1}",urlGetChoicesError:"รีเควสรีเทิร์นข้อมูลว่างเปล่า หรือ 'path' property ไม่ถูกต้อง",exceedMaxSize:"ขนาดไฟล์ต้องไม่เกิน {0}.",otherRequiredError:"กรุณาใส่ค่าอื่น",uploadingFile:"ไฟล์ของคุณกำลังอัพโหลดอยู่. กรุณารอสักครู่แล้วทำการลองอีกครั้ง",loadingFile:"กำลังโหลด...",chooseFile:"เลือกไฟล์...",noFileChosen:"ไม่ไฟล์ที่เลือก",confirmDelete:"คุณต้องการลบรายการนี้จริงหรือไม่?",keyDuplicationError:"ข้อมูลนี้ต้องเป็น unique.",addColumn:"เพิ่มคอลัมน์",addRow:"เพิ่มแถว",removeRow:"ลบ",addPanel:"เพิ่ม",removePanel:"ลบ",choices_Item:"ชิ้น",matrix_column:"คอลัมน์",matrix_row:"แถว",savingData:"ผลลัพท์กำลังบันทึกลงที่เซิร์ฟเวอร์...",savingDataError:"มีความผิดพลาดเกิดขึ้นส่งผลให้ไม่สามารถบันทึกผลได้",savingDataSuccess:"บันทึกสำเร็จแล้ว",saveAgainButton:"รบกวนลองอีกครั้ง",timerMin:"นาที",timerSec:"วินาที",timerSpentAll:"คุณใช้เวลา {0} บนหน้านี้และ {1} รวมทั้งหมด",timerSpentPage:"คุณใช้เวลา {0} บนหน้านี้",timerSpentSurvey:"คุณใช้เวลา {0} รวมทั้งหมด",timerLimitAll:"คุณใช้เวลา {0} ของ {1} บนหน้านี้และ {2} ของ {3} รวมทั้งหมด",timerLimitPage:"คุณใช้เวลา {0} ของ {1} บนหน้านี้",timerLimitSurvey:"คุณใช้เวลา {0} ของ {1} รวมทั้งหมด",cleanCaption:"คลีน",clearCaption:"เคลียร์",chooseFileCaption:"เลือกไฟล์",removeFileCaption:"นำไฟล์นี้ออก",booleanCheckedLabel:"ใช่",booleanUncheckedLabel:"ไม่ใช่",confirmRemoveFile:"คุณแน่ใจที่จะนำไฟล์นี้ออกใช่หรือไม่: {0}?",confirmRemoveAllFiles:"คุณแน่ใจที่จะนำไฟล์ทั้งหมดออกใช่หรือไม่",questionTitlePatternText:"ชื่อคำถาม"},n.a.localeNames.th="ไทย"},function(e,t,r){"use strict";var n=r(0);n.a.locales["zh-tw"]={pagePrevText:"上一頁",pageNextText:"下一頁",completeText:"提交問卷",otherItemText:"填寫其他答案",progressText:"第 {0} 頁, 共 {1} 頁",emptySurvey:"問卷中沒有問題或頁面",completingSurvey:"感謝您的參與!",loadingSurvey:"問卷載入中...",optionsCaption:"請選擇...",requiredError:"請填寫此問題",requiredInAllRowsError:"請填寫所有行中問題",numericError:"答案必須是個數字",textMinLength:"答案長度至少 {0} 個字元",textMaxLength:"答案長度不能超過 {0} 個字元",textMinMaxLength:"答案長度必須在 {0} - {1} 個字元之間",minRowCountError:"最少需要填寫 {0} 行答案",minSelectError:"最少需要選擇 {0} 項答案",maxSelectError:"最多只能選擇 {0} 項答案",numericMinMax:"答案 '{0}' 必須大於等於 {1} 且小於等於 {2}",numericMin:"答案 '{0}' 必須大於等於 {1}",numericMax:"答案 '{0}' 必須小於等於 {1}",invalidEmail:"請輸入有效的 Email 地址",urlRequestError:"載入選項時發生錯誤 '{0}': {1}",urlGetChoicesError:"未能載入有效的選項或請求參數路徑有誤",exceedMaxSize:"文件大小不能超過 {0}",otherRequiredError:"請完成其他問題",uploadingFile:"文件上傳中... 請耐心等待幾秒後重試",addRow:"添加答案",removeRow:"刪除答案",choices_Item:"選項",matrix_column:"列",matrix_row:"行",savingData:"正在將結果保存到服務器...",savingDataError:"在保存結果過程中發生了錯誤,結果未能保存",savingDataSuccess:"結果保存成功!",saveAgainButton:"請重試"},n.a.localeNames["zh-tw"]="繁體中文"},function(e,t,r){"use strict";var n=r(0);n.a.locales.tr={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",otherItemText:"Diğer (açıklayınız)",progressText:"Sayfa {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",requiredError:"Lütfen soruya cevap veriniz",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",addRow:"Satır Ekle",removeRow:"Kaldır"},n.a.localeNames.tr="türkçe"},function(e,t,r){"use strict";var n=r(0);n.a.locales.ua={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",optionsCaption:"Вибрати...",value:"значення",requiredError:"Будь ласка, дайте відповідь.",requiredErrorInPanel:"Будь ласка, дайте відповідь хоча б на одне питання.",requiredInAllRowsError:"Будь ласка, дайте відповідь на питання в кожному рядку.",numericError:"Відповідь повинна бути числом.",textMinLength:"Будь ласка введіть більше {0} символів.",textMaxLength:"Будь ласка введіть менше {0} символів.",textMinMaxLength:"Будь ласка введіть більше {0} и менше {1} символів.",minRowCountError:"Будь ласка, заповніть не менше {0} рядків.",minSelectError:"Будь ласка, виберіть хоча б {0} варіантів.",maxSelectError:"Будь ласка, виберіть не більше {0} варіантів.",numericMinMax:"'{0}' повинно бути не менше ніж {1}, і не більше ніж {2}",numericMin:"'{0}' повинно бути не менше ніж {1}",numericMax:"'{0}' повинно бути не більше ніж {1}",invalidEmail:"Будь ласка, введіть дійсну адресу електронної пошти.",invalidExpression:"Вираз {0} повинен повертати 'true'.",urlRequestError:"Запит повернув помилку '{0}'. {1}",urlGetChoicesError:"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно",exceedMaxSize:"Розмір файлу не повинен перевищувати {0}.",otherRequiredError:"Будь ласка, введіть дані в поле 'Інше'",uploadingFile:"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.",loadingFile:"Завантаження...",chooseFile:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",confirmDelete:"Ви хочете видалити запис?",keyDuplicationError:"Це значення повинно бути унікальним.",addColumn:"Додати колонку",addRow:"Додати рядок",removeRow:"Видалити",addPanel:"Додати нову",removePanel:"Видалити",choices_Item:"Варіант",matrix_column:"Колонка",matrix_row:"Рядок",savingData:"Результати зберігаються на сервер...",savingDataError:"Відбулася помилка, результат не був збережений.",savingDataSuccess:"Резвультат успішно збережений!",saveAgainButton:"Спробувати знову",timerMin:"хв",timerSec:"сек",timerSpentAll:"Ви витратили {0} на цій сторінці і {1} загалом.",timerSpentPage:"Ви витратили {0} на цій сторінці.",timerSpentSurvey:"Ви витратили {0} протягом тесту.",timerLimitAll:"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.",timerLimitPage:"Ви витратили {0} з {1} на цій сторінці.",timerLimitSurvey:"Ви витратили {0} з {1} для всього тесту.",cleanCaption:"Очистити",clearCaption:"Очистити",removeFileCaption:"Видалити файл"},n.a.localeNames.ua="українська"},function(e,t,r){"use strict";var n=r(1),i=r(4),o=r(2),a=r(7),s=r(0);r.d(t,"a",(function(){return l}));var l=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("label",r,!0),r.createLocalizableString("labelFalse",r,!0),r.createLocalizableString("labelTrue",r,!0),r.locLabelFalse.onGetTextCallback=function(e){return e||s.a.getString("booleanUncheckedLabel")},r.locLabelTrue.onGetTextCallback=function(e){return e||s.a.getString("booleanCheckedLabel")},r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||(this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.showTitle||this.isValueEmpty(this.locLabel.text)?this.getLocalizableString("title"):this.locLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this.getLocalizableStringText("label")},set:function(e){this.setLocalizableStringText("label",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabel",{get:function(){return this.getLocalizableString("label")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text||this.showTitle?this.locLabel:this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueTrue",{get:function(){return this.getPropertyValue("valueTrue")},set:function(e){this.setPropertyValue("valueTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueFalse",{get:function(){return this.getPropertyValue("valueFalse")},set:function(e){this.setPropertyValue("valueFalse",e)},enumerable:!0,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&(this.checkedValue=!0),"false"==this.defaultValue&&(this.checkedValue=!1),"indeterminate"==this.defaultValue&&(this.value=null)},t}(a.a);o.k.addClass("boolean",[{name:"defaultValue:dropdown",alternativeName:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"showTitle:boolean","valueTrue","valueFalse"],(function(){return new l("")}),"question"),i.a.Instance.registerQuestion("boolean",(function(e){return new l(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(4),a=r(13),s=r(3),l=r(10),u=r(0);r.d(t,"a",(function(){return c}));var c=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.noneItemValue=new l.a("none"),r.selectAllItemValue=new l.a("selectall"),r.invisibleOldValues={},r.isChangingValueOnClearIncorrect=!1;var n=r.createLocalizableString("noneText",r,!0);n.onGetTextCallback=function(e){return e||u.a.getString("noneItemText")},r.noneItemValue.locOwner=r,r.noneItemValue.setLocText(n);var i=r.createLocalizableString("selectAllText",r,!0);i.onGetTextCallback=function(e){return e||u.a.getString("selectAllItemText")},r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(i);var o=r;return r.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],(function(){o.onVisibleChoicesChanged()})),r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",u.a.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",u.a.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var r=e.length;return this.isItemSelected(this.otherItem)&&r--,r===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!0,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var r=this.visibleChoices[t];r!==this.noneItem&&r!==this.otherItem&&r!==this.selectAllItem&&e.push(r.value)}this.value=e},Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(s.a.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemClass=function(e){this.value;var t=this.isItemSelected(e),r=this.isReadOnly||!e.isEnabled,n=!t&&!r,i=e===this.selectAllItem,o=e===this.noneItem,a=this.cssClasses.item;return this.hasColumns||(a+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),r&&this.cssClasses.itemDisabled&&(a+=" "+this.cssClasses.itemDisabled),t&&this.cssClasses.itemChecked&&(a+=" "+this.cssClasses.itemChecked),n&&this.cssClasses.itemHover&&(a+=" "+this.cssClasses.itemHover),i&&this.cssClasses.itemSelectAll&&(a+=" "+this.cssClasses.itemSelectAll),o&&this.cssClasses.itemNone&&(a+=" "+this.cssClasses.itemNone),a},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues=[]),t=this.valueFromData(t);var r=this.value;if(t||(t=[]),r||(r=[]),!s.a.isTwoValueEquals(r,t)){if(this.hasNone){var n=this.noneIndexInArray(r),i=this.noneIndexInArray(t);n>-1?i>-1&&t.length>1&&t.splice(i,1):i>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,this.rendredValueToData(t))}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,r=0;r<e.length;r++)if(e[r]==t)return r;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasNone&&!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.addToVisibleChoices=function(t){this.hasSelectAll&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t),this.hasNone&&t.push(this.noneItem)},t.prototype.getDisplayValueCore=function(t,r){if(!Array.isArray(r))return e.prototype.getDisplayValueCore.call(this,t,r);for(var n=this.visibleChoices,i="",o=0;o<r.length;o++){var a=this.getChoicesDisplayValue(n,r[o]);a&&(i&&(i+=", "),i+=a)}return i},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,r=!1,n=this.restoreValuesFromInvisible();if(t||0!=n.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==n.length)return;t=[]}for(var i=[],o=0;o<t.length;o++){var a=this.canClearValueAnUnknow(t[o]);!e&&!a||e&&!this.isValueDisabled(t[o])?i.push(t[o]):(r=!0,a&&(this.invisibleOldValues[t[o]]=!0))}for(o=0;o<n.length;o++)i.push(n[o]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,0==i.length?this.clearValue():this.value=i,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++){var n=t[r].value;this.invisibleOldValues[n]&&(e.push(n),delete this.invisibleOldValues[n])}return e},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(n.type="radiogroup"),n},t.prototype.isAnswerCorrect=function(){return s.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var r=[],n=0;n<t.length;n++){var i=l.a.getItemByValue(this.activeChoices,t[n]);i?r.push(i.value):r.push(t[n])}return r},t.prototype.renderedValueFromDataCore=function(e){e&&Array.isArray(e)||(e=[]);for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t])){this.comment=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getQuestionComment()){var r=e.slice();return r[t]=this.getQuestionComment(),r}return e},t.prototype.hasUnknownValue=function(t,r){return void 0===r&&(r=!1),(!this.hasNone||t!=this.noneItemValue.value)&&e.prototype.hasUnknownValue.call(this,t,r)},t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("answercount")},t}(a.a);i.k.addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],(function(){return new c("")}),"checkboxbase"),o.a.Instance.registerQuestion("checkbox",(function(e){var t=new c(e);return t.choices=o.a.DefaultChoices,t}))},function(e,t,r){"use strict";var n=r(1),i=r(7),o=r(2),a=r(4),s=r(3);r.d(t,"a",(function(){return l}));var l=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return r.i(n.b)(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("text","regex")},t}(i.a);o.k.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]}],(function(){return new l("")}),"question"),a.a.Instance.registerQuestion("comment",(function(e){return new l(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(7),o=r(2),a=r(5),s=r(3);r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return h}));var l=function(){function e(e,t){this.name=e,this.json=t;var r=this;o.k.addClass(e,[],(function(e){return u.Instance.createQuestion(e?e.name:"",r)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,r){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,r)},e.prototype.onPropertyChanged=function(e,t,r){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,r)},e.prototype.onItemValuePropertyChanged=function(e,t,r,n,i){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:r,name:n,newValue:i})},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!0,configurable:!0}),e}(),u=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(o.k.findClass(t))throw"There is already class with name '"+t+"'";var r=new l(t,e);this.onAddingJson&&this.onAddingJson(t,r.isComposite),this.customQuestionValues.push(r)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!0,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)o.k.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new h(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new p(e,t)},e.Instance=new e,e}(),c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.name=t,n.customQuestion=r,o.l.createProperties(n),a.d.CreateDisabledDesignElements=!0,n.createWrapper(),a.d.CreateDisabledDesignElements=!1,n.customQuestion&&n.customQuestion.onCreated(n),n}return r.i(n.b)(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,n)},t.prototype.itemValuePropertyChanged=function(t,r,n,i){e.prototype.itemValuePropertyChanged.call(this,t,r,n,i),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,r,i)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,r,n){if(this.data){var i=this.convertDataName(e);this.data.setValue(i,this.convertDataValue(e,t),r,n),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,r){this.data&&this.data.setComment(this.getValueName(),t,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return-1},t}(i.a),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.i(n.b)(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),!this.contentQuestion)return!1;var n=this.contentQuestion.hasErrors(t,r);this.errors=[];for(var i=0;i<this.contentQuestion.errors.length;i++)this.errors.push(this.contentQuestion.errors[i]);return n||(n=e.prototype.hasErrors.call(this,t,r)),this.updateElementCss(),n},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!0,configurable:!0}),t.prototype.createQuestion=function(){var e=this.customQuestion.json,t=null;if(e.questionJSON){var r=e.questionJSON.type;if(!r||!o.k.findClass(r))throw"type attribute in questionJSON is empty or incorrect";t=o.k.createClass(r),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&!t.name&&(t.name="question"),t},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.contentQuestion&&this.contentQuestion.runCondition(t,r)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var r=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,r){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:r},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.contentQuestion&&(this.contentQuestion.value=t)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.initElement=function(t){var r=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){r.customQuestion&&r.customQuestion.onAfterRenderContentElement(r,e,t)})},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t}(c),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.i(n.b)(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getCssType=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,r)||n},t.prototype.updateElementCss=function(){e.prototype.updateElementCss.call(this),this.contentPanel&&this.contentPanel.updateElementCss()},t.prototype.createPanel=function(){var e=o.k.createClass("panel");e.showQuestionNumbers="off";var t=this.customQuestion.json;return t.elementsJSON&&e.fromJSON({elements:t.elementsJSON}),t.createElements&&t.createElements(e),this.initElement(e),e.readOnly=this.isReadOnly,this.setAfterRenderCallbacks(e),e},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this)},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,r=0;r<t.length;r++){var n=t[r];n.isPanel?this.setIsContentElement(n):n.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var r=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(r+=this.contentPanel.setVisibleIndex(t)),r},t.prototype.runCondition=function(t,r){if(e.prototype.runCondition.call(this,t,r),this.contentPanel){var n=t.composite;t.composite=this.contentPanel.getValue(),this.contentPanel.runCondition(t,r),delete t.composite,n&&(t.composite=n)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.convertDataValue=function(e,t){var r=this.value;return r||(r={}),s.a.isValueEmpty(t)?delete r[e]:r[e]=t,r},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r);for(var n=this.contentPanel.questions,i=0;i<n.length;i++){var o=n[i].getValueName();n[i].value=t?t[o]:void 0}},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var r=e.questions,n=0;n<r.length;n++)r[n].afterRenderQuestionCallback=function(e,r){t.customQuestion.onAfterRenderContentElement(t,e,r)}},t}(c)},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(7);r.d(t,"a",(function(){return a}));var a=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"empty"},t}(o.a);i.k.addClass("empty",[],(function(){return new a("")}),"question")},function(e,t,r){"use strict";var n=r(1),i=r(7),o=r(2),a=r(4),s=r(5),l=r(9),u=r(0);r.d(t,"a",(function(){return c}));var c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isUploading=!1,r.onStateChanged=new s.b,r.previewValue=[],r.currentState="empty",r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload",!1)},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize",0)},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!0,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return u.a.getString("confirmRemoveFile").format(e)},Object.defineProperty(t.prototype,"confirmRemoveAllMessage",{get:function(){return u.a.getString("confirmRemoveAllFiles")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noFileChosenCaption",{get:function(){return u.a.getString("noFileChosen")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonCaption",{get:function(){return u.a.getString("chooseFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cleanButtonCaption",{get:function(){return u.a.getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeFileCaption",{get:function(){return u.a.getString("removeFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?u.a.getString("loadingFile"):this.isEmpty()?u.a.getString("chooseFile"):" "},enumerable:!0,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey.clearFiles(this,this.name,this.value,null,(function(r,n){"success"===r&&(t.value=void 0,t.errors=[],e&&e())}))},t.prototype.removeFile=function(e){var t=this;this.survey.clearFiles(this,this.name,this.value,e.name,(function(r,n){if("success"===r){var i=t.value;Array.isArray(i)?t.value=i.filter((function(t){return t.name!==e.name})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var r=function(){var r=[];t.storeDataAsText?e.forEach((function(n){var i=new FileReader;i.onload=function(o){(r=r.concat([{name:n.name,type:n.type,content:i.result}])).length===e.length&&(t.value=(t.value||[]).concat(r))},i.readAsDataURL(n)})):t.survey.uploadFiles(t,t.name,e,(function(e,r){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(r.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?r():this.clear(r)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.setQuestionValue=function(t){var r=this;e.prototype.setQuestionValue.call(this,t),this.previewValue=[];var n=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(n),this.showPreview&&t){var i=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(i.forEach((function(e){var t=e.content||e;r.previewValue=r.previewValue.concat([{name:e.name,type:e.type,content:t}])})),"loading"===n&&this.stateChanged("loaded")):i.forEach((function(e){e.content,r.survey.downloadFile(r.name,e,(function(t,n){"success"===t?(r.previewValue=r.previewValue.concat([{content:n,name:e.name,type:e.type}]),r.previewValue.length===i.length&&r.stateChanged("loaded")):r.stateChanged("error")}))}))}},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),this.isUploading&&this.waitForUpload&&t.push(new l.g(u.a.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e})},t.prototype.allFilesOk=function(e){var t=this,r=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new l.e(t.maxSize,t))})),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t=e.content&&e.content.substr(0,"data:image".length);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r&&!this.isEmpty()){r.isNode=!1;var n=Array.isArray(this.value)?this.value:[this.value];r.data=n.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return r},t.prototype.supportComment=function(){return!0},t}(i.a);o.k.addClass("file",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},"maxSize:number",{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean",visible:!0,default:!1}],(function(){return new c("")}),"question"),a.a.Instance.registerQuestion("file",(function(e){return new c(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(19),o=r(2),a=r(4);r.d(t,"a",(function(){return s}));var s=function(e){function t(t){var r=e.call(this,t)||this;r.name=t;var n=r.createLocalizableString("html",r),i=r;return n.onGetTextCallback=function(e){return i.survey?i.survey.processHtml(e):e},r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!0,configurable:!0}),t}(i.a);o.k.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new s("")}),"nonvalue"),a.a.Instance.registerQuestion("html",(function(e){return new s(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(19),o=r(2),a=r(4);r.d(t,"a",(function(){return s}));var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getPropertyValue("imageLink")},set:function(e){this.setPropertyValue("imageLink",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t}(i.a);o.k.addClass("image",[{name:"imageLink"},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],(function(){return new s("")}),"nonvalue"),a.a.Instance.registerQuestion("image",(function(e){return new s(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(4),a=r(13),s=r(3);r.d(t,"a",(function(){return l}));var l=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.colCount=0,r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect",!1)},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value;if(s.a.isValueEmpty(t))return!1;if(!this.multiSelect)return s.a.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(s.a.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var r=[],n=0;n<t.length;n++)this.hasUnknownValue(t[n],!0)||r.push(t[n]);if(r.length==t.length)return;0==r.length?this.clearValue():this.value=r}else e.prototype.clearIncorrectValues.call(this)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel",!1)},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!0,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value"))},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?s.a.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),r=this.isItemSelected(e),n=this.isReadOnly||!e.isEnabled,i=!r&&!n;return r&&this.cssClasses.itemChecked&&(t+=" "+this.cssClasses.itemChecked),n&&this.cssClasses.itemDisabled&&(t+=" "+this.cssClasses.itemDisabled),i&&this.cssClasses.itemHover&&(t+=" "+this.cssClasses.itemHover),t},t.prototype.convertDefaultValue=function(e){return e},t}(a.a);i.k.addClass("imageitemvalue",[],void 0,"itemvalue"),i.k.addProperty("imageitemvalue",{name:"imageLink"}),i.k.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],(function(){return new l("")}),"checkboxbase"),i.k.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),i.k.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),i.k.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),i.k.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),o.a.Instance.registerQuestion("imagepicker",(function(e){return new l(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(10),a=r(26),s=r(2),l=r(0),u=r(9),c=r(4),p=r(12),h=r(29),d=r(6);r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return g})),r.d(t,"c",(function(){return m}));var f=function(){function e(e,t,r,n){this.fullName=t,this.item=e,this.data=r,this.rowValue=n}return Object.defineProperty(e.prototype,"name",{get:function(){return this.item.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValue},set:function(e){this.rowValue=e,this.data&&this.data.onMatrixRowChanged(this),this.onValueChanged()},enumerable:!0,configurable:!0}),e.prototype.onValueChanged=function(){},e}(),g=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!0,configurable:!0}),e.prototype.setCellText=function(e,t,r){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(r)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=r;else if(this.values[e]&&this.values[e][t]){var n=this.values[e][t];n.text="",n.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(d.a.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(d.a.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var r=this.getCellLocText(e,t);return r&&!r.isEmpty||(r=this.getCellLocText(d.a.matrixDefaultRowName,t))&&!r.isEmpty?r:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(d.a.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!0,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var r={},n=this.values[t];for(var i in n)r[i]=n[i].getJson();e[t]=r}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var r=e[t];for(var n in this.values[t]={},r)if("pos"!=n){var i=this.createString();i.setJson(r[n]),this.values[t][n]=i}}},e.prototype.createString=function(){return new p.a(this.cellsOwner,!0)},e}(),m=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.emptyLocalizableString=new p.a(r),r.cellsValue=new g(r);var n=r;return r.registerFunctionOnPropertyValueChanged("columns",(function(){n.onColumnsChanged()})),r.registerFunctionOnPropertyValueChanged("rows",(function(){n.filterItems()||n.onRowsChanged()})),r.registerFunctionOnPropertyValueChanged("hideIfRowsEmpty",(function(){n.updateVisibilityBasedOnRows()})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty",!1)},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,r=0;r<this.rows.length;r++){var n=this.rows[r].value;!i.a.isValueEmpty(t[n])&&i.a.isTwoValueEquals(this.correctAnswer[n],t[n])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var r=this.filteredRows?this.filteredRows:this.rows,n=0;n<r.length;n++){var i=r[n];this.isValueEmpty(i.value)||e.push(this.createMatrixRow(i,this.id+"_"+i.value.toString().replace(/\s/g,"_"),t[i.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new o.a(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return"random"===this.rowsOrder.toLowerCase()?i.a.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.updateVisibilityBasedOnRows()},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!0,configurable:!0}),t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var r=this.cells.getCellDisplayLocText(e,t);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),(!r||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new u.i(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(!e[t].value)return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,r){return new f(e,t,this,r)},t.prototype.setQuestionValue=function(t){if(e.prototype.setQuestionValue.call(this,t,this.isRowChanging),!this.isRowChanging&&this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].value=r;else for(var n=0;n<this.generatedVisibleRows.length;n++){var i=this.generatedVisibleRows[n],o=r[i.name]?r[i.name]:null;this.generatedVisibleRows[n].value=o}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var r={};for(var n in t){var i=e?o.a.getTextOrHtmlByValue(this.rows,n):n;i||(i=n);var a=o.a.getTextOrHtmlByValue(this.columns,t[n]);a||(a=t[n]),r[i]=a}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){var i=this.createValueCopy();n.isNode=!0,n.data=Object.keys(i||{}).map((function(e){var n=r.rows.filter((function(t){return t.value===e}))[0],a={name:e,title:n?n.text:"row",value:i[e],displayValue:o.a.getTextOrHtmlByValue(r.visibleColumns,i[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=o.a.getItemByValue(r.visibleColumns,i[e]);return s&&(t.calculations||[]).forEach((function(e){a[e.propertyName]=s[e.propertyName]})),a}))}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.rows.length;r++){var n=this.rows[r];n.value&&e.push({name:this.getValueName()+"."+n.value,text:this.processedTitle+"."+n.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=new h.a(r);n.choices=this.columns;var i=(new s.g).toJsonObject(n);return i.type=n.getType(),i},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),e.prototype.onRowsChanged.call(this)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t}(a.a);s.k.addClass("matrix",[{name:"columns:itemvalue[]",baseValue:function(){return l.a.getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return l.a.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new m("")}),"matrixbase"),c.a.Instance.registerQuestion("matrix",(function(e){var t=new m(e);return t.rows=c.a.DefaultRows,t.columns=c.a.DefaultColums,t}))},function(e,t,r){"use strict";var n=r(1),i=r(18),o=r(2),a=r(10),s=r(4);r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return u}));var l=function(e){function t(t,r,n,i){var o=e.call(this,n,i)||this;return o.name=t,o.item=r,o.buildCells(i),o}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),t}(i.d),u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.createLocalizableString("totalText",r,!0);var n=r;return r.registerFunctionOnPropertyValueChanged("rows",(function(){n.generatedVisibleRows=null,n.resetRenderedTable(),n.filterItems()})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!0,configurable:!0}),t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},t.prototype.getDisplayValueCore=function(e,t){var r=this.createValueCopy();if(!r)return r;for(var n=this.visibleRows,i={},o=0;o<n.length;o++){var s=this.rows[o].value,l=r[s];if(l){if(e){var u=a.a.getTextOrHtmlByValue(this.rows,s);u&&(s=u)}i[s]=this.getRowDisplayValue(n[o],l)}}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&this.columns.indexOf(t)>-1,n=0;n<this.rows.length;n++){var i=this.rows[n];if(i.value)for(var o=this.getValueName()+"."+i.value+".",a=this.processedTitle+"."+i.calculatedText+".",s=0;s<this.columns.length;s++){var l=this.columns[s];e.push({name:o+l.name,text:a+l.fullTitle,question:this})}}if(r)for(n=0;n<this.columns.length;n++)(l=this.columns[n])!=t&&e.push({name:"row."+l.name,text:"row."+l.fullTitle,question:this})},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,i=this.filteredRows?this.filteredRows:this.rows;for(var o in t)a.a.getItemByValue(i,o)?(null==r&&(r={}),r[o]=t[o]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var r=this.value;r||(r={});for(var n=0;n<t.length;n++)t[n].value&&e.push(this.createMatrixRow(t[n],r[t[n].value]));return e},t.prototype.createMatrixRow=function(e,t){return new l(e.value,e,this,t)},t}(i.e);o.k.addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"}],(function(){return new u("")}),"matrixdropdownbase"),s.a.Instance.registerQuestion("matrixdropdown",(function(e){var t=new u(e);return t.choices=[1,2,3,4,5],t.rows=s.a.DefaultColums,i.e.addDefaultColumns(t),t}))},function(e,t,r){"use strict";var n=r(1),i=r(18),o=r(2),a=r(4),s=r(0),l=r(9),u=r(3),c=r(6),p=r(35);r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return d}));var h=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.index=t,i.buildCells(n),i}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(i.d),d=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.rowCounter=0,r.rowCountValue=2,r.initialRowCount=2,r.setRowCountValueFromData=!1,r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("addRowText",r),r.createLocalizableString("removeRowText",r),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],r=0;r<this.rowCount;r++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>c.a.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isLoadingFromJson)this.initialRowCount=e;else{if(this.generatedVisibleRows){this.generatedVisibleRows.splice(e);for(var n=t;n<e;n++){var i=this.createMatrixRow(null);this.generatedVisibleRows.push(i),this.onMatrixRowCreated(i)}}this.onRowsChanged()}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",c.a.matrixMaximumRowCount)},set:function(e){e<=0||(e>c.a.matrixMaximumRowCount&&(e=c.a.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows",!0)},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows",!0)},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isLoadingFromJson||this.resetRenderedTable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding())},t.prototype.hasRowsAsItems=function(){return!1},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(t)||(r=this.createNewValue()).length==this.rowCount&&(r[r.length-1]=t,this.value=r),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var n=this.visibleRows[this.rowCount-1];u.a.isValueEmpty(n.value)||(r||(r=this.createNewValue()),u.a.isTwoValueEquals(r[r.length-1],n.value)||(r[r.length-1]=n.value,this.value=r))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;n&&!this.isValueEmpty(n.getDefaultValue())&&((t=t||{})[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var i in this.defaultRowValue)(t=t||{})[i]=this.defaultRowValue[i];if(e&&this.defaultValueFromLastRow){var o=this.value;if(o&&Array.isArray(o)&&o.length>=this.rowCount-1){var a=o[this.rowCount-2];for(var i in a)(t=t||{})[i]=a[i]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.isRequireConfirmOnRowDelete(e)&&!r.i(p.a)(this.confirmDeleteText)||this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(u.a.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||u.a.isValueEmpty(t[e]))},t.prototype.removeRow=function(e){this.canRemoveRows&&(e<0||e>=this.rowCount||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(e)))},t.prototype.removeRowCore=function(e){if(this.survey){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;this.survey.matrixRowRemoved(this,e,t)}if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];(r=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged()},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",s.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",s.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){var e=this.isColumnLayoutHorizontal?"addRow":"addColumn";return this.getLocalizableStringText("addRowText",s.a.getString(e))},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnTop",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"vertical"===this.columnLayout:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnLayout:"top"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",s.a.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var r=this.createValueCopy();if(!r||!Array.isArray(r))return r;for(var n=this.visibleRows,i=0;i<n.length&&i<r.length;i++){var o=r[i];o&&(r[i]=this.getRowDisplayValue(n[i],o))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&this.columns.indexOf(t)>-1,n=0;n<this.columns.length;n++){var i=this.columns[n];e.push({name:this.getValueName()+"[0]."+i.name,text:this.processedTitle+"[0]."+i.fullTitle,question:this}),r&&i!=t&&e.push({name:"row."+i.name,text:"row."+i.fullTitle,question:this})}},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),!r&&this.hasErrorInRows()&&t.push(new l.j(this.minRowCount,this))},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.isValueDuplicated()||n},t.prototype.hasErrorInRows=function(){if(this.minRowCount<=0||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.isValueDuplicated=function(){if(!this.keyName||!this.generatedVisibleRows)return!1;var e=this.getColumnByName(this.keyName);if(!e)return!1;for(var t=[],r=!1,n=0;n<this.generatedVisibleRows.length;n++)r=this.isValueDuplicatedInRow(this.generatedVisibleRows[n],e,t)||r;return r},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var i=n.value,o=0;o<r.length;o++)if(i==r[o])return n.addError(new l.f(this.keyDuplicationError,this)),!0;return r.push(i),!1},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new h(this.rowCounter++,this,e)},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;t!=this.rowCount&&(!this.setRowCountValueFromData&&t<this.initialRowCount||(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows&&(this.generatedVisibleRows=null,this.generatedVisibleRows=this.visibleRows,this.onRowsChanged())))}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var r=e.length;r<this.rowCount;r++)e.push(u.a.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){if(void 0===r&&(r=!1),!this.generatedVisibleRows)return{};var n=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!n&&r&&(n={}),n},t}(i.e);o.k.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:c.a.matrixMaximumRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],(function(){return new d("")}),"matrixdropdownbase"),a.a.Instance.registerQuestion("matrixdynamic",(function(e){var t=new d(e);return t.choices=[1,2,3,4,5],i.e.addDefaultColumns(t),t}))},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(7),a=r(31),s=r(2),l=r(4),u=r(3);r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return p}));var c=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.editorValue=n.createEditor(t),n.editor.questionTitleTemplateCallback=function(){return""},n.editor.titleLocation="left",r&&(n.title=r),n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(e){return new a.a(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return u.a.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.editor.placeHolder},set:function(e){this.editor.placeHolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return u.a.isValueEmpty(this.value)},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(i.a),p=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isMultipleItemValueChanging=!1;var n=r;return r.createNewArray("items",(function(e){e.setData(n)})),r.registerFunctionOnPropertyValueChanged("items",(function(){n.fireCallback(n.colCountChangedCallback)})),r.registerFunctionOnPropertyValueChanged("colCount",(function(){n.fireCallback(n.colCountChangedCallback)})),r}return r.i(n.b)(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1);for(var r=0;r<this.items.length;r++){var n=this.items[r];n.editor&&n.editor.updateValueFromSurvey(n.value)}this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++){var n=this.items[r];n.editor&&n.editor.onSurveyValueChanged(n.value)}},t.prototype.editorsOnSurveyLoad=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];t.editor&&t.editor.onSurveyLoad()}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.items.length;r++){var n=this.items[r];e.push({name:this.getValueName()+"."+n.name,text:this.processedTitle+"."+n.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=this.getItemByName(r);if(!n)return null;var i=(new s.g).toJsonObject(n);return i.type="text",i},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,i=0;i<t.length;i++)0==n&&r.push([]),r[r.length-1].push(t[i]),++n>=e&&(n=0);return r},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new c(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=null);for(var i=!1,o=0;o<this.items.length;o++)this.items[o].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},r&&!0===r.isOnValueChanged&&this.items[o].editor.isEmpty()||(i=this.items[o].editor.hasErrors(t,r)||i);return e.prototype.hasErrors.call(this,t)||i},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.items.length;r++){var n=this.items[r].editor.getAllErrors();n&&n.length>0&&(t=t.concat(n))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.items,n=0;n<r.length;n++)if(r[n].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var r=this.items[t].editor;if(r.isVisible&&!r.isAnswered)return!1}return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0;var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return-1},t}(o.a);s.k.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new c("")})),s.k.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25,minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new p("")}),"question"),l.a.Instance.registerQuestion("multipletext",(function(e){var t=new p(e);return t.addItem("text1"),t.addItem("text2"),t}))},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(0),a=r(15),s=r(11),l=r(7),u=r(14),c=r(2),p=r(4),h=r(9),d=r(6),f=r(35);r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return y}));var g=function(){function e(e,t){this.data=e,this.panelValue=t;var r=this;this.textPreProcessor=new a.a,this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+d.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,r){this.setValue(e+d.a.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},r=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in r)t[n]=r[n];return t[e.ItemVariableName]=this.getAllValues(),t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this},e.prototype.getProcessedTextValue=function(t){if(t){var r=this.data?this.data.getItemIndex(this):-1;if(t.name==e.IndexVariableName)return t.isExists=!0,void(t.value=r+1);var n=(new s.a).getFirstName(t.name);if(t.isExists=n==e.ItemVariableName,t.canProcess=t.isExists,t.canProcess){t.name=t.name.replace(e.ItemVariableName+".",""),n=(new s.a).getFirstName(t.name);var i=this.panel.getQuestionByValueName(n);!i&&r>-1&&(i=this.data.getSharedQuestionFromArray(n,r));var o={};if(i)o[n]=t.returnDisplayValue?i.displayValue:i.value;else{var a=this.getAllValues();a&&(o[n]=a[n])}t.value=(new s.a).getValue(t.name,o)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var r=this.getSurvey();return r?r.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(n=this.getSurvey().processTextEx(e,t,!1)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.ItemVariableName="panel",e.IndexVariableName="panelIndex",e}(),m=function(){function e(e){this.data=e}return e.prototype.geSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),y=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.loadingPanelCount=0,r.currentIndexValue=-1,r.isAddingNewPanels=!1,r.createNewArray("panels"),r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r;var n=r;return r.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},r.template.removeElementCallback=function(e){n.rebuildPanels()},r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("panelAddText",r),r.createLocalizableString("panelRemoveText",r),r.createLocalizableString("panelPrevText",r),r.createLocalizableString("panelNextText",r),r.registerFunctionOnPropertyValueChanged("panelsState",(function(){n.setPanelsState()})),r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.onPropertyChanged.add((function(e,r){t.onTemplateElementPropertyChanged(e,r)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.isDesignMode&&0!=this.panels.length&&c.k.findProperty(e.getType(),t.name))for(var r=this.panels,n=0;n<r.length;n++){var i=r[n].getQuestionByName(e.name);i&&i[t.name]!==t.newValue&&(i[t.name]=t.newValue)}},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.isDesignMode?0:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){this.currentIndexValue!==e&&(e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",o.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",o.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",o.a.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",o.a.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",o.a.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",o.a.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.isDesignMode)this.loadingPanelCount=e;else if(e!=this.panels.length&&!this.isDesignMode){this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var r=this.createNewPanel();this.panels.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.isDesignMode?this.surveyImpl:new m(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount",0)},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",d.a.panelMaximumPanelCount)},set:function(e){e<=0||(e>d.a.panelMaximumPanelCount&&(e=d.a.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress",!0)},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"==this.renderMode},enumerable:!0,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.panels.length;n++){var i=this.setPanelVisibleIndex(this.panels[n],r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=i)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},t.prototype.setPanelVisibleIndex=function(e,t,r){return r?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!0,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.isDesignMode)new g(this,this.template),t.push(this.template);else for(var i=0;i<this.panelCount;i++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,r.i(n.d)([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],r=0;r<this.panelCount;r++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!r.i(f.a)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){"list"!==this.renderMode&&this.currentPanel.hasErrors()||this.currentIndex++},t.prototype.goToPrevPanel=function(){this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){var r=this.panels[t];this.panels.splice(t,1),!(e=this.value)||!Array.isArray(e)||t>=e.length||(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,r),this.isValueChangingInternally=!1)}},t.prototype.getPanelIndex=function(e){if(i.a.isNumber(e))return e;for(var t=this.items,r=0;r<this.panels.length;r++)if(this.panels[r]===e||t[r]===e)return r;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,r=0;r<t.length;r++)t[r].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=r&&e<r.length?r[e]:null;if(n){var i=!1;for(var o in n)t.getQuestionByName(o)||this.getSharedQuestionFromArray(o,e)||(delete n[o],i=!0);i&&(r[e]=n,this.value=r)}},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&this.template.questions.indexOf(t)>-1,n=this.getValueName()+"[0].",i=this.processedTitle+"[0].",o=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(o,t);for(s=0;s<o.length;s++)e.push({name:n+o[s].name,text:i+o[s].text,question:o[s].question});if(r)for(s=0;s<o.length;s++)o[s].question!=t&&e.push({name:"panel."+o[s].name,text:"panel."+o[s].text,question:o[s].question})},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t,r);var n=r,i=r.indexOf(".");i>-1&&(n=r.substr(0,i),r=r.substr(i+1));var o=this.template.getQuestionByName(n);return o?o.getConditionJson(t,r):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var r=0;r<this.panels.length;r++)this.panels[r].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(t,r)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e)));for(var n=0;n<this.panels.length;n++){var o=this.getPanelItemData(this.panels[n].data),a=i.a.createCopy(r);a[g.ItemVariableName.toLowerCase()]=o,a[g.IndexVariableName.toLowerCase()]=n,this.panels[n].runCondition(a,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].onAnyValueChanged(t),this.panels[r].onAnyValueChanged(g.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var r,n=[],i=0;i<this.panels.length;i++)r=this.isValueDuplicated(this.panels[i],n,t,e)||r;return r},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),this.isValueChangingInternally)return!1;var n=!1;if(this.changingValueQuestion)return n=this.changingValueQuestion.hasErrors(t,r),n=this.hasKeysDuplicated(t,r)||n,this.updatePanelsContainsErrors(),n;var i=this.hasErrorInPanels(t,r);return e.prototype.hasErrors.call(this,t)||i},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.panels,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,r=0;r<t.length;r++){var n=[];t[r].addQuestionsToList(n,!0);for(var i=0;i<n.length;i++)if(!n[i].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisible=function(){for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)r[n].clearValueIfInvisible();e.prototype.clearValueIfInvisible.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)if(r[n].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.panels.length;r++)for(var n=this.panels[r].questions,i=0;i<n.length;i++){var o=n[i].getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.getDisplayValueCore=function(e,t){var r=this.createValueCopy();if(!r||!Array.isArray(r))return r;for(var n=0;n<this.panels.length&&n<r.length;n++){var i=r[n];i&&(r[n]=this.getPanelDisplayValue(n,i,e))}return r},t.prototype.getPanelDisplayValue=function(e,t,r){if(!t)return t;var n=this.panels[e];for(var i in t){var o=n.getQuestionByValueName(i);o||(o=this.getSharedQuestionFromArray(i,e)),o&&(t[i]=o.getDisplayValue(r))}return t},t.prototype.hasErrorInPanels=function(e,t){for(var r=!1,n=this.panels,i=[],o=0;o<n.length;o++)this.setOnCompleteAsyncInPanel(n[o]);for(o=0;o<n.length;o++){var a=n[o].hasErrors(e,!!t&&t.focuseOnFirstError,t);a=this.isValueDuplicated(n[o],i,t)||a,this.isRenderModeList||!a||r||(this.currentIndex=o),r=a||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,r=e.questions,n=0;n<r.length;n++)r[n].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,r,n){if(!this.keyName)return!1;var i=e.getQuestionByValueName(this.keyName);if(!i||i.isEmpty())return!1;var o=i.value;this.changingValueQuestion&&i!=this.changingValueQuestion&&i.hasErrors(n,r);for(var a=0;a<t.length;a++)if(o==t[a])return i.addError(new h.f(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=i),!0;return t.push(o),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();return(new c.g).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new g(this,e),e.onFirstRendering(),e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject(),t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return new u.a},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.isDesignMode){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var r=0;r<this.panels.length;r++)this.panelUpdateValueFromSurvey(this.panels[r]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panelSurveyValueChanged(this.panels[r]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var i=t[n];i.updateValueFromSurvey(r[i.getValueName()]),i.updateCommentFromSurvey(r[i.getValueName()+d.a.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var i=t[n];i.onSurveyValueChanged(r[i.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items,r=t.indexOf(e),n=this.value;return r<0&&Array.isArray(n)&&n.length>t.length&&(r=t.length),r<0||!n||!Array.isArray(n)||n.length<=r?{}:n[r]},t.prototype.setPanelItemData=function(e,t,r){var n=this.items,o=n.indexOf(e);o<0&&(o=n.length);var a=i.a.getUnbindValue(this.value);if(a&&Array.isArray(a)||(a=[]),a.length<=o)for(var s=a.length;s<=o;s++)a.push({});if(a[o]||(a[o]={}),this.isValueEmpty(r)?delete a[o][t]:a[o][t]=r,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=a,this.changingValueQuestion=null,this.survey){var l={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:a[o],value:r};this.survey.dynamicPanelItemValueChanged(this,l)}},t.prototype.getSurvey=function(){return this.survey},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.panels.map((function(e,r){var n={name:e.name||r,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){n[t.propertyName]=e[t.propertyName]})),n}))),r},t.prototype.updateElementCss=function(){e.prototype.updateElementCss.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].updateElementCss()},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return o.a.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!0,configurable:!0}),t}(l.a);c.k.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.a.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]}],(function(){return new y("")}),"question"),p.a.Instance.registerQuestion("paneldynamic",(function(e){return new y(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(4),a=r(13),s=r(0),l=r(10);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton",!1)},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return s.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getItemClass=function(e){var t=this.cssClasses.item,r=this.isReadOnly||!e.isEnabled,n=e.value===this.value||this.isOtherSelected&&this.otherItem.value===e.value,i=!r&&!n;return this.hasColumns||(t+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),r&&this.cssClasses.itemDisabled&&(t+=" "+this.cssClasses.itemDisabled),n&&this.cssClasses.itemChecked&&(t+=" "+this.cssClasses.itemChecked),i&&this.cssClasses.itemHover&&(t+=" "+this.cssClasses.itemHover),t},t}(a.a);i.k.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],(function(){return new u("")}),"checkboxbase"),o.a.Instance.registerQuestion("radiogroup",(function(e){var t=new u(e);return t.choices=o.a.DefaultChoices,t}))},function(e,t,r){"use strict";var n=r(1),i=r(10),o=r(7),a=r(2),s=r(4),l=r(6);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.createItemValues("rates");var n=r;r.registerFunctionOnPropertyValueChanged("rates",(function(){n.fireCallback(n.rateValuesChangedCallback)})),r.onPropertyChanged.add((function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||n.fireCallback(n.rateValuesChangedCallback)}));var i=r.createLocalizableString("minRateDescription",r,!0),o=r.createLocalizableString("maxRateDescription",r,!0);return i.onGetTextCallback=function(e){return e?e+" ":e},o.onGetTextCallback=function(e){return e?" "+e:e},r}return r.i(n.b)(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rates")},set:function(e){this.setPropertyValue("rates",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){!this.isLoadingFromJson&&e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){!this.isLoadingFromJson&&e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){e<=0&&(e=1),!this.isLoadingFromJson&&e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var r=i.a.getTextOrHtmlByValue(this.visibleRateValues,t);return r||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],t=this.rateMin,r=this.rateStep;t<=this.rateMax&&e.length<l.a.ratingMaximumRateValueCount;)e.push(new i.a(t)),t=this.correctValue(t+r,r);return e},enumerable:!0,configurable:!0}),t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var r=0;Math.round(t)!=t;)t*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!0,configurable:!0}),t}(o.a);a.k.addClass("rating",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"rateValues:itemvalue[]"},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1,minValue:.1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],(function(){return new u("")}),"question"),s.a.Instance.registerQuestion("rating",(function(e){return new u(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(7),a=r(0),s=r(40),l=r(4);r.d(t,"a",(function(){return u}));var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return r.i(n.b)(t,e),t.prototype.getCssRoot=function(t){var r=e.prototype.getCssRoot.call(this,t);return""+this.width=="300"&&(r+=" "+t.small),r},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestoyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,r=e.getElementsByTagName("canvas")[0],n=e.getElementsByTagName("button")[0],i=new s.a(r);this.isReadOnly&&i.off(),n.onclick=function(){t.value=void 0},this.readOnlyChangedCallback=function(){!t.allowClear||t.isReadOnly?(i.off(),n.style.display="none"):(i.on(),n.style.display="block")},i.penColor=this.penColor,i.onBegin=function(){r.focus()},i.onEnd=function(){var e=i.toDataURL();t.value=e};var o=function(){var e=t.value;r.width=t.width||300,r.height=t.height||200,function(e){var t=e.getContext("2d"),r=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),n=e.width,i=e.height;e.width=n*r,e.height=i*r,e.style.width=n+"px",e.style.height=i+"px",t.scale(r,r)}(r),i.fromDataURL(e||"data:image/gif;base64,R0lGODlhAQABAIAAAP")};this.valueChangedCallback=o,o(),this.readOnlyChangedCallback(),this.signaturePad=i;var a=function(e,t){"width"!==t.name&&"height"!==t.name||o()};this.onPropertyChanged.add(a),this.signaturePad.propertyChangedHandler=a},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width",300)},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height",200)},set:function(e){this.setPropertyValue("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear",!0)},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor","#1ab394")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return a.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t}(o.a);i.k.addClass("signaturepad",[{name:"allowClear:boolean",default:!0},{name:"width:number",default:300},{name:"height:number",default:200},{name:"penColor",default:"#1ab394"}],(function(){return new u("")}),"question"),l.a.Instance.registerQuestion("signaturepad",(function(e){return new u(e)}))},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(33);r.d(t,"a",(function(){return a}));var a=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;n.closeOnCompleteTimeout=0,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div"));var i=n;return n.survey.onComplete.add((function(e,t){i.onSurveyComplete()})),n}return r.i(n.b)(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new o.a(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null;t=window.setInterval((function(){e.closeWindowOnComplete(),window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout)}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(i.a)},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(5),a=r(2),s=r(8),l=r(16),u=r(11),c=r(6);r.d(t,"g",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"d",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return g})),r.d(t,"f",(function(){return y})),r.d(t,"e",(function(){return v}));var p=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var r=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],(function(){r.oldPropertiesChanged()})),t.registerFunctionOnPropertyValueChanged("expression",(function(){r.onExpressionChanged()})),t}return r.i(n.b)(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.checkExpression=function(e,t,r){void 0===r&&(r=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,r)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var r=this;this.conditionRunner.onRunComplete=function(n){r.triggerResult(n,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,r){e?this.onSuccess(t,r):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?i.a.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.g.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=0;t<this.usedNames.length;t++)if(e.hasOwnProperty(this.usedNames[t]))return!0;return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;if(e||(e=this.buildExpression()),e){this.conditionRunner=new s.a(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables();for(var t=new u.a,r=0;r<this.usedNames.length;r++)this.usedNames[r]=t.getFirstName(this.usedNames[r])}}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!0,configurable:!0}),t.operatorsValue=null,t}(o.a),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!0,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(p),d=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return r.i(n.b)(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),f=function(e){function t(){return e.call(this)||this}return r.i(n.b)(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!c.a.executeCompleteTriggerOnValueChanged},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(h),g=function(e){function t(){return e.call(this)||this}return r.i(n.b)(t,e),t.prototype.getType=function(){return"setvaluetrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable",!1)},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),m=function(e){function t(){return e.call(this)||this}return r.i(n.b)(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),y=function(e){function t(){return e.call(this)||this}return r.i(n.b)(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){var r=this;if(this.owner&&this.runExpression){var n=new s.b(this.runExpression);n.canRun&&(n.onRunComplete=function(e){r.onCompleteRunExpression(e)},n.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0===e||this.owner.setTriggerValue(this.setToName,e,!1)},t}(h),v=function(e){function t(){return e.call(this)||this}return r.i(n.b)(t,e),Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(h);a.k.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),a.k.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),a.k.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new d}),"surveytrigger"),a.k.addClass("completetrigger",[],(function(){return new f}),"surveytrigger"),a.k.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),a.k.addClass("copyvaluetrigger",[{name:"!setToName:questionvalue"},{name:"!fromName:questionvalue"}],(function(){return new v}),"surveytrigger"),a.k.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new m}),"surveytrigger"),a.k.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new y}),"surveytrigger")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(37);r.d(t,"Version",(function(){return n.a})),r.d(t,"settings",(function(){return n.b})),r.d(t,"Helpers",(function(){return n.c})),r.d(t,"AnswerCountValidator",(function(){return n.d})),r.d(t,"EmailValidator",(function(){return n.e})),r.d(t,"NumericValidator",(function(){return n.f})),r.d(t,"RegexValidator",(function(){return n.g})),r.d(t,"SurveyValidator",(function(){return n.h})),r.d(t,"TextValidator",(function(){return n.i})),r.d(t,"ValidatorResult",(function(){return n.j})),r.d(t,"ExpressionValidator",(function(){return n.k})),r.d(t,"ValidatorRunner",(function(){return n.l})),r.d(t,"ItemValue",(function(){return n.m})),r.d(t,"Base",(function(){return n.n})),r.d(t,"Event",(function(){return n.o})),r.d(t,"SurveyError",(function(){return n.p})),r.d(t,"SurveyElement",(function(){return n.q})),r.d(t,"CalculatedValue",(function(){return n.r})),r.d(t,"CustomError",(function(){return n.s})),r.d(t,"AnswerRequiredError",(function(){return n.t})),r.d(t,"OneAnswerRequiredError",(function(){return n.u})),r.d(t,"RequreNumericError",(function(){return n.v})),r.d(t,"ExceedSizeError",(function(){return n.w})),r.d(t,"LocalizableString",(function(){return n.x})),r.d(t,"HtmlConditionItem",(function(){return n.y})),r.d(t,"UrlConditionItem",(function(){return n.z})),r.d(t,"ChoicesRestfull",(function(){return n.A})),r.d(t,"FunctionFactory",(function(){return n.B})),r.d(t,"registerFunction",(function(){return n.C})),r.d(t,"ConditionRunner",(function(){return n.D})),r.d(t,"ExpressionRunner",(function(){return n.E})),r.d(t,"Operand",(function(){return n.F})),r.d(t,"Const",(function(){return n.G})),r.d(t,"BinaryOperand",(function(){return n.H})),r.d(t,"Variable",(function(){return n.I})),r.d(t,"FunctionOperand",(function(){return n.J})),r.d(t,"ArrayOperand",(function(){return n.K})),r.d(t,"ConditionsParser",(function(){return n.L})),r.d(t,"ProcessValue",(function(){return n.M})),r.d(t,"JsonError",(function(){return n.N})),r.d(t,"JsonIncorrectTypeError",(function(){return n.O})),r.d(t,"JsonMetadata",(function(){return n.P})),r.d(t,"JsonMetadataClass",(function(){return n.Q})),r.d(t,"JsonMissingTypeError",(function(){return n.R})),r.d(t,"JsonMissingTypeErrorBase",(function(){return n.S})),r.d(t,"JsonObject",(function(){return n.T})),r.d(t,"JsonObjectProperty",(function(){return n.U})),r.d(t,"JsonRequiredPropertyError",(function(){return n.V})),r.d(t,"JsonUnknownPropertyError",(function(){return n.W})),r.d(t,"Serializer",(function(){return n.X})),r.d(t,"MatrixDropdownCell",(function(){return n.Y})),r.d(t,"MatrixDropdownColumn",(function(){return n.Z})),r.d(t,"matrixDropdownColumnTypes",(function(){return n._0})),r.d(t,"MatrixDropdownRowModelBase",(function(){return n._1})),r.d(t,"QuestionMatrixDropdownModelBase",(function(){return n._2})),r.d(t,"MatrixDropdownRowModel",(function(){return n._3})),r.d(t,"QuestionMatrixDropdownModel",(function(){return n._4})),r.d(t,"MatrixDynamicRowModel",(function(){return n._5})),r.d(t,"QuestionMatrixDynamicModel",(function(){return n._6})),r.d(t,"MatrixRowModel",(function(){return n._7})),r.d(t,"MartrixCells",(function(){return n._8})),r.d(t,"QuestionMatrixModel",(function(){return n._9})),r.d(t,"MultipleTextItemModel",(function(){return n._10})),r.d(t,"QuestionMultipleTextModel",(function(){return n._11})),r.d(t,"PanelModel",(function(){return n._12})),r.d(t,"PanelModelBase",(function(){return n._13})),r.d(t,"QuestionRowModel",(function(){return n._14})),r.d(t,"FlowPanelModel",(function(){return n._15})),r.d(t,"PageModel",(function(){return n._16})),r.d(t,"Question",(function(){return n._17})),r.d(t,"QuestionNonValue",(function(){return n._18})),r.d(t,"QuestionEmptyModel",(function(){return n._19})),r.d(t,"QuestionCheckboxBase",(function(){return n._20})),r.d(t,"QuestionSelectBase",(function(){return n._21})),r.d(t,"QuestionCheckboxModel",(function(){return n._22})),r.d(t,"QuestionCommentModel",(function(){return n._23})),r.d(t,"QuestionDropdownModel",(function(){return n._24})),r.d(t,"QuestionFactory",(function(){return n._25})),r.d(t,"ElementFactory",(function(){return n._26})),r.d(t,"QuestionFileModel",(function(){return n._27})),r.d(t,"QuestionHtmlModel",(function(){return n._28})),r.d(t,"QuestionRadiogroupModel",(function(){return n._29})),r.d(t,"QuestionRatingModel",(function(){return n._30})),r.d(t,"QuestionExpressionModel",(function(){return n._31})),r.d(t,"QuestionTextModel",(function(){return n._32})),r.d(t,"QuestionBooleanModel",(function(){return n._33})),r.d(t,"QuestionImagePickerModel",(function(){return n._34})),r.d(t,"QuestionImageModel",(function(){return n._35})),r.d(t,"QuestionSignaturePadModel",(function(){return n._36})),r.d(t,"QuestionPanelDynamicModel",(function(){return n._37})),r.d(t,"QuestionPanelDynamicItem",(function(){return n._38})),r.d(t,"SurveyTimer",(function(){return n._39})),r.d(t,"SurveyModel",(function(){return n._40})),r.d(t,"SurveyTrigger",(function(){return n._41})),r.d(t,"SurveyTriggerComplete",(function(){return n._42})),r.d(t,"SurveyTriggerSetValue",(function(){return n._43})),r.d(t,"SurveyTriggerVisible",(function(){return n._44})),r.d(t,"SurveyTriggerCopyValue",(function(){return n._45})),r.d(t,"SurveyTriggerRunExpression",(function(){return n._46})),r.d(t,"Trigger",(function(){return n._47})),r.d(t,"SurveyWindowModel",(function(){return n._48})),r.d(t,"TextPreProcessor",(function(){return n._49})),r.d(t,"dxSurveyService",(function(){return n._50})),r.d(t,"englishStrings",(function(){return n._51})),r.d(t,"surveyLocalization",(function(){return n._52})),r.d(t,"surveyStrings",(function(){return n._53})),r.d(t,"QuestionCustomWidget",(function(){return n._54})),r.d(t,"CustomWidgetCollection",(function(){return n._55})),r.d(t,"QuestionCustomModel",(function(){return n._56})),r.d(t,"QuestionCompositeModel",(function(){return n._57})),r.d(t,"ComponentQuestionJSON",(function(){return n._58})),r.d(t,"ComponentCollection",(function(){return n._59})),r.d(t,"StylesManager",(function(){return n._60})),r(36);var i=r(1);r.d(t,"__assign",(function(){return i.a})),r.d(t,"__extends",(function(){return i.b})),r.d(t,"__decorate",(function(){return i.c})),r.d(t,"__spreadArrays",(function(){return i.d}))}])},e.exports=n()},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0),i=r(2),o=r(3),a=r(1),s=function(){function e(e,t,r){var o=this;this.table=e,this.row=t,this.targetNode=r,this.location="details",this.createShowAsColumnButton=function(e){var t=n.b.createElement("button","sa-table__btn sa-table__btn--gray",{innerHTML:a.a.getString("showAsColumn")});return t.onclick=function(t){t.stopPropagation(),o.table.setColumnLocation(e,i.c.Column)},t};var s=n.b.createElement("table","sa-table__detail-table");this.detailsTable=s,this.table.onColumnsLocationChanged.add((function(){o.close()}))}return e.prototype.open=function(){var e=this;this.detailsTable.innerHTML="";var t=[];this.table.columns.filter((function(e){return e.location===i.c.Row&&e})).forEach((function(r){var i=n.b.createElement("tr","sa-table__detail"),o=n.b.createElement("td","",{innerHTML:r.displayName}),a=n.b.createElement("td");a.textContent=e.row.getRowData()[r.name];var s=n.b.createElement("td");s.appendChild(e.createShowAsColumnButton(r.name)),i.appendChild(o),i.appendChild(a),i.appendChild(s),t.push(i)}));var r=n.b.createElement("tr","sa-table__detail"),a=n.b.createElement("td","",{colSpan:3});new o.a(this.table).render(a,"details",{row:this.row}),0!=a.children.length&&(r.appendChild(a),t.push(r)),t.forEach((function(t){e.detailsTable.appendChild(t)})),this.targetNode.appendChild(this.detailsTable)},e.prototype.close=function(){this.detailsTable.parentNode&&this.detailsTable.parentNode.removeChild(this.detailsTable)},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return c}));var n=r(4),i=r(5),o=r(2),a=r(6),s=r(1),l=r(3),u=function(){function e(e,t,r,n,a){var u=this;void 0===n&&(n=[]),this.survey=e,this.data=t,this.options=r,this._columns=n,this.isTrustedAccess=a,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new i.Event,this.onColumnsLocationChanged=new i.Event,this.onRowRemoved=new i.Event,this.buildColumns=function(e){return u.survey.getAllQuestions().map((function(e){return{name:e.name,displayName:(e.title||"").trim()||e.name,dataType:"file"!==e.getType()?o.a.Text:o.a.FileLink,visibility:"file"!==e.getType()?o.b.Visible:o.b.Invisible,location:o.c.Column}}))},this.isVisible=function(e){return u.isTrustedAccess&&e!==o.b.Invisible||!u.isTrustedAccess&&e===o.b.Visible},this.isAvailable=function(e){return u.isTrustedAccess||e!==o.b.PublicInvisible},this.getAvailableColumns=function(){return u.columns.filter((function(e){return u.isAvailable(e.visibility)}))},this.onStateChanged=new i.Event,0===n.length&&(this._columns=this.buildColumns(e)),this.initTableData(t),s.a.currentLocale=this.survey.locale,0===n.length&&(this._columns=this.buildColumns(e)),this.extensions=new l.a(this)}return e.prototype.getData=function(){return this.data},e.prototype.enableColumnReorder=function(){this.isColumnReorderEnabled=!0},e.prototype.disableColumnReorder=function(){this.isColumnReorderEnabled=!1},e.prototype.getPageNumber=function(){return this.currentPageNumber},e.prototype.setPageNumber=function(e){this.currentPageNumber=e},e.prototype.getPageSize=function(){return this.currentPageSize},e.prototype.setPageSize=function(e){this.currentPageSize=e},e.prototype.getCreatedRows=function(){return[].concat(this._rows)},e.prototype.clearCreatedRows=function(){this._rows.forEach((function(e){e.destroy()})),this._rows=[]},e.prototype.isColumnVisible=function(e){return e.location==o.c.Column&&this.isVisible(e.visibility)},Object.defineProperty(e.prototype,"columns",{get:function(){return[].concat(this._columns)},set:function(e){this._columns=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.initTableData=function(e){var t=this;this.tableData=(e||[]).map((function(e){var r={};return t.survey.data=e,t._columns.forEach((function(n){var i=e[n.name],o=t.survey.getQuestionByName(n.name);o&&(i=o.displayValue),r[n.name]="string"==typeof i?i:JSON.stringify(i)||""})),r}))},e.prototype.moveColumn=function(e,t){var r=this._columns.splice(e,1);this._columns.splice(t,0,r[0]),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnLocation=function(e,t){this.columns.filter((function(t){return t.name===e}))[0].location=t,this.onColumnsLocationChanged.fire(this,{columnName:e,location:t}),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnVisibility=function(e,t){this.columns.filter((function(t){return t.name===e}))[0].visibility=t,this.onColumnsVisibilityChanged.fire(this,{columnName:e,columnVisibility:t}),this.onStateChanged.fire(this,this.state)},e.prototype.getColumnVisibility=function(e){return this.columns.filter((function(t){return t.name===e}))[0].visibility},e.prototype.removeRow=function(e){var t=this._rows.indexOf(e);this._rows.splice(t,1),this.onRowRemoved.fire(this,{row:e})},Object.defineProperty(e.prototype,"locale",{get:function(){return s.a.currentLocale},set:function(e){this.survey.locale=e,s.a.currentLocale=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.getLocales=function(){return[].concat(this.survey.getUsedLocales())},e.prototype.refresh=function(e){if(void 0===e&&(e=!1),this.isRendered){this.currentPageNumber=this.getPageNumber(),e&&this.initTableData(this.data);var t=this.renderResult;this.destroy(),this.render(t),this.setPageSize(this.currentPageSize),this.setPageNumber(this.currentPageNumber)}},e.prototype.destroy=function(){this.clearCreatedRows(),this.extensions.destroy(),this.renderResult.innerHTML="",this.renderResult=void 0},Object.defineProperty(e.prototype,"isRendered",{get:function(){return!!this.renderResult},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return{locale:s.a.currentLocale,elements:[].concat(this._columns)}},set:function(e){s.a.currentLocale=e.locale,this._columns=e.elements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissions",{get:function(){return this._columns.map((function(e){return{name:e.name,visibility:e.visibility}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.visibility=e.visibility)})),Object(n.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e}(),c=function(){function e(e,t,r){var n=this;this.table=e,this.extensionsContainer=t,this.detailsContainer=r,this.detailedRowClass="sa-table__detail-row",this.isDetailsExpanded=!1,this.onToggleDetails=new i.Event,this.onColumnLocationChangedCallback=function(){n.closeDetails()},this.details=new a.a(e,this,r),this.extensions=new l.a(e),e.onColumnsLocationChanged.add(this.onColumnLocationChangedCallback)}return e.prototype.render=function(){this.extensions.render(this.extensionsContainer,"row",{row:this})},e.prototype.openDetails=function(){this.details.open(),this.getElement().className+=" "+this.detailedRowClass,this.onToggleDetails.fire(this,{isExpanded:!0}),this.isDetailsExpanded=!0},e.prototype.closeDetails=function(){this.details.close(),this.getElement().classList.remove(this.detailedRowClass),this.onToggleDetails.fire(this,{isExpanded:!1}),this.isDetailsExpanded=!1},e.prototype.toggleDetails=function(){this.isDetailsExpanded?this.closeDetails():this.openDetails()},e.prototype.getIsSelected=function(){return this.isSelected},e.prototype.toggleSelect=function(){this.isSelected=!this.isSelected},e.prototype.remove=function(){this.table.removeRow(this)},e.prototype.destroy=function(){this.table.onColumnsLocationChanged.remove(this.onColumnLocationChangedCallback),this.extensions.destroy()},e}()},function(e,t,r){"use strict";var n=r(1);n.a.locales.fa={groupButton:"گروه بندی با",ungroupButton:"حذف گروه",selectButton:"انتخاب",hideColumn:"مخفی کردن ستون",showColumn:"نمایش ستون",moveToDetail:"انتقال به جزئیات",showAsColumn:"نمایش به عنوان ستون",visualizer_text:"متون در جدول",visualizer_wordcloud:"ابر کلمات",chartType_bar:"میله ای",chartType_pie:"دابره ای(pie)",chartType_scatter:"پراکندگی(Scatter)",chartType_gauge:"عقربه ای",chartType_bullet:"Bullet",hideButton:"مخفی",resetFilter:"بازنشانی فیلترها",clearButton:"پاک کردن",addElement:"انتخاب سوال برای نمایش..."},n.a.localeNames.fa="Farsi(Persian)"},function(e,t,r){"use strict";var n=r(1);n.a.locales.fr={groupButton:"Grouper",ungroupButton:"Dissocier",selectButton:"Sélectionner",hideColumn:"Masquer colonne",showColumn:"Afficher colonne",makePrivateColumn:"Rendre la colonne privé",makePublicColumn:"Rendre la colonne public",moveToDetail:"Déplacer vers détails",showAsColumn:"Afficher en colonne",visualizer_text:"Textes en table",visualizer_wordcloud:"Nuages de mots",chartType_bar:"Barres",chartType_stackedbar:"Barres empilées",chartType_doughnut:"Anneau",chartType_pie:"Secteurs",chartType_scatter:"Nuages de points",chartType_gauge:"Gauge",chartType_bullet:"Bulles",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures"},n.a.localeNames.fr="French"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle class="st0" cx="1.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path class="st0" d="M13 5l-1 1 1 1H9V3l1 1 1-1-3-3-3 3 1 1 1-1v4H3l1-1-1-1-3 3 3 3 1-1-1-1h4v4l-1-1-1 1 3 3 3-3-1-1-1 1V9h4l-1 1 1 1 3-3z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-hide"><path class="st1" d="M12.79 4.2L16 1l-1-1-3.32 3.32C10.57 2.55 9.32 2 8 2 3.63 2 0 7.97 0 7.97s1.27 2.1 3.21 3.82l-3.23 3.23.98.98 3.35-3.34C5.41 13.44 6.67 14 8 14c4.37 0 8-6 8-6s-1.27-2.09-3.21-3.8zM2 7.97c1.07-1.47 3.61-4 6-4 .8 0 1.6.27 2.35.68l-.78.78c-.46-.29-.99-.46-1.57-.46-1.66 0-3 1.34-3 3 0 .58.17 1.11.46 1.57l-.97.97A13.38 13.38 0 0 1 2 7.97zm6 4c-.8 0-1.59-.27-2.33-.67l.78-.77c.45.27.98.44 1.55.44 1.66 0 3-1.34 3-3 0-.57-.17-1.09-.44-1.55l.98-.98c1.11.87 2.01 1.91 2.46 2.52-1.07 1.48-3.61 4.01-6 4.01z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makeprivate"><circle class="st0" cx="8" cy="4" r="3"></circle><path class="st0" d="M8 8c-3.31 0-6 2.73-6 4.67S5.27 15 8 15s6-.4 6-2.33S11.31 8 8 8z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makepublic"><circle class="st0" cx="6" cy="5" r="3"></circle><path class="st0" d="M10 5c0 .34-.06.67-.14.99.05 0 .09.01.14.01 1.66 0 3-1.34 3-3s-1.34-3-3-3C8.97 0 8.07.52 7.53 1.3 8.98 1.91 10 3.33 10 5zM6 9c-3.31 0-6 2.73-6 4.67S3.27 16 6 16s6-.4 6-2.33S9.31 9 6 9zM10 7c-.19 0-.38.01-.57.03a4.14 4.14 0 0 1-1.37 1.39c3 .83 5.23 3.31 5.42 5.28 1.44-.31 2.52-.92 2.52-2.03C16 9.74 13.31 7 10 7z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-movetodetails"><circle class="st0" cx="1.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="14.5" r="1.5"></circle><path class="st0" d="M12 1h3v9h-3zM2.02 7.02L1 6 0 7l3 3 3-3-1-1-.94.94C4.33 4.73 6.21 3 8.5 3c.17 0 .33.03.5.05V1.03C8.83 1.01 8.67 1 8.5 1 5.08 1 2.27 3.66 2.02 7.02z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-sorting"><path class="st0" d="M8 3l2 2 1-1-3-3-3 3 1 1zM8 13l-2-2-1 1 3 3 3-3-1-1z"></path></symbol></svg>'},function(e,t,r){"use strict";var n=r(1),i=r(0),o=r(3);o.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var r=i.b.createSvgButton("detail");return r.title=n.a.getString("showMinorColumns"),r.className+=" sa-table__row-extension",r.onclick=function(){t.row.toggleDetails()},r}}),o.a.registerExtension({location:"row",name:"select",visibleIndex:-1,render:function(e,t){var r=t.row,n=i.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return n.checked=r.getIsSelected(),n.onchange=function(){r.toggleSelect()},n}})},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(0),a=r(3);a.a.registerExtension({location:"header",name:"filter",visibleIndex:0,render:function(e){var t=o.b.createInput("sa-table__global-filter sa-table__header-extension",n.a.getString("filterPlaceholder"));return t.onchange=function(t){e.applyFilter(t.target.value)},t}}),a.a.registerExtension({location:"header",name:"showcolumn",visibleIndex:2,destroy:function(){this.onDestroy()},render:function(e){var t=o.b.createElement("select","sa-table__show-column sa-table__header-extension");function r(){var r=e.columns.filter((function(e){return e.visibility===i.b.Invisible}));if(0!=r.length){t.style.display="inline-block",t.innerHTML="";var a=o.b.createElement("option","",{text:n.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),r.forEach((function(e){var r=e.displayName;r.length>20&&(r=r.substring(0,20)+"...");var n=o.b.createElement("option","",{text:r,title:e.displayName,value:e.name});t.appendChild(n)}))}else t.style.display="none"}t.onchange=function(t){var r=t.target.value;t.stopPropagation(),r&&e.setColumnVisibility(r,i.b.Visible)},r();var a=function(){r()};return e.onColumnsVisibilityChanged.add(a),this.onDestroy=function(){e.onColumnsVisibilityChanged.remove(a)},t}}),a.a.registerExtension({location:"header",name:"showentries",visibleIndex:3,render:function(e){var t=o.b.createElement("div","sa-table__entries"),r=o.b.createElement("span","sa-table__entries-label sa-table__entries-label--right",{innerHTML:n.a.getString("showLabel")}),i=o.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerHTML:n.a.getString("entriesLabel")});return t.appendChild(r),t.appendChild(function(e){var t=o.b.createElement("select");return["1","5","10","25","50","75","100"].forEach((function(e){var r=o.b.createElement("option","",{value:e,text:e});t.appendChild(r)})),t.value=String(e.getPageSize()),t.onchange=function(){e.setPageSize(Number(t.value))},t}(e)),t.appendChild(i),t}}),a.a.registerExtension({location:"header",name:"removerows",visibleIndex:-1,render:function(e){var t=o.b.createElement("button","sa-table__btn sa-table__btn--green sa-table__header-extension ",{innerHTML:n.a.getString("removeRows")});return t.onclick=function(){e.getCreatedRows().forEach((function(e){e.getIsSelected()&&e.remove()}))},t}}),a.a.registerExtension({location:"header",name:"changelocale",visibleIndex:1,render:function(e){var t=e.getLocales();if(t.length<2)return null;var r=o.b.createElement("select","sa-table__header-extension",{});return[n.a.getString("changeLocale")].concat(t).forEach((function(e){var t=o.b.createElement("option","",{value:e,text:e});r.appendChild(t)})),r.onchange=function(){e.locale=r.value},r}})},function(e,t,r){"use strict";var n=r(0),i=r(1),o=r(2),a=r(3);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var r=n.b.createElement("button","sa-table__svg-button sa-table__drag-button");return r.appendChild(n.b.createSvgElement("drag")),r.onmousedown=function(t){e.enableColumnReorder()},r}}),a.a.registerExtension({location:"column",name:"sort",visibleIndex:1,render:function(e,t){var r=i.a.getString("descOrder"),o=i.a.getString("ascOrder"),a=n.b.createSvgButton("sorting");a.title="";var s="asc";return a.onclick=function(){"asc"==s?(a.title=r,s="desc"):(a.title=o,s="asc"),e.sortByColumn(t.columnName,s)},a.ondrag=function(e){e.stopPropagation()},a}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var r=n.b.createSvgButton("hide");return r.title=i.a.getString("hideColumn"),r.onclick=function(){e.setColumnVisibility(t.columnName,o.b.Invisible)},r}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var r=n.b.createSvgButton("movetodetails");return r.title=i.a.getString("moveToDetail"),r.onclick=function(r){r.stopPropagation(),e.setColumnLocation(t.columnName,o.c.Row)},r}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var r=n.b.createInput("sa-table__filter",i.a.getString("filterPlaceholder"));return r.onclick=function(e){return e.stopPropagation()},r.onchange=function(n){e.applyColumnFilter(t.columnName,r.value)},r}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var r=n.b.createElement("button"),a=n.b.createSvgElement("makeprivate"),s=n.b.createSvgElement("makepublic"),l=e.getColumnVisibility(t.columnName);function u(e){e===o.b.PublicInvisible?(r.className="sa-table__svg-button sa-table__svg-button--active",r.title=i.a.getString("makePublicColumn"),a.style.display="block",s.style.display="none"):(r.className="sa-table__svg-button",r.title=i.a.getString("makePrivateColumn"),a.style.display="none",s.style.display="block")}return u(l),r.appendChild(a),r.appendChild(s),r.onclick=function(r){r.stopPropagation(),l=l===o.b.PublicInvisible?o.b.Visible:o.b.PublicInvisible,e.setColumnVisibility(t.columnName,l),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e),u(l)},r}})},,,function(e,t,r){},,,,,,,,function(e,t,r){"use strict";r.r(t),r.d(t,"localization",(function(){return n.a})),r.d(t,"surveyStrings",(function(){return n.b})),r.d(t,"DataTables",(function(){return h})),r.d(t,"DatatablesRow",(function(){return d})),r.d(t,"TableExtensions",(function(){return f.a})),r.d(t,"DocumentHelper",(function(){return l.b}));var n=r(1),i=(r(8),r(9),r(11),r(12),r(13),r(6),r(4)),o=r(7),a=r(5),s=r(2),l=r(0);r(16);if(document){var u=r(10),c=document.createElement("div");c.style.display="none",c.innerHTML=u,document.head.appendChild(c)}var p=window.jQuery,h=function(e){function t(t,r,n,i,o){void 0===i&&(i=[]),void 0===o&&(o=!1);var s=e.call(this,t,r,n,i,o)||this;return s.currentPageNumber=0,s.onColumnsReorder=new a.Event,s}return Object(i.b)(t,e),t.initJQuery=function(e){p=e},t.prototype.destroy=function(){if(this.renderResult){var t=this.renderResult.children[0];p.fn.DataTable.isDataTable(t)&&p(t).DataTable().destroy(),this.datatableApi=void 0,e.prototype.destroy.call(this)}},t.prototype.setColumnVisibility=function(t,r){e.prototype.setColumnVisibility.call(this,t,r),this.datatableApi.column(t+":name").visible(!n);var n=r==s.b.Invisible},t.prototype.setColumnLocation=function(t,r){e.prototype.setColumnLocation.call(this,t,r);var n=this.datatableApi.column(t+":name"),i=r==s.c.Column;n.visible(i)},t.prototype.applyFilter=function(e){this.datatableApi.search(e).draw(!1)},t.prototype.applyColumnFilter=function(e,t){var r=this.datatableApi.column(e+":name");r.search()!==t&&r.search(t).draw(!1)},t.prototype.sortByColumn=function(e,t){this.datatableApi.column(e+":name").order(t).draw(!1)},t.prototype.setPageSize=function(t){e.prototype.setPageSize.call(this,t),this.datatableApi.page.len(t).draw(!1)},t.prototype.setPageNumber=function(t){e.prototype.setPageNumber.call(this,t),this.datatableApi.page(t).draw(!1)},t.prototype.getPageNumber=function(){return this.datatableApi.page()},t.prototype.render=function(e){var t=this;e.className+=" sa-table sa-datatables",e.innerHTML="";var r=l.b.createElement("table",""),n=this.getColumns(),i=n.map((function(e){return e.data})),o="sa-table__btn sa-table__btn--small sa-table__btn--gray",a=p.extend(!0,{buttons:[{extend:"copy",className:o},{extend:"csv",className:o},{extend:"print",className:o}],dom:'B<"sa-table__header-extensions">prtip',data:this.tableData,pageLength:5,responsive:!1,scrollX:!0,columns:n,colReorder:{fixedColumnsLeft:1,realtime:!1},language:{sSearch:" ",searchPlaceholder:"Search...",sLengthMenu:"Show _MENU_ entries",paginate:{previous:" ",next:" "}},select:"api",headerCallback:function(e,n,o,a,s){var u=p(r).dataTable().api(),c=t;u.columns().eq(0).each((function(e){var r=p(u.columns(e).header());if(r.unbind("click.DT"),i[e]&&0===r.has("button").length){var n=l.b.createElement("div","sa-table__action-container");c.extensions.render(n,"column",{columnName:i[e]}),n.onmousedown=function(e){c.isColumnReorderEnabled?t.disableColumnReorder():e.stopPropagation()}}r.prepend(n)}))}},this.options);e.appendChild(r),r.width="100%",r.className="sa-datatables__table display responsive dataTable";var s=this.datatableApi=p(r).DataTable(a),u=p("div.sa-table__header-extensions")[0];this.extensions.render(u,"header"),s.page(this.currentPageNumber),this.datatableApi.rowGroup().enable(!1).draw(!1),s.on("column-reorder",(function(e,r,n){t.moveColumn(n.from-1,n.to-1),t.disableColumnReorder(),t.onColumnsReorder.fire(t,{columns:t.columns})})),s.rows().eq(0).each((function(e){var r=s.row(e),n=l.b.createElement("tr"),i=l.b.createElement("td","sa-datatables__details-container");n.appendChild(i);var o=r.node(),a=r.cell(r.index(),0).node(),u=new d(t,a,i,r);u.onToggleDetails.add((function(e,t){t.isExpanded?(i.colSpan=o.childElementCount,o.parentNode.insertBefore(n,o.nextSibling)):n.parentNode&&n.parentNode.removeChild(n)})),t._rows.push(u),u.render()})),s.draw(!1),this.renderResult=e},t.prototype.getColumns=function(){var e=this,t=this.getAvailableColumns().map((function(t){var r=e.survey.getQuestionByName(t.name);return{name:t.name,data:t.name,sTitle:r&&r.title||t.displayName,visible:e.isColumnVisible(t),orderable:!1,mRender:function(e,r,n){var i=n[t.name];return"string"==typeof i?p("<div>").text(i).html():JSON.stringify(i)}}}));return[{orderable:!1,data:null,defaultContent:""}].concat(t)},t.prototype.layout=function(){this.datatableApi&&this.datatableApi.columns.adjust()},t}(o.a),d=function(e){function t(t,r,n,i){var o=e.call(this,t,r,n)||this;return o.table=t,o.extensionsContainer=r,o.detailsContainer=n,o._innerRow=i,o.rowElement=i.node(),o.rowData=i.data(),o._innerRow=o._innerRow.row(o.rowElement),t.onColumnsReorder.add((function(){o.render()})),o}return Object(i.b)(t,e),Object.defineProperty(t.prototype,"innerRow",{get:function(){return this._innerRow.row(this.rowElement)},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this.rowElement},t.prototype.getRowData=function(){return this.rowData},t.prototype.getDataPosition=function(){return this.innerRow.index()},t.prototype.remove=function(){this.innerRow.remove().draw(),e.prototype.remove.call(this)},t}(o.b),f=r(3)}])}));
|