From 072fac096142677bd4e59b32ec78b27f483ff043 Mon Sep 17 00:00:00 2001 From: a2i2 <> Date: Sun, 24 Sep 2023 23:59:53 +0000 Subject: [PATCH] Update from https://github.com/a2i2/bdi-under-the-radar/commit/d3d43e888eee25bb51068fabf0ae18f9f7c3ac04 --- assets/CheckboxControl.841a72e3.js | 1 + assets/ConsentView.41e27324.js | 7 + assets/DevHomeView.4e67d1d7.js | 1 + assets/EligibilityView.c3dd0260.js | 1 + assets/ErrorView.76819512.js | 1 + assets/LoginView.f365e8e8.js | 1 + ...ue_type_script_setup_true_lang.540d7fd6.js | 1963 +++++++++++++++++ assets/TestActualSurveyView.b9734fe4.js | 79 + assets/TestAuthView.b9497230.js | 1 + assets/TestDceSurveyView.d61ec9ab.js | 14 + assets/TestFollowUpView.13811389.js | 1 + assets/TestUtrSurveyView.d6ac0b67.js | 1 + assets/TextInput.f23070a1.js | 1 + assets/UserHomeView.5235166c.js | 1 + assets/UserSurveyView.1e08ed9a.js | 1 + assets/index.81423599.js | 24 + assets/pcmServiceApi.33214627.css | 1 + assets/pcmServiceApi.95101c9c.js | 2 + assets/surveyStore.89cd0079.js | 1 + index.html | 2 +- 20 files changed, 2103 insertions(+), 1 deletion(-) create mode 100644 assets/CheckboxControl.841a72e3.js create mode 100644 assets/ConsentView.41e27324.js create mode 100644 assets/DevHomeView.4e67d1d7.js create mode 100644 assets/EligibilityView.c3dd0260.js create mode 100644 assets/ErrorView.76819512.js create mode 100644 assets/LoginView.f365e8e8.js create mode 100644 assets/SurveyJsWrapper.vue_vue_type_script_setup_true_lang.540d7fd6.js create mode 100644 assets/TestActualSurveyView.b9734fe4.js create mode 100644 assets/TestAuthView.b9497230.js create mode 100644 assets/TestDceSurveyView.d61ec9ab.js create mode 100644 assets/TestFollowUpView.13811389.js create mode 100644 assets/TestUtrSurveyView.d6ac0b67.js create mode 100644 assets/TextInput.f23070a1.js create mode 100644 assets/UserHomeView.5235166c.js create mode 100644 assets/UserSurveyView.1e08ed9a.js create mode 100644 assets/index.81423599.js create mode 100644 assets/pcmServiceApi.33214627.css create mode 100644 assets/pcmServiceApi.95101c9c.js create mode 100644 assets/surveyStore.89cd0079.js diff --git a/assets/CheckboxControl.841a72e3.js b/assets/CheckboxControl.841a72e3.js new file mode 100644 index 0000000..1687089 --- /dev/null +++ b/assets/CheckboxControl.841a72e3.js @@ -0,0 +1 @@ +import{f as c,c as s,e as d,J as n,l as r,a1 as i,o as b,_ as u}from"./index.81423599.js";const _=["disabled","checked","aria-label"],f=c({__name:"CheckboxControl",props:{modelValue:{type:Boolean,default:!1},label:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){function o(a){const l=a.target;t("update:modelValue",l.checked)}return(a,l)=>(b(),s("label",{class:i(["checkbox-control",{disabled:e.disabled}])},[d("input",{disabled:e.disabled,type:"checkbox",checked:e.modelValue,"aria-label":e.label,onChange:o},null,40,_),n(" "+r(e.label),1)],2))}});const h=u(f,[["__scopeId","data-v-0f3ca0b8"]]);export{h as C}; diff --git a/assets/ConsentView.41e27324.js b/assets/ConsentView.41e27324.js new file mode 100644 index 0000000..ab57cbe --- /dev/null +++ b/assets/ConsentView.41e27324.js @@ -0,0 +1,7 @@ +import{u as j,O as Y,g as G,p as J}from"./pcmServiceApi.95101c9c.js";import{f as P,n as W,h as v,a0 as z,u as H,o as t,c as a,e,k as i,_ as B,j as h,O as K,J as N,l as u,F as x,s as C,m as k,p as F,b as V,a9 as Q,x as E,aa as Z,A as L,ab as X,ac as ee,ad as te,R as A,a1 as oe,L as ae,y as ie,v as q,C as ne}from"./index.81423599.js";import{C as T}from"./CheckboxControl.841a72e3.js";import{u as se}from"./surveyStore.89cd0079.js";const re={class:"logo-unsw-container"},le=["src"],ce=P({__name:"LogoUNSW",props:{height:null},setup(l){const s=l;W(w=>({"5e81099c":i(y)}));const o=v(()=>new URL("/assets/logo-unsw.545f07d2.png",self.location).href),{breakpoint:b}=z(H()),y=v(()=>{if(s.height)return s.height;switch(b.value){case"mobile":case"small":return"80px";default:return"150px"}});return(w,r)=>(t(),a("div",re,[e("img",{src:i(o),alt:"UNSW Sydney logo",draggable:"false"},null,8,le)]))}});const de=B(ce,[["__scopeId","data-v-5aaf880a"]]),D=l=>(F("data-v-59e69d3a"),l=l(),V(),l),ue={class:"participant-information-statement"},he={class:"pis-header"},pe={class:"pis-logo-cell"},ye={class:"pis-logo-wrapper"},fe={class:"pis-logo-cell"},me={class:"pis-logo-wrapper"},be=D(()=>e("tr",null,[e("td",{colspan:"2"},[e("div",{class:"pis-header-text"},[e("div",null,[e("strong",null,"PARTICIPANT INFORMATION STATEMENT AND CONSENT FORM")]),e("div",null,[e("strong",null," A randomised controlled trial of web-based video messaging interventions for suicide prevention in males (Under the Radar) "),e("div",null,"Professor Helen Christensen")])])])],-1)),ge=D(()=>e("strong",null,"HC Number: ",-1)),ve=D(()=>e("strong",null,"Version dated: ",-1)),we=D(()=>e("div",null,null,-1)),_e={class:"pis-section-list"},ke={class:"pis-section-title"},Ie={class:"pis-section-body"},Se={key:0,class:"pis-section-text"},xe={key:0},Ce={key:0},Te=["href"],Pe={key:2},Ae={key:1},Be={key:2,class:"pis-section-table"},De={key:0,class:"pis-section-title"},Ue={class:"pis-table-title"},Le={class:"pis-table-content"},Ne=["href"],We={key:1},He={key:2},qe=P({__name:"ParticipantInformationStatement",setup(l){W(M=>({"156683b0":i(o)}));const s=H(),o=v(()=>s.breakpoint==="mobile"?"0px":"1rem"),b="HC220714",y="21 August 2023",R=[{title:"What is the research study about?",body:"The Black Dog Institute is inviting men who have thought of dying or hurting themselves in the past six months to participate in a trial to help us understand how to better support men in suicidal distress. The trial aims to assess if video-based messages tailored to men\u2019s characteristics and situations will promote suicide prevention."},{title:"Who is conducting this research?",body:"The study is being carried out by the following researchers:",sections:[{type:"list",items:["Professor Helen Christensen, Black Dog Institute/University of New South Wales","Professor Katherine Boydell, Black Dog Institute/University of New South Wales","Associate Professor Fiona Shand, Black Dog Institute/University of New South Wales","Dr Jin Han, Black Dog Institute/University of New South Wales","Professor Philip Batterham, Centre for Mental Health Research, Australian National University","Professor Henry Cutler, Macquarie University Centre for the Health Economy","Professor Svetha Venkatesh, Applied Artificial Intelligence Institute, Deakin University","Dr Leonard Hoon, Applied Artificial Intelligence Institute, Deakin University","Dr Aimy Slade, Black Dog Institute","Ms Noura Saba, Macquarie University Centre for the Health Economy","Dr Wu Yi Zheng, Black Dog Institute","Ms Hiroko Fujimoto, Black Dog Institute","Dr Alexis Whitton, Black Dog Institute/University of New South Wales","Associate Professor Yuanyuan Gu, Macquarie University Centre for the Health Economy","Dr Anam Bilgrami, Macquarie University Centre for the Health Economy"]},{type:"text",bodySections:[{isBold:!0,text:"Research Funder: "},{text:"This research is being funded by the Medical Research Future Fund."}]}]},{title:"Inclusion/Exclusion Criteria",body:"Before you decide to participate in this study, we need to ensure that it is ok for you to take part. The research study is looking to recruit people who meet the following criteria:",sections:[{type:"list",items:["18 years of age or older","Identify their gender as male","Fluent in English","Currently living in Australia","Thought of dying or hurting themselves in the past six months","No contact with formal mental health services (including General Practitioners, Psychologists, Psychiatrists and other mental health professionals) for mental health support in the past six months."]}]},{title:"Do I have to take part in this research study?",body:"Participation in this research study is voluntary. If you do not want to take part, you do not have to. If you decide to take part and later change your mind, you are free to withdraw from the study at any stage."},{title:"What does participation in this research require, and are there any risks involved?",body:"If you agree to participate you will be asked to complete the following research procedures:",sections:[{type:"list",items:["Provide consent electronically by ticking the 'I consent' box at the bottom of the webpage.","Fill in a short survey (two minutes) to check your eligibility for this study.","If you are eligible for the study, you will then be asked to provide your mobile number, email address and first name. We ask for your mobile number only to send you a One Time Password which will allow you to log in. Your email address will only be used to send you reminders regarding the study and the gift card(s). After logging in using the One Time Password, you will be able to start your participation in the study. If you are not eligible to take part in the study, you will be informed and provided with information of support services.","You will be directed to answer a few questions about yourself. Questions include ethnicity, language, living status (urban or rural, length of time living in Australia), education, employment, and distress levels. The survey takes about three minutes to complete. ","After completing these questions, you will be randomly allocated to watch one of five videos on suicide prevention: one of three tailored messages, a general message, or a control message. Each video lasts approximately 2 minutes. Please watch the video as soon as possible as the video will only be available for three days. After watching the video, you will be asked to answer a few questions related to suicide prevention, taking about two minutes to complete.","You will then be invited to complete a survey, including questions on your experience in watching the video, physical and mental health, suicidal thoughts and behaviour, and preference for different suicide prevention services. The survey takes about 30 minutes to complete.","After completing this survey, we will verify your survey data which is an important process as bots are a common issue with online research. The data verification could take up to 5 business days.","After the completion of data verification, you will receive a $20 GiftPay voucher via email which can be used at a range of retailers.","After one-week, you will receive an email invitation to a survey, asking about your health behaviour and perceptions towards suicide prevention in the past week. The survey takes about eight minutes to complete.","After completing the follow-up survey, you will receive a second $20 GiftPay voucher via email. We reserve the right not to provide reimbursement if fraudulent activity is detected.","If we collect enough participants of similar profiles, there is a possibility that you might not be able to participate in the current study."]},{type:"text",body:"If you experience discomfort or feelings of distress while participating in the research, you can stop participating at any time. If you require immediate support or would prefer to receive support from someone not involved in the research, please contact your local GP, Beyond Blue (1300 22 4636), the Suicide Call Back Service (1300 659 467) or Lifeline (13 11 14)."}]},{title:"What are the possible benefits of taking part?",body:"We cannot guarantee or promise that you will receive benefits from participating in this research; however, possible benefits may include new knowledge on the available help-seeking resources. In addition, your participation will help us understand how to support other men with suicidal thoughts or behaviour in the community."},{title:"What will happen to information about me?",body:"By signing the consent form, you consent to the research team collecting and using information about you for the research study. If you do not meet the inclusion criteria, no personal data will be stored on the servers. The research team will store the data collected from you for this research project for a minimum of 7 years after project completion. We will store information about you in a non-identifiable format on a UNSW Sydney approved IT platform and data is protected by encryption. The identifiable information (i.e. first name and email address) collected in this study will be used to contact you for consented activities only (i.e., surveys, e-gift card, research report). Data will be stored in re-identifiable format where any identifiers such as your name, address, date of birth will be replaced with a unique code. Identifiable information will be stored separately from your survey responses on the UNSW OneDrive, protected by password, accessed by named study personnel only.",sections:[{type:"text",bodySections:[{text:"The information you provide is personal information for the purposes of the Privacy and Personal Information Protection Act 1998 (NSW). You have the right of access to personal information held about you by the University, the right to request correction and amendment of it, and the right to make a complaint about a breach of the Information Protection Principles as contained in the PPIP Act. Further information on how the University protects personal information is available in the "},{linkHref:"https://www.legal.unsw.edu.au/compliance/privacyhome.html",text:"UNSW Privacy Management Plan"},{text:"."}]}]},{title:"How and when will I find out what the results of the research study are?",body:"The research team intend to publish the results of the research study. All information published will be done in a way that will not identify you. If you would like to receive a copy of the results, you can let the research team know by adding your email within the consent form. We will only use these details to send you the results of the research."},{title:"What if I want to withdraw from the research study?",body:"If you do consent to participate, you may withdraw at any time. You can do so by completing the \u2018Withdrawal of Consent Form\u2019 which is provided at the end of this document. Alternatively, you can call or email the research team and tell them you no longer want to participate. Your decision not to participate or to withdraw from the study will not affect your relationship with UNSW Sydney, the Black Dog Institute, Deakin University, and Macquarie University. If you decide to leave the research study, the researchers will not collect additional information from you. You can request that any identifiable information about you be withdrawn from the research project."},{title:"What if I have a complaint or any concerns about the research study?",body:"If you have a complaint regarding any aspect of the study or the way it is being conducted, please contact the UNSW Human Ethics Coordinator:",sections:[{type:"table",title:"Complaints Contact",rows:[{title:"Position",body:"UNSW Human Research Ethics Coordinator"},{title:"Telephone",bodyBold:"+ 61 2 9385 6222"},{title:"Email",bodyLinkText:"humanethics@unsw.edu.au",bodyLinkHref:"mailto:humanethics@unsw.edu.au"},{title:"HC Reference Number",body:"HC220714"}]}]},{title:"What should I do if I have further questions about my involvement in the research study?",body:"The person you may need to contact will depend on the nature of your query. If you require further information regarding this study or if you have any problems which may be related to your involvement in the study, you can contact the following member/s of the research team:",sections:[{type:"table",title:"Research Team Contact Details",rows:[{title:"Name",body:"Dr Aimy Slade"},{title:"Position",body:"Research Project Manager"},{title:"Telephone",bodyBold:"02 9065 0058"},{title:"Email",bodyLinkText:"undertheradar@blackdog.org.au",bodyLinkHref:"mailto:undertheradar@blackdog.org.au"}]},{type:"table",title:"Chief Investigator",rows:[{title:"Name",body:"Helen Christensen"},{title:"Position",body:"Professor"},{title:"Telephone",bodyBold:"02 9382 4530"},{title:"Email",bodyLinkText:"undertheradar@blackdog.org.au",bodyLinkHref:"mailto:undertheradar@blackdog.org.au"}]},{type:"text",bodySections:[{isBold:!0,text:`Support Services Contact Details +`},{text:"If at any stage during the study, you become distressed or require additional support from someone not involved in the research please call:"}]},{type:"table",rows:[{title:"Organisation",body:`Lifeline +Crisis support and suicide prevention`},{title:"Telephone",bodyBold:"13 11 14",body:" available 24/7"},{title:"Online chat",bodyLinkText:"www.lifeline.org.au/crisis-chat",bodyLinkHref:"http://www.lifeline.org.au/crisis-chat",body:" available 19:00 \u2013 23:59 AEDT/AEST"},{title:"Website",bodyLinkText:"www.lifeline.org.au/get-help",bodyLinkHref:"http://www.lifeline.org.au/get-help"}]},{type:"table",rows:[{title:"Organisation",body:`Suicide Call Back Service +Counselling and support for people affected by suicide`},{title:"Telephone",bodyBold:"1300 659 467",body:" available 24/7"},{title:"Online chat",bodyLinkText:"www.suicidecallbackservice.org.au/phone-and-online-counselling/suicide-call-back-service-online-counselling",bodyLinkHref:"http://www.suicidecallbackservice.org.au/phone-and-online-counselling/suicide-call-back-service-online-counselling",body:" available 24/7"},{title:"Website",bodyLinkText:"www.suicidecallbackservice.org.au",bodyLinkHref:"http://www.suicidecallbackservice.org.au/"}]},{type:"table",rows:[{title:"Organisation",body:`Beyond Blue +Suport and information for people experiencing depression or anxiety`},{title:"Telephone",bodyBold:"1300 22 4636",body:" available 24/7"},{title:"Online chat",bodyLinkText:"online.beyondblue.org.au",bodyLinkHref:"https://online.beyondblue.org.au/",body:" available 11:00 \u2013 23:59 AEDT/AEST"},{title:"Website",bodyLinkText:"www.beyondblue.org.au",bodyLinkHref:"http://www.beyondblue.org.au/"}]}]}];return(M,Qe)=>(t(),a("article",ue,[e("section",he,[e("table",null,[e("tr",null,[e("td",pe,[e("div",ye,[h(K,{"large-logo":"",class:"pis-logo"})])]),e("td",fe,[e("div",me,[h(de,{class:"pis-logo"})])])]),be,e("tr",null,[e("td",{colspan:"2"},[e("div",{class:"pis-version-text"},[e("span",null,[ge,N(u(b))]),e("span",null,[ve,N(u(y))]),we])])])])]),e("ol",_e,[(t(),a(x,null,C(R,(U,$)=>e("li",{key:$},[e("div",ke,u(U.title),1),e("div",Ie,u(U.body),1),(t(!0),a(x,null,C(U.sections,(m,O)=>(t(),a("div",{key:O,class:"pis-subsection"},[m.type==="text"?(t(),a("div",Se,[m.body?(t(),a("span",xe,u(m.body),1)):k("",!0),(t(!0),a(x,null,C(m.bodySections,(n,S)=>(t(),a("span",{key:S},[n.isBold?(t(),a("strong",Ce,u(n.text),1)):n.linkHref?(t(),a("a",{key:1,href:n.linkHref},u(n.text),9,Te)):(t(),a("span",Pe,u(n.text),1))]))),128))])):m.type==="list"?(t(),a("div",Ae,[e("ul",null,[(t(!0),a(x,null,C(m.items,(n,S)=>(t(),a("li",{key:S},u(n),1))),128))])])):m.type==="table"?(t(),a("div",Be,[m.title?(t(),a("div",De,u(m.title),1)):k("",!0),e("table",null,[(t(!0),a(x,null,C(m.rows,(n,S)=>(t(),a("tr",{key:S},[e("td",Ue,u(n.title),1),e("td",Le,[n.bodyLinkHref?(t(),a("a",{key:0,href:n.bodyLinkHref},u(n.bodyLinkText),9,Ne)):k("",!0),n.bodyBold?(t(),a("strong",We,u(n.bodyBold),1)):k("",!0),n.body?(t(),a("span",He,u(n.body),1)):k("",!0)])]))),128))])])):k("",!0)]))),128))])),64))])]))}});const Fe=B(qe,[["__scopeId","data-v-59e69d3a"]]),Ve=l=>(F("data-v-eada3aa1"),l=l(),V(),l),Ee={class:"consent-form"},Re={class:"cf-pis-area"},Me={class:"cf-pis-download-area"},$e=Ve(()=>e("br",null,null,-1)),Oe=P({__name:"ConsentForm",props:{acceptStudy:{type:Boolean},acceptDataSharing:{type:Boolean},acceptFutureContact:{type:Boolean},requestFeedback:{type:Boolean}},emits:["update:accept-study","update:accept-data-sharing","update:accept-future-contact","update:request-feedback","accept","reject"],setup(l,{emit:s}){const o=l;W(f=>({"206a7f64":i(I)}));const{breakpoint:b}=Q(H()),y=E(!1),w=v(()=>y.value&&o.acceptStudy),r=v({get(){return o.acceptStudy},set(f){s("update:accept-study",f)}}),c=v({get(){return o.acceptDataSharing},set(f){s("update:accept-data-sharing",f)}}),_=v({get(){return o.acceptFutureContact},set(f){s("update:accept-future-contact",f)}}),g=v({get(){return o.requestFeedback},set(f){s("update:request-feedback",f)}}),I=v(()=>b.value==="mobile"?"1rem":"2rem");return(f,d)=>(t(),a("div",Ee,[e("div",Re,[h(Fe),e("div",Me,[N(" You can download the Participant Information Statement, and the consent and withdrawal forms here:"),$e,h(te,{"download-link":i(X),filename:i(ee)},{default:Z(()=>[h(L,{label:"Download",icon:"download",color:"var(--utr-green)","hover-color":"var(--utr-green-light)"})]),_:1},8,["download-link","filename"])])]),e("form",{class:"cf-form",onSubmit:d[6]||(d[6]=ae(p=>s("accept"),["prevent"]))},[h(T,{modelValue:y.value,"onUpdate:modelValue":d[0]||(d[0]=p=>y.value=p),label:"I am 18 or over (required)"},null,8,["modelValue"]),h(T,{modelValue:i(r),"onUpdate:modelValue":d[1]||(d[1]=p=>A(r)?r.value=p:null),label:"I agree to participate in the study (required)"},null,8,["modelValue"]),h(T,{modelValue:i(g),"onUpdate:modelValue":d[2]||(d[2]=p=>A(g)?g.value=p:null),label:"I would like to receive feedback from the Institute on the results of this research (optional)"},null,8,["modelValue"]),h(T,{modelValue:i(_),"onUpdate:modelValue":d[3]||(d[3]=p=>A(_)?_.value=p:null),label:` I provide my consent for my name and contact details to be retained in a register so I can be + contacted about other research projects in the future (optional)`},null,8,["modelValue"]),h(T,{modelValue:i(c),"onUpdate:modelValue":d[4]||(d[4]=p=>A(c)?c.value=p:null),label:`I provide my consent for de-identified/aggregated data to be shared with support organisations + who are partners on this research study (optional)`},null,8,["modelValue"]),e("div",{class:oe(["cf-action-row",{small:i(b)==="mobile"}])},[h(L,{label:"I Do Not Agree or Consent",icon:"close",onClick:d[5]||(d[5]=p=>s("reject"))}),h(L,{label:"I Agree and Consent",icon:"check",color:"var(--utr-green)","hover-color":"var(--utr-green-light)",disabled:!i(w),type:"submit"},null,8,["disabled"])],2)],32)]))}});const je=B(Oe,[["__scopeId","data-v-eada3aa1"]]),Ye={class:"consent-layout"},Ge=P({__name:"ConsentLayout",emits:["accept","reject"],setup(l,{emit:s}){const o=j();function b(){s("accept")}function y(){s("reject")}return(w,r)=>(t(),a("div",Ye,[h(je,{"accept-study":i(o).acceptStudy,"onUpdate:accept-study":r[0]||(r[0]=c=>i(o).acceptStudy=c),"accept-data-sharing":i(o).acceptDataSharing,"onUpdate:accept-data-sharing":r[1]||(r[1]=c=>i(o).acceptDataSharing=c),"accept-future-contact":i(o).acceptFutureContact,"onUpdate:accept-future-contact":r[2]||(r[2]=c=>i(o).acceptFutureContact=c),"request-feedback":i(o).requestFeedback,"onUpdate:request-feedback":r[3]||(r[3]=c=>i(o).requestFeedback=c),onAccept:b,onReject:y},null,8,["accept-study","accept-data-sharing","accept-future-contact","request-feedback"])]))}});const Je=B(Ge,[["__scopeId","data-v-fa0d0403"]]),ot=P({__name:"ConsentView",props:{experimentId:null},emits:["scrollToTop"],setup(l,{emit:s}){const o=l;ie().setPageTitle("Under the Radar"),se().setExperimentId(o.experimentId);const w=ne();function r(){const g=o.experimentId?`/eligibility/${o.experimentId}`:"/eligibility-test";w.push({path:g})}const c=E(!1);async function _(){if(c.value=!0,s("scrollToTop"),o.experimentId){const g={acceptDataSharing:!1,consent:!1},I=await G(o.experimentId);await J(o.experimentId,I.id,g)}}return(g,I)=>c.value?(t(),q(Y,{key:1,"completion-state":"no consent"})):(t(),q(Je,{key:0,onAccept:r,onReject:_}))}});export{ot as default}; diff --git a/assets/DevHomeView.4e67d1d7.js b/assets/DevHomeView.4e67d1d7.js new file mode 100644 index 0000000..7fbb3fa --- /dev/null +++ b/assets/DevHomeView.4e67d1d7.js @@ -0,0 +1 @@ +import{f as m,y,x as h,I as b,c,e,j as l,T as t,J as k,F as x,s as f,o as d,A as g,p as w,b as I,_ as S}from"./index.81423599.js";import{T}from"./TextInput.f23070a1.js";const r=s=>(w("data-v-c171e60a"),s=s(),I(),s),V={class:"dev-home-view"},C=r(()=>e("h1",null,"Dev home page",-1)),E=r(()=>e("hr",null,null,-1)),D=r(()=>e("h3",null,"Actual Surveys",-1)),H=m({__name:"DevHomeView",setup(s){y().setPageTitle("Home");const u="testhomepage:experimentId",a=h(_());b(a,o=>{try{window.localStorage.setItem(u,o)}catch(n){console.warn(`Could not save experimentId: ${o}`,n)}});function _(){let o="00000000-0000-0000-0000-000000000001";try{const n=window.localStorage.getItem(u);console.log("found: ",n),n!==null&&(o=n)}catch(n){console.warn("Could not retrieve saved experimentId",n)}return o}function p(){a.value="00000000-0000-0000-0000-000000000001"}const v=["baseline","dce_0","dce_1","dce_2","dce_3","dce_4","dce_5","follow_up","intervention_0","intervention_1","intervention_2","intervention_3","intervention_4","intervention_5","mental_health","video_feedback"];return(o,n)=>(d(),c("div",V,[C,e("ul",null,[e("li",null,[l(t,{label:"Root Home",link:"/"})]),e("li",null,[l(t,{label:"User Home (requires auth)",link:"your-surveys"})]),e("li",null,[l(t,{label:"Error Page",link:"error-page"})]),e("li",null,[l(t,{label:"Consent Page",link:"consent/"+a.value},null,8,["link"]),k(" - with experimentId: "),l(T,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i),type:"text"},null,8,["modelValue"]),l(g,{label:"Reset",icon:"reset",onClick:p})]),e("li",null,[l(t,{label:"UTR Survey",link:"utr-survey"})]),e("li",null,[l(t,{label:"Follow Up Survey",link:"follow-up-survey"})]),e("li",null,[l(t,{label:"Auth Test",link:"auth-test"})]),e("li",null,[l(t,{label:"Consent Test",link:"consent-test"})]),e("li",null,[l(t,{label:"Eligibility Test",link:"eligibility-test"})]),e("li",null,[l(t,{label:"DCE Survey Test",link:"dce-survey"})])]),E,D,e("ul",null,[(d(),c(x,null,f(v,i=>e("li",{key:i},[l(t,{label:i,link:"test-survey/"+i},null,8,["label","link"])])),64))])]))}});const F=S(H,[["__scopeId","data-v-c171e60a"]]);export{F as default}; diff --git a/assets/EligibilityView.c3dd0260.js b/assets/EligibilityView.c3dd0260.js new file mode 100644 index 0000000..8f9c9fa --- /dev/null +++ b/assets/EligibilityView.c3dd0260.js @@ -0,0 +1 @@ +import{E as H,x as c,au as b,av as O,f as U,y as W,h as Y,S as $,z as V,B as G,c as K,v as q,k as z,C as j,N as J,aw as Q,ax as Z,o as h,D as ee}from"./index.81423599.js";import{s as te}from"./surveyExampleBase.55db71c1.js";import{a as ae,u as ne,O as ie,g as oe,b as se,p as re,c as le,d as ue}from"./pcmServiceApi.95101c9c.js";import{l as ce,c as de,s as pe}from"./surveyStorage.34c3760f.js";import{_ as me}from"./SurveyJsWrapper.vue_vue_type_script_setup_true_lang.540d7fd6.js";const ye={name:"ELY1-1",type:"text",isRequired:!0,title:"How old are you?",inputType:"number",step:1},ge={name:"qELY1_valid",expression:"{ELY1-1} >= 18"},ve={name:"ELY2",type:"radiogroup",isRequired:!0,title:"How would you describe your gender?",choices:[{text:"Male",value:0},{text:"Female",value:1},{text:"Non-binary",value:2},{text:"I use a different term",value:3}]},he={name:"qELY2_valid",expression:"{ELY2} == 0"},fe={name:"ELY3",type:"radiogroup",isRequired:!0,title:"How do you rate your English ability?",choices:[{text:"Basic",value:0},{text:"Advanced",value:1},{text:"Fluent/Native Speaker",value:2}]},xe={name:"qELY3_valid",expression:"{ELY3} > 0"},Ee={name:"ELY4",type:"radiogroup",isRequired:!0,title:"Are you currently living in Australia?",choices:[{text:"No",value:0},{text:"Yes",value:1}]},Le={name:"qELY4_valid",expression:"{ELY4} > 0"},_e={name:"ELY5",type:"radiogroup",isRequired:!0,title:"Have you thought of dying or hurting yourself in the past six months?",choices:[{text:"Not at all",value:0},{text:"Several days",value:1},{text:"More than half the days",value:2},{text:"Nearly every day",value:3}]},be={name:"qELY5_valid",expression:"{ELY5} > 0"},Ye={name:"ELY6",type:"radiogroup",isRequired:!0,title:"Have you seen a counsellor, psychologist, psychiatrist or other mental health professional, or General Practitioner for a mental health problem in the past six months?",choices:[{text:"No",value:0},{text:"Yes",value:1},{text:"Don't know",value:2}]},qe={name:"qELY6_valid",expression:"{ELY6} == 0"},we={name:"description",type:"html",html:'

To protect your privacy and the confidentiality of your data, we will ask you to register with the study using an active email address.

Your account will provide you with access to the Under the Radar study surveys, and periodic email notifications will be sent when surveys are available.

'},Se={name:"preferredName",type:"text",isRequired:!0,title:"What is your preferred name?",inputType:"text",maxLength:128},Ce={name:"email",type:"text",isRequired:!0,title:"What is your email address?",inputType:"email",autocomplete:"email",maxLength:128},Pe={name:"mobile",type:"text",isRequired:!0,title:"What is your mobile number?",description:"Your mobile number will only be used for sending a One Time Password which will allow you to log in.",placeholder:"04XXXXXXXX",inputType:"tel",autocomplete:"tel",validators:[{type:"regex",regex:"^(0|\\+61)4[0-9]{8}$",text:"Please enter a valid Australian mobile number"}]},Re={...te,pages:[{name:"Under the Radar",elements:[ye,ve,fe,Ee,_e,Ye]},{name:"Under the Radar",elements:[we,Se,Ce,Pe],visibleIf:"{__needContactPage} || ({eligible_for_study})"}],calculatedValues:[ge,he,xe,Le,be,qe,{name:"eligible_for_study",expression:"{qELY1_valid} && {qELY2_valid} && {qELY3_valid} && {qELY4_valid} && {qELY5_valid} && {qELY6_valid}",includeIntoResult:!0}]},Ie=H("experiment",()=>{const s=c(null),i=d=>{s.value=d},r=()=>{s.value=null},n=b(O),o=b(ae);return{setExperimentId:i,clearExperimentId:r,getESExperimentCached:n.cacheFn,getPCMExperimentCached:o.cacheFn}}),Be=U({__name:"EligibilityView",props:{experimentId:null},setup(s){const i=s,r=ee(),n=W(),o=ne(),d=Ie(),p=j(),m=c(),y=c(),f=c(),w=Y(()=>Re),g=Y(()=>`eligibility:${i.experimentId}`);$(()=>{const e=ce(g.value);f.value=e.oldData}),V(async()=>{if(!o.acceptStudy){const e=i.experimentId?`/consent/${i.experimentId}`:"/consent-test";p.push({path:e})}try{i.experimentId&&await d.getPCMExperimentCached(i.experimentId)}catch(e){console.error(e),p.push({path:"/error-page"})}});function S(e){return!!e.eligible_for_study}function C(e){return e["ELY1-1"]>=18}function P(e){const t=e.email;if(t==null)return null;if(typeof t!="string")throw new Error("email is not a string");return t}function R(e){let t=e.mobile;if(t==null)return null;if(typeof t!="string")throw new Error("email is not a string");let a=t;return a.startsWith("0")&&(a="+61"+a.substring(1)),a}function v(e){y.value=e,m.value&&(m.value.scrollTop=0)}async function I(e){n.openLoadingOverlay();let t=!0;try{const a=await T(e);v(a),a==="signed up"&&(n.closeLoadingOverlay(),t=!1,await J(10*1e3),p.push("/login"))}catch(a){a instanceof Q?v("existing account"):v("error")}finally{t&&n.closeLoadingOverlay(),de(g.value)}}async function T(e){const t=S(e);if(!C(e))return"ineligible";const a={...e,accept_data_sharing:o.acceptDataSharing,accept_future_contact:o.acceptFutureContact,request_feedback:o.requestFeedback,consent:o.acceptStudy},x=await oe(i.experimentId),B=await se(i.experimentId);let E=await re(i.experimentId,x.id,a);if(!E)return"no consent";const L=E.participantCandidateMappingId,l=P(e),u=R(e);let _=await le(L,B.id,l,u,t,e);const F=l&&u,X=_&&_.state!=="INELIGIBLE";if(!(t&&F&&X))return"ineligible";r.storeEmail(l),r.storeMobile(u);const A=await Z(l,u);return await ue(L,A.id),"signed up"}function D(e){n.setPageCount(e.pageCount),n.setPageTitle(e.currentPage.name),n.setPageIndex(e.currentPageNo),n.setShowProgressBar(!0);const t=o.requestFeedback||o.acceptFutureContact;e.setVariable("__needContactPage",t)}G(()=>{n.setShowProgressBar(!1)});function k(e,t,a){n.setPageIndex(e),n.setPageTitle(a)}function M(e,t){const a={...e};delete a.eligible_for_study,pe(g.value,a,t)}function N(e){n.setHelpKey(e)}return(e,t)=>(h(),K("div",{ref_key:"surveyContainerRef",ref:m,class:"eligibility-view"},[y.value?(h(),q(ie,{key:1,"completion-state":y.value,"login-link":"/login"},null,8,["completion-state"])):(h(),q(me,{key:0,"survey-data":z(w),"initial-state":f.value,onComplete:I,onLoaded:D,onPageChanged:k,onPartialSend:M,onHelp:N},null,8,["survey-data","initial-state"]))],512))}});export{Be as default}; diff --git a/assets/ErrorView.76819512.js b/assets/ErrorView.76819512.js new file mode 100644 index 0000000..23b31d6 --- /dev/null +++ b/assets/ErrorView.76819512.js @@ -0,0 +1 @@ +import{f as m,u as S,h as s,c as x,e as a,k as t,l as u,m as b,v as f,j as y,o as i,A as h,n as v,_ as w,y as E}from"./index.81423599.js";const z="/assets/error-401.24a7967e.svg",B="/assets/error-404.dbedda7c.svg",H="/assets/error-generic.5b6be1b1.svg",L={class:"error-page"},P={class:"ep-container"},W=["src","alt"],C={class:"ep-text-box"},V={key:0},A={class:"ep-button-row"},I=m({__name:"ErrorPage",props:{error:null},setup(c){const p=c;v(e=>({"5e66077e":t(_).layout,"0f80c98b":t(_).alignContent,"4f11dbc8":t(k),71668636:t(d),"6e95a4e5":t(l).fontSize,"26535e5c":t(l).fontWeight,"335b40f0":t(l).lineHeight,"4d8836bf":t(g).fontSize,"12e8e1b6":t(g).fontWeight,"1ff0c44a":t(g).lineHeight}));const n=S(),o=s(()=>{let e={heading:"Oops!",subHeading:"Something went wrong!",src:H,alt:"An Error Occurred",text:"",loginLink:!1};switch(p.error){case"401":e.src=z,e.alt="Login Required",e.subHeading="You need to log in to access this page.",e.loginLink=!0;break;case"404":e.src=B,e.alt="Page not found",e.text="I can't seem to find the page you were looking for";break}return e}),d=s(()=>{switch(n.breakpoint){case"mobile":return"80%";case"small":return"300px";case"xl":return"480px";case"xxl":return"580px"}throw new Error(`Unknown breakpoint: ${n.breakpoint}`)}),k=s(()=>n.breakpoint==="mobile"?"30%":d.value),_=s(()=>{let e='"image text"',r="center";return n.breakpoint==="mobile"&&(e='"image" "text"',r="start"),{layout:e,alignContent:r}}),l=s(()=>{let e="48px",r="54px";switch(n.textSize){case"medium":e="64px",r="72px";break;case"large":e="96px",r="108px";break}return{fontSize:e,lineHeight:r,fontWeight:700}}),g=s(()=>{let e="28px",r="32px";switch(n.textSize){case"medium":e="36px",r="42px";break;case"large":e="41px",r="48px";break}return{fontSize:e,lineHeight:r,fontWeight:400}});return(e,r)=>(i(),x("article",L,[a("div",P,[a("img",{class:"ep-image",src:t(o).src,alt:t(o).alt,draggable:"false"},null,8,W),a("div",C,[a("h2",null,u(t(o).heading),1),a("p",null,u(t(o).subHeading),1),t(o).text?(i(),x("p",V,u(t(o).text),1)):b("",!0),a("div",A,[t(o).loginLink?(i(),f(h,{key:0,label:"Log In",icon:"lock",link:"/login"})):b("",!0),y(h,{label:"Return to home",icon:"home",link:"/"})])])])]))}});const N=w(I,[["__scopeId","data-v-cd760e25"]]),O=m({__name:"ErrorView",props:{error:null},setup(c){return E().setPageTitle(""),(n,o)=>(i(),f(N,{error:c.error},null,8,["error"]))}});export{O as default}; diff --git a/assets/LoginView.f365e8e8.js b/assets/LoginView.f365e8e8.js new file mode 100644 index 0000000..e1489e0 --- /dev/null +++ b/assets/LoginView.f365e8e8.js @@ -0,0 +1 @@ +import{f as P,h as y,x as r,H as O,I as K,c,j as d,F as R,e as s,J as w,l as q,m as E,K as N,k as b,A as I,T,L as U,M as j,N as H,p as z,b as W,o as m,O as J,_ as M,u as Y,z as G,C as Q,D as Z,n as ee}from"./index.81423599.js";import{T as L}from"./TextInput.f23070a1.js";const X=t=>(z("data-v-4624e6ca"),t=t(),W(),t),te=["onSubmit","onKeyup"],oe=X(()=>s("h2",null,"Under The Radar",-1)),se={class:"lp-mobile-text"},le={class:"lp-input-area"},re={key:0,class:"lp-error utr-text-caption"},ae={key:1,class:"lp-error"},ne={class:"lp-button-row"},ue={class:"lp-verification-text"},ie=X(()=>s("span",null,"An SMS with your verification code has been sent to",-1)),ce={class:"lp-mobile"},de={class:"lp-input-area"},me={key:0,class:"lp-error"},ve={key:1,class:"lp-error"},be={class:"lp-no-code-text"},pe={class:"lp-button-row"},fe=P({__name:"LoginPanel",props:{mobile:null,codeRequested:{type:Boolean},isBusy:{type:Boolean},submissionError:null,requestError:null},emits:["requestCode","submitCode"],setup(t,{emit:S}){var B;const g=t,u=3,p=y(()=>({type:"submit",justifyContent:"center",icon:"chevron-right",color:"var(--utr-green)",hoverColor:"var(--utr-green-light)"})),i=y(()=>({justifyContent:"center",textClass:"lp-text-button"})),f=r(""),l=r((B=g.mobile)!=null?B:""),a=r(""),_=r(!1),n=r("enter-mobile"),V=y(()=>{let e=l.value;return h(e)?(e.startsWith("+61")&&(e="0"+e.substring(3)),e=e.replace(/[ -]/g,""),e.replace(/(\d{4})(\d{3})(\d{3})/,"$1 $2 $3")):e}),x=y(()=>{let e=l.value;return e.startsWith("0")&&(e="+61"+e.substring(1)),e.replace(/[ -]/g,"")}),v=/^(0|\+61)4[0-9]{8}$/;function h(e){return e.replace(/[ -]/g,"").match(v)}O(()=>{g.codeRequested&&(n.value="enter-code")});async function k(e=!1){const o=x.value;if(S("requestCode",o),n.value="enter-code",e){_.value=!0;try{await H(u*1e3)}finally{_.value=!1}}}function $(){const e=x.value;S("submitCode",e,f.value)}function F(){n.value=="enter-mobile"?k(!1):$()}function A(){n.value=="enter-code"&&(n.value="enter-mobile")}K(l,e=>{h(e)?a.value="":a.value="Please enter a valid mobile phone number"},{immediate:!0});const D=y(()=>!!(l.value&&!a.value));return(e,o)=>(m(),c("form",{class:"login-panel",onSubmit:U(F,["prevent"]),onKeyup:j(A,["esc"])},[d(J,{height:"128px","large-logo":!0}),oe,n.value=="enter-mobile"?(m(),c(R,{key:0},[s("div",se,[w(" Enter your mobile number to log in "),s("div",le,[d(L,{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=C=>l.value=C),class:"utr-text-body1 lp-control",autofocus:"",placeholder:"04XX XXX XXX"},null,8,["modelValue"]),a.value?(m(),c("div",re,q(a.value),1)):E("",!0),t.requestError?(m(),c("div",ae,q(t.requestError),1)):E("",!0)])]),s("div",ne,[d(I,N({class:"lp-control",label:"CONTINUE",disabled:!b(D)},b(p)),null,16,["disabled"])])],64)):(m(),c(R,{key:1},[s("div",ue,[ie,s("div",ce,q(b(V)),1),s("div",de,[d(L,{modelValue:f.value,"onUpdate:modelValue":o[1]||(o[1]=C=>f.value=C),class:"lp-input-code",autofocus:"",placeholder:"000000",size:"6"},null,8,["modelValue"]),t.requestError?(m(),c("div",me,q(t.requestError),1)):E("",!0),t.submissionError?(m(),c("div",ve,q(t.submissionError),1)):E("",!0)]),s("div",be,[w(" Didn't receive code? "),d(T,N({label:"Request again",disabled:t.isBusy||_.value},b(i),{onClick:o[2]||(o[2]=C=>k(!0))}),null,16,["disabled"]),w(". ")])]),s("div",pe,[d(I,N({class:"lp-control",label:"VERIFY",disabled:t.isBusy},b(p)),null,16,["disabled"])]),s("span",null,[w("Not your number? "),d(T,N({label:"Click here."},b(i),{onClick:o[3]||(o[3]=C=>n.value="enter-mobile")}),null,16)])],64))],40,te))}});const _e=M(fe,[["__scopeId","data-v-4624e6ca"]]),he={class:"login-view"},ye=P({__name:"LoginView",setup(t){var x;ee(v=>({aff706ec:b(V)}));const S=Y(),g=Q(),u=Z(),p=r((x=u.mobile.value)!=null?x:""),i=r(!1),f=r(!1),l=r(""),a=r("");G(()=>{u.isLoggedIn.value?g.push(u.getRouterTargetForHomeOrLoginIfNeeded()):p.value&&_(p.value)});async function _(v){f.value=!0,l.value="";try{i.value=!0,await u.startPasswordlessSmsLogin(v)}catch{l.value="Failed to send code, please check your phone number is correct."}finally{i.value=!1}}async function n(v,h){a.value="";try{i.value=!0,await u.submitSmsOTP(h,v),g.push(u.getRouterTargetForHomeOrLoginIfNeeded())}catch{a.value="An error occurred while submitting the code"}finally{i.value=!1}}const V=y(()=>S.breakpoint==="mobile"?"1rem 0.5rem":"2rem");return(v,h)=>(m(),c("div",he,[d(_e,{mobile:p.value,"code-requested":f.value,"is-busy":i.value,"submission-error":a.value,"request-error":l.value,onSubmitCode:n,onRequestCode:_},null,8,["mobile","code-requested","is-busy","submission-error","request-error"])]))}});const Ce=M(ye,[["__scopeId","data-v-9e4ce605"]]);export{Ce as default}; diff --git a/assets/SurveyJsWrapper.vue_vue_type_script_setup_true_lang.540d7fd6.js b/assets/SurveyJsWrapper.vue_vue_type_script_setup_true_lang.540d7fd6.js new file mode 100644 index 0000000..0ce351a --- /dev/null +++ b/assets/SurveyJsWrapper.vue_vue_type_script_setup_true_lang.540d7fd6.js @@ -0,0 +1,1963 @@ +var Vi=Object.defineProperty;var wi=(z,F,D)=>F in z?Vi(z,F,{enumerable:!0,configurable:!0,writable:!0,value:D}):z[F]=D;var ln=(z,F,D)=>(wi(z,typeof F!="symbol"?F+"":F,D),D);import{h as Pe,x as Le,I as At,W as Ti,X as Ii,Y as Mi,Z as Ri,$ as Si,f as Ae,a0 as mn,u as bt,c as ye,F as We,s as Ue,a1 as qe,k as be,o as ge,e as ve,l as De,n as Ct,_ as Fe,z as _e,a2 as Di,a3 as Ai,j as Ze,P as Ro,Q as Li,R as mt,m as Rt,T as Bi,p as ki,b as ji,q as So,L as Ni,G as Do,a4 as Ao,v as at,B as Lo,a5 as Fi,a6 as Qi,a7 as qi,a8 as ho}from"./index.81423599.js";function It(z){var F;const D=Ti(z);return(F=D==null?void 0:D.$el)!=null?F:D}const Bo=Ii?window:void 0;function zi(z,F=!1){const D=Le(),y=()=>D.value=Boolean(z());return y(),Si(y,F),D}const fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pn="__vueuse_ssr_handlers__";fn[pn]=fn[pn]||{};fn[pn];var go=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Hi=(z,F)=>{var D={};for(var y in z)Wi.call(z,y)&&F.indexOf(y)<0&&(D[y]=z[y]);if(z!=null&&go)for(var y of go(z))F.indexOf(y)<0&&Ui.call(z,y)&&(D[y]=z[y]);return D};function $i(z,F,D={}){const y=D,{window:c=Bo}=y,b=Hi(y,["window"]);let C;const I=zi(()=>c&&"ResizeObserver"in c),M=()=>{C&&(C.disconnect(),C=void 0)},T=At(()=>It(z),P=>{M(),I.value&&c&&P&&(C=new ResizeObserver(F),C.observe(P,b))},{immediate:!0,flush:"post"}),V=()=>{M(),T()};return Mi(V),{isSupported:I,stop:V}}function mo(z,F={width:0,height:0},D={}){const{window:y=Bo,box:c="content-box"}=D,b=Pe(()=>{var M,T;return(T=(M=It(z))==null?void 0:M.namespaceURI)==null?void 0:T.includes("svg")}),C=Le(F.width),I=Le(F.height);return $i(z,([M])=>{const T=c==="border-box"?M.borderBoxSize:c==="content-box"?M.contentBoxSize:M.devicePixelContentBoxSize;if(y&&b.value){const V=It(z);if(V){const P=y.getComputedStyle(V);C.value=parseFloat(P.width),I.value=parseFloat(P.height)}}else if(T){const V=Array.isArray(T)?T:[T];C.value=V.reduce((P,{inlineSize:a})=>P+a,0),I.value=V.reduce((P,{blockSize:a})=>P+a,0)}else C.value=M.contentRect.width,I.value=M.contentRect.height},D),At(()=>It(z),M=>{C.value=M?F.width:0,I.value=M?F.height:0}),{width:C,height:I}}var vo;(function(z){z.UP="UP",z.RIGHT="RIGHT",z.DOWN="DOWN",z.LEFT="LEFT",z.NONE="NONE"})(vo||(vo={}));var Ki=Object.defineProperty,yo=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,bo=(z,F,D)=>F in z?Ki(z,F,{enumerable:!0,configurable:!0,writable:!0,value:D}):z[F]=D,Yi=(z,F)=>{for(var D in F||(F={}))Ji.call(F,D)&&bo(z,D,F[D]);if(yo)for(var D of yo(F))Gi.call(F,D)&&bo(z,D,F[D]);return z};const Zi={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Yi({linear:Ri},Zi);var vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ko={exports:{}};(function(z){(function(){function F(o){var r={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `\xAB\xAB\xAB` and `\xBB\xBB\xBB` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(o===!1)return JSON.parse(JSON.stringify(r));var n={};for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i].defaultValue);return n}function D(){var o=F(!0),r={};for(var n in o)o.hasOwnProperty(n)&&(r[n]=!0);return r}var y={},c={},b={},C=F(!0),I="vanilla",M={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:F(!0),allOn:D()};y.helper={},y.extensions={},y.setOption=function(o,r){return C[o]=r,this},y.getOption=function(o){return C[o]},y.getOptions=function(){return C},y.resetOptions=function(){C=F(!0)},y.setFlavor=function(o){if(!M.hasOwnProperty(o))throw Error(o+" flavor was not found");y.resetOptions();var r=M[o];I=o;for(var n in r)r.hasOwnProperty(n)&&(C[n]=r[n])},y.getFlavor=function(){return I},y.getFlavorOptions=function(o){if(M.hasOwnProperty(o))return M[o]},y.getDefaultOptions=function(o){return F(o)},y.subParser=function(o,r){if(y.helper.isString(o))if(typeof r<"u")c[o]=r;else{if(c.hasOwnProperty(o))return c[o];throw Error("SubParser named "+o+" not registered!")}},y.extension=function(o,r){if(!y.helper.isString(o))throw Error("Extension 'name' must be a string");if(o=y.helper.stdExtName(o),y.helper.isUndefined(r)){if(!b.hasOwnProperty(o))throw Error("Extension named "+o+" is not registered!");return b[o]}else{typeof r=="function"&&(r=r()),y.helper.isArray(r)||(r=[r]);var n=T(r,o);if(n.valid)b[o]=r;else throw Error(n.error)}},y.getAllExtensions=function(){return b},y.removeExtension=function(o){delete b[o]},y.resetExtensions=function(){b={}};function T(o,r){var n=r?"Error in "+r+" extension->":"Error in unnamed extension",i={valid:!0,error:""};y.helper.isArray(o)||(o=[o]);for(var m=0;m"u"},y.helper.forEach=function(o,r){if(y.helper.isUndefined(o))throw new Error("obj param is required");if(y.helper.isUndefined(r))throw new Error("callback param is required");if(!y.helper.isFunction(r))throw new Error("callback param must be a function/closure");if(typeof o.forEach=="function")o.forEach(r);else if(y.helper.isArray(o))for(var n=0;n").replace(/&/g,"&")};var P=function(o,r,n,i){var m=i||"",O=m.indexOf("g")>-1,w=new RegExp(r+"|"+n,"g"+m.replace(/g/g,"")),x=new RegExp(r,m.replace(/g/g,"")),l=[],t,d,v,E,R;do for(t=0;v=w.exec(o);)if(x.test(v[0]))t++||(d=w.lastIndex,E=d-v[0].length);else if(t&&!--t){R=v.index+v[0].length;var S={left:{start:E,end:d},match:{start:d,end:v.index},right:{start:v.index,end:R},wholeMatch:{start:E,end:R}};if(l.push(S),!O)return l}while(t&&(w.lastIndex=d));return l};y.helper.matchRecursiveRegExp=function(o,r,n,i){for(var m=P(o,r,n,i),O=[],w=0;w0){var t=[];w[0].wholeMatch.start!==0&&t.push(o.slice(0,w[0].wholeMatch.start));for(var d=0;d=0?i+(n||0):i},y.helper.splitAtIndex=function(o,r){if(!y.helper.isString(o))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[o.substring(0,r),o.substring(r)]},y.helper.encodeEmailAddress=function(o){var r=[function(n){return"&#"+n.charCodeAt(0)+";"},function(n){return"&#x"+n.charCodeAt(0).toString(16)+";"},function(n){return n}];return o=o.replace(/./g,function(n){if(n==="@")n=r[Math.floor(Math.random()*2)](n);else{var i=Math.random();n=i>.9?r[2](n):i>.45?r[1](n):r[0](n)}return n}),o},y.helper.padEnd=function(r,n,i){return n=n>>0,i=String(i||" "),r.length>n?String(r):(n=n-r.length,n>i.length&&(i+=i.repeat(n/i.length)),String(r)+i.slice(0,n))},typeof console>"u"&&(console={warn:function(o){alert(o)},log:function(o){alert(o)},error:function(o){throw o}}),y.helper.regexes={asteriskDashAndColon:/([*_:~])/g},y.helper.emojis={"+1":"\u{1F44D}","-1":"\u{1F44E}",100:"\u{1F4AF}",1234:"\u{1F522}","1st_place_medal":"\u{1F947}","2nd_place_medal":"\u{1F948}","3rd_place_medal":"\u{1F949}","8ball":"\u{1F3B1}",a:"\u{1F170}\uFE0F",ab:"\u{1F18E}",abc:"\u{1F524}",abcd:"\u{1F521}",accept:"\u{1F251}",aerial_tramway:"\u{1F6A1}",airplane:"\u2708\uFE0F",alarm_clock:"\u23F0",alembic:"\u2697\uFE0F",alien:"\u{1F47D}",ambulance:"\u{1F691}",amphora:"\u{1F3FA}",anchor:"\u2693\uFE0F",angel:"\u{1F47C}",anger:"\u{1F4A2}",angry:"\u{1F620}",anguished:"\u{1F627}",ant:"\u{1F41C}",apple:"\u{1F34E}",aquarius:"\u2652\uFE0F",aries:"\u2648\uFE0F",arrow_backward:"\u25C0\uFE0F",arrow_double_down:"\u23EC",arrow_double_up:"\u23EB",arrow_down:"\u2B07\uFE0F",arrow_down_small:"\u{1F53D}",arrow_forward:"\u25B6\uFE0F",arrow_heading_down:"\u2935\uFE0F",arrow_heading_up:"\u2934\uFE0F",arrow_left:"\u2B05\uFE0F",arrow_lower_left:"\u2199\uFE0F",arrow_lower_right:"\u2198\uFE0F",arrow_right:"\u27A1\uFE0F",arrow_right_hook:"\u21AA\uFE0F",arrow_up:"\u2B06\uFE0F",arrow_up_down:"\u2195\uFE0F",arrow_up_small:"\u{1F53C}",arrow_upper_left:"\u2196\uFE0F",arrow_upper_right:"\u2197\uFE0F",arrows_clockwise:"\u{1F503}",arrows_counterclockwise:"\u{1F504}",art:"\u{1F3A8}",articulated_lorry:"\u{1F69B}",artificial_satellite:"\u{1F6F0}",astonished:"\u{1F632}",athletic_shoe:"\u{1F45F}",atm:"\u{1F3E7}",atom_symbol:"\u269B\uFE0F",avocado:"\u{1F951}",b:"\u{1F171}\uFE0F",baby:"\u{1F476}",baby_bottle:"\u{1F37C}",baby_chick:"\u{1F424}",baby_symbol:"\u{1F6BC}",back:"\u{1F519}",bacon:"\u{1F953}",badminton:"\u{1F3F8}",baggage_claim:"\u{1F6C4}",baguette_bread:"\u{1F956}",balance_scale:"\u2696\uFE0F",balloon:"\u{1F388}",ballot_box:"\u{1F5F3}",ballot_box_with_check:"\u2611\uFE0F",bamboo:"\u{1F38D}",banana:"\u{1F34C}",bangbang:"\u203C\uFE0F",bank:"\u{1F3E6}",bar_chart:"\u{1F4CA}",barber:"\u{1F488}",baseball:"\u26BE\uFE0F",basketball:"\u{1F3C0}",basketball_man:"\u26F9\uFE0F",basketball_woman:"\u26F9\uFE0F‍\u2640\uFE0F",bat:"\u{1F987}",bath:"\u{1F6C0}",bathtub:"\u{1F6C1}",battery:"\u{1F50B}",beach_umbrella:"\u{1F3D6}",bear:"\u{1F43B}",bed:"\u{1F6CF}",bee:"\u{1F41D}",beer:"\u{1F37A}",beers:"\u{1F37B}",beetle:"\u{1F41E}",beginner:"\u{1F530}",bell:"\u{1F514}",bellhop_bell:"\u{1F6CE}",bento:"\u{1F371}",biking_man:"\u{1F6B4}",bike:"\u{1F6B2}",biking_woman:"\u{1F6B4}‍\u2640\uFE0F",bikini:"\u{1F459}",biohazard:"\u2623\uFE0F",bird:"\u{1F426}",birthday:"\u{1F382}",black_circle:"\u26AB\uFE0F",black_flag:"\u{1F3F4}",black_heart:"\u{1F5A4}",black_joker:"\u{1F0CF}",black_large_square:"\u2B1B\uFE0F",black_medium_small_square:"\u25FE\uFE0F",black_medium_square:"\u25FC\uFE0F",black_nib:"\u2712\uFE0F",black_small_square:"\u25AA\uFE0F",black_square_button:"\u{1F532}",blonde_man:"\u{1F471}",blonde_woman:"\u{1F471}‍\u2640\uFE0F",blossom:"\u{1F33C}",blowfish:"\u{1F421}",blue_book:"\u{1F4D8}",blue_car:"\u{1F699}",blue_heart:"\u{1F499}",blush:"\u{1F60A}",boar:"\u{1F417}",boat:"\u26F5\uFE0F",bomb:"\u{1F4A3}",book:"\u{1F4D6}",bookmark:"\u{1F516}",bookmark_tabs:"\u{1F4D1}",books:"\u{1F4DA}",boom:"\u{1F4A5}",boot:"\u{1F462}",bouquet:"\u{1F490}",bowing_man:"\u{1F647}",bow_and_arrow:"\u{1F3F9}",bowing_woman:"\u{1F647}‍\u2640\uFE0F",bowling:"\u{1F3B3}",boxing_glove:"\u{1F94A}",boy:"\u{1F466}",bread:"\u{1F35E}",bride_with_veil:"\u{1F470}",bridge_at_night:"\u{1F309}",briefcase:"\u{1F4BC}",broken_heart:"\u{1F494}",bug:"\u{1F41B}",building_construction:"\u{1F3D7}",bulb:"\u{1F4A1}",bullettrain_front:"\u{1F685}",bullettrain_side:"\u{1F684}",burrito:"\u{1F32F}",bus:"\u{1F68C}",business_suit_levitating:"\u{1F574}",busstop:"\u{1F68F}",bust_in_silhouette:"\u{1F464}",busts_in_silhouette:"\u{1F465}",butterfly:"\u{1F98B}",cactus:"\u{1F335}",cake:"\u{1F370}",calendar:"\u{1F4C6}",call_me_hand:"\u{1F919}",calling:"\u{1F4F2}",camel:"\u{1F42B}",camera:"\u{1F4F7}",camera_flash:"\u{1F4F8}",camping:"\u{1F3D5}",cancer:"\u264B\uFE0F",candle:"\u{1F56F}",candy:"\u{1F36C}",canoe:"\u{1F6F6}",capital_abcd:"\u{1F520}",capricorn:"\u2651\uFE0F",car:"\u{1F697}",card_file_box:"\u{1F5C3}",card_index:"\u{1F4C7}",card_index_dividers:"\u{1F5C2}",carousel_horse:"\u{1F3A0}",carrot:"\u{1F955}",cat:"\u{1F431}",cat2:"\u{1F408}",cd:"\u{1F4BF}",chains:"\u26D3",champagne:"\u{1F37E}",chart:"\u{1F4B9}",chart_with_downwards_trend:"\u{1F4C9}",chart_with_upwards_trend:"\u{1F4C8}",checkered_flag:"\u{1F3C1}",cheese:"\u{1F9C0}",cherries:"\u{1F352}",cherry_blossom:"\u{1F338}",chestnut:"\u{1F330}",chicken:"\u{1F414}",children_crossing:"\u{1F6B8}",chipmunk:"\u{1F43F}",chocolate_bar:"\u{1F36B}",christmas_tree:"\u{1F384}",church:"\u26EA\uFE0F",cinema:"\u{1F3A6}",circus_tent:"\u{1F3AA}",city_sunrise:"\u{1F307}",city_sunset:"\u{1F306}",cityscape:"\u{1F3D9}",cl:"\u{1F191}",clamp:"\u{1F5DC}",clap:"\u{1F44F}",clapper:"\u{1F3AC}",classical_building:"\u{1F3DB}",clinking_glasses:"\u{1F942}",clipboard:"\u{1F4CB}",clock1:"\u{1F550}",clock10:"\u{1F559}",clock1030:"\u{1F565}",clock11:"\u{1F55A}",clock1130:"\u{1F566}",clock12:"\u{1F55B}",clock1230:"\u{1F567}",clock130:"\u{1F55C}",clock2:"\u{1F551}",clock230:"\u{1F55D}",clock3:"\u{1F552}",clock330:"\u{1F55E}",clock4:"\u{1F553}",clock430:"\u{1F55F}",clock5:"\u{1F554}",clock530:"\u{1F560}",clock6:"\u{1F555}",clock630:"\u{1F561}",clock7:"\u{1F556}",clock730:"\u{1F562}",clock8:"\u{1F557}",clock830:"\u{1F563}",clock9:"\u{1F558}",clock930:"\u{1F564}",closed_book:"\u{1F4D5}",closed_lock_with_key:"\u{1F510}",closed_umbrella:"\u{1F302}",cloud:"\u2601\uFE0F",cloud_with_lightning:"\u{1F329}",cloud_with_lightning_and_rain:"\u26C8",cloud_with_rain:"\u{1F327}",cloud_with_snow:"\u{1F328}",clown_face:"\u{1F921}",clubs:"\u2663\uFE0F",cocktail:"\u{1F378}",coffee:"\u2615\uFE0F",coffin:"\u26B0\uFE0F",cold_sweat:"\u{1F630}",comet:"\u2604\uFE0F",computer:"\u{1F4BB}",computer_mouse:"\u{1F5B1}",confetti_ball:"\u{1F38A}",confounded:"\u{1F616}",confused:"\u{1F615}",congratulations:"\u3297\uFE0F",construction:"\u{1F6A7}",construction_worker_man:"\u{1F477}",construction_worker_woman:"\u{1F477}‍\u2640\uFE0F",control_knobs:"\u{1F39B}",convenience_store:"\u{1F3EA}",cookie:"\u{1F36A}",cool:"\u{1F192}",policeman:"\u{1F46E}",copyright:"\xA9\uFE0F",corn:"\u{1F33D}",couch_and_lamp:"\u{1F6CB}",couple:"\u{1F46B}",couple_with_heart_woman_man:"\u{1F491}",couple_with_heart_man_man:"\u{1F468}‍\u2764\uFE0F‍\u{1F468}",couple_with_heart_woman_woman:"\u{1F469}‍\u2764\uFE0F‍\u{1F469}",couplekiss_man_man:"\u{1F468}‍\u2764\uFE0F‍\u{1F48B}‍\u{1F468}",couplekiss_man_woman:"\u{1F48F}",couplekiss_woman_woman:"\u{1F469}‍\u2764\uFE0F‍\u{1F48B}‍\u{1F469}",cow:"\u{1F42E}",cow2:"\u{1F404}",cowboy_hat_face:"\u{1F920}",crab:"\u{1F980}",crayon:"\u{1F58D}",credit_card:"\u{1F4B3}",crescent_moon:"\u{1F319}",cricket:"\u{1F3CF}",crocodile:"\u{1F40A}",croissant:"\u{1F950}",crossed_fingers:"\u{1F91E}",crossed_flags:"\u{1F38C}",crossed_swords:"\u2694\uFE0F",crown:"\u{1F451}",cry:"\u{1F622}",crying_cat_face:"\u{1F63F}",crystal_ball:"\u{1F52E}",cucumber:"\u{1F952}",cupid:"\u{1F498}",curly_loop:"\u27B0",currency_exchange:"\u{1F4B1}",curry:"\u{1F35B}",custard:"\u{1F36E}",customs:"\u{1F6C3}",cyclone:"\u{1F300}",dagger:"\u{1F5E1}",dancer:"\u{1F483}",dancing_women:"\u{1F46F}",dancing_men:"\u{1F46F}‍\u2642\uFE0F",dango:"\u{1F361}",dark_sunglasses:"\u{1F576}",dart:"\u{1F3AF}",dash:"\u{1F4A8}",date:"\u{1F4C5}",deciduous_tree:"\u{1F333}",deer:"\u{1F98C}",department_store:"\u{1F3EC}",derelict_house:"\u{1F3DA}",desert:"\u{1F3DC}",desert_island:"\u{1F3DD}",desktop_computer:"\u{1F5A5}",male_detective:"\u{1F575}\uFE0F",diamond_shape_with_a_dot_inside:"\u{1F4A0}",diamonds:"\u2666\uFE0F",disappointed:"\u{1F61E}",disappointed_relieved:"\u{1F625}",dizzy:"\u{1F4AB}",dizzy_face:"\u{1F635}",do_not_litter:"\u{1F6AF}",dog:"\u{1F436}",dog2:"\u{1F415}",dollar:"\u{1F4B5}",dolls:"\u{1F38E}",dolphin:"\u{1F42C}",door:"\u{1F6AA}",doughnut:"\u{1F369}",dove:"\u{1F54A}",dragon:"\u{1F409}",dragon_face:"\u{1F432}",dress:"\u{1F457}",dromedary_camel:"\u{1F42A}",drooling_face:"\u{1F924}",droplet:"\u{1F4A7}",drum:"\u{1F941}",duck:"\u{1F986}",dvd:"\u{1F4C0}","e-mail":"\u{1F4E7}",eagle:"\u{1F985}",ear:"\u{1F442}",ear_of_rice:"\u{1F33E}",earth_africa:"\u{1F30D}",earth_americas:"\u{1F30E}",earth_asia:"\u{1F30F}",egg:"\u{1F95A}",eggplant:"\u{1F346}",eight_pointed_black_star:"\u2734\uFE0F",eight_spoked_asterisk:"\u2733\uFE0F",electric_plug:"\u{1F50C}",elephant:"\u{1F418}",email:"\u2709\uFE0F",end:"\u{1F51A}",envelope_with_arrow:"\u{1F4E9}",euro:"\u{1F4B6}",european_castle:"\u{1F3F0}",european_post_office:"\u{1F3E4}",evergreen_tree:"\u{1F332}",exclamation:"\u2757\uFE0F",expressionless:"\u{1F611}",eye:"\u{1F441}",eye_speech_bubble:"\u{1F441}‍\u{1F5E8}",eyeglasses:"\u{1F453}",eyes:"\u{1F440}",face_with_head_bandage:"\u{1F915}",face_with_thermometer:"\u{1F912}",fist_oncoming:"\u{1F44A}",factory:"\u{1F3ED}",fallen_leaf:"\u{1F342}",family_man_woman_boy:"\u{1F46A}",family_man_boy:"\u{1F468}‍\u{1F466}",family_man_boy_boy:"\u{1F468}‍\u{1F466}‍\u{1F466}",family_man_girl:"\u{1F468}‍\u{1F467}",family_man_girl_boy:"\u{1F468}‍\u{1F467}‍\u{1F466}",family_man_girl_girl:"\u{1F468}‍\u{1F467}‍\u{1F467}",family_man_man_boy:"\u{1F468}‍\u{1F468}‍\u{1F466}",family_man_man_boy_boy:"\u{1F468}‍\u{1F468}‍\u{1F466}‍\u{1F466}",family_man_man_girl:"\u{1F468}‍\u{1F468}‍\u{1F467}",family_man_man_girl_boy:"\u{1F468}‍\u{1F468}‍\u{1F467}‍\u{1F466}",family_man_man_girl_girl:"\u{1F468}‍\u{1F468}‍\u{1F467}‍\u{1F467}",family_man_woman_boy_boy:"\u{1F468}‍\u{1F469}‍\u{1F466}‍\u{1F466}",family_man_woman_girl:"\u{1F468}‍\u{1F469}‍\u{1F467}",family_man_woman_girl_boy:"\u{1F468}‍\u{1F469}‍\u{1F467}‍\u{1F466}",family_man_woman_girl_girl:"\u{1F468}‍\u{1F469}‍\u{1F467}‍\u{1F467}",family_woman_boy:"\u{1F469}‍\u{1F466}",family_woman_boy_boy:"\u{1F469}‍\u{1F466}‍\u{1F466}",family_woman_girl:"\u{1F469}‍\u{1F467}",family_woman_girl_boy:"\u{1F469}‍\u{1F467}‍\u{1F466}",family_woman_girl_girl:"\u{1F469}‍\u{1F467}‍\u{1F467}",family_woman_woman_boy:"\u{1F469}‍\u{1F469}‍\u{1F466}",family_woman_woman_boy_boy:"\u{1F469}‍\u{1F469}‍\u{1F466}‍\u{1F466}",family_woman_woman_girl:"\u{1F469}‍\u{1F469}‍\u{1F467}",family_woman_woman_girl_boy:"\u{1F469}‍\u{1F469}‍\u{1F467}‍\u{1F466}",family_woman_woman_girl_girl:"\u{1F469}‍\u{1F469}‍\u{1F467}‍\u{1F467}",fast_forward:"\u23E9",fax:"\u{1F4E0}",fearful:"\u{1F628}",feet:"\u{1F43E}",female_detective:"\u{1F575}\uFE0F‍\u2640\uFE0F",ferris_wheel:"\u{1F3A1}",ferry:"\u26F4",field_hockey:"\u{1F3D1}",file_cabinet:"\u{1F5C4}",file_folder:"\u{1F4C1}",film_projector:"\u{1F4FD}",film_strip:"\u{1F39E}",fire:"\u{1F525}",fire_engine:"\u{1F692}",fireworks:"\u{1F386}",first_quarter_moon:"\u{1F313}",first_quarter_moon_with_face:"\u{1F31B}",fish:"\u{1F41F}",fish_cake:"\u{1F365}",fishing_pole_and_fish:"\u{1F3A3}",fist_raised:"\u270A",fist_left:"\u{1F91B}",fist_right:"\u{1F91C}",flags:"\u{1F38F}",flashlight:"\u{1F526}",fleur_de_lis:"\u269C\uFE0F",flight_arrival:"\u{1F6EC}",flight_departure:"\u{1F6EB}",floppy_disk:"\u{1F4BE}",flower_playing_cards:"\u{1F3B4}",flushed:"\u{1F633}",fog:"\u{1F32B}",foggy:"\u{1F301}",football:"\u{1F3C8}",footprints:"\u{1F463}",fork_and_knife:"\u{1F374}",fountain:"\u26F2\uFE0F",fountain_pen:"\u{1F58B}",four_leaf_clover:"\u{1F340}",fox_face:"\u{1F98A}",framed_picture:"\u{1F5BC}",free:"\u{1F193}",fried_egg:"\u{1F373}",fried_shrimp:"\u{1F364}",fries:"\u{1F35F}",frog:"\u{1F438}",frowning:"\u{1F626}",frowning_face:"\u2639\uFE0F",frowning_man:"\u{1F64D}‍\u2642\uFE0F",frowning_woman:"\u{1F64D}",middle_finger:"\u{1F595}",fuelpump:"\u26FD\uFE0F",full_moon:"\u{1F315}",full_moon_with_face:"\u{1F31D}",funeral_urn:"\u26B1\uFE0F",game_die:"\u{1F3B2}",gear:"\u2699\uFE0F",gem:"\u{1F48E}",gemini:"\u264A\uFE0F",ghost:"\u{1F47B}",gift:"\u{1F381}",gift_heart:"\u{1F49D}",girl:"\u{1F467}",globe_with_meridians:"\u{1F310}",goal_net:"\u{1F945}",goat:"\u{1F410}",golf:"\u26F3\uFE0F",golfing_man:"\u{1F3CC}\uFE0F",golfing_woman:"\u{1F3CC}\uFE0F‍\u2640\uFE0F",gorilla:"\u{1F98D}",grapes:"\u{1F347}",green_apple:"\u{1F34F}",green_book:"\u{1F4D7}",green_heart:"\u{1F49A}",green_salad:"\u{1F957}",grey_exclamation:"\u2755",grey_question:"\u2754",grimacing:"\u{1F62C}",grin:"\u{1F601}",grinning:"\u{1F600}",guardsman:"\u{1F482}",guardswoman:"\u{1F482}‍\u2640\uFE0F",guitar:"\u{1F3B8}",gun:"\u{1F52B}",haircut_woman:"\u{1F487}",haircut_man:"\u{1F487}‍\u2642\uFE0F",hamburger:"\u{1F354}",hammer:"\u{1F528}",hammer_and_pick:"\u2692",hammer_and_wrench:"\u{1F6E0}",hamster:"\u{1F439}",hand:"\u270B",handbag:"\u{1F45C}",handshake:"\u{1F91D}",hankey:"\u{1F4A9}",hatched_chick:"\u{1F425}",hatching_chick:"\u{1F423}",headphones:"\u{1F3A7}",hear_no_evil:"\u{1F649}",heart:"\u2764\uFE0F",heart_decoration:"\u{1F49F}",heart_eyes:"\u{1F60D}",heart_eyes_cat:"\u{1F63B}",heartbeat:"\u{1F493}",heartpulse:"\u{1F497}",hearts:"\u2665\uFE0F",heavy_check_mark:"\u2714\uFE0F",heavy_division_sign:"\u2797",heavy_dollar_sign:"\u{1F4B2}",heavy_heart_exclamation:"\u2763\uFE0F",heavy_minus_sign:"\u2796",heavy_multiplication_x:"\u2716\uFE0F",heavy_plus_sign:"\u2795",helicopter:"\u{1F681}",herb:"\u{1F33F}",hibiscus:"\u{1F33A}",high_brightness:"\u{1F506}",high_heel:"\u{1F460}",hocho:"\u{1F52A}",hole:"\u{1F573}",honey_pot:"\u{1F36F}",horse:"\u{1F434}",horse_racing:"\u{1F3C7}",hospital:"\u{1F3E5}",hot_pepper:"\u{1F336}",hotdog:"\u{1F32D}",hotel:"\u{1F3E8}",hotsprings:"\u2668\uFE0F",hourglass:"\u231B\uFE0F",hourglass_flowing_sand:"\u23F3",house:"\u{1F3E0}",house_with_garden:"\u{1F3E1}",houses:"\u{1F3D8}",hugs:"\u{1F917}",hushed:"\u{1F62F}",ice_cream:"\u{1F368}",ice_hockey:"\u{1F3D2}",ice_skate:"\u26F8",icecream:"\u{1F366}",id:"\u{1F194}",ideograph_advantage:"\u{1F250}",imp:"\u{1F47F}",inbox_tray:"\u{1F4E5}",incoming_envelope:"\u{1F4E8}",tipping_hand_woman:"\u{1F481}",information_source:"\u2139\uFE0F",innocent:"\u{1F607}",interrobang:"\u2049\uFE0F",iphone:"\u{1F4F1}",izakaya_lantern:"\u{1F3EE}",jack_o_lantern:"\u{1F383}",japan:"\u{1F5FE}",japanese_castle:"\u{1F3EF}",japanese_goblin:"\u{1F47A}",japanese_ogre:"\u{1F479}",jeans:"\u{1F456}",joy:"\u{1F602}",joy_cat:"\u{1F639}",joystick:"\u{1F579}",kaaba:"\u{1F54B}",key:"\u{1F511}",keyboard:"\u2328\uFE0F",keycap_ten:"\u{1F51F}",kick_scooter:"\u{1F6F4}",kimono:"\u{1F458}",kiss:"\u{1F48B}",kissing:"\u{1F617}",kissing_cat:"\u{1F63D}",kissing_closed_eyes:"\u{1F61A}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kiwi_fruit:"\u{1F95D}",koala:"\u{1F428}",koko:"\u{1F201}",label:"\u{1F3F7}",large_blue_circle:"\u{1F535}",large_blue_diamond:"\u{1F537}",large_orange_diamond:"\u{1F536}",last_quarter_moon:"\u{1F317}",last_quarter_moon_with_face:"\u{1F31C}",latin_cross:"\u271D\uFE0F",laughing:"\u{1F606}",leaves:"\u{1F343}",ledger:"\u{1F4D2}",left_luggage:"\u{1F6C5}",left_right_arrow:"\u2194\uFE0F",leftwards_arrow_with_hook:"\u21A9\uFE0F",lemon:"\u{1F34B}",leo:"\u264C\uFE0F",leopard:"\u{1F406}",level_slider:"\u{1F39A}",libra:"\u264E\uFE0F",light_rail:"\u{1F688}",link:"\u{1F517}",lion:"\u{1F981}",lips:"\u{1F444}",lipstick:"\u{1F484}",lizard:"\u{1F98E}",lock:"\u{1F512}",lock_with_ink_pen:"\u{1F50F}",lollipop:"\u{1F36D}",loop:"\u27BF",loud_sound:"\u{1F50A}",loudspeaker:"\u{1F4E2}",love_hotel:"\u{1F3E9}",love_letter:"\u{1F48C}",low_brightness:"\u{1F505}",lying_face:"\u{1F925}",m:"\u24C2\uFE0F",mag:"\u{1F50D}",mag_right:"\u{1F50E}",mahjong:"\u{1F004}\uFE0F",mailbox:"\u{1F4EB}",mailbox_closed:"\u{1F4EA}",mailbox_with_mail:"\u{1F4EC}",mailbox_with_no_mail:"\u{1F4ED}",man:"\u{1F468}",man_artist:"\u{1F468}‍\u{1F3A8}",man_astronaut:"\u{1F468}‍\u{1F680}",man_cartwheeling:"\u{1F938}‍\u2642\uFE0F",man_cook:"\u{1F468}‍\u{1F373}",man_dancing:"\u{1F57A}",man_facepalming:"\u{1F926}‍\u2642\uFE0F",man_factory_worker:"\u{1F468}‍\u{1F3ED}",man_farmer:"\u{1F468}‍\u{1F33E}",man_firefighter:"\u{1F468}‍\u{1F692}",man_health_worker:"\u{1F468}‍\u2695\uFE0F",man_in_tuxedo:"\u{1F935}",man_judge:"\u{1F468}‍\u2696\uFE0F",man_juggling:"\u{1F939}‍\u2642\uFE0F",man_mechanic:"\u{1F468}‍\u{1F527}",man_office_worker:"\u{1F468}‍\u{1F4BC}",man_pilot:"\u{1F468}‍\u2708\uFE0F",man_playing_handball:"\u{1F93E}‍\u2642\uFE0F",man_playing_water_polo:"\u{1F93D}‍\u2642\uFE0F",man_scientist:"\u{1F468}‍\u{1F52C}",man_shrugging:"\u{1F937}‍\u2642\uFE0F",man_singer:"\u{1F468}‍\u{1F3A4}",man_student:"\u{1F468}‍\u{1F393}",man_teacher:"\u{1F468}‍\u{1F3EB}",man_technologist:"\u{1F468}‍\u{1F4BB}",man_with_gua_pi_mao:"\u{1F472}",man_with_turban:"\u{1F473}",tangerine:"\u{1F34A}",mans_shoe:"\u{1F45E}",mantelpiece_clock:"\u{1F570}",maple_leaf:"\u{1F341}",martial_arts_uniform:"\u{1F94B}",mask:"\u{1F637}",massage_woman:"\u{1F486}",massage_man:"\u{1F486}‍\u2642\uFE0F",meat_on_bone:"\u{1F356}",medal_military:"\u{1F396}",medal_sports:"\u{1F3C5}",mega:"\u{1F4E3}",melon:"\u{1F348}",memo:"\u{1F4DD}",men_wrestling:"\u{1F93C}‍\u2642\uFE0F",menorah:"\u{1F54E}",mens:"\u{1F6B9}",metal:"\u{1F918}",metro:"\u{1F687}",microphone:"\u{1F3A4}",microscope:"\u{1F52C}",milk_glass:"\u{1F95B}",milky_way:"\u{1F30C}",minibus:"\u{1F690}",minidisc:"\u{1F4BD}",mobile_phone_off:"\u{1F4F4}",money_mouth_face:"\u{1F911}",money_with_wings:"\u{1F4B8}",moneybag:"\u{1F4B0}",monkey:"\u{1F412}",monkey_face:"\u{1F435}",monorail:"\u{1F69D}",moon:"\u{1F314}",mortar_board:"\u{1F393}",mosque:"\u{1F54C}",motor_boat:"\u{1F6E5}",motor_scooter:"\u{1F6F5}",motorcycle:"\u{1F3CD}",motorway:"\u{1F6E3}",mount_fuji:"\u{1F5FB}",mountain:"\u26F0",mountain_biking_man:"\u{1F6B5}",mountain_biking_woman:"\u{1F6B5}‍\u2640\uFE0F",mountain_cableway:"\u{1F6A0}",mountain_railway:"\u{1F69E}",mountain_snow:"\u{1F3D4}",mouse:"\u{1F42D}",mouse2:"\u{1F401}",movie_camera:"\u{1F3A5}",moyai:"\u{1F5FF}",mrs_claus:"\u{1F936}",muscle:"\u{1F4AA}",mushroom:"\u{1F344}",musical_keyboard:"\u{1F3B9}",musical_note:"\u{1F3B5}",musical_score:"\u{1F3BC}",mute:"\u{1F507}",nail_care:"\u{1F485}",name_badge:"\u{1F4DB}",national_park:"\u{1F3DE}",nauseated_face:"\u{1F922}",necktie:"\u{1F454}",negative_squared_cross_mark:"\u274E",nerd_face:"\u{1F913}",neutral_face:"\u{1F610}",new:"\u{1F195}",new_moon:"\u{1F311}",new_moon_with_face:"\u{1F31A}",newspaper:"\u{1F4F0}",newspaper_roll:"\u{1F5DE}",next_track_button:"\u23ED",ng:"\u{1F196}",no_good_man:"\u{1F645}‍\u2642\uFE0F",no_good_woman:"\u{1F645}",night_with_stars:"\u{1F303}",no_bell:"\u{1F515}",no_bicycles:"\u{1F6B3}",no_entry:"\u26D4\uFE0F",no_entry_sign:"\u{1F6AB}",no_mobile_phones:"\u{1F4F5}",no_mouth:"\u{1F636}",no_pedestrians:"\u{1F6B7}",no_smoking:"\u{1F6AD}","non-potable_water":"\u{1F6B1}",nose:"\u{1F443}",notebook:"\u{1F4D3}",notebook_with_decorative_cover:"\u{1F4D4}",notes:"\u{1F3B6}",nut_and_bolt:"\u{1F529}",o:"\u2B55\uFE0F",o2:"\u{1F17E}\uFE0F",ocean:"\u{1F30A}",octopus:"\u{1F419}",oden:"\u{1F362}",office:"\u{1F3E2}",oil_drum:"\u{1F6E2}",ok:"\u{1F197}",ok_hand:"\u{1F44C}",ok_man:"\u{1F646}‍\u2642\uFE0F",ok_woman:"\u{1F646}",old_key:"\u{1F5DD}",older_man:"\u{1F474}",older_woman:"\u{1F475}",om:"\u{1F549}",on:"\u{1F51B}",oncoming_automobile:"\u{1F698}",oncoming_bus:"\u{1F68D}",oncoming_police_car:"\u{1F694}",oncoming_taxi:"\u{1F696}",open_file_folder:"\u{1F4C2}",open_hands:"\u{1F450}",open_mouth:"\u{1F62E}",open_umbrella:"\u2602\uFE0F",ophiuchus:"\u26CE",orange_book:"\u{1F4D9}",orthodox_cross:"\u2626\uFE0F",outbox_tray:"\u{1F4E4}",owl:"\u{1F989}",ox:"\u{1F402}",package:"\u{1F4E6}",page_facing_up:"\u{1F4C4}",page_with_curl:"\u{1F4C3}",pager:"\u{1F4DF}",paintbrush:"\u{1F58C}",palm_tree:"\u{1F334}",pancakes:"\u{1F95E}",panda_face:"\u{1F43C}",paperclip:"\u{1F4CE}",paperclips:"\u{1F587}",parasol_on_ground:"\u26F1",parking:"\u{1F17F}\uFE0F",part_alternation_mark:"\u303D\uFE0F",partly_sunny:"\u26C5\uFE0F",passenger_ship:"\u{1F6F3}",passport_control:"\u{1F6C2}",pause_button:"\u23F8",peace_symbol:"\u262E\uFE0F",peach:"\u{1F351}",peanuts:"\u{1F95C}",pear:"\u{1F350}",pen:"\u{1F58A}",pencil2:"\u270F\uFE0F",penguin:"\u{1F427}",pensive:"\u{1F614}",performing_arts:"\u{1F3AD}",persevere:"\u{1F623}",person_fencing:"\u{1F93A}",pouting_woman:"\u{1F64E}",phone:"\u260E\uFE0F",pick:"\u26CF",pig:"\u{1F437}",pig2:"\u{1F416}",pig_nose:"\u{1F43D}",pill:"\u{1F48A}",pineapple:"\u{1F34D}",ping_pong:"\u{1F3D3}",pisces:"\u2653\uFE0F",pizza:"\u{1F355}",place_of_worship:"\u{1F6D0}",plate_with_cutlery:"\u{1F37D}",play_or_pause_button:"\u23EF",point_down:"\u{1F447}",point_left:"\u{1F448}",point_right:"\u{1F449}",point_up:"\u261D\uFE0F",point_up_2:"\u{1F446}",police_car:"\u{1F693}",policewoman:"\u{1F46E}‍\u2640\uFE0F",poodle:"\u{1F429}",popcorn:"\u{1F37F}",post_office:"\u{1F3E3}",postal_horn:"\u{1F4EF}",postbox:"\u{1F4EE}",potable_water:"\u{1F6B0}",potato:"\u{1F954}",pouch:"\u{1F45D}",poultry_leg:"\u{1F357}",pound:"\u{1F4B7}",rage:"\u{1F621}",pouting_cat:"\u{1F63E}",pouting_man:"\u{1F64E}‍\u2642\uFE0F",pray:"\u{1F64F}",prayer_beads:"\u{1F4FF}",pregnant_woman:"\u{1F930}",previous_track_button:"\u23EE",prince:"\u{1F934}",princess:"\u{1F478}",printer:"\u{1F5A8}",purple_heart:"\u{1F49C}",purse:"\u{1F45B}",pushpin:"\u{1F4CC}",put_litter_in_its_place:"\u{1F6AE}",question:"\u2753",rabbit:"\u{1F430}",rabbit2:"\u{1F407}",racehorse:"\u{1F40E}",racing_car:"\u{1F3CE}",radio:"\u{1F4FB}",radio_button:"\u{1F518}",radioactive:"\u2622\uFE0F",railway_car:"\u{1F683}",railway_track:"\u{1F6E4}",rainbow:"\u{1F308}",rainbow_flag:"\u{1F3F3}\uFE0F‍\u{1F308}",raised_back_of_hand:"\u{1F91A}",raised_hand_with_fingers_splayed:"\u{1F590}",raised_hands:"\u{1F64C}",raising_hand_woman:"\u{1F64B}",raising_hand_man:"\u{1F64B}‍\u2642\uFE0F",ram:"\u{1F40F}",ramen:"\u{1F35C}",rat:"\u{1F400}",record_button:"\u23FA",recycle:"\u267B\uFE0F",red_circle:"\u{1F534}",registered:"\xAE\uFE0F",relaxed:"\u263A\uFE0F",relieved:"\u{1F60C}",reminder_ribbon:"\u{1F397}",repeat:"\u{1F501}",repeat_one:"\u{1F502}",rescue_worker_helmet:"\u26D1",restroom:"\u{1F6BB}",revolving_hearts:"\u{1F49E}",rewind:"\u23EA",rhinoceros:"\u{1F98F}",ribbon:"\u{1F380}",rice:"\u{1F35A}",rice_ball:"\u{1F359}",rice_cracker:"\u{1F358}",rice_scene:"\u{1F391}",right_anger_bubble:"\u{1F5EF}",ring:"\u{1F48D}",robot:"\u{1F916}",rocket:"\u{1F680}",rofl:"\u{1F923}",roll_eyes:"\u{1F644}",roller_coaster:"\u{1F3A2}",rooster:"\u{1F413}",rose:"\u{1F339}",rosette:"\u{1F3F5}",rotating_light:"\u{1F6A8}",round_pushpin:"\u{1F4CD}",rowing_man:"\u{1F6A3}",rowing_woman:"\u{1F6A3}‍\u2640\uFE0F",rugby_football:"\u{1F3C9}",running_man:"\u{1F3C3}",running_shirt_with_sash:"\u{1F3BD}",running_woman:"\u{1F3C3}‍\u2640\uFE0F",sa:"\u{1F202}\uFE0F",sagittarius:"\u2650\uFE0F",sake:"\u{1F376}",sandal:"\u{1F461}",santa:"\u{1F385}",satellite:"\u{1F4E1}",saxophone:"\u{1F3B7}",school:"\u{1F3EB}",school_satchel:"\u{1F392}",scissors:"\u2702\uFE0F",scorpion:"\u{1F982}",scorpius:"\u264F\uFE0F",scream:"\u{1F631}",scream_cat:"\u{1F640}",scroll:"\u{1F4DC}",seat:"\u{1F4BA}",secret:"\u3299\uFE0F",see_no_evil:"\u{1F648}",seedling:"\u{1F331}",selfie:"\u{1F933}",shallow_pan_of_food:"\u{1F958}",shamrock:"\u2618\uFE0F",shark:"\u{1F988}",shaved_ice:"\u{1F367}",sheep:"\u{1F411}",shell:"\u{1F41A}",shield:"\u{1F6E1}",shinto_shrine:"\u26E9",ship:"\u{1F6A2}",shirt:"\u{1F455}",shopping:"\u{1F6CD}",shopping_cart:"\u{1F6D2}",shower:"\u{1F6BF}",shrimp:"\u{1F990}",signal_strength:"\u{1F4F6}",six_pointed_star:"\u{1F52F}",ski:"\u{1F3BF}",skier:"\u26F7",skull:"\u{1F480}",skull_and_crossbones:"\u2620\uFE0F",sleeping:"\u{1F634}",sleeping_bed:"\u{1F6CC}",sleepy:"\u{1F62A}",slightly_frowning_face:"\u{1F641}",slightly_smiling_face:"\u{1F642}",slot_machine:"\u{1F3B0}",small_airplane:"\u{1F6E9}",small_blue_diamond:"\u{1F539}",small_orange_diamond:"\u{1F538}",small_red_triangle:"\u{1F53A}",small_red_triangle_down:"\u{1F53B}",smile:"\u{1F604}",smile_cat:"\u{1F638}",smiley:"\u{1F603}",smiley_cat:"\u{1F63A}",smiling_imp:"\u{1F608}",smirk:"\u{1F60F}",smirk_cat:"\u{1F63C}",smoking:"\u{1F6AC}",snail:"\u{1F40C}",snake:"\u{1F40D}",sneezing_face:"\u{1F927}",snowboarder:"\u{1F3C2}",snowflake:"\u2744\uFE0F",snowman:"\u26C4\uFE0F",snowman_with_snow:"\u2603\uFE0F",sob:"\u{1F62D}",soccer:"\u26BD\uFE0F",soon:"\u{1F51C}",sos:"\u{1F198}",sound:"\u{1F509}",space_invader:"\u{1F47E}",spades:"\u2660\uFE0F",spaghetti:"\u{1F35D}",sparkle:"\u2747\uFE0F",sparkler:"\u{1F387}",sparkles:"\u2728",sparkling_heart:"\u{1F496}",speak_no_evil:"\u{1F64A}",speaker:"\u{1F508}",speaking_head:"\u{1F5E3}",speech_balloon:"\u{1F4AC}",speedboat:"\u{1F6A4}",spider:"\u{1F577}",spider_web:"\u{1F578}",spiral_calendar:"\u{1F5D3}",spiral_notepad:"\u{1F5D2}",spoon:"\u{1F944}",squid:"\u{1F991}",stadium:"\u{1F3DF}",star:"\u2B50\uFE0F",star2:"\u{1F31F}",star_and_crescent:"\u262A\uFE0F",star_of_david:"\u2721\uFE0F",stars:"\u{1F320}",station:"\u{1F689}",statue_of_liberty:"\u{1F5FD}",steam_locomotive:"\u{1F682}",stew:"\u{1F372}",stop_button:"\u23F9",stop_sign:"\u{1F6D1}",stopwatch:"\u23F1",straight_ruler:"\u{1F4CF}",strawberry:"\u{1F353}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_closed_eyes:"\u{1F61D}",stuck_out_tongue_winking_eye:"\u{1F61C}",studio_microphone:"\u{1F399}",stuffed_flatbread:"\u{1F959}",sun_behind_large_cloud:"\u{1F325}",sun_behind_rain_cloud:"\u{1F326}",sun_behind_small_cloud:"\u{1F324}",sun_with_face:"\u{1F31E}",sunflower:"\u{1F33B}",sunglasses:"\u{1F60E}",sunny:"\u2600\uFE0F",sunrise:"\u{1F305}",sunrise_over_mountains:"\u{1F304}",surfing_man:"\u{1F3C4}",surfing_woman:"\u{1F3C4}‍\u2640\uFE0F",sushi:"\u{1F363}",suspension_railway:"\u{1F69F}",sweat:"\u{1F613}",sweat_drops:"\u{1F4A6}",sweat_smile:"\u{1F605}",sweet_potato:"\u{1F360}",swimming_man:"\u{1F3CA}",swimming_woman:"\u{1F3CA}‍\u2640\uFE0F",symbols:"\u{1F523}",synagogue:"\u{1F54D}",syringe:"\u{1F489}",taco:"\u{1F32E}",tada:"\u{1F389}",tanabata_tree:"\u{1F38B}",taurus:"\u2649\uFE0F",taxi:"\u{1F695}",tea:"\u{1F375}",telephone_receiver:"\u{1F4DE}",telescope:"\u{1F52D}",tennis:"\u{1F3BE}",tent:"\u26FA\uFE0F",thermometer:"\u{1F321}",thinking:"\u{1F914}",thought_balloon:"\u{1F4AD}",ticket:"\u{1F3AB}",tickets:"\u{1F39F}",tiger:"\u{1F42F}",tiger2:"\u{1F405}",timer_clock:"\u23F2",tipping_hand_man:"\u{1F481}‍\u2642\uFE0F",tired_face:"\u{1F62B}",tm:"\u2122\uFE0F",toilet:"\u{1F6BD}",tokyo_tower:"\u{1F5FC}",tomato:"\u{1F345}",tongue:"\u{1F445}",top:"\u{1F51D}",tophat:"\u{1F3A9}",tornado:"\u{1F32A}",trackball:"\u{1F5B2}",tractor:"\u{1F69C}",traffic_light:"\u{1F6A5}",train:"\u{1F68B}",train2:"\u{1F686}",tram:"\u{1F68A}",triangular_flag_on_post:"\u{1F6A9}",triangular_ruler:"\u{1F4D0}",trident:"\u{1F531}",triumph:"\u{1F624}",trolleybus:"\u{1F68E}",trophy:"\u{1F3C6}",tropical_drink:"\u{1F379}",tropical_fish:"\u{1F420}",truck:"\u{1F69A}",trumpet:"\u{1F3BA}",tulip:"\u{1F337}",tumbler_glass:"\u{1F943}",turkey:"\u{1F983}",turtle:"\u{1F422}",tv:"\u{1F4FA}",twisted_rightwards_arrows:"\u{1F500}",two_hearts:"\u{1F495}",two_men_holding_hands:"\u{1F46C}",two_women_holding_hands:"\u{1F46D}",u5272:"\u{1F239}",u5408:"\u{1F234}",u55b6:"\u{1F23A}",u6307:"\u{1F22F}\uFE0F",u6708:"\u{1F237}\uFE0F",u6709:"\u{1F236}",u6e80:"\u{1F235}",u7121:"\u{1F21A}\uFE0F",u7533:"\u{1F238}",u7981:"\u{1F232}",u7a7a:"\u{1F233}",umbrella:"\u2614\uFE0F",unamused:"\u{1F612}",underage:"\u{1F51E}",unicorn:"\u{1F984}",unlock:"\u{1F513}",up:"\u{1F199}",upside_down_face:"\u{1F643}",v:"\u270C\uFE0F",vertical_traffic_light:"\u{1F6A6}",vhs:"\u{1F4FC}",vibration_mode:"\u{1F4F3}",video_camera:"\u{1F4F9}",video_game:"\u{1F3AE}",violin:"\u{1F3BB}",virgo:"\u264D\uFE0F",volcano:"\u{1F30B}",volleyball:"\u{1F3D0}",vs:"\u{1F19A}",vulcan_salute:"\u{1F596}",walking_man:"\u{1F6B6}",walking_woman:"\u{1F6B6}‍\u2640\uFE0F",waning_crescent_moon:"\u{1F318}",waning_gibbous_moon:"\u{1F316}",warning:"\u26A0\uFE0F",wastebasket:"\u{1F5D1}",watch:"\u231A\uFE0F",water_buffalo:"\u{1F403}",watermelon:"\u{1F349}",wave:"\u{1F44B}",wavy_dash:"\u3030\uFE0F",waxing_crescent_moon:"\u{1F312}",wc:"\u{1F6BE}",weary:"\u{1F629}",wedding:"\u{1F492}",weight_lifting_man:"\u{1F3CB}\uFE0F",weight_lifting_woman:"\u{1F3CB}\uFE0F‍\u2640\uFE0F",whale:"\u{1F433}",whale2:"\u{1F40B}",wheel_of_dharma:"\u2638\uFE0F",wheelchair:"\u267F\uFE0F",white_check_mark:"\u2705",white_circle:"\u26AA\uFE0F",white_flag:"\u{1F3F3}\uFE0F",white_flower:"\u{1F4AE}",white_large_square:"\u2B1C\uFE0F",white_medium_small_square:"\u25FD\uFE0F",white_medium_square:"\u25FB\uFE0F",white_small_square:"\u25AB\uFE0F",white_square_button:"\u{1F533}",wilted_flower:"\u{1F940}",wind_chime:"\u{1F390}",wind_face:"\u{1F32C}",wine_glass:"\u{1F377}",wink:"\u{1F609}",wolf:"\u{1F43A}",woman:"\u{1F469}",woman_artist:"\u{1F469}‍\u{1F3A8}",woman_astronaut:"\u{1F469}‍\u{1F680}",woman_cartwheeling:"\u{1F938}‍\u2640\uFE0F",woman_cook:"\u{1F469}‍\u{1F373}",woman_facepalming:"\u{1F926}‍\u2640\uFE0F",woman_factory_worker:"\u{1F469}‍\u{1F3ED}",woman_farmer:"\u{1F469}‍\u{1F33E}",woman_firefighter:"\u{1F469}‍\u{1F692}",woman_health_worker:"\u{1F469}‍\u2695\uFE0F",woman_judge:"\u{1F469}‍\u2696\uFE0F",woman_juggling:"\u{1F939}‍\u2640\uFE0F",woman_mechanic:"\u{1F469}‍\u{1F527}",woman_office_worker:"\u{1F469}‍\u{1F4BC}",woman_pilot:"\u{1F469}‍\u2708\uFE0F",woman_playing_handball:"\u{1F93E}‍\u2640\uFE0F",woman_playing_water_polo:"\u{1F93D}‍\u2640\uFE0F",woman_scientist:"\u{1F469}‍\u{1F52C}",woman_shrugging:"\u{1F937}‍\u2640\uFE0F",woman_singer:"\u{1F469}‍\u{1F3A4}",woman_student:"\u{1F469}‍\u{1F393}",woman_teacher:"\u{1F469}‍\u{1F3EB}",woman_technologist:"\u{1F469}‍\u{1F4BB}",woman_with_turban:"\u{1F473}‍\u2640\uFE0F",womans_clothes:"\u{1F45A}",womans_hat:"\u{1F452}",women_wrestling:"\u{1F93C}‍\u2640\uFE0F",womens:"\u{1F6BA}",world_map:"\u{1F5FA}",worried:"\u{1F61F}",wrench:"\u{1F527}",writing_hand:"\u270D\uFE0F",x:"\u274C",yellow_heart:"\u{1F49B}",yen:"\u{1F4B4}",yin_yang:"\u262F\uFE0F",yum:"\u{1F60B}",zap:"\u26A1\uFE0F",zipper_mouth_face:"\u{1F910}",zzz:"\u{1F4A4}",octocat:':octocat:',showdown:`S`},y.Converter=function(o){var r={},n=[],i=[],m={},O=I,w={parsed:{},raw:"",format:""};x();function x(){o=o||{};for(var E in C)C.hasOwnProperty(E)&&(r[E]=C[E]);if(typeof o=="object")for(var R in o)o.hasOwnProperty(R)&&(r[R]=o[R]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof o+" was passed instead.");r.extensions&&y.helper.forEach(r.extensions,l)}function l(E,R){if(R=R||null,y.helper.isString(E))if(E=y.helper.stdExtName(E),R=E,y.extensions[E]){console.warn("DEPRECATION WARNING: "+E+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),t(y.extensions[E],E);return}else if(!y.helper.isUndefined(b[E]))E=b[E];else throw Error('Extension "'+E+'" could not be loaded. It was either not found or is not a valid extension.');typeof E=="function"&&(E=E()),y.helper.isArray(E)||(E=[E]);var S=T(E,R);if(!S.valid)throw Error(S.error);for(var A=0;A[ \t]+\xA8NBSP;<"),!R)if(window&&window.document)R=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var S=R.createElement("div");S.innerHTML=E;var A={preList:U(S)};W(S);for(var L=S.childNodes,k="",N=0;N'}else K.push(q[$].innerHTML),q[$].innerHTML="",q[$].setAttribute("prenum",$.toString());return K}return k},this.setOption=function(E,R){r[E]=R},this.getOption=function(E){return r[E]},this.getOptions=function(){return r},this.addExtension=function(E,R){R=R||null,l(E,R)},this.useExtension=function(E){l(E)},this.setFlavor=function(E){if(!M.hasOwnProperty(E))throw Error(E+" flavor was not found");var R=M[E];O=E;for(var S in R)R.hasOwnProperty(S)&&(r[S]=R[S])},this.getFlavor=function(){return O},this.removeExtension=function(E){y.helper.isArray(E)||(E=[E]);for(var R=0;R? ?(['"].*['"])?\)$/m)>-1)x="";else if(!x)if(w||(w=O.toLowerCase().replace(/ ?\n/g," ")),x="#"+w,!y.helper.isUndefined(n.gUrls[w]))x=n.gUrls[w],y.helper.isUndefined(n.gTitles[w])||(d=n.gTitles[w]);else return m;x=x.replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback);var v='",v};return o=o.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,i),o=o.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i),o=o.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i),o=o.replace(/\[([^\[\]]+)]()()()()()/g,i),r.ghMentions&&(o=o.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(m,O,w,x,l){if(w==="\\")return O+x;if(!y.helper.isString(r.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var t=r.ghMentionsLink.replace(/\{u}/g,l),d="";return r.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="\xA8E95Eblank"'),O+'"+x+""})),o=n.converter._dispatch("anchors.after",o,r,n),o});var a=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,u=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,s=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,e=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,g=function(o){return function(r,n,i,m,O,w,x){i=i.replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback);var l=i,t="",d="",v=n||"",E=x||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),o.excludeTrailingPunctuationFromURLs&&w&&(t=w),o.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="\xA8E95Eblank"'),v+'"+l+""+t+E}},h=function(o,r){return function(n,i,m){var O="mailto:";return i=i||"",m=y.subParser("unescapeSpecialChars")(m,o,r),o.encodeEmails?(O=y.helper.encodeEmailAddress(O+m),m=y.helper.encodeEmailAddress(m)):O=O+m,i+''+m+""}};y.subParser("autoLinks",function(o,r,n){return o=n.converter._dispatch("autoLinks.before",o,r,n),o=o.replace(u,g(r)),o=o.replace(e,h(r,n)),o=n.converter._dispatch("autoLinks.after",o,r,n),o}),y.subParser("simplifiedAutoLinks",function(o,r,n){return r.simplifiedAutoLink&&(o=n.converter._dispatch("simplifiedAutoLinks.before",o,r,n),r.excludeTrailingPunctuationFromURLs?o=o.replace(p,g(r)):o=o.replace(a,g(r)),o=o.replace(s,h(r,n)),o=n.converter._dispatch("simplifiedAutoLinks.after",o,r,n)),o}),y.subParser("blockGamut",function(o,r,n){return o=n.converter._dispatch("blockGamut.before",o,r,n),o=y.subParser("blockQuotes")(o,r,n),o=y.subParser("headers")(o,r,n),o=y.subParser("horizontalRule")(o,r,n),o=y.subParser("lists")(o,r,n),o=y.subParser("codeBlocks")(o,r,n),o=y.subParser("tables")(o,r,n),o=y.subParser("hashHTMLBlocks")(o,r,n),o=y.subParser("paragraphs")(o,r,n),o=n.converter._dispatch("blockGamut.after",o,r,n),o}),y.subParser("blockQuotes",function(o,r,n){o=n.converter._dispatch("blockQuotes.before",o,r,n),o=o+` + +`;var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return r.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),o=o.replace(i,function(m){return m=m.replace(/^[ \t]*>[ \t]?/gm,""),m=m.replace(/¨0/g,""),m=m.replace(/^[ \t]+$/gm,""),m=y.subParser("githubCodeBlocks")(m,r,n),m=y.subParser("blockGamut")(m,r,n),m=m.replace(/(^|\n)/g,"$1 "),m=m.replace(/(\s*
[^\r]+?<\/pre>)/gm,function(O,w){var x=w;return x=x.replace(/^  /mg,"\xA80"),x=x.replace(/¨0/g,""),x}),y.subParser("hashBlock")(`
+`+m+` +
`,r,n)}),o=n.converter._dispatch("blockQuotes.after",o,r,n),o}),y.subParser("codeBlocks",function(o,r,n){o=n.converter._dispatch("codeBlocks.before",o,r,n),o+="\xA80";var i=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return o=o.replace(i,function(m,O,w){var x=O,l=w,t=` +`;return x=y.subParser("outdent")(x,r,n),x=y.subParser("encodeCode")(x,r,n),x=y.subParser("detab")(x,r,n),x=x.replace(/^\n+/g,""),x=x.replace(/\n+$/g,""),r.omitExtraWLInCodeBlocks&&(t=""),x="
"+x+t+"
",y.subParser("hashBlock")(x,r,n)+l}),o=o.replace(/¨0/,""),o=n.converter._dispatch("codeBlocks.after",o,r,n),o}),y.subParser("codeSpans",function(o,r,n){return o=n.converter._dispatch("codeSpans.before",o,r,n),typeof o>"u"&&(o=""),o=o.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(i,m,O,w){var x=w;return x=x.replace(/^([ \t]*)/g,""),x=x.replace(/[ \t]*$/g,""),x=y.subParser("encodeCode")(x,r,n),x=m+""+x+"",x=y.subParser("hashHTMLSpans")(x,r,n),x}),o=n.converter._dispatch("codeSpans.after",o,r,n),o}),y.subParser("completeHTMLDocument",function(o,r,n){if(!r.completeHTMLDocument)return o;o=n.converter._dispatch("completeHTMLDocument.before",o,r,n);var i="html",m=` +`,O="",w=` +`,x="",l="";typeof n.metadata.parsed.doctype<"u"&&(m=" +`,i=n.metadata.parsed.doctype.toString().toLowerCase(),(i==="html"||i==="html5")&&(w=''));for(var t in n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(t))switch(t.toLowerCase()){case"doctype":break;case"title":O=""+n.metadata.parsed.title+` +`;break;case"charset":i==="html"||i==="html5"?w=' +`:w=' +`;break;case"language":case"lang":x=' lang="'+n.metadata.parsed[t]+'"',l+=' +`;break;default:l+=' +`}return o=m+" + +`+O+w+l+` + +`+o.trim()+` + +`,o=n.converter._dispatch("completeHTMLDocument.after",o,r,n),o}),y.subParser("detab",function(o,r,n){return o=n.converter._dispatch("detab.before",o,r,n),o=o.replace(/\t(?=\t)/g," "),o=o.replace(/\t/g,"\xA8A\xA8B"),o=o.replace(/¨B(.+?)¨A/g,function(i,m){for(var O=m,w=4-O.length%4,x=0;x/g,">"),o=n.converter._dispatch("encodeAmpsAndAngles.after",o,r,n),o}),y.subParser("encodeBackslashEscapes",function(o,r,n){return o=n.converter._dispatch("encodeBackslashEscapes.before",o,r,n),o=o.replace(/\\(\\)/g,y.helper.escapeCharactersCallback),o=o.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,y.helper.escapeCharactersCallback),o=n.converter._dispatch("encodeBackslashEscapes.after",o,r,n),o}),y.subParser("encodeCode",function(o,r,n){return o=n.converter._dispatch("encodeCode.before",o,r,n),o=o.replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,y.helper.escapeCharactersCallback),o=n.converter._dispatch("encodeCode.after",o,r,n),o}),y.subParser("escapeSpecialCharsWithinTagAttributes",function(o,r,n){o=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",o,r,n);var i=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,m=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return o=o.replace(i,function(O){return O.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)}),o=o.replace(m,function(O){return O.replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)}),o=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",o,r,n),o}),y.subParser("githubCodeBlocks",function(o,r,n){return r.ghCodeBlocks?(o=n.converter._dispatch("githubCodeBlocks.before",o,r,n),o+="\xA80",o=o.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(i,m,O,w){var x=r.omitExtraWLInCodeBlocks?"":` +`;return w=y.subParser("encodeCode")(w,r,n),w=y.subParser("detab")(w,r,n),w=w.replace(/^\n+/g,""),w=w.replace(/\n+$/g,""),w="
"+w+x+"
",w=y.subParser("hashBlock")(w,r,n),` + +\xA8G`+(n.ghCodeBlocks.push({text:i,codeblock:w})-1)+`G + +`}),o=o.replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",o,r,n)):o}),y.subParser("hashBlock",function(o,r,n){return o=n.converter._dispatch("hashBlock.before",o,r,n),o=o.replace(/(^\n+|\n+$)/g,""),o=` + +\xA8K`+(n.gHtmlBlocks.push(o)-1)+`K + +`,o=n.converter._dispatch("hashBlock.after",o,r,n),o}),y.subParser("hashCodeTags",function(o,r,n){o=n.converter._dispatch("hashCodeTags.before",o,r,n);var i=function(m,O,w,x){var l=w+y.subParser("encodeCode")(O,r,n)+x;return"\xA8C"+(n.gHtmlSpans.push(l)-1)+"C"};return o=y.helper.replaceRecursiveRegExp(o,i,"]*>","","gim"),o=n.converter._dispatch("hashCodeTags.after",o,r,n),o}),y.subParser("hashElement",function(o,r,n){return function(i,m){var O=m;return O=O.replace(/\n\n/g,` +`),O=O.replace(/^\n/,""),O=O.replace(/\n+$/g,""),O=` + +\xA8K`+(n.gHtmlBlocks.push(O)-1)+`K + +`,O}}),y.subParser("hashHTMLBlocks",function(o,r,n){o=n.converter._dispatch("hashHTMLBlocks.before",o,r,n);var i=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],m=function(E,R,S,A){var L=E;return S.search(/\bmarkdown\b/)!==-1&&(L=S+n.converter.makeHtml(R)+A),` + +\xA8K`+(n.gHtmlBlocks.push(L)-1)+`K + +`};r.backslashEscapesHTMLTags&&(o=o.replace(/\\<(\/?[^>]+?)>/g,function(E,R){return"<"+R+">"}));for(var O=0;O]*>)","im"),l="<"+i[O]+"\\b[^>]*>",t="";(w=y.helper.regexIndexOf(o,x))!==-1;){var d=y.helper.splitAtIndex(o,w),v=y.helper.replaceRecursiveRegExp(d[1],m,l,t,"im");if(v===d[1])break;o=d[0].concat(v)}return o=o.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,y.subParser("hashElement")(o,r,n)),o=y.helper.replaceRecursiveRegExp(o,function(E){return` + +\xA8K`+(n.gHtmlBlocks.push(E)-1)+`K + +`},"^ {0,3}","gm"),o=o.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,y.subParser("hashElement")(o,r,n)),o=n.converter._dispatch("hashHTMLBlocks.after",o,r,n),o}),y.subParser("hashHTMLSpans",function(o,r,n){o=n.converter._dispatch("hashHTMLSpans.before",o,r,n);function i(m){return"\xA8C"+(n.gHtmlSpans.push(m)-1)+"C"}return o=o.replace(/<[^>]+?\/>/gi,function(m){return i(m)}),o=o.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(m){return i(m)}),o=o.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(m){return i(m)}),o=o.replace(/<[^>]+?>/gi,function(m){return i(m)}),o=n.converter._dispatch("hashHTMLSpans.after",o,r,n),o}),y.subParser("unhashHTMLSpans",function(o,r,n){o=n.converter._dispatch("unhashHTMLSpans.before",o,r,n);for(var i=0;i]*>\\s*]*>","^ {0,3}\\s*
","gim"),o=n.converter._dispatch("hashPreCodeTags.after",o,r,n),o}),y.subParser("headers",function(o,r,n){o=n.converter._dispatch("headers.before",o,r,n);var i=isNaN(parseInt(r.headerLevelStart))?1:parseInt(r.headerLevelStart),m=r.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,O=r.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;o=o.replace(m,function(l,t){var d=y.subParser("spanGamut")(t,r,n),v=r.noHeaderId?"":' id="'+x(t)+'"',E=i,R=""+d+"";return y.subParser("hashBlock")(R,r,n)}),o=o.replace(O,function(l,t){var d=y.subParser("spanGamut")(t,r,n),v=r.noHeaderId?"":' id="'+x(t)+'"',E=i+1,R=""+d+"";return y.subParser("hashBlock")(R,r,n)});var w=r.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;o=o.replace(w,function(l,t,d){var v=d;r.customizedHeaderId&&(v=d.replace(/\s?\{([^{]+?)}\s*$/,""));var E=y.subParser("spanGamut")(v,r,n),R=r.noHeaderId?"":' id="'+x(d)+'"',S=i-1+t.length,A=""+E+"";return y.subParser("hashBlock")(A,r,n)});function x(l){var t,d;if(r.customizedHeaderId){var v=l.match(/\{([^{]+?)}\s*$/);v&&v[1]&&(l=v[1])}return t=l,y.helper.isString(r.prefixHeaderId)?d=r.prefixHeaderId:r.prefixHeaderId===!0?d="section-":d="",r.rawPrefixHeaderId||(t=d+t),r.ghCompatibleHeaderId?t=t.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():r.rawHeaderId?t=t.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"\xA8").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():t=t.replace(/[^\w]/g,"").toLowerCase(),r.rawPrefixHeaderId&&(t=d+t),n.hashLinkCounts[t]?t=t+"-"+n.hashLinkCounts[t]++:n.hashLinkCounts[t]=1,t}return o=n.converter._dispatch("headers.after",o,r,n),o}),y.subParser("horizontalRule",function(o,r,n){o=n.converter._dispatch("horizontalRule.before",o,r,n);var i=y.subParser("hashBlock")("
",r,n);return o=o.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i),o=o.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i),o=o.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),o=n.converter._dispatch("horizontalRule.after",o,r,n),o}),y.subParser("images",function(o,r,n){o=n.converter._dispatch("images.before",o,r,n);var i=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,m=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,O=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,w=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,x=/!\[([^\[\]]+)]()()()()()/g;function l(d,v,E,R,S,A,L,k){return R=R.replace(/\s/g,""),t(d,v,E,R,S,A,L,k)}function t(d,v,E,R,S,A,L,k){var N=n.gUrls,W=n.gTitles,U=n.gDimensions;if(E=E.toLowerCase(),k||(k=""),d.search(/\(? ?(['"].*['"])?\)$/m)>-1)R="";else if(R===""||R===null)if((E===""||E===null)&&(E=v.toLowerCase().replace(/ ?\n/g," ")),R="#"+E,!y.helper.isUndefined(N[E]))R=N[E],y.helper.isUndefined(W[E])||(k=W[E]),y.helper.isUndefined(U[E])||(S=U[E].width,A=U[E].height);else return d;v=v.replace(/"/g,""").replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback),R=R.replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback);var J=''+v+'","
")}),o=o.replace(/\b__(\S[\s\S]*?)__\b/g,function(m,O){return i(O,"","")}),o=o.replace(/\b_(\S[\s\S]*?)_\b/g,function(m,O){return i(O,"","")})):(o=o.replace(/___(\S[\s\S]*?)___/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m}),o=o.replace(/__(\S[\s\S]*?)__/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m}),o=o.replace(/_([^\s_][\s\S]*?)_/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m})),r.literalMidWordAsterisks?(o=o.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(m,O,w){return i(w,O+"","")}),o=o.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(m,O,w){return i(w,O+"","")}),o=o.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(m,O,w){return i(w,O+"","")})):(o=o.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m}),o=o.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m}),o=o.replace(/\*([^\s*][\s\S]*?)\*/g,function(m,O){return/\S$/.test(O)?i(O,"",""):m})),o=n.converter._dispatch("italicsAndBold.after",o,r,n),o}),y.subParser("lists",function(o,r,n){function i(w,x){n.gListLevel++,w=w.replace(/\n{2,}$/,` +`),w+="\xA80";var l=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,t=/\n[ \t]*\n(?!¨0)/.test(w);return r.disableForced4SpacesIndentedSublists&&(l=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),w=w.replace(l,function(d,v,E,R,S,A,L){L=L&&L.trim()!=="";var k=y.subParser("outdent")(S,r,n),N="";return A&&r.tasklists&&(N=' class="task-list-item" style="list-style-type: none;"',k=k.replace(/^[ \t]*\[(x|X| )?]/m,function(){var W='-1?(k=y.subParser("githubCodeBlocks")(k,r,n),k=y.subParser("blockGamut")(k,r,n)):(k=y.subParser("lists")(k,r,n),k=k.replace(/\n$/,""),k=y.subParser("hashHTMLBlocks")(k,r,n),k=k.replace(/\n\n+/g,` + +`),t?k=y.subParser("paragraphs")(k,r,n):k=y.subParser("spanGamut")(k,r,n)),k=k.replace("\xA8A",""),k=""+k+` +`,k}),w=w.replace(/¨0/g,""),n.gListLevel--,x&&(w=w.replace(/\s+$/,"")),w}function m(w,x){if(x==="ol"){var l=w.match(/^ *(\d+)\./);if(l&&l[1]!=="1")return' start="'+l[1]+'"'}return""}function O(w,x,l){var t=r.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,d=r.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,v=x==="ul"?t:d,E="";if(w.search(v)!==-1)(function S(A){var L=A.search(v),k=m(w,x);L!==-1?(E+=` + +<`+x+k+`> +`+i(A.slice(0,L),!!l)+" +`,x=x==="ul"?"ol":"ul",v=x==="ul"?t:d,S(A.slice(L))):E+=` + +<`+x+k+`> +`+i(A,!!l)+" +`})(w);else{var R=m(w,x);E=` + +<`+x+R+`> +`+i(w,!!l)+" +`}return E}return o=n.converter._dispatch("lists.before",o,r,n),o+="\xA80",n.gListLevel?o=o.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(w,x,l){var t=l.search(/[*+-]/g)>-1?"ul":"ol";return O(x,t,!0)}):o=o.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(w,x,l,t){var d=t.search(/[*+-]/g)>-1?"ul":"ol";return O(l,d,!1)}),o=o.replace(/¨0/,""),o=n.converter._dispatch("lists.after",o,r,n),o}),y.subParser("metadata",function(o,r,n){if(!r.metadata)return o;o=n.converter._dispatch("metadata.before",o,r,n);function i(m){n.metadata.raw=m,m=m.replace(/&/g,"&").replace(/"/g,"""),m=m.replace(/\n {4}/g," "),m.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(O,w,x){return n.metadata.parsed[w]=x,""})}return o=o.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(m,O,w){return i(w),"\xA8M"}),o=o.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(m,O,w){return O&&(n.metadata.format=O),i(w),"\xA8M"}),o=o.replace(/¨M/g,""),o=n.converter._dispatch("metadata.after",o,r,n),o}),y.subParser("outdent",function(o,r,n){return o=n.converter._dispatch("outdent.before",o,r,n),o=o.replace(/^(\t|[ ]{1,4})/gm,"\xA80"),o=o.replace(/¨0/g,""),o=n.converter._dispatch("outdent.after",o,r,n),o}),y.subParser("paragraphs",function(o,r,n){o=n.converter._dispatch("paragraphs.before",o,r,n),o=o.replace(/^\n+/g,""),o=o.replace(/\n+$/g,"");for(var i=o.split(/\n{2,}/g),m=[],O=i.length,w=0;w=0?m.push(x):x.search(/\S/)>=0&&(x=y.subParser("spanGamut")(x,r,n),x=x.replace(/^([ \t]*)/g,"

"),x+="

",m.push(x))}for(O=m.length,w=0;w]*>\s*]*>/.test(t)&&(d=!0)}m[w]=t}return o=m.join(` +`),o=o.replace(/^\n+/g,""),o=o.replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",o,r,n)}),y.subParser("runExtension",function(o,r,n,i){if(o.filter)r=o.filter(r,i.converter,n);else if(o.regex){var m=o.regex;m instanceof RegExp||(m=new RegExp(m,"g")),r=r.replace(m,o.replace)}return r}),y.subParser("spanGamut",function(o,r,n){return o=n.converter._dispatch("spanGamut.before",o,r,n),o=y.subParser("codeSpans")(o,r,n),o=y.subParser("escapeSpecialCharsWithinTagAttributes")(o,r,n),o=y.subParser("encodeBackslashEscapes")(o,r,n),o=y.subParser("images")(o,r,n),o=y.subParser("anchors")(o,r,n),o=y.subParser("autoLinks")(o,r,n),o=y.subParser("simplifiedAutoLinks")(o,r,n),o=y.subParser("emoji")(o,r,n),o=y.subParser("underline")(o,r,n),o=y.subParser("italicsAndBold")(o,r,n),o=y.subParser("strikethrough")(o,r,n),o=y.subParser("ellipsis")(o,r,n),o=y.subParser("hashHTMLSpans")(o,r,n),o=y.subParser("encodeAmpsAndAngles")(o,r,n),r.simpleLineBreaks?/\n\n¨K/.test(o)||(o=o.replace(/\n+/g,`
+`)):o=o.replace(/ +\n/g,`
+`),o=n.converter._dispatch("spanGamut.after",o,r,n),o}),y.subParser("strikethrough",function(o,r,n){function i(m){return r.simplifiedAutoLink&&(m=y.subParser("simplifiedAutoLinks")(m,r,n)),""+m+""}return r.strikethrough&&(o=n.converter._dispatch("strikethrough.before",o,r,n),o=o.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(m,O){return i(O)}),o=n.converter._dispatch("strikethrough.after",o,r,n)),o}),y.subParser("stripLinkDefinitions",function(o,r,n){var i=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,m=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;o+="\xA80";var O=function(w,x,l,t,d,v,E){return x=x.toLowerCase(),o.toLowerCase().split(x).length-1<2?w:(l.match(/^data:.+?\/.+?;base64,/)?n.gUrls[x]=l.replace(/\s/g,""):n.gUrls[x]=y.subParser("encodeAmpsAndAngles")(l,r,n),v?v+E:(E&&(n.gTitles[x]=E.replace(/"|'/g,""")),r.parseImgDimensions&&t&&d&&(n.gDimensions[x]={width:t,height:d}),""))};return o=o.replace(m,O),o=o.replace(i,O),o=o.replace(/¨0/,""),o}),y.subParser("tables",function(o,r,n){if(!r.tables)return o;var i=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,m=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function O(d){return/^:[ \t]*--*$/.test(d)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(d)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(d)?' style="text-align:center;"':""}function w(d,v){var E="";return d=d.trim(),(r.tablesHeaderId||r.tableHeaderId)&&(E=' id="'+d.replace(/ /g,"_").toLowerCase()+'"'),d=y.subParser("spanGamut")(d,r,n),""+d+` +`}function x(d,v){var E=y.subParser("spanGamut")(d,r,n);return""+E+` +`}function l(d,v){for(var E=` + + +`,R=d.length,S=0;S + + +`,S=0;S +`;for(var A=0;A +`}return E+=` +
+`,E}function t(d){var v,E=d.split(` +`);for(v=0;v"+m+""}),o=o.replace(/\b__(\S[\s\S]*?)__\b/g,function(i,m){return""+m+""})):(o=o.replace(/___(\S[\s\S]*?)___/g,function(i,m){return/\S$/.test(m)?""+m+"":i}),o=o.replace(/__(\S[\s\S]*?)__/g,function(i,m){return/\S$/.test(m)?""+m+"":i})),o=o.replace(/(_)/g,y.helper.escapeCharactersCallback),o=n.converter._dispatch("underline.after",o,r,n)),o}),y.subParser("unescapeSpecialChars",function(o,r,n){return o=n.converter._dispatch("unescapeSpecialChars.before",o,r,n),o=o.replace(/¨E(\d+)E/g,function(i,m){var O=parseInt(m);return String.fromCharCode(O)}),o=n.converter._dispatch("unescapeSpecialChars.after",o,r,n),o}),y.subParser("makeMarkdown.blockquote",function(o,r){var n="";if(o.hasChildNodes())for(var i=o.childNodes,m=i.length,O=0;O "+n.split(` +`).join(` +> `),n}),y.subParser("makeMarkdown.codeBlock",function(o,r){var n=o.getAttribute("language"),i=o.getAttribute("precodenum");return"```"+n+` +`+r.preList[i]+"\n```"}),y.subParser("makeMarkdown.codeSpan",function(o){return"`"+o.innerHTML+"`"}),y.subParser("makeMarkdown.emphasis",function(o,r){var n="";if(o.hasChildNodes()){n+="*";for(var i=o.childNodes,m=i.length,O=0;O",o.hasAttribute("width")&&o.hasAttribute("height")&&(r+=" ="+o.getAttribute("width")+"x"+o.getAttribute("height")),o.hasAttribute("title")&&(r+=' "'+o.getAttribute("title")+'"'),r+=")"),r}),y.subParser("makeMarkdown.links",function(o,r){var n="";if(o.hasChildNodes()&&o.hasAttribute("href")){var i=o.childNodes,m=i.length;n="[";for(var O=0;O",o.hasAttribute("title")&&(n+=' "'+o.getAttribute("title")+'"'),n+=")"}return n}),y.subParser("makeMarkdown.list",function(o,r,n){var i="";if(!o.hasChildNodes())return"";for(var m=o.childNodes,O=m.length,w=o.getAttribute("start")||1,x=0;x"u"||m[x].tagName.toLowerCase()!=="li")){var l="";n==="ol"?l=w.toString()+". ":l="- ",i+=l+y.subParser("makeMarkdown.listItem")(m[x],r),++w}return i+=` + +`,i.trim()}),y.subParser("makeMarkdown.listItem",function(o,r){for(var n="",i=o.childNodes,m=i.length,O=0;O + +`;if(o.nodeType!==1)return"";var m=o.tagName.toLowerCase();switch(m){case"h1":n||(i=y.subParser("makeMarkdown.header")(o,r,1)+` + +`);break;case"h2":n||(i=y.subParser("makeMarkdown.header")(o,r,2)+` + +`);break;case"h3":n||(i=y.subParser("makeMarkdown.header")(o,r,3)+` + +`);break;case"h4":n||(i=y.subParser("makeMarkdown.header")(o,r,4)+` + +`);break;case"h5":n||(i=y.subParser("makeMarkdown.header")(o,r,5)+` + +`);break;case"h6":n||(i=y.subParser("makeMarkdown.header")(o,r,6)+` + +`);break;case"p":n||(i=y.subParser("makeMarkdown.paragraph")(o,r)+` + +`);break;case"blockquote":n||(i=y.subParser("makeMarkdown.blockquote")(o,r)+` + +`);break;case"hr":n||(i=y.subParser("makeMarkdown.hr")(o,r)+` + +`);break;case"ol":n||(i=y.subParser("makeMarkdown.list")(o,r,"ol")+` + +`);break;case"ul":n||(i=y.subParser("makeMarkdown.list")(o,r,"ul")+` + +`);break;case"precode":n||(i=y.subParser("makeMarkdown.codeBlock")(o,r)+` + +`);break;case"pre":n||(i=y.subParser("makeMarkdown.pre")(o,r)+` + +`);break;case"table":n||(i=y.subParser("makeMarkdown.table")(o,r)+` + +`);break;case"code":i=y.subParser("makeMarkdown.codeSpan")(o,r);break;case"em":case"i":i=y.subParser("makeMarkdown.emphasis")(o,r);break;case"strong":case"b":i=y.subParser("makeMarkdown.strong")(o,r);break;case"del":i=y.subParser("makeMarkdown.strikethrough")(o,r);break;case"a":i=y.subParser("makeMarkdown.links")(o,r);break;case"img":i=y.subParser("makeMarkdown.image")(o,r);break;default:i=o.outerHTML+` + +`}return i}),y.subParser("makeMarkdown.paragraph",function(o,r){var n="";if(o.hasChildNodes())for(var i=o.childNodes,m=i.length,O=0;O"+r.preList[n]+""}),y.subParser("makeMarkdown.strikethrough",function(o,r){var n="";if(o.hasChildNodes()){n+="~~";for(var i=o.childNodes,m=i.length,O=0;Otr>th"),O=o.querySelectorAll("tbody>tr"),w,x;for(w=0;wS&&(S=A)}for(w=0;w/g,"\\$1>"),r=r.replace(/^#/gm,"\\#"),r=r.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),r=r.replace(/^( {0,3}\d+)\./gm,"$1\\."),r=r.replace(/^( {0,3})([+-])/gm,"$1\\$2"),r=r.replace(/]([\s]*)\(/g,"\\]$1\\("),r=r.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),r});var f=this;z.exports?z.exports=y:f.showdown=y}).call(vn)})(ko);var cn={exports:{}};/*! + * surveyjs - Survey JavaScript library v1.9.56 + * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */var Co;function jo(){return Co||(Co=1,function(z,F){(function(y,c){z.exports=c()})(vn,function(){return function(D){var y={};function c(b){if(y[b])return y[b].exports;var C=y[b]={i:b,l:!1,exports:{}};return D[b].call(C.exports,C,C.exports,c),C.l=!0,C.exports}return c.m=D,c.c=y,c.d=function(b,C,I){c.o(b,C)||Object.defineProperty(b,C,{enumerable:!0,get:I})},c.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},c.t=function(b,C){if(C&1&&(b=c(b)),C&8||C&4&&typeof b=="object"&&b&&b.__esModule)return b;var I=Object.create(null);if(c.r(I),Object.defineProperty(I,"default",{enumerable:!0,value:b}),C&2&&typeof b!="string")for(var M in b)c.d(I,M,function(T){return b[T]}.bind(null,M));return I},c.n=function(b){var C=b&&b.__esModule?function(){return b.default}:function(){return b};return c.d(C,"a",C),C},c.o=function(b,C){return Object.prototype.hasOwnProperty.call(b,C)},c.p="",c(c.s="./src/entries/core.ts")}({"./node_modules/process/browser.js":function(D,y){var c=D.exports={},b,C;function I(){throw new Error("setTimeout has not been defined")}function M(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?b=setTimeout:b=I}catch{b=I}try{typeof clearTimeout=="function"?C=clearTimeout:C=M}catch{C=M}})();function T(f){if(b===setTimeout)return setTimeout(f,0);if((b===I||!b)&&setTimeout)return b=setTimeout,setTimeout(f,0);try{return b(f,0)}catch{try{return b.call(null,f,0)}catch{return b.call(this,f,0)}}}function V(f){if(C===clearTimeout)return clearTimeout(f);if((C===M||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(f);try{return C(f)}catch{try{return C.call(null,f)}catch{return C.call(this,f)}}}var P=[],a=!1,p,u=-1;function s(){!a||!p||(a=!1,p.length?P=p.concat(P):u=-1,P.length&&e())}function e(){if(!a){var f=T(s);a=!0;for(var o=P.length;o;){for(p=P,P=[];++u1)for(var r=1;r"u"?typeof b>"u"?this:b:self)}).call(this,c("./node_modules/webpack/buildin/global.js"),c("./node_modules/process/browser.js"))},"./node_modules/signature_pad/dist/signature_pad.mjs":function(D,y,c){c.r(y);/*! + * Signature Pad v2.3.2 + * https://github.com/szimek/signature_pad + * + * Copyright 2017 Szymon Nowak + * Released under the MIT license + * + * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from: + * http://corner.squareup.com/2012/07/smoother-signatures.html + * + * Implementation of interpolation using cubic Bézier curves is taken from: + * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript + * + * Algorithm for approximated length of a Bézier curve is taken from: + * http://www.lemoda.net/maths/bezier-length/index.html + * + */function b(T,V,P){this.x=T,this.y=V,this.time=P||new Date().getTime()}b.prototype.velocityFrom=function(T){return this.time!==T.time?this.distanceTo(T)/(this.time-T.time):1},b.prototype.distanceTo=function(T){return Math.sqrt(Math.pow(this.x-T.x,2)+Math.pow(this.y-T.y,2))},b.prototype.equals=function(T){return this.x===T.x&&this.y===T.y&&this.time===T.time};function C(T,V,P,a){this.startPoint=T,this.control1=V,this.control2=P,this.endPoint=a}C.prototype.length=function(){for(var T=10,V=0,P=void 0,a=void 0,p=0;p<=T;p+=1){var u=p/T,s=this._point(u,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),e=this._point(u,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(p>0){var g=s-P,h=e-a;V+=Math.sqrt(g*g+h*h)}P=s,a=e}return V},C.prototype._point=function(T,V,P,a,p){return V*(1-T)*(1-T)*(1-T)+3*P*(1-T)*(1-T)*T+3*a*(1-T)*T*T+p*T*T*T};function I(T,V,P){var a,p,u,s=null,e=0;P||(P={});var g=function(){e=P.leading===!1?0:Date.now(),s=null,u=T.apply(a,p),s||(a=p=null)};return function(){var h=Date.now();!e&&P.leading===!1&&(e=h);var f=V-(h-e);return a=this,p=arguments,f<=0||f>V?(s&&(clearTimeout(s),s=null),e=h,u=T.apply(a,p),s||(a=p=null)):!s&&P.trailing!==!1&&(s=setTimeout(g,f)),u}}function M(T,V){var P=this,a=V||{};this.velocityFilterWeight=a.velocityFilterWeight||.7,this.minWidth=a.minWidth||.5,this.maxWidth=a.maxWidth||2.5,this.throttle="throttle"in a?a.throttle:16,this.minDistance="minDistance"in a?a.minDistance:5,this.throttle?this._strokeMoveUpdate=I(M.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=M.prototype._strokeUpdate,this.dotSize=a.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=a.penColor||"black",this.backgroundColor=a.backgroundColor||"rgba(0,0,0,0)",this.onBegin=a.onBegin,this.onEnd=a.onEnd,this._canvas=T,this._ctx=T.getContext("2d"),this.clear(),this._handleMouseDown=function(p){p.which===1&&(P._mouseButtonDown=!0,P._strokeBegin(p))},this._handleMouseMove=function(p){P._mouseButtonDown&&P._strokeMoveUpdate(p)},this._handleMouseUp=function(p){p.which===1&&P._mouseButtonDown&&(P._mouseButtonDown=!1,P._strokeEnd(p))},this._handleTouchStart=function(p){if(p.targetTouches.length===1){var u=p.changedTouches[0];P._strokeBegin(u)}},this._handleTouchMove=function(p){p.preventDefault();var u=p.targetTouches[0];P._strokeMoveUpdate(u)},this._handleTouchEnd=function(p){var u=p.target===P._canvas;u&&(p.preventDefault(),P._strokeEnd(p))},this.on()}M.prototype.clear=function(){var T=this._ctx,V=this._canvas;T.fillStyle=this.backgroundColor,T.clearRect(0,0,V.width,V.height),T.fillRect(0,0,V.width,V.height),this._data=[],this._reset(),this._isEmpty=!0},M.prototype.fromDataURL=function(T){var V=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=new Image,p=P.ratio||window.devicePixelRatio||1,u=P.width||this._canvas.width/p,s=P.height||this._canvas.height/p;this._reset(),a.src=T,a.onload=function(){V._ctx.drawImage(a,0,0,u,s)},this._isEmpty=!1},M.prototype.toDataURL=function(T){var V;switch(T){case"image/svg+xml":return this._toSVG();default:for(var P=arguments.length,a=Array(P>1?P-1:0),p=1;p2,P=this.points[0];if(!V&&P&&this._drawDot(P),P){var a=this._data[this._data.length-1],p=a[a.length-1];P.equals(p)||a.push({x:P.x,y:P.y,time:P.time,color:this.penColor})}typeof this.onEnd=="function"&&this.onEnd(T)},M.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},M.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)},M.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},M.prototype._createPoint=function(T,V,P){var a=this._canvas.getBoundingClientRect();return new b(T-a.left,V-a.top,P||new Date().getTime())},M.prototype._addPoint=function(T){var V=this.points,P=void 0;if(V.push(T),V.length>2){V.length===3&&V.unshift(V[0]),P=this._calculateCurveControlPoints(V[0],V[1],V[2]);var a=P.c2;P=this._calculateCurveControlPoints(V[1],V[2],V[3]);var p=P.c1,u=new C(V[1],a,p,V[2]),s=this._calculateCurveWidths(u);return V.shift(),{curve:u,widths:s}}return{}},M.prototype._calculateCurveControlPoints=function(T,V,P){var a=T.x-V.x,p=T.y-V.y,u=V.x-P.x,s=V.y-P.y,e={x:(T.x+V.x)/2,y:(T.y+V.y)/2},g={x:(V.x+P.x)/2,y:(V.y+P.y)/2},h=Math.sqrt(a*a+p*p),f=Math.sqrt(u*u+s*s),o=e.x-g.x,r=e.y-g.y,n=f/(h+f),i={x:g.x+o*n,y:g.y+r*n},m=V.x-i.x,O=V.y-i.y;return{c1:new b(e.x+m,e.y+O),c2:new b(g.x+m,g.y+O)}},M.prototype._calculateCurveWidths=function(T){var V=T.startPoint,P=T.endPoint,a={start:null,end:null},p=this.velocityFilterWeight*P.velocityFrom(V)+(1-this.velocityFilterWeight)*this._lastVelocity,u=this._strokeWidth(p);return a.start=this._lastWidth,a.end=u,this._lastVelocity=p,this._lastWidth=u,a},M.prototype._strokeWidth=function(T){return Math.max(this.maxWidth/(T+1),this.minWidth)},M.prototype._drawPoint=function(T,V,P){var a=this._ctx;a.moveTo(T,V),a.arc(T,V,P,0,2*Math.PI,!1),this._isEmpty=!1},M.prototype._drawCurve=function(T,V,P){var a=this._ctx,p=P-V,u=Math.floor(T.length());a.beginPath();for(var s=0;s1)for(var u=0;u",o=g.innerHTML;if(o===void 0){var r=document.createElement("dummy"),n=g.childNodes;r.innerHTML="";for(var i=0;i=0&&(T._idleTimeoutId=setTimeout(function(){T._onTimeout&&T._onTimeout()},V))},c("./node_modules/setimmediate/setImmediate.js"),y.setImmediate=typeof self<"u"&&self.setImmediate||typeof b<"u"&&b.setImmediate||this&&this.setImmediate,y.clearImmediate=typeof self<"u"&&self.clearImmediate||typeof b<"u"&&b.clearImmediate||this&&this.clearImmediate}).call(this,c("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(D,y){var c;c=function(){return this}();try{c=c||new Function("return this")()}catch{typeof window=="object"&&(c=window)}D.exports=c},"./src/actions/action.ts":function(D,y,c){c.r(y),c.d(y,"createDropdownActionModel",function(){return u}),c.d(y,"createDropdownActionModelAdvanced",function(){return s}),c.d(y,"Action",function(){return e}),c.d(y,"ActionDropdownViewModel",function(){return g});var b=c("./src/base.ts"),C=c("./src/surveyStrings.ts"),I=c("./src/jsonobject.ts"),M=c("./src/list.ts"),T=c("./src/popup.ts"),V=c("./src/utils/cssClassBuilder.ts"),P=c("./src/actions/container.ts"),a=function(){var h=function(f,o){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h(f,o)};return function(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");h(f,o);function r(){this.constructor=f}f.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}}(),p=function(h,f,o,r){var n=arguments.length,i=n<3?f:r===null?r=Object.getOwnPropertyDescriptor(f,o):r,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(h,f,o,r);else for(var O=h.length-1;O>=0;O--)(m=h[O])&&(i=(n<3?m(i):n>3?m(f,o,i):m(f,o))||i);return n>3&&i&&Object.defineProperty(f,o,i),i};function u(h,f,o){return s(h,f,f,o)}function s(h,f,o,r){var n=new M.ListModel(f.items,function(w){f.onSelectionChanged(w),i.toggleVisibility()},f.allowSelection,f.selectedItem,f.onFilterStringChangedCallback);n.locOwner=r;var i=new T.PopupModel("sv-list",{model:n},o==null?void 0:o.verticalPosition,o==null?void 0:o.horizontalPosition,o==null?void 0:o.showPointer,o==null?void 0:o.isModal,o==null?void 0:o.onCancel,o==null?void 0:o.onApply,o==null?void 0:o.onHide,o==null?void 0:o.onShow,o==null?void 0:o.cssClass,o==null?void 0:o.title);i.displayMode=o==null?void 0:o.displayMode;var m=Object.assign({},h,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(){h.action&&h.action(),i.toggleVisibility()}}),O=new e(m);return O.data=n,O}var e=function(h){a(f,h);function f(o){var r=h.call(this)||this;if(r.innerItem=o,r.iconSize=24,r.locTitleChanged=function(){var i=r.locTitle.renderedHtml;r.setPropertyValue("title",i||void 0)},r.locTitle=o?o.locTitle:null,o)for(var n in o)r[n]=o[n];return r.locTitleName&&r.locTitleChanged(),r.locStrChangedInPopupModel(),r}return f.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},f.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(f.prototype,"locTitle",{get:function(){return this.locTitleValue},set:function(o){!o&&!this.locTitleValue&&(o=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=o,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(o){this.locTitle.localizationName=o},enumerable:!1,configurable:!0}),f.prototype.locStrsChanged=function(){h.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},f.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var o=this.popupModel.contentComponentData.model;if(Array.isArray(o.actions)){var r=o.actions;r.forEach(function(n){n.locStrsChanged&&n.locStrsChanged()})}}},f.prototype.locTooltipChanged=function(){!this.locTooltipName||(this.tooltip=C.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},Object.defineProperty(f.prototype,"cssClasses",{get:function(){return this.cssClassesValue||P.defaultActionBarCss},set:function(o){this.cssClassesValue=o},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),f.prototype.getActionRootCss=function(){return new V.CssClassBuilder().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},f.prototype.getActionBarItemTitleCss=function(){return new V.CssClassBuilder().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},f.prototype.getActionBarItemCss=function(){return new V.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},f.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},f.prototype.getMarkdownHtml=function(o,r){return this.owner?this.owner.getMarkdownHtml(o,r):void 0},f.prototype.getProcessedText=function(o){return this.owner?this.owner.getProcessedText(o):o},f.prototype.getRenderer=function(o){return this.owner?this.owner.getRenderer(o):null},f.prototype.getRendererContext=function(o){return this.owner?this.owner.getRendererContext(o):o},p([Object(I.property)()],f.prototype,"id",void 0),p([Object(I.property)()],f.prototype,"iconName",void 0),p([Object(I.property)()],f.prototype,"iconSize",void 0),p([Object(I.property)({defaultValue:!0,onSet:function(o,r){r.raiseUpdate()}})],f.prototype,"visible",void 0),p([Object(I.property)()],f.prototype,"tooltip",void 0),p([Object(I.property)({onSet:function(o,r){r.locTooltipChanged()}})],f.prototype,"locTooltipName",void 0),p([Object(I.property)()],f.prototype,"enabled",void 0),p([Object(I.property)()],f.prototype,"showTitle",void 0),p([Object(I.property)()],f.prototype,"action",void 0),p([Object(I.property)()],f.prototype,"css",void 0),p([Object(I.property)()],f.prototype,"innerCss",void 0),p([Object(I.property)()],f.prototype,"data",void 0),p([Object(I.property)()],f.prototype,"popupModel",void 0),p([Object(I.property)()],f.prototype,"needSeparator",void 0),p([Object(I.property)()],f.prototype,"active",void 0),p([Object(I.property)()],f.prototype,"pressed",void 0),p([Object(I.property)()],f.prototype,"template",void 0),p([Object(I.property)()],f.prototype,"component",void 0),p([Object(I.property)()],f.prototype,"items",void 0),p([Object(I.property)()],f.prototype,"visibleIndex",void 0),p([Object(I.property)({defaultValue:"large"})],f.prototype,"mode",void 0),p([Object(I.property)()],f.prototype,"disableTabStop",void 0),p([Object(I.property)()],f.prototype,"disableShrink",void 0),p([Object(I.property)()],f.prototype,"disableHide",void 0),p([Object(I.property)({defaultValue:!1})],f.prototype,"needSpace",void 0),p([Object(I.property)({onSet:function(o,r){r.locTitleValue.text!==o&&(r.locTitleValue.text=o)}})],f.prototype,"title",void 0),f}(b.Base),g=function(){function h(f){this.item=f,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return h.prototype.setupPopupCallbacks=function(){var f=this,o=this.popupModel=this.item.popupModel;!o||o.registerPropertyChangedHandlers(["isVisible"],function(){o.isVisible?f.item.pressed=!0:f.item.pressed=!1},this.funcKey)},h.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},h.prototype.dispose=function(){this.removePopupCallbacks()},h}()},"./src/actions/adaptive-container.ts":function(D,y,c){c.r(y),c.d(y,"AdaptiveActionContainer",function(){return V});var b=c("./src/utils/responsivity-manager.ts"),C=c("./src/actions/action.ts"),I=c("./src/actions/container.ts"),M=c("./src/surveyStrings.ts"),T=function(){var P=function(a,p){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&(u[e]=s[e])},P(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");P(a,p);function u(){this.constructor=a}a.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)}}(),V=function(P){T(a,P);function a(){var p=P.call(this)||this;return p.minVisibleItemsCount=0,p.isResponsivenessDisabled=!1,p.dotsItem=Object(C.createDropdownActionModelAdvanced)({id:"dotsItem-id"+a.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:M.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(u){p.hiddenItemSelected(u)},allowSelection:!1}),p}return a.prototype.hideItemsGreaterN=function(p){var u=this.visibleActions.filter(function(e){return!e.disableHide});p=Math.max(p,this.minVisibleItemsCount)-(this.visibleActions.length-u.length);var s=[];u.forEach(function(e){p<=0&&(e.mode="popup",s.push(e.innerItem)),p--}),this.hiddenItemsListModel.setItems(s)},a.prototype.getVisibleItemsCount=function(p){for(var u=this.visibleActions.map(function(g){return g.minDimension}),s=0,e=0;ep)return e;return e},a.prototype.updateItemMode=function(p,u){for(var s=this.visibleActions,e=s.length-1;e>=0;e--)u>p&&!s[e].disableShrink?(u-=s[e].maxDimension-s[e].minDimension,s[e].mode="small"):s[e].mode="large"},Object.defineProperty(a.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),a.prototype.hiddenItemSelected=function(p){!!p&&typeof p.action=="function"&&p.action()},a.prototype.onSet=function(){var p=this;this.actions.forEach(function(u){return u.updateCallback=function(){return p.raiseUpdate(!1)}}),P.prototype.onSet.call(this)},a.prototype.onPush=function(p){var u=this;p.updateCallback=function(){return u.raiseUpdate(!1)},P.prototype.onPush.call(this,p)},a.prototype.getRenderedActions=function(){return this.actions.length===1&&!!this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},a.prototype.raiseUpdate=function(p){this.isResponsivenessDisabled||P.prototype.raiseUpdate.call(this,p)},a.prototype.fit=function(p,u){if(!(p<=0)){this.dotsItem.visible=!1;var s=0,e=0,g=this.visibleActions;g.forEach(function(h){s+=h.minDimension,e+=h.maxDimension}),p>=e?this.setActionsMode("large"):p.sv-action__content")},a.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},a.prototype.setActionsMode=function(p){this.actions.forEach(function(u){return u.mode=p})},a.prototype.dispose=function(){P.prototype.dispose.call(this),this.resetResponsivityManager()},a.ContainerID=1,a}(I.ActionContainer)},"./src/actions/container.ts":function(D,y,c){c.r(y),c.d(y,"defaultActionBarCss",function(){return a}),c.d(y,"ActionContainer",function(){return p});var b=c("./src/jsonobject.ts"),C=c("./src/base.ts"),I=c("./src/actions/action.ts"),M=c("./src/utils/cssClassBuilder.ts"),T=c("./src/utils/utils.ts"),V=function(){var u=function(s,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(g[f]=h[f])},u(s,e)};return function(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(s,e);function g(){this.constructor=s}s.prototype=e===null?Object.create(e):(g.prototype=e.prototype,new g)}}(),P=function(u,s,e,g){var h=arguments.length,f=h<3?s:g===null?g=Object.getOwnPropertyDescriptor(s,e):g,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(u,s,e,g);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(f=(h<3?o(f):h>3?o(s,e,f):o(s,e))||f);return h>3&&f&&Object.defineProperty(s,e,f),f},a={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},p=function(u){V(s,u);function s(){var e=u!==null&&u.apply(this,arguments)||this;return e.sizeMode="default",e}return s.prototype.getMarkdownHtml=function(e,g){return this.locOwner?this.locOwner.getMarkdownHtml(e,g):void 0},s.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},s.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},s.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},s.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},s.prototype.getRenderedActions=function(){return this.actions},s.prototype.locStrsChanged=function(){u.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){return e.locStrsChanged()})},s.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(g){return g.visible}),this.updateCallback&&this.updateCallback(e)},s.prototype.onSet=function(){var e=this;this.actions.forEach(function(g){e.setActionCssClasses(g)}),this.raiseUpdate(!0)},s.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},s.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},s.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(s.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return e.visible!==!1})},enumerable:!1,configurable:!0}),s.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new M.CssClassBuilder().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},s.prototype.getDefaultCssClasses=function(){return a},Object.defineProperty(s.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var g=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(T.mergeValues)(e,this.cssClasses),this.actions.forEach(function(h){g.setActionCssClasses(h)})},enumerable:!1,configurable:!0}),s.prototype.createAction=function(e){return e instanceof I.Action?e:new I.Action(e)},s.prototype.addAction=function(e,g){var h=this.createAction(e);return this.actions.push(h),this.sortItems(),h},s.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter(function(e){return e.visibleIndex===void 0||e.visibleIndex>=0})).sort(function(e,g){return e.visibleIndex-g.visibleIndex})},s.prototype.setItems=function(e,g){var h=this;g===void 0&&(g=!0),this.actions=e.map(function(f){return h.createAction(f)}),g&&this.sortItems()},s.prototype.initResponsivityManager=function(e){},s.prototype.resetResponsivityManager=function(){},s.prototype.getActionById=function(e){for(var g=0;g-1},o.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},o}(),f=function(o){P(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r}(h)},"./src/calculatedValue.ts":function(D,y,c){c.r(y),c.d(y,"CalculatedValue",function(){return V});var b=c("./src/helpers.ts"),C=c("./src/base.ts"),I=c("./src/conditions.ts"),M=c("./src/jsonobject.ts"),T=function(){var P=function(a,p){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&(u[e]=s[e])},P(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");P(a,p);function u(){this.constructor=a}a.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)}}(),V=function(P){T(a,P);function a(p,u){p===void 0&&(p=null),u===void 0&&(u=null);var s=P.call(this)||this;return s.expressionIsRunning=!1,s.isCalculated=!1,p&&(s.name=p),u&&(s.expression=u),s}return a.prototype.setOwner=function(p){this.data=p,this.rerunExpression()},a.prototype.getType=function(){return"calculatedvalue"},a.prototype.getSurvey=function(p){return!!this.data&&!!this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(a.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(p){this.setPropertyValue("name",p)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(p){this.setPropertyValue("includeIntoResult",p)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(p){this.setPropertyValue("expression",p),this.rerunExpression()},enumerable:!1,configurable:!0}),a.prototype.locCalculation=function(){this.expressionIsRunning=!0},a.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},a.prototype.resetCalculation=function(){this.isCalculated=!1},a.prototype.doCalculation=function(p,u,s){this.isCalculated||(this.runExpressionCore(p,u,s),this.isCalculated=!0)},a.prototype.runExpression=function(p,u){this.runExpressionCore(null,p,u)},Object.defineProperty(a.prototype,"value",{get:function(){if(!!this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),a.prototype.setValue=function(p){!this.data||this.data.setVariable(this.name,p)},Object.defineProperty(a.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),a.prototype.rerunExpression=function(){!this.canRunExpression||this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},a.prototype.runExpressionCore=function(p,u,s){!this.canRunExpression||(this.ensureExpression(u),this.locCalculation(),p&&this.runDependentExpressions(p,u,s),this.expressionRunner.run(u,s))},a.prototype.runDependentExpressions=function(p,u,s){var e=this.expressionRunner.getVariables();if(!!e)for(var g=0;g0)for(var g=0;g-1?this.isUsingCacheFromUrl=!0:e.indexOf(s.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=I.Serializer.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),s.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),g=0;g-1?e=this.path.split(";"):e=this.processedPath.split(","),e.length==0&&e.push(this.processedPath),e},s.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var g=Object.keys(e).length;return g<1?null:e[Object.keys(e)[0]]},s.prototype.setTitle=function(e,g){var h=this.titleName?this.titleName:"title",f=this.getValueCore(g,h);!f||(typeof f=="string"?e.text=f:e.locText.setJson(f))},s.prototype.getImageLink=function(e){var g=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,g)},s.prototype.getValueCore=function(e,g){if(!e)return null;if(g.indexOf(".")<0)return e[g];for(var h=g.split("."),f=0;f1&&T.path[T.path.length-1]=="length"&&(T.hasValue=!0,T.value=0);return}var V=this.getValueCore(T.name,this.values);T.value=V.value,T.hasValue=V.hasValue,T.path=V.hasValue?V.path:null},M.prototype.getValueFromPath=function(T,V){if(T.length===2&&T[0]===C)return this.getValueFromSurvey(T[1]);for(var P=0;!!V&&P=V.length)return null;V=V[a],P++}return V},M.prototype.getValueCore=function(T,V){var P=this.getValueFromValues(T,V);if(!!T&&!P.hasValue){var a=this.getValueFromSurvey(T);a!==void 0&&(P.hasValue=!0,P.value=a,P.path=[C,T])}return P},M.prototype.getValueFromSurvey=function(T){if(!!this.properties&&!!this.properties.survey)return this.properties.survey.getBuiltInVariableValue(T.toLocaleLowerCase())},M.prototype.getValueFromValues=function(T,V){var P={hasValue:!1,value:null,path:null},a=V;if(!a&&a!==0&&a!==!1)return P;T&&T.lastIndexOf(".length")>-1&&T.lastIndexOf(".length")===T.length-7&&(P.value=0,P.hasValue=!0);var p=this.getNonNestedObject(a,T,!1);return p&&(P.path=p.path,P.value=p.text?this.getObjectValue(p.value,p.text):p.value,P.hasValue=!b.Helpers.isValueEmpty(P.value)),P},M.prototype.getNonNestedObject=function(T,V,P){for(var a=this.getFirstPropertyName(V,T,P),p=a?[a]:null;V!=a&&!!T;){var u=V[0]=="[";if(u){var s=this.getObjInArray(T,V);if(!s)return null;T=s.value,V=s.text,p.push(s.index)}else{if(!a&&V==this.getFirstName(V))return{value:T,text:V,path:p};if(T=this.getObjectValue(T,a),b.Helpers.isValueEmpty(T)&&!P)return null;V=V.substring(a.length)}!!V&&V[0]=="."&&(V=V.substring(1)),a=this.getFirstPropertyName(V,T,P),a&&p.push(a)}return{value:T,text:V,path:p}},M.prototype.getObjInArray=function(T,V){if(!Array.isArray(T))return null;for(var P=1,a="";P=T.length?null:{value:T[P],text:V,index:P}},M.prototype.getFirstPropertyName=function(T,V,P){if(P===void 0&&(P=!1),!T||(V||(V={}),V.hasOwnProperty(T)))return T;var a=T.toLowerCase(),p=a[0],u=p.toUpperCase();for(var s in V){var e=s[0];if(e===u||e===p){var g=s.toLowerCase();if(g==a)return s;if(a.length<=g.length)continue;var h=a[g.length];if(h!="."&&h!="[")continue;if(g==a.substring(0,g.length))return s}}if(P&&T[0]!=="["){var f=T.indexOf(".");return f>-1&&(T=T.substring(0,f),V[T]={}),T}return""},M.prototype.getObjectValue=function(T,V){return V?T[V]:null},M.prototype.getIntValue=function(T){return T=="0"||(T|0)>0&&T%1==0?Number(T):-1},M}()},"./src/conditions.ts":function(D,y,c){c.r(y),c.d(y,"ExpressionExecutor",function(){return M}),c.d(y,"ExpressionRunnerBase",function(){return T}),c.d(y,"ConditionRunner",function(){return V}),c.d(y,"ExpressionRunner",function(){return P});var b=c("./src/conditionProcessValue.ts"),C=c("./src/conditionsParser.ts"),I=function(){var a=function(p,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(s[g]=e[g])},a(p,u)};return function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(p,u);function s(){this.constructor=p}p.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),M=function(){function a(p){this.processValue=new b.ProcessValue,this.parser=new C.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(p)}return Object.defineProperty(a.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),a.prototype.setExpression=function(p){this.expression!==p&&(this.expressionValue=p,this.operand=this.parser.parseExpression(p),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},a.prototype.getVariables=function(){if(!this.operand)return[];var p=[];return this.operand.setVariables(p),p},a.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(a.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),a.prototype.canRun=function(){return!!this.operand},a.prototype.run=function(p,u){var s=this;if(u===void 0&&(u=null),!this.operand)return null;if(this.processValue.values=p,this.processValue.properties=u,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var e=0;e/g,">=").replace(/=/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},M.prototype.createCondition=function(T){return this.parseExpression(T)},M.prototype.parseExpression=function(T){try{var V=M.parserCache[T];return V===void 0&&(V=Object(b.parse)(this.patchExpression(T)),V.hasAsyncFunction()||(M.parserCache[T]=V)),V}catch(P){P instanceof b.SyntaxError&&(this.conditionError=new C(P.location.start.offset,P.message))}},Object.defineProperty(M.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),M.parserCache={},M}()},"./src/defaultCss/cssbootstrap.ts":function(D,y,c){c.r(y),c.d(y,"defaultBootstrapCss",function(){return C});var b=c("./src/defaultCss/cssstandard.ts"),C={root:"sv_main sv_bootstrap_css",container:"sv_container",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"btn sv_nav_btn",completedPage:"",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:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",title:"",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"small",descriptionUnderInput:"small",requiredText:"sv_q_required_text",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",rootRadio:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",controlCheckbox:"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",materialDecorator:"sv-item__decorator sv-boolean__decorator",itemDecorator:"sv-item__svg sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemControl:"",itemDecorator:"sv-hidden",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},tagbox:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table 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 bg-primary",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"table",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"button sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt table",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",itemLabel:"sv_q_mt_label",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",label:"",labelChecked:"",itemControl:"",itemDecorator:"sv-hidden",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",fileDecorator:"sv-hidden",fileSign:"sv_q_file_sign",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};b.surveyCss.bootstrap=C},"./src/defaultCss/cssbootstrapmaterial.ts":function(D,y,c){c.r(y),c.d(y,"defaultBootstrapMaterialCss",function(){return C});var b=c("./src/defaultCss/cssstandard.ts"),C={root:"sv_main sv_bootstrapmaterial_css",container:"sv_container",header:"card-heading",body:"card-body",bodyEmpty:"card-body sv_body_empty",footer:"card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"btn-primary sv_nav_btn",completedPage:"",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:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group bmd-form-group",flowRoot:"sv_q_flow form-group bmd-form-group",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"small",descriptionUnderInput:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group bmd-form-group",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln checkbox",rootRadio:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",controlCheckbox:"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",materialDecorator:"sv-item__decorator sv-boolean__decorator",itemDecorator:"sv-item__svg sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbx",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemDecorator:"sv-hidden",itemControl:"",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-decorator",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},tagbox:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",row:"form-group bmd-form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control",itemChecked:"checked",itemDecorator:"sv-hidden",materialDecorator:"bmd-radio",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"table",itemValue:"form-group bmd-form-group",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow",root:"table",button:"btn btn-primary",itemValue:"form-group bmd-form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn btn btn-primary",buttonRemove:"button sv-paneldynamic__remove-btn btn btn-primary",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",progressBtnIcon:"icon-progressbutton",footer:""},multipletext:{root:"sv_q_mt table",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",itemLabel:"sv_q_mt_label",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"",labelChecked:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"bmd-radio",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"form-group bmd-form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",fileSign:"sv_q_file_sign",removeFile:"sv_q_file_remove",fileDecorator:"sv-hidden",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header card-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};b.surveyCss.bootstrapmaterial=C},"./src/defaultCss/cssmodern.ts":function(D,y,c){c.r(y),c.d(y,"modernCss",function(){return C});var b=c("./src/defaultCss/cssstandard.ts"),C={root:"sv-root-modern",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component"},tagbox:{root:"",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input"},comment:{root:"sv-comment",small:"sv-row__question--small"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",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:""}},variables:{themeMark:"--sv-modern-mark"}};b.surveyCss.modern=C},"./src/defaultCss/cssstandard.ts":function(D,y,c){c.r(y),c.d(y,"surveyCss",function(){return b}),c.d(y,"defaultStandardCss",function(){return C});var b={currentType:"",getCss:function(){var I=this.currentType?this[this.currentType]:C;return I||(I=C),I}},C={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:"sv_nav_btn",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",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",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",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",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",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",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",rootRadio:"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",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},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",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input"},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",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",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:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},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",column:"sv_q_select_column"},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"},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",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",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:""}},variables:{themeMark:"--sv-default-mark"},tagbox:{root:"",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input"}};b.standard=C},"./src/defaultCss/defaultV2Css.ts":function(D,y,c){c.r(y),c.d(y,"defaultV2Css",function(){return C});var b=c("./src/defaultCss/cssstandard.ts"),C={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",container:"sd-container-modern",header:"sd-title sd-container-modern__title",body:"sd-body",bodyEmpty:"sd-body sd-body--empty",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:""},panel:{title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:""},paneldynamic:{mainRoot:"sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder"},progress:"sd-progress sd-body__progress",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",pageRow:"sd-page__row",question:{mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-question__content",contentLeft:"sd-question__content--left",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",label:"sd-boolean__label",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"#icon-no-image",column:"sd-selectbase__column sd-imagepicker__column"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix",root:"sd-table sd-matrix__table",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",cell:"sd-table__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",control:"sd-input sd-dropdown",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},expression:"",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",imagepickerGapBetweenItems:"--sd-imagepicker-gap",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator"}};b.surveyCss.defaultV2=C},"./src/defaultTitle.ts":function(D,y,c){c.r(y),c.d(y,"DefaultTitleModel",function(){return C});var b=c("./src/utils/cssClassBuilder.ts"),C=function(){function I(){}return I.getIconCss=function(M,T){return new b.CssClassBuilder().append(M.icon).append(M.iconExpanded,!T).toString()},I}()},"./src/dragdrop/choices.ts":function(D,y,c){c.r(y),c.d(y,"DragDropChoices",function(){return I});var b=c("./src/dragdrop/core.ts"),C=function(){var M=function(T,V){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,a){P.__proto__=a}||function(P,a){for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(P[p]=a[p])},M(T,V)};return function(T,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");M(T,V);function P(){this.constructor=T}T.prototype=V===null?Object.create(V):(P.prototype=V.prototype,new P)}}(),I=function(M){C(T,M);function T(){var V=M!==null&&M.apply(this,arguments)||this;return V.doDragOver=function(){if(V.parentElement.getType()!=="imagepicker"){var P=V.draggedElementShortcut.querySelector(".svc-item-value-controls__button");P.style.cursor="grabbing"}},V.doBanDropHere=function(){if(V.parentElement.getType()!=="imagepicker"){var P=V.draggedElementShortcut.querySelector(".svc-item-value-controls__button");P.style.cursor="not-allowed"}},V}return Object.defineProperty(T.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),T.prototype.createDraggedElementShortcut=function(V,P,a){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,V,P,a);var p=document.createElement("div");p.style.cssText=` + cursor: grabbing; + position: absolute; + z-index: 1000; + font-family: "Open Sans"; + `;var u=!0,s=P.closest("[data-sv-drop-target-item-value]").cloneNode(u);s.style.cssText=` + min-width: 100px; + box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); + background-color: white; + border-radius: 36px; + padding-right: 16px; + margin-left: 0; + `;var e=s.querySelector(".svc-item-value-controls__drag-icon");e.style.visibility="visible";var g=s.querySelector(".svc-item-value-controls__remove");g.style.backgroundColor="transparent",s.classList.remove("svc-item-value--moveup"),s.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,p.appendChild(s);var h=P.getBoundingClientRect();return p.shortcutXOffset=a.clientX-h.x,p.shortcutYOffset=a.clientY-h.y,this.isBottom=null,p},T.prototype.createImagePickerShortcut=function(V,P,a,p){var u=document.createElement("div");u.style.cssText=` + cursor: grabbing; + position: absolute; + z-index: 1000; + box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); + padding: 4px; + border-radius: 4px; + background: white; + `;var s=a.closest("[data-sv-drop-target-item-value]"),e=s.querySelector(".svc-image-item-value-controls"),g=s.querySelector(".sd-imagepicker__image-container"),h=s.querySelector(V.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return e.style.display="none",g.style.width=h.width+"px",g.style.height=h.height+"px",h.style.objectFit="cover",h.style.borderRadius="4px",u.appendChild(h),u},T.prototype.findDropTargetNodeByDragOverNode=function(V){var P=V.closest(this.dropTargetDataAttributeName);return P},T.prototype.getDropTargetByDataAttributeValue=function(V){var P;return P=this.parentElement.choices.filter(function(a){return""+a.value==V})[0],P},T.prototype.getVisibleChoices=function(){var V=this.parentElement;return V.getType()==="ranking"?V.rankingChoices:V.visibleChoices},T.prototype.isDropTargetValid=function(V){var P=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var a=P.indexOf(this.dropTarget),p=P.indexOf(this.draggedElement);if(p>a&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(p0},T.prototype.afterDragOver=function(V){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var P=this.getVisibleChoices(),a=P.indexOf(this.dropTarget),p=P.indexOf(this.draggedElement);P.splice(p,1),P.splice(a,0,this.draggedElement),this.parentElement.getType()!=="imagepicker"&&(p!==a&&(V.classList.remove("svc-item-value--moveup"),V.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),p>a&&(this.dropTarget.isDragDropMoveDown=!0),p=0;f--)(h=a[f])&&(g=(e<3?h(g):e>3?h(p,u,g):h(p,u))||g);return e>3&&g&&Object.defineProperty(p,u,g),g};typeof window<"u"&&window.addEventListener("touchmove",function(a){!P.PreventScrolling||a.preventDefault()},{passive:!1});var P=function(a){T(p,a);function p(u,s,e){var g=a.call(this)||this;return g.surveyValue=u,g.creator=s,g.longTap=e,g.onGhostPositionChanged=new b.EventBase,g.onBeforeDrop=new b.EventBase,g.onAfterDrop=new b.EventBase,g.draggedElement=null,g.dropTarget=null,g.prevDropTarget=null,g.draggedElementShortcut=null,g.scrollIntervalId=null,g.allowDropHere=!1,g.stopLongTapIfMoveEnough=function(h){h.preventDefault(),g.currentX=h.pageX,g.currentY=h.pageY,!g.isMicroMovement&&(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),g.stopLongTap())},g.stopLongTap=function(h){clearTimeout(g.timeoutID),g.timeoutID=null,document.removeEventListener("pointerup",g.stopLongTap),document.removeEventListener("pointermove",g.stopLongTapIfMoveEnough)},g.onContextMenu=function(h){h.preventDefault(),h.stopPropagation()},g.dragOver=function(h){g.moveShortcutElement(h),g.draggedElementShortcut.style.cursor="grabbing";var f=g.findDropTargetNodeFromPoint(h.clientX,h.clientY);if(!f){g.banDropHere();return}g.dropTarget=g.getDropTargetByNode(f,h);var o=g.isDropTargetValid(g.dropTarget,f);if(g.doDragOver(f,h),!o){g.banDropHere();return}var r=g.calculateIsBottom(h.clientY,f);g.allowDropHere=!0,!g.isDropTargetDoesntChanged(r)&&(g.isBottom=null,g.isBottom=r,g.afterDragOver(f,h),g.prevDropTarget=g.dropTarget)},g.drop=function(){if(g.allowDropHere){g.onBeforeDrop.fire(g,null);var h=g.doDrop();g.onAfterDrop.fire(g,{draggedElement:h})}g.clear()},g.handlePointerCancel=function(h){g.clear()},g.handleEscapeButton=function(h){h.keyCode==27&&g.clear()},g.banDropHere=function(){g.allowDropHere=!1,g.doBanDropHere(),g.dropTarget=null,g.draggedElementShortcut.style.cursor="not-allowed",g.isBottom=null},g.doBanDropHere=function(){},g.clear=function(){cancelAnimationFrame(g.scrollIntervalId),document.removeEventListener("pointermove",g.dragOver),document.removeEventListener("pointercancel",g.handlePointerCancel),document.removeEventListener("keydown",g.handleEscapeButton),document.removeEventListener("pointerup",g.drop),g.draggedElementShortcut.removeEventListener("pointerup",g.drop),M.IsTouch&&g.draggedElementShortcut.removeEventListener("contextmenu",g.onContextMenu),document.body.removeChild(g.draggedElementShortcut),g.doClear(),g.dropTarget=null,g.draggedElementShortcut=null,g.draggedElement=null,g.isBottom=null,g.parentElement=null,g.scrollIntervalId=null,M.IsTouch&&(g.savedTargetNode&&document.body.removeChild(g.savedTargetNode),p.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},g}return p.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(p.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-".concat(this.draggedElementType,"]")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),p.prototype.startDrag=function(u,s,e,g,h){if(h===void 0&&(h=!1),M.IsTouch){this.startLongTapProcessing(u,s,e,g,h);return}this.doStartDrag(u,s,e,g)},p.prototype.startLongTapProcessing=function(u,s,e,g,h){var f=this;h===void 0&&(h=!1),this.startX=u.pageX,this.startY=u.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout(function(){f.doStartDrag(u,s,e,g),h||(f.savedTargetNode=u.target,f.savedTargetNode.style.cssText=` + position: absolute; + height: 1px!important; + width: 1px!important; + overflow: hidden; + clip: rect(1px 1px 1px 1px); + clip: rect(1px, 1px, 1px, 1px); + `,document.body.appendChild(f.savedTargetNode)),f.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},Object.defineProperty(p.prototype,"isMicroMovement",{get:function(){var u=5,s=Math.abs(this.currentX-this.startX),e=Math.abs(this.currentY-this.startY);return s=o){this.draggedElementShortcut.style.left=u.pageX-u.clientX+o-e+"px",this.draggedElementShortcut.style.top=u.pageY-h+"px";return}if(u.clientX-g<=0){this.draggedElementShortcut.style.left=u.pageX-u.clientX+"px",this.draggedElementShortcut.style.top=u.pageY-h+"px";return}if(r>=f){this.draggedElementShortcut.style.left=u.pageX-g+"px",this.draggedElementShortcut.style.top=u.pageY-u.clientY+f-s+"px";return}if(u.clientY-h<=0){this.draggedElementShortcut.style.left=u.pageX-g+"px",this.draggedElementShortcut.style.top=u.pageY-u.clientY+"px";return}this.draggedElementShortcut.style.left=u.pageX-g+"px",this.draggedElementShortcut.style.top=u.pageY-h+"px"},p.prototype.getShortcutBottomCoordinate=function(u,s,e){return u+s-e},p.prototype.getShortcutRightCoordinate=function(u,s,e){return u+s-e},p.prototype.doScroll=function(u,s){var e=this;cancelAnimationFrame(this.scrollIntervalId);var g=50;this.draggedElementShortcut.hidden=!0;var h=document.elementFromPoint(s,u);this.draggedElementShortcut.hidden=!1;var f=Object(I.findScrollableParent)(h),o,r,n,i;f.tagName==="HTML"?(o=0,r=document.documentElement.clientHeight,n=0,i=document.documentElement.clientWidth):(o=f.getBoundingClientRect().top,r=f.getBoundingClientRect().bottom,n=f.getBoundingClientRect().left,i=f.getBoundingClientRect().right);var m=function(){u-o<=g?f.scrollTop-=15:r-u<=g?f.scrollTop+=15:i-s<=g?f.scrollLeft+=15:s-n<=g&&(f.scrollLeft-=15),e.scrollIntervalId=requestAnimationFrame(m)};this.scrollIntervalId=requestAnimationFrame(m)},p.prototype.getDataAttributeValueByNode=function(u){var s=this,e="svDropTarget",g=this.draggedElementType.split("-");return g.forEach(function(h){e+=s.capitalizeFirstLetter(h)}),u.dataset[e]},p.prototype.getDropTargetByNode=function(u,s){var e=this.getDataAttributeValueByNode(u);return this.getDropTargetByDataAttributeValue(e,u,s)},p.prototype.capitalizeFirstLetter=function(u){return u.charAt(0).toUpperCase()+u.slice(1)},p.prototype.calculateVerticalMiddleOfHTMLElement=function(u){var s=u.getBoundingClientRect();return s.y+s.height/2},p.prototype.calculateHorizontalMiddleOfHTMLElement=function(u){var s=u.getBoundingClientRect();return s.x+s.width/2},p.prototype.findDropTargetNodeFromPoint=function(u,s){this.draggedElementShortcut.hidden=!0;var e=document.elementFromPoint(u,s);return this.draggedElementShortcut.hidden=!1,e?this.findDropTargetNodeByDragOverNode(e):null},p.prototype.findDropTargetNodeByDragOverNode=function(u){var s=u.querySelector(this.dropTargetDataAttributeName)||u.closest(this.dropTargetDataAttributeName);return s},p.prototype.doClear=function(){},p.PreventScrolling=!1,V([Object(C.property)({defaultValue:null,onSet:function(u,s){s.ghostPositionChanged()}})],p.prototype,"isBottom",void 0),p}(b.Base)},"./src/dragdrop/matrix-rows.ts":function(D,y,c){c.r(y),c.d(y,"DragDropMatrixRows",function(){return I});var b=c("./src/dragdrop/core.ts"),C=function(){var M=function(T,V){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,a){P.__proto__=a}||function(P,a){for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(P[p]=a[p])},M(T,V)};return function(T,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");M(T,V);function P(){this.constructor=T}T.prototype=V===null?Object.create(V):(P.prototype=V.prototype,new P)}}(),I=function(M){C(T,M);function T(){var V=M!==null&&M.apply(this,arguments)||this;return V.fromIndex=null,V.toIndex=null,V.doDrop=function(){return V.parentElement.moveRowByIndex(V.fromIndex,V.toIndex),V.parentElement},V}return Object.defineProperty(T.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),T.prototype.createDraggedElementShortcut=function(V,P,a){var p=this,u=document.createElement("div");u.style.cssText=` + cursor: grabbing; + position: absolute; + z-index: 1000; + font-family: "Open Sans"; + `;var s=!0,e=P.closest("[data-sv-drop-target-matrix-row]"),g=e.cloneNode(s);g.style.cssText=` + box-shadow: rgb(0 0 0 / 10%) 0px 8px 16px; + background-color: white; + display: flex; + flex-grow: 0; + flex-shrink: 0; + align-items: center; + line-height: 0; + width: `.concat(e.offsetWidth,`px; + `),g.classList.remove("sv-matrix__drag-drop--moveup"),g.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,u.appendChild(g);var h=P.getBoundingClientRect();u.shortcutXOffset=a.clientX-h.x,u.shortcutYOffset=a.clientY-h.y;var f=this.parentElement.renderedTable.rows;return f.forEach(function(o,r){o.row===p.draggedElement&&(o.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),u},T.prototype.getDropTargetByDataAttributeValue=function(V){var P=this.parentElement,a;return a=P.renderedTable.rows.filter(function(p){return p.row.id===V})[0],a.row},T.prototype.isDropTargetValid=function(V){return!0},T.prototype.findDropTargetNodeByDragOverNode=function(V){var P=V.closest(this.dropTargetDataAttributeName);return P},T.prototype.calculateIsBottom=function(V){var P=this.parentElement.renderedTable.rows,a=P.map(function(p){return p.row});return a.indexOf(this.dropTarget)-a.indexOf(this.draggedElement)>0},T.prototype.afterDragOver=function(V){var P=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var a,p,u,s=this.parentElement.renderedTable.rows;s.forEach(function(e,g){e.row===P.dropTarget&&(a=g),e.row===P.draggedElement&&(u=e,p=g,u.isGhostRow=!0)}),s.splice(p,1),s.splice(a,0,u),this.toIndex=a,M.prototype.ghostPositionChanged.call(this)}},T.prototype.doClear=function(){this.parentElement.resetRenderedTable(),this.fromIndex=null,this.toIndex=null},T}(b.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(D,y,c){c.r(y),c.d(y,"DragDropRankingChoices",function(){return T});var b=c("./src/dragdrop/choices.ts"),C=c("./src/utils/cssClassBuilder.ts"),I=c("./src/utils/devices.ts"),M=function(){var V=function(P,a){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,u){p.__proto__=u}||function(p,u){for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&(p[s]=u[s])},V(P,a)};return function(P,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");V(P,a);function p(){this.constructor=P}P.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}(),T=function(V){M(P,V);function P(){var a=V!==null&&V.apply(this,arguments)||this;return a.isDragOverRootNode=!1,a.doDragOver=function(){var p=a.draggedElementShortcut.querySelector(".sv-ranking-item");p.style.cursor="grabbing"},a.doBanDropHere=function(){if(a.isDragOverRootNode){a.allowDropHere=!0;return}var p=a.draggedElementShortcut.querySelector(".sv-ranking-item");p.style.cursor="not-allowed"},a.doDrop=function(){return a.parentElement.setValue(),a.parentElement},a.doClear=function(){a.parentElement.dropTargetNodeMove=null,a.parentElement.updateRankingChoices(!0)},a}return Object.defineProperty(P.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),P.prototype.createDraggedElementShortcut=function(a,p,u){var s=document.createElement("div");s.className=this.shortcutClass+" sv-ranking-shortcut",s.style.cssText=` + cursor: grabbing; + position: absolute; + z-index: 1000; + border-radius: 36px; + min-width: 100px; + box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); + background-color: white; + padding-right: 16px; + padding-left: 20px; + font-family: "Open Sans"; + `;var e=!0,g=p.cloneNode(e);s.appendChild(g);var h=p.getBoundingClientRect();return s.shortcutXOffset=u.clientX-h.x,s.shortcutYOffset=u.clientY-h.y,s},Object.defineProperty(P.prototype,"shortcutClass",{get:function(){return new C.CssClassBuilder().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,I.IsMobile).toString()},enumerable:!1,configurable:!0}),P.prototype.getDropTargetByDataAttributeValue=function(a){return this.parentElement.rankingChoices[a]},P.prototype.findDropTargetNodeByDragOverNode=function(a){return this.isDragOverRootNode=this.getIsDragOverRootNode(a),a.closest(this.dropTargetDataAttributeName)},P.prototype.getIsDragOverRootNode=function(a){return typeof a.className=="string"&&a.className.indexOf("sv-ranking")!==-1},P.prototype.isDropTargetValid=function(a,p){var u=this.parentElement.rankingChoices,s=u.indexOf(this.dropTarget),e=u.indexOf(this.draggedElement);return e>s&&p.classList.contains("sv-dragdrop-moveup")?(this.parentElement.dropTargetNodeMove=null,!1):e0},P.prototype.afterDragOver=function(a){var p=this.parentElement.rankingChoices,u=p.indexOf(this.dropTarget),s=p.indexOf(this.draggedElement);p.splice(s,1),p.splice(u,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",p),this.updateDraggedElementShortcut(u+1),s!==u&&(a.classList.remove("sv-dragdrop-moveup"),a.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),s>u&&(this.parentElement.dropTargetNodeMove="down"),s');return a.className="svc-dragged-element-shortcut__icon",a.innerHTML=u,a},P.prototype.getDraggedElementClass=function(){var a="svc-dragged-element-shortcut";return this.isDraggedElementSelected&&(a+=" svc-dragged-element-shortcut--selected"),a},P.prototype.createElementFromJson=function(a){var p=this.createNewElement(a);return p.setSurveyImpl?p.setSurveyImpl(this.survey):p.setData(this.survey),p.renderWidth="100%",p},P.prototype.createNewElement=function(a){var p=C.Serializer.createClass(a.type);return new C.JsonObject().toObject(a,p),p},P.prototype.getDropTargetByDataAttributeValue=function(a,p,u){if(this.isEdge=this.calculateIsEdge(p,u.clientY),!a){var s=p.parentElement.closest(this.dropTargetDataAttributeName);a=this.getDataAttributeValueByNode(s)}if(!a)throw new Error("Can't find drop target survey element name");if(a===P.ghostSurveyElementName)return this.prevDropTarget;if(a==="newGhostPage")return P.newGhostPage;var e=this.survey.getPageByName(a);if(e)return e.elements.length!==0?null:e;var g,h;if(this.survey.pages.forEach(function(r){h=r.getElementByName(a),h&&(g=h)}),g.getType()==="paneldynamic"&&!this.isEdge&&(g=g.template),(g.getType()==="matrixdropdown"||g.getType()==="matrixdynamic")&&g.detailPanelMode!=="none"&&!this.isEdge?g=g.detailPanel:g.isPanel&&(g=this.getPanelDropTarget(p,g,u)),!g.page){var f=p.parentElement.closest("[data-sv-drop-target-page]");a=f.dataset.svDropTargetPage;var o=this.survey.getPageByName(a);g.__page=o}return g},P.prototype.isDropTargetValid=function(){return!(!this.dropTarget||this.dropTarget===this.draggedElement||this.draggedElement.getType()==="paneldynamic"&&this.dropTarget===this.draggedElement.template||P.restrictDragQuestionBetweenPages&&this.shouldRestricDragQuestionBetweenPages(this.dropTarget))},P.prototype.calculateIsBottom=function(a,p){if(this.getDataAttributeValueByNode(p)===P.ghostSurveyElementName)return this.isBottom;var u=this.calculateVerticalMiddleOfHTMLElement(p);return a>=u},P.prototype.calculateIsRight=function(a,p){if(this.getDataAttributeValueByNode(p)===P.ghostSurveyElementName)return this.isRight;var u=this.calculateHorizontalMiddleOfHTMLElement(p);return a>=u},P.prototype.isDropTargetDoesntChanged=function(a){return this.dropTarget===this.ghostSurveyElement?!0:this.dropTarget===this.prevDropTarget&&a===this.isBottom&&this.isEdge===this.prevIsEdge&&this.isRight===this.prevIsRight},P.prototype.shouldRestricDragQuestionBetweenPages=function(a){var p=this.draggedElement.page,u=a.isPage?a:a.page;return p&&p!==u},P.prototype.getPanelDropTarget=function(a,p,u){var s=this.isEdge;return!s&&p.questions.length!==0&&(a=this.findDeepestDropTargetChild(a),p=this.getDropTargetByNode(a,u)),p},P.prototype.findDeepestDropTargetChild=function(a){for(var p=this.dropTargetDataAttributeName,u=a;a;)u=a,a=a.querySelector(p);return u},P.prototype.calculateIsEdge=function(a,p){var u=a.getBoundingClientRect();return p-u.top<=P.edgeHeight||u.bottom-p<=P.edgeHeight},P.prototype.doDragOver=function(a,p){this.isRight=this.calculateIsRight(p.clientX,a)},P.prototype.afterDragOver=function(a,p){this.prevIsEdge=this.isEdge,this.prevIsRight=this.isRight,this.insertGhostElementIntoSurvey()},P.prototype.onStartDrag=function(){this.ghostSurveyElement=this.createGhostSurveyElement(),this.draggedElement.isDragMe=!0},P.prototype.insertGhostElementIntoSurvey=function(){this.removeGhostElementFromSurvey();var a=this.calcTargetRowMultiple();if(this.ghostSurveyElement=this.createGhostSurveyElement(a),this.ghostSurveyElement.name=P.ghostSurveyElementName,this.parentElement=this.dropTarget.isPage?this.dropTarget:this.dropTarget.page||this.dropTarget.__page,this.isDragOverInsideEmptyPanel()){this.dropTarget.dragTypeOverMe=b.DragTypeOverMeEnum.InsideEmptyPanel;return}if(!this.isEdge&&a){this.dropTarget.dragTypeOverMe=this.isRight?b.DragTypeOverMeEnum.MultilineRight:b.DragTypeOverMeEnum.MultilineLeft;return}this.parentElement.dragDropStart(this.draggedElement,this.ghostSurveyElement,P.nestedPanelDepth);var p=this.parentElement.dragDropMoveTo(this.dropTarget,a?this.isRight:this.isBottom,this.isEdge);return p},P.prototype.calcTargetRowMultiple=function(){var a=this.getTargetParent(this.dropTarget),p=this.getTargetRow(this.dropTarget),u=p&&p.elements.length>1,s=a.isPanel&&!a.name;return this.isEdge&&u&&!s?(a.__page=this.dropTarget.page||this.dropTarget.__page,this.dropTarget=a,!1):u},P.prototype.getTargetParent=function(a){var p=a.isPage||a.isPanel?a:a.parent;return a.getType()==="paneldynamic"&&(p=a.templateValue),p},P.prototype.getTargetRow=function(a){var p=this.getTargetParent(a),u;return p.rows.forEach(function(s){s.elements.indexOf(a)!==-1&&(u=s)}),u},P.prototype.isDragOverInsideEmptyPanel=function(){var a=this.dropTarget.isPanel&&this.dropTarget.questions.length===0,p=!this.isEdge;return a&&p},P.prototype.removeGhostElementFromSurvey=function(){var a=this.prevDropTarget||this.dropTarget;a&&(a.dragTypeOverMe=null),this.parentElement&&this.parentElement.dragDropFinish(!0)},P.prototype.insertRealElementIntoSurvey=function(){this.removeGhostElementFromSurvey();var a=this.calcTargetRowMultiple();this.dropTarget.isPage&&this.dropTarget._isGhost&&this.dropTarget._addGhostPageViewModel();var p=new C.JsonObject().toJsonObject(this.draggedElement);p.type=this.draggedElement.getType();var u=this.createFakeTargetElement(this.draggedElement.name,p);this.parentElement.dragDropStart(this.draggedElement,u,P.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,a?this.isRight:this.isBottom,this.isEdge);var s=this.parentElement.dragDropFinish();return s},P.prototype.createFakeTargetElement=function(a,p){if(!a||!p)return null;var u=null;return u=C.Serializer.createClass(p.type),new C.JsonObject().toObject(p,u),u.name=a,u.setSurveyImpl?u.setSurveyImpl(this.survey):u.setData(this.survey),u.renderWidth="100%",u},P.prototype.createGhostSurveyElement=function(a){a===void 0&&(a=!1);var p="sv-drag-drop-ghost",u="300px";a&&(u="4px",p+=" sv-drag-drop-ghost--vertical");var s={type:"html",minWidth:u,name:P.ghostSurveyElementName,html:'
')},e=this.createElementFromJson(s);return e.startWithNewLine=!a,a&&(e.maxWidth="4px",e.renderWidth="0px",e.paddingRight="0px",e.paddingLeft="0px"),e},P.newGhostPage=null,P.restrictDragQuestionBetweenPages=!1,P.edgeHeight=30,P.nestedPanelDepth=-1,P.ghostSurveyElementName="sv-drag-drop-ghost-survey-element-name",P}(I.DragDropCore)},"./src/dropdownListModel.ts":function(D,y,c){c.r(y),c.d(y,"DropdownListModel",function(){return p});var b=c("./src/actions/action.ts"),C=c("./src/base.ts"),I=c("./src/jsonobject.ts"),M=c("./src/list.ts"),T=c("./src/popup.ts"),V=c("./src/utils/utils.ts"),P=function(){var u=function(s,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(g[f]=h[f])},u(s,e)};return function(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(s,e);function g(){this.constructor=s}s.prototype=e===null?Object.create(e):(g.prototype=e.prototype,new g)}}(),a=function(u,s,e,g){var h=arguments.length,f=h<3?s:g===null?g=Object.getOwnPropertyDescriptor(s,e):g,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(u,s,e,g);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(f=(h<3?o(f):h>3?o(s,e,f):o(s,e))||f);return h>3&&f&&Object.defineProperty(s,e,f),f},p=function(u){P(s,u);function s(e,g){var h=u.call(this)||this;return h.question=e,h.onSelectionChanged=g,h.minPageSize=25,h.loadingItemHeight=40,h.focusFirstInputSelector=".sv-list__item--selected",h.itemsSettings={skip:0,take:0,totalCount:0,items:[]},h.isRunningLoadQuestionChoices=!1,h.popupCssClasses="sv-single-select-list",h.listModel=h.createListModel(),h.updateAfterListModelCreated(h.listModel),h.setSearchEnabled(h.question.searchEnabled),h.createPopup(),h.resetItemsSettings(),h}return s.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},s.prototype.updateListItems=function(){this.listModel.setItems(this.getAvailableItems())},s.prototype.setItems=function(e,g){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.question.choices=this.itemsSettings.items,this.itemsSettings.totalCount=g,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.question.choices.length==this.itemsSettings.totalCount,this.updateListItems()},s.prototype.updateQuestionChoices=function(){var e=this;if(!this.isRunningLoadQuestionChoices){var g=this.itemsSettings.skip+1=0;f--)(h=a[f])&&(g=(e<3?h(g):e>3?h(p,u,g):h(p,u))||g);return e>3&&g&&Object.defineProperty(p,u,g),g},P=function(a){T(p,a);function p(u,s){var e=a.call(this,u,s)||this;return e.setHideSelectedItems(u.hideSelectedItems),e.syncFilterStringPlaceholder(),e.closeOnSelect=u.closeOnSelect,e}return p.prototype.syncFilterStringPlaceholder=function(u){var s=u||this.getSelectedActions();s.length?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},p.prototype.getSelectedActions=function(u){var s=this;return(u||this.listModel.actions).filter(function(e){return s.question.isAllSelected&&e.id==="selectall"||!!C.ItemValue.getItemByValue(s.question.selectedItems,e.id)})},p.prototype.syncSelectedItemsFromQuestion=function(){var u=this.getSelectedActions();this.listModel.setSelectedItems(this.getSelectedActions()),this.syncFilterStringPlaceholder(u)},p.prototype.createListModel=function(){var u=this,s=this.getAvailableItems(),e=this.onSelectionChanged;return e||(e=function(g,h){u.resetFilterString(),g.id==="selectall"?u.selectAllItems():h==="added"&&g.id=="none"?u.selectNoneItem():h==="added"?u.selectItem(g.id):h==="removed"&&u.deselectItem(g.id),u.popupRecalculatePosition(!1),u.closeOnSelect&&(u.popupModel.isVisible=!1)}),new M.MultiSelectListModel(s,e,!0,this.getSelectedActions(s))},p.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.syncSelectedItemsFromQuestion()},p.prototype.selectNoneItem=function(){this.question.renderedValue=["none"],this.syncSelectedItemsFromQuestion()},p.prototype.selectItem=function(u){var s=[].concat(this.question.renderedValue||[]);s.push(u),this.question.renderedValue=s,this.syncSelectedItemsFromQuestion()},p.prototype.deselectItem=function(u){var s=[].concat(this.question.renderedValue||[]);s.splice(s.indexOf(u),1),this.question.renderedValue=s,this.syncSelectedItemsFromQuestion()},p.prototype.onClear=function(u){a.prototype.onClear.call(this,u),this.syncSelectedItemsFromQuestion()},p.prototype.setHideSelectedItems=function(u){this.listModel.hideSelectedItems=u,this.syncSelectedItemsFromQuestion()},p.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},p.prototype.inputKeyHandler=function(u){u.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),u.preventDefault(),u.stopPropagation())},V([Object(I.property)({defaultValue:""})],p.prototype,"filterStringPlaceholder",void 0),V([Object(I.property)({defaultValue:!0})],p.prototype,"closeOnSelect",void 0),p}(b.DropdownListModel)},"./src/dxSurveyService.ts":function(D,y,c){c.r(y),c.d(y,"dxSurveyService",function(){return C});var b=c("./src/settings.ts"),C=function(){function I(){}return Object.defineProperty(I,"serviceUrl",{get:function(){return b.settings.surveyServiceUrl},set:function(M){b.settings.surveyServiceUrl=M},enumerable:!1,configurable:!0}),I.prototype.loadSurvey=function(M,T){var V=new XMLHttpRequest;V.open("GET",I.serviceUrl+"/getSurvey?surveyId="+M),V.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),V.onload=function(){var P=JSON.parse(V.response);T(V.status==200,P,V.response)},V.send()},I.prototype.getSurveyJsonAndIsCompleted=function(M,T,V){var P=new XMLHttpRequest;P.open("GET",I.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+M+"&clientId="+T),P.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),P.onload=function(){var a=JSON.parse(P.response),p=a?a.survey:null,u=a?a.isCompleted:null;V(P.status==200,p,u,P.response)},P.send()},I.prototype.sendResult=function(M,T,V,P,a){P===void 0&&(P=null),a===void 0&&(a=!1);var p=new XMLHttpRequest;p.open("POST",I.serviceUrl+"/post/"),p.setRequestHeader("Content-Type","application/json; charset=utf-8");var u={postId:M,surveyResult:JSON.stringify(T)};P&&(u.clientId=P),a&&(u.isPartialCompleted=!0);var s=JSON.stringify(u);p.onload=p.onerror=function(){!V||V(p.status===200,p.response,p)},p.send(s)},I.prototype.sendFile=function(M,T,V){var P=new XMLHttpRequest;P.onload=P.onerror=function(){!V||V(P.status==200,JSON.parse(P.response))},P.open("POST",I.serviceUrl+"/upload/",!0);var a=new FormData;a.append("file",T),a.append("postId",M),P.send(a)},I.prototype.getResult=function(M,T,V){var P=new XMLHttpRequest,a="resultId="+M+"&name="+T;P.open("GET",I.serviceUrl+"/getResult?"+a),P.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),P.onload=function(){var p=null,u=null;if(P.status==200){p=JSON.parse(P.response),u=[];for(var s in p.QuestionResult){var e={name:s,value:p.QuestionResult[s]};u.push(e)}}V(P.status==200,p,u,P.response)},P.send()},I.prototype.isCompleted=function(M,T,V){var P=new XMLHttpRequest,a="resultId="+M+"&clientId="+T;P.open("GET",I.serviceUrl+"/isCompleted?"+a),P.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),P.onload=function(){var p=null;P.status==200&&(p=JSON.parse(P.response)),V(P.status==200,p,P.response)},P.send()},I}()},"./src/element-helper.ts":function(D,y,c){c.r(y),c.d(y,"ElementHelper",function(){return b});var b=function(){function C(){}return C.focusElement=function(I){I&&I.focus()},C.visibility=function(I){var M=window.getComputedStyle(I);return M.display==="none"||M.visibility==="hidden"?!1:I.parentElement?this.visibility(I.parentElement):!0},C.getNextElementPreorder=function(I){var M=I.nextElementSibling?I.nextElementSibling:I.parentElement.firstElementChild;return this.visibility(M)?M:this.getNextElementPreorder(M)},C.getNextElementPostorder=function(I){var M=I.previousElementSibling?I.previousElementSibling:I.parentElement.lastElementChild;return this.visibility(M)?M:this.getNextElementPostorder(M)},C.hasHorizontalScroller=function(I){return I?I.scrollWidth>I.offsetWidth:!1},C.hasVerticalScroller=function(I){return I?I.scrollHeight>I.offsetHeight:!1},C}()},"./src/entries/chunks/model.ts":function(D,y,c){c.r(y),c.d(y,"Version",function(){return nt}),c.d(y,"checkLibraryVersion",function(){return Jt});var b=c("./src/settings.ts");c.d(y,"settings",function(){return b.settings});var C=c("./src/helpers.ts");c.d(y,"Helpers",function(){return C.Helpers});var I=c("./src/validator.ts");c.d(y,"AnswerCountValidator",function(){return I.AnswerCountValidator}),c.d(y,"EmailValidator",function(){return I.EmailValidator}),c.d(y,"NumericValidator",function(){return I.NumericValidator}),c.d(y,"RegexValidator",function(){return I.RegexValidator}),c.d(y,"SurveyValidator",function(){return I.SurveyValidator}),c.d(y,"TextValidator",function(){return I.TextValidator}),c.d(y,"ValidatorResult",function(){return I.ValidatorResult}),c.d(y,"ExpressionValidator",function(){return I.ExpressionValidator}),c.d(y,"ValidatorRunner",function(){return I.ValidatorRunner});var M=c("./src/itemvalue.ts");c.d(y,"ItemValue",function(){return M.ItemValue});var T=c("./src/base.ts");c.d(y,"Base",function(){return T.Base}),c.d(y,"Event",function(){return T.Event}),c.d(y,"ArrayChanges",function(){return T.ArrayChanges}),c.d(y,"ComputedUpdater",function(){return T.ComputedUpdater});var V=c("./src/survey-error.ts");c.d(y,"SurveyError",function(){return V.SurveyError});var P=c("./src/survey-element.ts");c.d(y,"SurveyElementCore",function(){return P.SurveyElementCore}),c.d(y,"SurveyElement",function(){return P.SurveyElement}),c.d(y,"DragTypeOverMeEnum",function(){return P.DragTypeOverMeEnum});var a=c("./src/calculatedValue.ts");c.d(y,"CalculatedValue",function(){return a.CalculatedValue});var p=c("./src/error.ts");c.d(y,"CustomError",function(){return p.CustomError}),c.d(y,"AnswerRequiredError",function(){return p.AnswerRequiredError}),c.d(y,"OneAnswerRequiredError",function(){return p.OneAnswerRequiredError}),c.d(y,"RequreNumericError",function(){return p.RequreNumericError}),c.d(y,"ExceedSizeError",function(){return p.ExceedSizeError});var u=c("./src/localizablestring.ts");c.d(y,"LocalizableString",function(){return u.LocalizableString}),c.d(y,"LocalizableStrings",function(){return u.LocalizableStrings});var s=c("./src/expressionItems.ts");c.d(y,"HtmlConditionItem",function(){return s.HtmlConditionItem}),c.d(y,"UrlConditionItem",function(){return s.UrlConditionItem});var e=c("./src/choicesRestful.ts");c.d(y,"ChoicesRestful",function(){return e.ChoicesRestful}),c.d(y,"ChoicesRestfull",function(){return e.ChoicesRestfull});var g=c("./src/functionsfactory.ts");c.d(y,"FunctionFactory",function(){return g.FunctionFactory}),c.d(y,"registerFunction",function(){return g.registerFunction});var h=c("./src/conditions.ts");c.d(y,"ConditionRunner",function(){return h.ConditionRunner}),c.d(y,"ExpressionRunner",function(){return h.ExpressionRunner}),c.d(y,"ExpressionExecutor",function(){return h.ExpressionExecutor});var f=c("./src/expressions/expressions.ts");c.d(y,"Operand",function(){return f.Operand}),c.d(y,"Const",function(){return f.Const}),c.d(y,"BinaryOperand",function(){return f.BinaryOperand}),c.d(y,"Variable",function(){return f.Variable}),c.d(y,"FunctionOperand",function(){return f.FunctionOperand}),c.d(y,"ArrayOperand",function(){return f.ArrayOperand});var o=c("./src/conditionsParser.ts");c.d(y,"ConditionsParser",function(){return o.ConditionsParser});var r=c("./src/conditionProcessValue.ts");c.d(y,"ProcessValue",function(){return r.ProcessValue});var n=c("./src/jsonobject.ts");c.d(y,"JsonError",function(){return n.JsonError}),c.d(y,"JsonIncorrectTypeError",function(){return n.JsonIncorrectTypeError}),c.d(y,"JsonMetadata",function(){return n.JsonMetadata}),c.d(y,"JsonMetadataClass",function(){return n.JsonMetadataClass}),c.d(y,"JsonMissingTypeError",function(){return n.JsonMissingTypeError}),c.d(y,"JsonMissingTypeErrorBase",function(){return n.JsonMissingTypeErrorBase}),c.d(y,"JsonObject",function(){return n.JsonObject}),c.d(y,"JsonObjectProperty",function(){return n.JsonObjectProperty}),c.d(y,"JsonRequiredPropertyError",function(){return n.JsonRequiredPropertyError}),c.d(y,"JsonUnknownPropertyError",function(){return n.JsonUnknownPropertyError}),c.d(y,"Serializer",function(){return n.Serializer}),c.d(y,"property",function(){return n.property}),c.d(y,"propertyArray",function(){return n.propertyArray});var i=c("./src/question_matrixdropdownbase.ts");c.d(y,"MatrixDropdownCell",function(){return i.MatrixDropdownCell}),c.d(y,"MatrixDropdownRowModelBase",function(){return i.MatrixDropdownRowModelBase}),c.d(y,"QuestionMatrixDropdownModelBase",function(){return i.QuestionMatrixDropdownModelBase});var m=c("./src/question_matrixdropdowncolumn.ts");c.d(y,"MatrixDropdownColumn",function(){return m.MatrixDropdownColumn}),c.d(y,"matrixDropdownColumnTypes",function(){return m.matrixDropdownColumnTypes});var O=c("./src/question_matrixdropdownrendered.ts");c.d(y,"QuestionMatrixDropdownRenderedCell",function(){return O.QuestionMatrixDropdownRenderedCell}),c.d(y,"QuestionMatrixDropdownRenderedRow",function(){return O.QuestionMatrixDropdownRenderedRow}),c.d(y,"QuestionMatrixDropdownRenderedTable",function(){return O.QuestionMatrixDropdownRenderedTable});var w=c("./src/question_matrixdropdown.ts");c.d(y,"MatrixDropdownRowModel",function(){return w.MatrixDropdownRowModel}),c.d(y,"QuestionMatrixDropdownModel",function(){return w.QuestionMatrixDropdownModel});var x=c("./src/question_matrixdynamic.ts");c.d(y,"MatrixDynamicRowModel",function(){return x.MatrixDynamicRowModel}),c.d(y,"QuestionMatrixDynamicModel",function(){return x.QuestionMatrixDynamicModel});var l=c("./src/question_matrix.ts");c.d(y,"MatrixRowModel",function(){return l.MatrixRowModel}),c.d(y,"MatrixCells",function(){return l.MatrixCells}),c.d(y,"QuestionMatrixModel",function(){return l.QuestionMatrixModel});var t=c("./src/question_multipletext.ts");c.d(y,"MultipleTextItemModel",function(){return t.MultipleTextItemModel}),c.d(y,"QuestionMultipleTextModel",function(){return t.QuestionMultipleTextModel});var d=c("./src/panel.ts");c.d(y,"PanelModel",function(){return d.PanelModel}),c.d(y,"PanelModelBase",function(){return d.PanelModelBase}),c.d(y,"QuestionRowModel",function(){return d.QuestionRowModel});var v=c("./src/flowpanel.ts");c.d(y,"FlowPanelModel",function(){return v.FlowPanelModel});var E=c("./src/page.ts");c.d(y,"PageModel",function(){return E.PageModel}),c("./src/template-renderer.ts");var R=c("./src/defaultTitle.ts");c.d(y,"DefaultTitleModel",function(){return R.DefaultTitleModel});var S=c("./src/question.ts");c.d(y,"Question",function(){return S.Question});var A=c("./src/questionnonvalue.ts");c.d(y,"QuestionNonValue",function(){return A.QuestionNonValue});var L=c("./src/question_empty.ts");c.d(y,"QuestionEmptyModel",function(){return L.QuestionEmptyModel});var k=c("./src/question_baseselect.ts");c.d(y,"QuestionCheckboxBase",function(){return k.QuestionCheckboxBase}),c.d(y,"QuestionSelectBase",function(){return k.QuestionSelectBase});var N=c("./src/question_checkbox.ts");c.d(y,"QuestionCheckboxModel",function(){return N.QuestionCheckboxModel});var W=c("./src/question_tagbox.ts");c.d(y,"QuestionTagboxModel",function(){return W.QuestionTagboxModel});var U=c("./src/question_ranking.ts");c.d(y,"QuestionRankingModel",function(){return U.QuestionRankingModel});var J=c("./src/question_comment.ts");c.d(y,"QuestionCommentModel",function(){return J.QuestionCommentModel});var q=c("./src/question_dropdown.ts");c.d(y,"QuestionDropdownModel",function(){return q.QuestionDropdownModel});var K=c("./src/questionfactory.ts");c.d(y,"QuestionFactory",function(){return K.QuestionFactory}),c.d(y,"ElementFactory",function(){return K.ElementFactory});var $=c("./src/question_file.ts");c.d(y,"QuestionFileModel",function(){return $.QuestionFileModel});var Z=c("./src/question_html.ts");c.d(y,"QuestionHtmlModel",function(){return Z.QuestionHtmlModel});var ee=c("./src/question_radiogroup.ts");c.d(y,"QuestionRadiogroupModel",function(){return ee.QuestionRadiogroupModel});var G=c("./src/question_rating.ts");c.d(y,"QuestionRatingModel",function(){return G.QuestionRatingModel}),c.d(y,"RenderedRatingItem",function(){return G.RenderedRatingItem});var _=c("./src/question_expression.ts");c.d(y,"QuestionExpressionModel",function(){return _.QuestionExpressionModel});var te=c("./src/question_text.ts");c.d(y,"QuestionTextModel",function(){return te.QuestionTextModel});var re=c("./src/question_boolean.ts");c.d(y,"QuestionBooleanModel",function(){return re.QuestionBooleanModel});var oe=c("./src/question_imagepicker.ts");c.d(y,"QuestionImagePickerModel",function(){return oe.QuestionImagePickerModel}),c.d(y,"ImageItemValue",function(){return oe.ImageItemValue});var ae=c("./src/question_image.ts");c.d(y,"QuestionImageModel",function(){return ae.QuestionImageModel});var pe=c("./src/question_signaturepad.ts");c.d(y,"QuestionSignaturePadModel",function(){return pe.QuestionSignaturePadModel});var we=c("./src/question_paneldynamic.ts");c.d(y,"QuestionPanelDynamicModel",function(){return we.QuestionPanelDynamicModel}),c.d(y,"QuestionPanelDynamicItem",function(){return we.QuestionPanelDynamicItem});var xe=c("./src/surveytimer.ts");c.d(y,"SurveyTimer",function(){return xe.SurveyTimer});var Te=c("./src/surveyTimerModel.ts");c.d(y,"SurveyTimerModel",function(){return Te.SurveyTimerModel});var Ve=c("./src/surveyProgress.ts");c.d(y,"SurveyProgressModel",function(){return Ve.SurveyProgressModel});var Ie=c("./src/surveyProgressButtons.ts");c.d(y,"SurveyProgressButtonsModel",function(){return Ie.SurveyProgressButtonsModel});var Me=c("./src/survey.ts");c.d(y,"SurveyModel",function(){return Me.SurveyModel});var he=c("./src/trigger.ts");c.d(y,"SurveyTrigger",function(){return he.SurveyTrigger}),c.d(y,"SurveyTriggerComplete",function(){return he.SurveyTriggerComplete}),c.d(y,"SurveyTriggerSetValue",function(){return he.SurveyTriggerSetValue}),c.d(y,"SurveyTriggerVisible",function(){return he.SurveyTriggerVisible}),c.d(y,"SurveyTriggerCopyValue",function(){return he.SurveyTriggerCopyValue}),c.d(y,"SurveyTriggerRunExpression",function(){return he.SurveyTriggerRunExpression}),c.d(y,"Trigger",function(){return he.Trigger});var Re=c("./src/popup-survey.ts");c.d(y,"PopupSurveyModel",function(){return Re.PopupSurveyModel}),c.d(y,"SurveyWindowModel",function(){return Re.SurveyWindowModel});var Be=c("./src/textPreProcessor.ts");c.d(y,"TextPreProcessor",function(){return Be.TextPreProcessor});var Se=c("./src/dxSurveyService.ts");c.d(y,"dxSurveyService",function(){return Se.dxSurveyService});var ke=c("./src/localization/english.ts");c.d(y,"englishStrings",function(){return ke.englishStrings});var et=c("./src/surveyStrings.ts");c.d(y,"surveyLocalization",function(){return et.surveyLocalization}),c.d(y,"surveyStrings",function(){return et.surveyStrings});var tt=c("./src/questionCustomWidgets.ts");c.d(y,"QuestionCustomWidget",function(){return tt.QuestionCustomWidget}),c.d(y,"CustomWidgetCollection",function(){return tt.CustomWidgetCollection});var He=c("./src/question_custom.ts");c.d(y,"QuestionCustomModel",function(){return He.QuestionCustomModel}),c.d(y,"QuestionCompositeModel",function(){return He.QuestionCompositeModel}),c.d(y,"ComponentQuestionJSON",function(){return He.ComponentQuestionJSON}),c.d(y,"ComponentCollection",function(){return He.ComponentCollection});var ut=c("./src/stylesmanager.ts");c.d(y,"StylesManager",function(){return ut.StylesManager});var jt=c("./src/list.ts");c.d(y,"ListModel",function(){return jt.ListModel});var Nt=c("./src/multiSelectListModel.ts");c.d(y,"MultiSelectListModel",function(){return Nt.MultiSelectListModel});var Pt=c("./src/popup.ts");c.d(y,"PopupModel",function(){return Pt.PopupModel}),c.d(y,"createDialogOptions",function(){return Pt.createDialogOptions});var Ft=c("./src/popup-view-model.ts");c.d(y,"PopupBaseViewModel",function(){return Ft.PopupBaseViewModel});var Qt=c("./src/popup-dropdown-view-model.ts");c.d(y,"PopupDropdownViewModel",function(){return Qt.PopupDropdownViewModel});var qt=c("./src/popup-modal-view-model.ts");c.d(y,"PopupModalViewModel",function(){return qt.PopupModalViewModel});var Et=c("./src/popup-utils.ts");c.d(y,"createPopupViewModel",function(){return Et.createPopupViewModel}),c.d(y,"createPopupModalViewModel",function(){return Et.createPopupModalViewModel});var zt=c("./src/dropdownListModel.ts");c.d(y,"DropdownListModel",function(){return zt.DropdownListModel});var Wt=c("./src/dropdownMultiSelectListModel.ts");c.d(y,"DropdownMultiSelectListModel",function(){return Wt.DropdownMultiSelectListModel});var lt=c("./src/question_buttongroup.ts");c.d(y,"QuestionButtonGroupModel",function(){return lt.QuestionButtonGroupModel}),c.d(y,"ButtonGroupItemModel",function(){return lt.ButtonGroupItemModel}),c.d(y,"ButtonGroupItemValue",function(){return lt.ButtonGroupItemValue});var ct=c("./src/utils/devices.ts");c.d(y,"IsMobile",function(){return ct.IsMobile}),c.d(y,"IsTouch",function(){return ct.IsTouch});var Ne=c("./src/utils/utils.ts");c.d(y,"confirmAction",function(){return Ne.confirmAction}),c.d(y,"detectIEOrEdge",function(){return Ne.detectIEOrEdge}),c.d(y,"doKey2ClickUp",function(){return Ne.doKey2ClickUp}),c.d(y,"doKey2ClickDown",function(){return Ne.doKey2ClickDown}),c.d(y,"doKey2ClickBlur",function(){return Ne.doKey2ClickBlur}),c.d(y,"loadFileFromBase64",function(){return Ne.loadFileFromBase64}),c.d(y,"increaseHeightByContent",function(){return Ne.increaseHeightByContent}),c.d(y,"createSvg",function(){return Ne.createSvg}),c.d(y,"sanitizeEditableContent",function(){return Ne.sanitizeEditableContent});var Ut=c("./src/utils/cssClassBuilder.ts");c.d(y,"CssClassBuilder",function(){return Ut.CssClassBuilder});var Ht=c("./src/defaultCss/cssstandard.ts");c.d(y,"surveyCss",function(){return Ht.surveyCss});var $t=c("./src/dragdrop/survey-elements.ts");c.d(y,"DragDropSurveyElements",function(){return $t.DragDropSurveyElements});var Kt=c("./src/dragdrop/choices.ts");c.d(y,"DragDropChoices",function(){return Kt.DragDropChoices});var nt;nt="".concat("1.9.56");function Jt(Ot,Gt){if(nt!=Ot){var Yt="survey-core has version '"+nt+"' and "+Gt+" has version '"+Ot+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(Yt)}}},"./src/entries/core-wo-model.ts":function(D,y,c){c.r(y);var b=c("./src/entries/chunks/model.ts");c.d(y,"Version",function(){return b.Version}),c.d(y,"checkLibraryVersion",function(){return b.checkLibraryVersion}),c.d(y,"settings",function(){return b.settings}),c.d(y,"Helpers",function(){return b.Helpers}),c.d(y,"AnswerCountValidator",function(){return b.AnswerCountValidator}),c.d(y,"EmailValidator",function(){return b.EmailValidator}),c.d(y,"NumericValidator",function(){return b.NumericValidator}),c.d(y,"RegexValidator",function(){return b.RegexValidator}),c.d(y,"SurveyValidator",function(){return b.SurveyValidator}),c.d(y,"TextValidator",function(){return b.TextValidator}),c.d(y,"ValidatorResult",function(){return b.ValidatorResult}),c.d(y,"ExpressionValidator",function(){return b.ExpressionValidator}),c.d(y,"ValidatorRunner",function(){return b.ValidatorRunner}),c.d(y,"ItemValue",function(){return b.ItemValue}),c.d(y,"Base",function(){return b.Base}),c.d(y,"Event",function(){return b.Event}),c.d(y,"ArrayChanges",function(){return b.ArrayChanges}),c.d(y,"ComputedUpdater",function(){return b.ComputedUpdater}),c.d(y,"SurveyError",function(){return b.SurveyError}),c.d(y,"SurveyElementCore",function(){return b.SurveyElementCore}),c.d(y,"SurveyElement",function(){return b.SurveyElement}),c.d(y,"DragTypeOverMeEnum",function(){return b.DragTypeOverMeEnum}),c.d(y,"CalculatedValue",function(){return b.CalculatedValue}),c.d(y,"CustomError",function(){return b.CustomError}),c.d(y,"AnswerRequiredError",function(){return b.AnswerRequiredError}),c.d(y,"OneAnswerRequiredError",function(){return b.OneAnswerRequiredError}),c.d(y,"RequreNumericError",function(){return b.RequreNumericError}),c.d(y,"ExceedSizeError",function(){return b.ExceedSizeError}),c.d(y,"LocalizableString",function(){return b.LocalizableString}),c.d(y,"LocalizableStrings",function(){return b.LocalizableStrings}),c.d(y,"HtmlConditionItem",function(){return b.HtmlConditionItem}),c.d(y,"UrlConditionItem",function(){return b.UrlConditionItem}),c.d(y,"ChoicesRestful",function(){return b.ChoicesRestful}),c.d(y,"ChoicesRestfull",function(){return b.ChoicesRestfull}),c.d(y,"FunctionFactory",function(){return b.FunctionFactory}),c.d(y,"registerFunction",function(){return b.registerFunction}),c.d(y,"ConditionRunner",function(){return b.ConditionRunner}),c.d(y,"ExpressionRunner",function(){return b.ExpressionRunner}),c.d(y,"ExpressionExecutor",function(){return b.ExpressionExecutor}),c.d(y,"Operand",function(){return b.Operand}),c.d(y,"Const",function(){return b.Const}),c.d(y,"BinaryOperand",function(){return b.BinaryOperand}),c.d(y,"Variable",function(){return b.Variable}),c.d(y,"FunctionOperand",function(){return b.FunctionOperand}),c.d(y,"ArrayOperand",function(){return b.ArrayOperand}),c.d(y,"ConditionsParser",function(){return b.ConditionsParser}),c.d(y,"ProcessValue",function(){return b.ProcessValue}),c.d(y,"JsonError",function(){return b.JsonError}),c.d(y,"JsonIncorrectTypeError",function(){return b.JsonIncorrectTypeError}),c.d(y,"JsonMetadata",function(){return b.JsonMetadata}),c.d(y,"JsonMetadataClass",function(){return b.JsonMetadataClass}),c.d(y,"JsonMissingTypeError",function(){return b.JsonMissingTypeError}),c.d(y,"JsonMissingTypeErrorBase",function(){return b.JsonMissingTypeErrorBase}),c.d(y,"JsonObject",function(){return b.JsonObject}),c.d(y,"JsonObjectProperty",function(){return b.JsonObjectProperty}),c.d(y,"JsonRequiredPropertyError",function(){return b.JsonRequiredPropertyError}),c.d(y,"JsonUnknownPropertyError",function(){return b.JsonUnknownPropertyError}),c.d(y,"Serializer",function(){return b.Serializer}),c.d(y,"property",function(){return b.property}),c.d(y,"propertyArray",function(){return b.propertyArray}),c.d(y,"MatrixDropdownCell",function(){return b.MatrixDropdownCell}),c.d(y,"MatrixDropdownRowModelBase",function(){return b.MatrixDropdownRowModelBase}),c.d(y,"QuestionMatrixDropdownModelBase",function(){return b.QuestionMatrixDropdownModelBase}),c.d(y,"MatrixDropdownColumn",function(){return b.MatrixDropdownColumn}),c.d(y,"matrixDropdownColumnTypes",function(){return b.matrixDropdownColumnTypes}),c.d(y,"QuestionMatrixDropdownRenderedCell",function(){return b.QuestionMatrixDropdownRenderedCell}),c.d(y,"QuestionMatrixDropdownRenderedRow",function(){return b.QuestionMatrixDropdownRenderedRow}),c.d(y,"QuestionMatrixDropdownRenderedTable",function(){return b.QuestionMatrixDropdownRenderedTable}),c.d(y,"MatrixDropdownRowModel",function(){return b.MatrixDropdownRowModel}),c.d(y,"QuestionMatrixDropdownModel",function(){return b.QuestionMatrixDropdownModel}),c.d(y,"MatrixDynamicRowModel",function(){return b.MatrixDynamicRowModel}),c.d(y,"QuestionMatrixDynamicModel",function(){return b.QuestionMatrixDynamicModel}),c.d(y,"MatrixRowModel",function(){return b.MatrixRowModel}),c.d(y,"MatrixCells",function(){return b.MatrixCells}),c.d(y,"QuestionMatrixModel",function(){return b.QuestionMatrixModel}),c.d(y,"MultipleTextItemModel",function(){return b.MultipleTextItemModel}),c.d(y,"QuestionMultipleTextModel",function(){return b.QuestionMultipleTextModel}),c.d(y,"PanelModel",function(){return b.PanelModel}),c.d(y,"PanelModelBase",function(){return b.PanelModelBase}),c.d(y,"QuestionRowModel",function(){return b.QuestionRowModel}),c.d(y,"FlowPanelModel",function(){return b.FlowPanelModel}),c.d(y,"PageModel",function(){return b.PageModel}),c.d(y,"DefaultTitleModel",function(){return b.DefaultTitleModel}),c.d(y,"Question",function(){return b.Question}),c.d(y,"QuestionNonValue",function(){return b.QuestionNonValue}),c.d(y,"QuestionEmptyModel",function(){return b.QuestionEmptyModel}),c.d(y,"QuestionCheckboxBase",function(){return b.QuestionCheckboxBase}),c.d(y,"QuestionSelectBase",function(){return b.QuestionSelectBase}),c.d(y,"QuestionCheckboxModel",function(){return b.QuestionCheckboxModel}),c.d(y,"QuestionTagboxModel",function(){return b.QuestionTagboxModel}),c.d(y,"QuestionRankingModel",function(){return b.QuestionRankingModel}),c.d(y,"QuestionCommentModel",function(){return b.QuestionCommentModel}),c.d(y,"QuestionDropdownModel",function(){return b.QuestionDropdownModel}),c.d(y,"QuestionFactory",function(){return b.QuestionFactory}),c.d(y,"ElementFactory",function(){return b.ElementFactory}),c.d(y,"QuestionFileModel",function(){return b.QuestionFileModel}),c.d(y,"QuestionHtmlModel",function(){return b.QuestionHtmlModel}),c.d(y,"QuestionRadiogroupModel",function(){return b.QuestionRadiogroupModel}),c.d(y,"QuestionRatingModel",function(){return b.QuestionRatingModel}),c.d(y,"RenderedRatingItem",function(){return b.RenderedRatingItem}),c.d(y,"QuestionExpressionModel",function(){return b.QuestionExpressionModel}),c.d(y,"QuestionTextModel",function(){return b.QuestionTextModel}),c.d(y,"QuestionBooleanModel",function(){return b.QuestionBooleanModel}),c.d(y,"QuestionImagePickerModel",function(){return b.QuestionImagePickerModel}),c.d(y,"ImageItemValue",function(){return b.ImageItemValue}),c.d(y,"QuestionImageModel",function(){return b.QuestionImageModel}),c.d(y,"QuestionSignaturePadModel",function(){return b.QuestionSignaturePadModel}),c.d(y,"QuestionPanelDynamicModel",function(){return b.QuestionPanelDynamicModel}),c.d(y,"QuestionPanelDynamicItem",function(){return b.QuestionPanelDynamicItem}),c.d(y,"SurveyTimer",function(){return b.SurveyTimer}),c.d(y,"SurveyTimerModel",function(){return b.SurveyTimerModel}),c.d(y,"SurveyProgressModel",function(){return b.SurveyProgressModel}),c.d(y,"SurveyProgressButtonsModel",function(){return b.SurveyProgressButtonsModel}),c.d(y,"SurveyModel",function(){return b.SurveyModel}),c.d(y,"SurveyTrigger",function(){return b.SurveyTrigger}),c.d(y,"SurveyTriggerComplete",function(){return b.SurveyTriggerComplete}),c.d(y,"SurveyTriggerSetValue",function(){return b.SurveyTriggerSetValue}),c.d(y,"SurveyTriggerVisible",function(){return b.SurveyTriggerVisible}),c.d(y,"SurveyTriggerCopyValue",function(){return b.SurveyTriggerCopyValue}),c.d(y,"SurveyTriggerRunExpression",function(){return b.SurveyTriggerRunExpression}),c.d(y,"Trigger",function(){return b.Trigger}),c.d(y,"PopupSurveyModel",function(){return b.PopupSurveyModel}),c.d(y,"SurveyWindowModel",function(){return b.SurveyWindowModel}),c.d(y,"TextPreProcessor",function(){return b.TextPreProcessor}),c.d(y,"dxSurveyService",function(){return b.dxSurveyService}),c.d(y,"englishStrings",function(){return b.englishStrings}),c.d(y,"surveyLocalization",function(){return b.surveyLocalization}),c.d(y,"surveyStrings",function(){return b.surveyStrings}),c.d(y,"QuestionCustomWidget",function(){return b.QuestionCustomWidget}),c.d(y,"CustomWidgetCollection",function(){return b.CustomWidgetCollection}),c.d(y,"QuestionCustomModel",function(){return b.QuestionCustomModel}),c.d(y,"QuestionCompositeModel",function(){return b.QuestionCompositeModel}),c.d(y,"ComponentQuestionJSON",function(){return b.ComponentQuestionJSON}),c.d(y,"ComponentCollection",function(){return b.ComponentCollection}),c.d(y,"StylesManager",function(){return b.StylesManager}),c.d(y,"ListModel",function(){return b.ListModel}),c.d(y,"MultiSelectListModel",function(){return b.MultiSelectListModel}),c.d(y,"PopupModel",function(){return b.PopupModel}),c.d(y,"createDialogOptions",function(){return b.createDialogOptions}),c.d(y,"PopupBaseViewModel",function(){return b.PopupBaseViewModel}),c.d(y,"PopupDropdownViewModel",function(){return b.PopupDropdownViewModel}),c.d(y,"PopupModalViewModel",function(){return b.PopupModalViewModel}),c.d(y,"createPopupViewModel",function(){return b.createPopupViewModel}),c.d(y,"createPopupModalViewModel",function(){return b.createPopupModalViewModel}),c.d(y,"DropdownListModel",function(){return b.DropdownListModel}),c.d(y,"DropdownMultiSelectListModel",function(){return b.DropdownMultiSelectListModel}),c.d(y,"QuestionButtonGroupModel",function(){return b.QuestionButtonGroupModel}),c.d(y,"ButtonGroupItemModel",function(){return b.ButtonGroupItemModel}),c.d(y,"ButtonGroupItemValue",function(){return b.ButtonGroupItemValue}),c.d(y,"IsMobile",function(){return b.IsMobile}),c.d(y,"IsTouch",function(){return b.IsTouch}),c.d(y,"confirmAction",function(){return b.confirmAction}),c.d(y,"detectIEOrEdge",function(){return b.detectIEOrEdge}),c.d(y,"doKey2ClickUp",function(){return b.doKey2ClickUp}),c.d(y,"doKey2ClickDown",function(){return b.doKey2ClickDown}),c.d(y,"doKey2ClickBlur",function(){return b.doKey2ClickBlur}),c.d(y,"loadFileFromBase64",function(){return b.loadFileFromBase64}),c.d(y,"increaseHeightByContent",function(){return b.increaseHeightByContent}),c.d(y,"createSvg",function(){return b.createSvg}),c.d(y,"sanitizeEditableContent",function(){return b.sanitizeEditableContent}),c.d(y,"CssClassBuilder",function(){return b.CssClassBuilder}),c.d(y,"surveyCss",function(){return b.surveyCss}),c.d(y,"DragDropSurveyElements",function(){return b.DragDropSurveyElements}),c.d(y,"DragDropChoices",function(){return b.DragDropChoices});var C=c("./src/defaultCss/cssstandard.ts");c.d(y,"defaultStandardCss",function(){return C.defaultStandardCss});var I=c("./src/defaultCss/cssbootstrap.ts");c.d(y,"defaultBootstrapCss",function(){return I.defaultBootstrapCss});var M=c("./src/defaultCss/cssbootstrapmaterial.ts");c.d(y,"defaultBootstrapMaterialCss",function(){return M.defaultBootstrapMaterialCss});var T=c("./src/defaultCss/defaultV2Css.ts");c.d(y,"defaultV2Css",function(){return T.defaultV2Css});var V=c("./src/defaultCss/cssmodern.ts");c.d(y,"modernCss",function(){return V.modernCss});var P=c("./src/svgbundle.ts");c.d(y,"SvgIconRegistry",function(){return P.SvgIconRegistry}),c.d(y,"SvgRegistry",function(){return P.SvgRegistry}),c.d(y,"SvgBundleViewModel",function(){return P.SvgBundleViewModel});var a=c("./src/rendererFactory.ts");c.d(y,"RendererFactory",function(){return a.RendererFactory});var p=c("./src/utils/responsivity-manager.ts");c.d(y,"ResponsivityManager",function(){return p.ResponsivityManager}),c.d(y,"VerticalResponsivityManager",function(){return p.VerticalResponsivityManager});var u=c("./src/utils/utils.ts");c.d(y,"unwrap",function(){return u.unwrap});var s=c("./src/actions/action.ts");c.d(y,"createDropdownActionModel",function(){return s.createDropdownActionModel}),c.d(y,"createDropdownActionModelAdvanced",function(){return s.createDropdownActionModelAdvanced}),c.d(y,"Action",function(){return s.Action}),c.d(y,"ActionDropdownViewModel",function(){return s.ActionDropdownViewModel});var e=c("./src/actions/adaptive-container.ts");c.d(y,"AdaptiveActionContainer",function(){return e.AdaptiveActionContainer});var g=c("./src/actions/container.ts");c.d(y,"defaultActionBarCss",function(){return g.defaultActionBarCss}),c.d(y,"ActionContainer",function(){return g.ActionContainer});var h=c("./src/utils/tooltip.ts");c.d(y,"TooltipManager",function(){return h.TooltipManager});var f=c("./src/utils/dragOrClickHelper.ts");c.d(y,"DragOrClickHelper",function(){return f.DragOrClickHelper})},"./src/entries/core.ts":function(D,y,c){c.r(y);var b=c("./src/entries/core-wo-model.ts");c.d(y,"Version",function(){return b.Version}),c.d(y,"checkLibraryVersion",function(){return b.checkLibraryVersion}),c.d(y,"settings",function(){return b.settings}),c.d(y,"Helpers",function(){return b.Helpers}),c.d(y,"AnswerCountValidator",function(){return b.AnswerCountValidator}),c.d(y,"EmailValidator",function(){return b.EmailValidator}),c.d(y,"NumericValidator",function(){return b.NumericValidator}),c.d(y,"RegexValidator",function(){return b.RegexValidator}),c.d(y,"SurveyValidator",function(){return b.SurveyValidator}),c.d(y,"TextValidator",function(){return b.TextValidator}),c.d(y,"ValidatorResult",function(){return b.ValidatorResult}),c.d(y,"ExpressionValidator",function(){return b.ExpressionValidator}),c.d(y,"ValidatorRunner",function(){return b.ValidatorRunner}),c.d(y,"ItemValue",function(){return b.ItemValue}),c.d(y,"Base",function(){return b.Base}),c.d(y,"Event",function(){return b.Event}),c.d(y,"ArrayChanges",function(){return b.ArrayChanges}),c.d(y,"ComputedUpdater",function(){return b.ComputedUpdater}),c.d(y,"SurveyError",function(){return b.SurveyError}),c.d(y,"SurveyElementCore",function(){return b.SurveyElementCore}),c.d(y,"SurveyElement",function(){return b.SurveyElement}),c.d(y,"DragTypeOverMeEnum",function(){return b.DragTypeOverMeEnum}),c.d(y,"CalculatedValue",function(){return b.CalculatedValue}),c.d(y,"CustomError",function(){return b.CustomError}),c.d(y,"AnswerRequiredError",function(){return b.AnswerRequiredError}),c.d(y,"OneAnswerRequiredError",function(){return b.OneAnswerRequiredError}),c.d(y,"RequreNumericError",function(){return b.RequreNumericError}),c.d(y,"ExceedSizeError",function(){return b.ExceedSizeError}),c.d(y,"LocalizableString",function(){return b.LocalizableString}),c.d(y,"LocalizableStrings",function(){return b.LocalizableStrings}),c.d(y,"HtmlConditionItem",function(){return b.HtmlConditionItem}),c.d(y,"UrlConditionItem",function(){return b.UrlConditionItem}),c.d(y,"ChoicesRestful",function(){return b.ChoicesRestful}),c.d(y,"ChoicesRestfull",function(){return b.ChoicesRestfull}),c.d(y,"FunctionFactory",function(){return b.FunctionFactory}),c.d(y,"registerFunction",function(){return b.registerFunction}),c.d(y,"ConditionRunner",function(){return b.ConditionRunner}),c.d(y,"ExpressionRunner",function(){return b.ExpressionRunner}),c.d(y,"ExpressionExecutor",function(){return b.ExpressionExecutor}),c.d(y,"Operand",function(){return b.Operand}),c.d(y,"Const",function(){return b.Const}),c.d(y,"BinaryOperand",function(){return b.BinaryOperand}),c.d(y,"Variable",function(){return b.Variable}),c.d(y,"FunctionOperand",function(){return b.FunctionOperand}),c.d(y,"ArrayOperand",function(){return b.ArrayOperand}),c.d(y,"ConditionsParser",function(){return b.ConditionsParser}),c.d(y,"ProcessValue",function(){return b.ProcessValue}),c.d(y,"JsonError",function(){return b.JsonError}),c.d(y,"JsonIncorrectTypeError",function(){return b.JsonIncorrectTypeError}),c.d(y,"JsonMetadata",function(){return b.JsonMetadata}),c.d(y,"JsonMetadataClass",function(){return b.JsonMetadataClass}),c.d(y,"JsonMissingTypeError",function(){return b.JsonMissingTypeError}),c.d(y,"JsonMissingTypeErrorBase",function(){return b.JsonMissingTypeErrorBase}),c.d(y,"JsonObject",function(){return b.JsonObject}),c.d(y,"JsonObjectProperty",function(){return b.JsonObjectProperty}),c.d(y,"JsonRequiredPropertyError",function(){return b.JsonRequiredPropertyError}),c.d(y,"JsonUnknownPropertyError",function(){return b.JsonUnknownPropertyError}),c.d(y,"Serializer",function(){return b.Serializer}),c.d(y,"property",function(){return b.property}),c.d(y,"propertyArray",function(){return b.propertyArray}),c.d(y,"MatrixDropdownCell",function(){return b.MatrixDropdownCell}),c.d(y,"MatrixDropdownRowModelBase",function(){return b.MatrixDropdownRowModelBase}),c.d(y,"QuestionMatrixDropdownModelBase",function(){return b.QuestionMatrixDropdownModelBase}),c.d(y,"MatrixDropdownColumn",function(){return b.MatrixDropdownColumn}),c.d(y,"matrixDropdownColumnTypes",function(){return b.matrixDropdownColumnTypes}),c.d(y,"QuestionMatrixDropdownRenderedCell",function(){return b.QuestionMatrixDropdownRenderedCell}),c.d(y,"QuestionMatrixDropdownRenderedRow",function(){return b.QuestionMatrixDropdownRenderedRow}),c.d(y,"QuestionMatrixDropdownRenderedTable",function(){return b.QuestionMatrixDropdownRenderedTable}),c.d(y,"MatrixDropdownRowModel",function(){return b.MatrixDropdownRowModel}),c.d(y,"QuestionMatrixDropdownModel",function(){return b.QuestionMatrixDropdownModel}),c.d(y,"MatrixDynamicRowModel",function(){return b.MatrixDynamicRowModel}),c.d(y,"QuestionMatrixDynamicModel",function(){return b.QuestionMatrixDynamicModel}),c.d(y,"MatrixRowModel",function(){return b.MatrixRowModel}),c.d(y,"MatrixCells",function(){return b.MatrixCells}),c.d(y,"QuestionMatrixModel",function(){return b.QuestionMatrixModel}),c.d(y,"MultipleTextItemModel",function(){return b.MultipleTextItemModel}),c.d(y,"QuestionMultipleTextModel",function(){return b.QuestionMultipleTextModel}),c.d(y,"PanelModel",function(){return b.PanelModel}),c.d(y,"PanelModelBase",function(){return b.PanelModelBase}),c.d(y,"QuestionRowModel",function(){return b.QuestionRowModel}),c.d(y,"FlowPanelModel",function(){return b.FlowPanelModel}),c.d(y,"PageModel",function(){return b.PageModel}),c.d(y,"DefaultTitleModel",function(){return b.DefaultTitleModel}),c.d(y,"Question",function(){return b.Question}),c.d(y,"QuestionNonValue",function(){return b.QuestionNonValue}),c.d(y,"QuestionEmptyModel",function(){return b.QuestionEmptyModel}),c.d(y,"QuestionCheckboxBase",function(){return b.QuestionCheckboxBase}),c.d(y,"QuestionSelectBase",function(){return b.QuestionSelectBase}),c.d(y,"QuestionCheckboxModel",function(){return b.QuestionCheckboxModel}),c.d(y,"QuestionTagboxModel",function(){return b.QuestionTagboxModel}),c.d(y,"QuestionRankingModel",function(){return b.QuestionRankingModel}),c.d(y,"QuestionCommentModel",function(){return b.QuestionCommentModel}),c.d(y,"QuestionDropdownModel",function(){return b.QuestionDropdownModel}),c.d(y,"QuestionFactory",function(){return b.QuestionFactory}),c.d(y,"ElementFactory",function(){return b.ElementFactory}),c.d(y,"QuestionFileModel",function(){return b.QuestionFileModel}),c.d(y,"QuestionHtmlModel",function(){return b.QuestionHtmlModel}),c.d(y,"QuestionRadiogroupModel",function(){return b.QuestionRadiogroupModel}),c.d(y,"QuestionRatingModel",function(){return b.QuestionRatingModel}),c.d(y,"RenderedRatingItem",function(){return b.RenderedRatingItem}),c.d(y,"QuestionExpressionModel",function(){return b.QuestionExpressionModel}),c.d(y,"QuestionTextModel",function(){return b.QuestionTextModel}),c.d(y,"QuestionBooleanModel",function(){return b.QuestionBooleanModel}),c.d(y,"QuestionImagePickerModel",function(){return b.QuestionImagePickerModel}),c.d(y,"ImageItemValue",function(){return b.ImageItemValue}),c.d(y,"QuestionImageModel",function(){return b.QuestionImageModel}),c.d(y,"QuestionSignaturePadModel",function(){return b.QuestionSignaturePadModel}),c.d(y,"QuestionPanelDynamicModel",function(){return b.QuestionPanelDynamicModel}),c.d(y,"QuestionPanelDynamicItem",function(){return b.QuestionPanelDynamicItem}),c.d(y,"SurveyTimer",function(){return b.SurveyTimer}),c.d(y,"SurveyTimerModel",function(){return b.SurveyTimerModel}),c.d(y,"SurveyProgressModel",function(){return b.SurveyProgressModel}),c.d(y,"SurveyProgressButtonsModel",function(){return b.SurveyProgressButtonsModel}),c.d(y,"SurveyModel",function(){return b.SurveyModel}),c.d(y,"SurveyTrigger",function(){return b.SurveyTrigger}),c.d(y,"SurveyTriggerComplete",function(){return b.SurveyTriggerComplete}),c.d(y,"SurveyTriggerSetValue",function(){return b.SurveyTriggerSetValue}),c.d(y,"SurveyTriggerVisible",function(){return b.SurveyTriggerVisible}),c.d(y,"SurveyTriggerCopyValue",function(){return b.SurveyTriggerCopyValue}),c.d(y,"SurveyTriggerRunExpression",function(){return b.SurveyTriggerRunExpression}),c.d(y,"Trigger",function(){return b.Trigger}),c.d(y,"PopupSurveyModel",function(){return b.PopupSurveyModel}),c.d(y,"SurveyWindowModel",function(){return b.SurveyWindowModel}),c.d(y,"TextPreProcessor",function(){return b.TextPreProcessor}),c.d(y,"dxSurveyService",function(){return b.dxSurveyService}),c.d(y,"englishStrings",function(){return b.englishStrings}),c.d(y,"surveyLocalization",function(){return b.surveyLocalization}),c.d(y,"surveyStrings",function(){return b.surveyStrings}),c.d(y,"QuestionCustomWidget",function(){return b.QuestionCustomWidget}),c.d(y,"CustomWidgetCollection",function(){return b.CustomWidgetCollection}),c.d(y,"QuestionCustomModel",function(){return b.QuestionCustomModel}),c.d(y,"QuestionCompositeModel",function(){return b.QuestionCompositeModel}),c.d(y,"ComponentQuestionJSON",function(){return b.ComponentQuestionJSON}),c.d(y,"ComponentCollection",function(){return b.ComponentCollection}),c.d(y,"StylesManager",function(){return b.StylesManager}),c.d(y,"ListModel",function(){return b.ListModel}),c.d(y,"MultiSelectListModel",function(){return b.MultiSelectListModel}),c.d(y,"PopupModel",function(){return b.PopupModel}),c.d(y,"createDialogOptions",function(){return b.createDialogOptions}),c.d(y,"PopupBaseViewModel",function(){return b.PopupBaseViewModel}),c.d(y,"PopupDropdownViewModel",function(){return b.PopupDropdownViewModel}),c.d(y,"PopupModalViewModel",function(){return b.PopupModalViewModel}),c.d(y,"createPopupViewModel",function(){return b.createPopupViewModel}),c.d(y,"createPopupModalViewModel",function(){return b.createPopupModalViewModel}),c.d(y,"DropdownListModel",function(){return b.DropdownListModel}),c.d(y,"DropdownMultiSelectListModel",function(){return b.DropdownMultiSelectListModel}),c.d(y,"QuestionButtonGroupModel",function(){return b.QuestionButtonGroupModel}),c.d(y,"ButtonGroupItemModel",function(){return b.ButtonGroupItemModel}),c.d(y,"ButtonGroupItemValue",function(){return b.ButtonGroupItemValue}),c.d(y,"IsMobile",function(){return b.IsMobile}),c.d(y,"IsTouch",function(){return b.IsTouch}),c.d(y,"confirmAction",function(){return b.confirmAction}),c.d(y,"detectIEOrEdge",function(){return b.detectIEOrEdge}),c.d(y,"doKey2ClickUp",function(){return b.doKey2ClickUp}),c.d(y,"doKey2ClickDown",function(){return b.doKey2ClickDown}),c.d(y,"doKey2ClickBlur",function(){return b.doKey2ClickBlur}),c.d(y,"loadFileFromBase64",function(){return b.loadFileFromBase64}),c.d(y,"increaseHeightByContent",function(){return b.increaseHeightByContent}),c.d(y,"createSvg",function(){return b.createSvg}),c.d(y,"sanitizeEditableContent",function(){return b.sanitizeEditableContent}),c.d(y,"CssClassBuilder",function(){return b.CssClassBuilder}),c.d(y,"surveyCss",function(){return b.surveyCss}),c.d(y,"DragDropSurveyElements",function(){return b.DragDropSurveyElements}),c.d(y,"DragDropChoices",function(){return b.DragDropChoices}),c.d(y,"defaultStandardCss",function(){return b.defaultStandardCss}),c.d(y,"defaultBootstrapCss",function(){return b.defaultBootstrapCss}),c.d(y,"defaultBootstrapMaterialCss",function(){return b.defaultBootstrapMaterialCss}),c.d(y,"defaultV2Css",function(){return b.defaultV2Css}),c.d(y,"modernCss",function(){return b.modernCss}),c.d(y,"SvgIconRegistry",function(){return b.SvgIconRegistry}),c.d(y,"SvgRegistry",function(){return b.SvgRegistry}),c.d(y,"SvgBundleViewModel",function(){return b.SvgBundleViewModel}),c.d(y,"RendererFactory",function(){return b.RendererFactory}),c.d(y,"ResponsivityManager",function(){return b.ResponsivityManager}),c.d(y,"VerticalResponsivityManager",function(){return b.VerticalResponsivityManager}),c.d(y,"unwrap",function(){return b.unwrap}),c.d(y,"createDropdownActionModel",function(){return b.createDropdownActionModel}),c.d(y,"createDropdownActionModelAdvanced",function(){return b.createDropdownActionModelAdvanced}),c.d(y,"Action",function(){return b.Action}),c.d(y,"ActionDropdownViewModel",function(){return b.ActionDropdownViewModel}),c.d(y,"AdaptiveActionContainer",function(){return b.AdaptiveActionContainer}),c.d(y,"defaultActionBarCss",function(){return b.defaultActionBarCss}),c.d(y,"ActionContainer",function(){return b.ActionContainer}),c.d(y,"TooltipManager",function(){return b.TooltipManager}),c.d(y,"DragOrClickHelper",function(){return b.DragOrClickHelper});var C=c("./src/survey.ts");c.d(y,"Model",function(){return C.SurveyModel})},"./src/error.ts":function(D,y,c){c.r(y),c.d(y,"AnswerRequiredError",function(){return M}),c.d(y,"OneAnswerRequiredError",function(){return T}),c.d(y,"RequreNumericError",function(){return V}),c.d(y,"ExceedSizeError",function(){return P}),c.d(y,"WebRequestError",function(){return a}),c.d(y,"WebRequestEmptyError",function(){return p}),c.d(y,"OtherEmptyError",function(){return u}),c.d(y,"UploadingFileError",function(){return s}),c.d(y,"RequiredInAllRowsError",function(){return e}),c.d(y,"MinRowCountError",function(){return g}),c.d(y,"KeyDuplicationError",function(){return h}),c.d(y,"CustomError",function(){return f});var b=c("./src/surveyStrings.ts"),C=c("./src/survey-error.ts"),I=function(){var o=function(r,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(i[O]=m[O])},o(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");o(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(o){I(r,o);function r(n,i){n===void 0&&(n=null),i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"required"},r.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},r}(C.SurveyError),T=function(o){I(r,o);function r(n,i){n===void 0&&(n=null),i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"requireoneanswer"},r.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},r}(C.SurveyError),V=function(o){I(r,o);function r(n,i){n===void 0&&(n=null),i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"requirenumeric"},r.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},r}(C.SurveyError),P=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,null,i)||this;return m.maxSize=n,m.locText.text=m.getText(),m}return r.prototype.getErrorType=function(){return"exceedsize"},r.prototype.getDefaultText=function(){return b.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},r.prototype.getTextSize=function(){var n=["Bytes","KB","MB","GB","TB"],i=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var m=Math.floor(Math.log(this.maxSize)/Math.log(1024)),O=this.maxSize/Math.pow(1024,m);return O.toFixed(i[m])+" "+n[m]},r}(C.SurveyError),a=function(o){I(r,o);function r(n,i,m){m===void 0&&(m=null);var O=o.call(this,null,m)||this;return O.status=n,O.response=i,O}return r.prototype.getErrorType=function(){return"webrequest"},r.prototype.getDefaultText=function(){var n=this.getLocalizationString("urlRequestError");return n?n.format(this.status,this.response):""},r}(C.SurveyError),p=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"webrequestempty"},r.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},r}(C.SurveyError),u=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"otherempty"},r.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},r}(C.SurveyError),s=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"uploadingfile"},r.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},r}(C.SurveyError),e=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"requiredinallrowserror"},r.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},r}(C.SurveyError),g=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,null,i)||this;return m.minRowCount=n,m}return r.prototype.getErrorType=function(){return"minrowcounterror"},r.prototype.getDefaultText=function(){return b.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},r}(C.SurveyError),h=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"keyduplicationerror"},r.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},r}(C.SurveyError),f=function(o){I(r,o);function r(n,i){i===void 0&&(i=null);var m=o.call(this,n,i)||this;return m.text=n,m}return r.prototype.getErrorType=function(){return"custom"},r}(C.SurveyError)},"./src/expressionItems.ts":function(D,y,c){c.r(y),c.d(y,"ExpressionItem",function(){return T}),c.d(y,"HtmlConditionItem",function(){return V}),c.d(y,"UrlConditionItem",function(){return P});var b=c("./src/jsonobject.ts"),C=c("./src/base.ts"),I=c("./src/conditions.ts"),M=function(){var a=function(p,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(s[g]=e[g])},a(p,u)};return function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(p,u);function s(){this.constructor=p}p.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),T=function(a){M(p,a);function p(u){u===void 0&&(u=null);var s=a.call(this)||this;return s.createLocalizableString("html",s),s.expression=u,s}return p.prototype.getType=function(){return"expressionitem"},p.prototype.runCondition=function(u,s){return this.expression?new I.ConditionRunner(this.expression).run(u,s):!1},Object.defineProperty(p.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(u){this.setPropertyValue("expression",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),p.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},p.prototype.getMarkdownHtml=function(u,s){return this.locOwner?this.locOwner.getMarkdownHtml(u,s):void 0},p.prototype.getRenderer=function(u){return this.locOwner?this.locOwner.getRenderer(u):null},p.prototype.getRendererContext=function(u){return this.locOwner?this.locOwner.getRendererContext(u):u},p.prototype.getProcessedText=function(u){return this.locOwner?this.locOwner.getProcessedText(u):u},p.prototype.getSurvey=function(u){return this.locOwner},p}(C.Base),V=function(a){M(p,a);function p(u,s){u===void 0&&(u=null),s===void 0&&(s=null);var e=a.call(this,u)||this;return e.createLocalizableString("html",e),e.html=s,e}return p.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(p.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(u){this.setLocalizableStringText("html",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),p}(T),P=function(a){M(p,a);function p(u,s){u===void 0&&(u=null),s===void 0&&(s=null);var e=a.call(this,u)||this;return e.createLocalizableString("url",e),e.url=s,e}return p.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(p.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(u){this.setLocalizableStringText("url",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),p}(T);b.Serializer.addClass("expressionitem",["expression:condition"],function(){return new T},"base"),b.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new V},"expressionitem"),b.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new P},"expressionitem")},"./src/expressions/expressionParser.ts":function(D,y,c){c.r(y),c.d(y,"SyntaxError",function(){return I}),c.d(y,"parse",function(){return T});var b=c("./src/expressions/expressions.ts"),C=function(){var V=function(P,a){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,u){p.__proto__=u}||function(p,u){for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&(p[s]=u[s])},V(P,a)};return function(P,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");V(P,a);function p(){this.constructor=P}P.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}(),I=function(V){C(P,V);function P(a,p,u,s){var e=V.call(this)||this;return e.message=a,e.expected=p,e.found=u,e.location=s,e.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(e,P),e}return P.buildMessage=function(a,p){function u(o){return o.charCodeAt(0).toString(16).toUpperCase()}function s(o){return o.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(r){return"\\x0"+u(r)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(r){return"\\x"+u(r)})}function e(o){return o.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(r){return"\\x0"+u(r)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(r){return"\\x"+u(r)})}function g(o){switch(o.type){case"literal":return'"'+s(o.text)+'"';case"class":var r=o.parts.map(function(n){return Array.isArray(n)?e(n[0])+"-"+e(n[1]):e(n)});return"["+(o.inverted?"^":"")+r+"]";case"any":return"any character";case"end":return"end of input";case"other":return o.description}}function h(o){var r=o.map(g),n,i;if(r.sort(),r.length>0){for(n=1,i=1;n=",R=fe(">=",!1),S="greaterorequal",A=fe("greaterorequal",!0),L=function(){return"greaterorequal"},k="==",N=fe("==",!1),W="equal",U=fe("equal",!0),J=function(){return"equal"},q="=",K=fe("=",!1),$="!=",Z=fe("!=",!1),ee="notequal",G=fe("notequal",!0),_=function(){return"notequal"},te="<",re=fe("<",!1),oe="less",ae=fe("less",!0),pe=function(){return"less"},we=">",xe=fe(">",!1),Te="greater",Ve=fe("greater",!0),Ie=function(){return"greater"},Me="+",he=fe("+",!1),Re=function(){return"plus"},Be="-",Se=fe("-",!1),ke=function(){return"minus"},et="*",tt=fe("*",!1),He=function(){return"mul"},ut="/",jt=fe("/",!1),Nt=function(){return"div"},Pt="%",Ft=fe("%",!1),Qt=function(){return"mod"},qt="^",Et=fe("^",!1),zt="power",Wt=fe("power",!0),lt=function(){return"power"},ct="*=",Ne=fe("*=",!1),Ut="contains",Ht=fe("contains",!0),$t="contain",Kt=fe("contain",!0),nt=function(){return"contains"},Jt="notcontains",Ot=fe("notcontains",!0),Gt="notcontain",Yt=fe("notcontain",!0),er=function(){return"notcontains"},tr="anyof",nr=fe("anyof",!0),or=function(){return"anyof"},rr="allof",ir=fe("allof",!0),sr=function(){return"allof"},On="(",xn=fe("(",!1),Vn=")",wn=fe(")",!1),ar=function(B){return B},ur=function(B,Q){return new b.FunctionOperand(B,Q)},lr="!",cr=fe("!",!1),dr="negate",fr=fe("negate",!0),pr=function(B){return new b.UnaryOperand(B,"negate")},hr=function(B,Q){return new b.UnaryOperand(B,Q)},gr="empty",mr=fe("empty",!0),vr=function(){return"empty"},yr="notempty",br=fe("notempty",!0),Cr=function(){return"notempty"},Tn="undefined",Pr=fe("undefined",!1),In="null",Er=fe("null",!1),Or=function(){return null},xr=function(B){return new b.Const(B)},Vr="{",wr=fe("{",!1),Tr="}",Ir=fe("}",!1),Mr=function(B){return new b.Variable(B)},Zt=function(B){return B},Mn="''",Rr=fe("''",!1),Rn=function(){return""},Sn='""',Sr=fe('""',!1),Dn="'",An=fe("'",!1),Ln=function(B){return"'"+B+"'"},Bn='"',kn=fe('"',!1),Dr="[",Ar=fe("[",!1),Lr="]",Br=fe("]",!1),kr=function(B){return B},jn=",",Nn=fe(",",!1),jr=function(B,Q){if(B==null)return new b.ArrayOperand([]);var Y=[B];if(Array.isArray(Q))for(var H=xi(Q),X=3;XQe&&(Qe=j,_t=[]),_t.push(B))}function pi(B,Q,Y){return new I(I.buildMessage(B,Q),B,Q,Y)}function Ge(){var B,Q,Y,H,X,ne,se,ce,Ce,Ee=j*34+0,un=le[Ee];if(un)return j=un.nextPos,un.result;if(B=j,Q=me(),Q!==a)if(Y=en(),Y!==a){for(H=[],X=j,ne=me(),ne!==a?(se=_n(),se!==a?(ce=me(),ce!==a?(Ce=en(),Ce!==a?(ne=[ne,se,ce,Ce],X=ne):(j=X,X=a)):(j=X,X=a)):(j=X,X=a)):(j=X,X=a);X!==a;)H.push(X),X=j,ne=me(),ne!==a?(se=_n(),se!==a?(ce=me(),ce!==a?(Ce=en(),Ce!==a?(ne=[ne,se,ce,Ce],X=ne):(j=X,X=a)):(j=X,X=a)):(j=X,X=a)):(j=X,X=a);H!==a?(X=me(),X!==a?(de=B,Q=s(Y,H),B=Q):(j=B,B=a)):(j=B,B=a)}else j=B,B=a;else j=B,B=a;return le[Ee]={nextPos:j,result:B},B}function _n(){var B,Q,Y=j*34+1,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,2)===e?(Q=e,j+=2):(Q=a,ie===0&&ue(g)),Q===a&&(V.substr(j,2).toLowerCase()===h?(Q=V.substr(j,2),j+=2):(Q=a,ie===0&&ue(f))),Q!==a&&(de=B,Q=o()),B=Q,le[Y]={nextPos:j,result:B},B)}function en(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+2,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=tn(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=eo(),ne!==a?(se=me(),se!==a?(ce=tn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=eo(),ne!==a?(se=me(),se!==a?(ce=tn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=s(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function eo(){var B,Q,Y=j*34+3,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,2)===r?(Q=r,j+=2):(Q=a,ie===0&&ue(n)),Q===a&&(V.substr(j,3).toLowerCase()===i?(Q=V.substr(j,3),j+=3):(Q=a,ie===0&&ue(m))),Q!==a&&(de=B,Q=O()),B=Q,le[Y]={nextPos:j,result:B},B)}function tn(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+4,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=nn(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=to(),ne!==a?(se=me(),se!==a?(ce=nn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=to(),ne!==a?(se=me(),se!==a?(ce=nn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=w(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function to(){var B,Q,Y=j*34+5,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,2)===x?(Q=x,j+=2):(Q=a,ie===0&&ue(l)),Q===a&&(V.substr(j,11).toLowerCase()===t?(Q=V.substr(j,11),j+=11):(Q=a,ie===0&&ue(d))),Q!==a&&(de=B,Q=v()),B=Q,B===a&&(B=j,V.substr(j,2)===E?(Q=E,j+=2):(Q=a,ie===0&&ue(R)),Q===a&&(V.substr(j,14).toLowerCase()===S?(Q=V.substr(j,14),j+=14):(Q=a,ie===0&&ue(A))),Q!==a&&(de=B,Q=L()),B=Q,B===a&&(B=j,V.substr(j,2)===k?(Q=k,j+=2):(Q=a,ie===0&&ue(N)),Q===a&&(V.substr(j,5).toLowerCase()===W?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(U))),Q!==a&&(de=B,Q=J()),B=Q,B===a&&(B=j,V.charCodeAt(j)===61?(Q=q,j++):(Q=a,ie===0&&ue(K)),Q===a&&(V.substr(j,5).toLowerCase()===W?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(U))),Q!==a&&(de=B,Q=J()),B=Q,B===a&&(B=j,V.substr(j,2)===$?(Q=$,j+=2):(Q=a,ie===0&&ue(Z)),Q===a&&(V.substr(j,8).toLowerCase()===ee?(Q=V.substr(j,8),j+=8):(Q=a,ie===0&&ue(G))),Q!==a&&(de=B,Q=_()),B=Q,B===a&&(B=j,V.charCodeAt(j)===60?(Q=te,j++):(Q=a,ie===0&&ue(re)),Q===a&&(V.substr(j,4).toLowerCase()===oe?(Q=V.substr(j,4),j+=4):(Q=a,ie===0&&ue(ae))),Q!==a&&(de=B,Q=pe()),B=Q,B===a&&(B=j,V.charCodeAt(j)===62?(Q=we,j++):(Q=a,ie===0&&ue(xe)),Q===a&&(V.substr(j,7).toLowerCase()===Te?(Q=V.substr(j,7),j+=7):(Q=a,ie===0&&ue(Ve))),Q!==a&&(de=B,Q=Ie()),B=Q)))))),le[Y]={nextPos:j,result:B},B)}function nn(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+6,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=on(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=no(),ne!==a?(se=me(),se!==a?(ce=on(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=no(),ne!==a?(se=me(),se!==a?(ce=on(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=s(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function no(){var B,Q,Y=j*34+7,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.charCodeAt(j)===43?(Q=Me,j++):(Q=a,ie===0&&ue(he)),Q!==a&&(de=B,Q=Re()),B=Q,B===a&&(B=j,V.charCodeAt(j)===45?(Q=Be,j++):(Q=a,ie===0&&ue(Se)),Q!==a&&(de=B,Q=ke()),B=Q),le[Y]={nextPos:j,result:B},B)}function on(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+8,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=rn(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=oo(),ne!==a?(se=me(),se!==a?(ce=rn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=oo(),ne!==a?(se=me(),se!==a?(ce=rn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=s(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function oo(){var B,Q,Y=j*34+9,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.charCodeAt(j)===42?(Q=et,j++):(Q=a,ie===0&&ue(tt)),Q!==a&&(de=B,Q=He()),B=Q,B===a&&(B=j,V.charCodeAt(j)===47?(Q=ut,j++):(Q=a,ie===0&&ue(jt)),Q!==a&&(de=B,Q=Nt()),B=Q,B===a&&(B=j,V.charCodeAt(j)===37?(Q=Pt,j++):(Q=a,ie===0&&ue(Ft)),Q!==a&&(de=B,Q=Qt()),B=Q)),le[Y]={nextPos:j,result:B},B)}function rn(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+10,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=sn(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=ro(),ne!==a?(se=me(),se!==a?(ce=sn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=ro(),ne!==a?(se=me(),se!==a?(ce=sn(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=s(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function ro(){var B,Q,Y=j*34+11,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.charCodeAt(j)===94?(Q=qt,j++):(Q=a,ie===0&&ue(Et)),Q===a&&(V.substr(j,5).toLowerCase()===zt?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(Wt))),Q!==a&&(de=B,Q=lt()),B=Q,le[Y]={nextPos:j,result:B},B)}function sn(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+12,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=an(),Q!==a){for(Y=[],H=j,X=me(),X!==a?(ne=io(),ne!==a?(se=me(),se!==a?(ce=an(),ce===a&&(ce=null),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(ne=io(),ne!==a?(se=me(),se!==a?(ce=an(),ce===a&&(ce=null),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=w(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function io(){var B,Q,Y=j*34+13,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,2)===ct?(Q=ct,j+=2):(Q=a,ie===0&&ue(Ne)),Q===a&&(V.substr(j,8).toLowerCase()===Ut?(Q=V.substr(j,8),j+=8):(Q=a,ie===0&&ue(Ht)),Q===a&&(V.substr(j,7).toLowerCase()===$t?(Q=V.substr(j,7),j+=7):(Q=a,ie===0&&ue(Kt)))),Q!==a&&(de=B,Q=nt()),B=Q,B===a&&(B=j,V.substr(j,11).toLowerCase()===Jt?(Q=V.substr(j,11),j+=11):(Q=a,ie===0&&ue(Ot)),Q===a&&(V.substr(j,10).toLowerCase()===Gt?(Q=V.substr(j,10),j+=10):(Q=a,ie===0&&ue(Yt))),Q!==a&&(de=B,Q=er()),B=Q,B===a&&(B=j,V.substr(j,5).toLowerCase()===tr?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(nr)),Q!==a&&(de=B,Q=or()),B=Q,B===a&&(B=j,V.substr(j,5).toLowerCase()===rr?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(ir)),Q!==a&&(de=B,Q=sr()),B=Q))),le[Y]={nextPos:j,result:B},B)}function an(){var B,Q,Y,H,X,ne,se=j*34+14,ce=le[se];return ce?(j=ce.nextPos,ce.result):(B=j,V.charCodeAt(j)===40?(Q=On,j++):(Q=a,ie===0&&ue(xn)),Q!==a?(Y=me(),Y!==a?(H=Ge(),H!==a?(X=me(),X!==a?(V.charCodeAt(j)===41?(ne=Vn,j++):(ne=a,ie===0&&ue(wn)),ne===a&&(ne=null),ne!==a?(de=B,Q=ar(H),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),B===a&&(B=hi(),B===a&&(B=gi(),B===a&&(B=so(),B===a&&(B=yi())))),le[se]={nextPos:j,result:B},B)}function hi(){var B,Q,Y,H,X,ne=j*34+15,se=le[ne];return se?(j=se.nextPos,se.result):(B=j,Q=fo(),Q!==a?(V.charCodeAt(j)===40?(Y=On,j++):(Y=a,ie===0&&ue(xn)),Y!==a?(H=ao(),H!==a?(V.charCodeAt(j)===41?(X=Vn,j++):(X=a,ie===0&&ue(wn)),X===a&&(X=null),X!==a?(de=B,Q=ur(Q,H),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),le[ne]={nextPos:j,result:B},B)}function gi(){var B,Q,Y,H,X=j*34+16,ne=le[X];return ne?(j=ne.nextPos,ne.result):(B=j,V.charCodeAt(j)===33?(Q=lr,j++):(Q=a,ie===0&&ue(cr)),Q===a&&(V.substr(j,6).toLowerCase()===dr?(Q=V.substr(j,6),j+=6):(Q=a,ie===0&&ue(fr))),Q!==a?(Y=me(),Y!==a?(H=Ge(),H!==a?(de=B,Q=pr(H),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,Q=so(),Q!==a?(Y=me(),Y!==a?(H=mi(),H!==a?(de=B,Q=hr(Q,H),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a)),le[X]={nextPos:j,result:B},B)}function mi(){var B,Q,Y=j*34+17,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,5).toLowerCase()===gr?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(mr)),Q!==a&&(de=B,Q=vr()),B=Q,B===a&&(B=j,V.substr(j,8).toLowerCase()===yr?(Q=V.substr(j,8),j+=8):(Q=a,ie===0&&ue(br)),Q!==a&&(de=B,Q=Cr()),B=Q),le[Y]={nextPos:j,result:B},B)}function so(){var B,Q,Y,H,X,ne=j*34+18,se=le[ne];return se?(j=se.nextPos,se.result):(B=j,Q=me(),Q!==a?(V.substr(j,9)===Tn?(Y=Tn,j+=9):(Y=a,ie===0&&ue(Pr)),Y===a&&(V.substr(j,4)===In?(Y=In,j+=4):(Y=a,ie===0&&ue(Er))),Y!==a?(de=B,Q=Or(),B=Q):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,Q=me(),Q!==a?(Y=vi(),Y!==a?(de=B,Q=xr(Y),B=Q):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,Q=me(),Q!==a?(V.charCodeAt(j)===123?(Y=Vr,j++):(Y=a,ie===0&&ue(wr)),Y!==a?(H=Ei(),H!==a?(V.charCodeAt(j)===125?(X=Tr,j++):(X=a,ie===0&&ue(Ir)),X!==a?(de=B,Q=Mr(H),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a)):(j=B,B=a))),le[ne]={nextPos:j,result:B},B)}function vi(){var B,Q,Y,H,X=j*34+19,ne=le[X];return ne?(j=ne.nextPos,ne.result):(B=j,Q=bi(),Q!==a&&(de=B,Q=Zt(Q)),B=Q,B===a&&(B=j,Q=Ci(),Q!==a&&(de=B,Q=Zt(Q)),B=Q,B===a&&(B=j,Q=fo(),Q!==a&&(de=B,Q=Zt(Q)),B=Q,B===a&&(B=j,V.substr(j,2)===Mn?(Q=Mn,j+=2):(Q=a,ie===0&&ue(Rr)),Q!==a&&(de=B,Q=Rn()),B=Q,B===a&&(B=j,V.substr(j,2)===Sn?(Q=Sn,j+=2):(Q=a,ie===0&&ue(Sr)),Q!==a&&(de=B,Q=Rn()),B=Q,B===a&&(B=j,V.charCodeAt(j)===39?(Q=Dn,j++):(Q=a,ie===0&&ue(An)),Q!==a?(Y=uo(),Y!==a?(V.charCodeAt(j)===39?(H=Dn,j++):(H=a,ie===0&&ue(An)),H!==a?(de=B,Q=Ln(Y),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,V.charCodeAt(j)===34?(Q=Bn,j++):(Q=a,ie===0&&ue(kn)),Q!==a?(Y=uo(),Y!==a?(V.charCodeAt(j)===34?(H=Bn,j++):(H=a,ie===0&&ue(kn)),H!==a?(de=B,Q=Ln(Y),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a))))))),le[X]={nextPos:j,result:B},B)}function yi(){var B,Q,Y,H,X=j*34+20,ne=le[X];return ne?(j=ne.nextPos,ne.result):(B=j,V.charCodeAt(j)===91?(Q=Dr,j++):(Q=a,ie===0&&ue(Ar)),Q!==a?(Y=ao(),Y!==a?(V.charCodeAt(j)===93?(H=Lr,j++):(H=a,ie===0&&ue(Br)),H!==a?(de=B,Q=kr(Y),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),le[X]={nextPos:j,result:B},B)}function ao(){var B,Q,Y,H,X,ne,se,ce,Ce=j*34+21,Ee=le[Ce];if(Ee)return j=Ee.nextPos,Ee.result;if(B=j,Q=Ge(),Q===a&&(Q=null),Q!==a){for(Y=[],H=j,X=me(),X!==a?(V.charCodeAt(j)===44?(ne=jn,j++):(ne=a,ie===0&&ue(Nn)),ne!==a?(se=me(),se!==a?(ce=Ge(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);H!==a;)Y.push(H),H=j,X=me(),X!==a?(V.charCodeAt(j)===44?(ne=jn,j++):(ne=a,ie===0&&ue(Nn)),ne!==a?(se=me(),se!==a?(ce=Ge(),ce!==a?(X=[X,ne,se,ce],H=X):(j=H,H=a)):(j=H,H=a)):(j=H,H=a)):(j=H,H=a);Y!==a?(de=B,Q=jr(Q,Y),B=Q):(j=B,B=a)}else j=B,B=a;return le[Ce]={nextPos:j,result:B},B}function bi(){var B,Q,Y=j*34+22,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,4).toLowerCase()===Nr?(Q=V.substr(j,4),j+=4):(Q=a,ie===0&&ue(Fr)),Q!==a&&(de=B,Q=Qr()),B=Q,B===a&&(B=j,V.substr(j,5).toLowerCase()===qr?(Q=V.substr(j,5),j+=5):(Q=a,ie===0&&ue(zr)),Q!==a&&(de=B,Q=Wr()),B=Q),le[Y]={nextPos:j,result:B},B)}function Ci(){var B,Q,Y,H=j*34+23,X=le[H];return X?(j=X.nextPos,X.result):(B=j,V.substr(j,2)===Fn?(Q=Fn,j+=2):(Q=a,ie===0&&ue(Ur)),Q!==a?(Y=ot(),Y!==a?(de=B,Q=Hr(),B=Q):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,$r.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Kr)),Q===a&&(Q=null),Q!==a?(Y=Pi(),Y!==a?(de=B,Q=Jr(Q,Y),B=Q):(j=B,B=a)):(j=B,B=a)),le[H]={nextPos:j,result:B},B)}function Pi(){var B,Q,Y,H,X=j*34+24,ne=le[X];return ne?(j=ne.nextPos,ne.result):(B=j,Q=ot(),Q!==a?(V.charCodeAt(j)===46?(Y=Gr,j++):(Y=a,ie===0&&ue(Yr)),Y!==a?(H=ot(),H!==a?(de=B,Q=Zr(),B=Q):(j=B,B=a)):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,Q=Oi(),Q!==a?(Y=ot(),Y===a&&(Y=null),Y!==a?(de=B,Q=Xr(),B=Q):(j=B,B=a)):(j=B,B=a),B===a&&(B=j,V.charCodeAt(j)===48?(Q=_r,j++):(Q=a,ie===0&&ue(ei)),Q!==a&&(de=B,Q=ti()),B=Q)),le[X]={nextPos:j,result:B},B)}function Ei(){var B,Q,Y,H=j*34+25,X=le[H];if(X)return j=X.nextPos,X.result;if(B=j,Q=[],Y=co(),Y!==a)for(;Y!==a;)Q.push(Y),Y=co();else Q=a;return Q!==a&&(de=B,Q=Qn(Q)),B=Q,le[H]={nextPos:j,result:B},B}function uo(){var B,Q,Y,H=j*34+26,X=le[H];if(X)return j=X.nextPos,X.result;if(B=j,Q=[],Y=lo(),Y!==a)for(;Y!==a;)Q.push(Y),Y=lo();else Q=a;return Q!==a&&(de=B,Q=Qn(Q)),B=Q,le[H]={nextPos:j,result:B},B}function lo(){var B,Q,Y=j*34+27,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,V.substr(j,2)===qn?(Q=qn,j+=2):(Q=a,ie===0&&ue(ni)),Q!==a&&(de=B,Q=oi()),B=Q,B===a&&(B=j,V.substr(j,2)===zn?(Q=zn,j+=2):(Q=a,ie===0&&ue(ri)),Q!==a&&(de=B,Q=ii()),B=Q,B===a&&(B=j,si.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(ai)),Q!==a&&(de=B,Q=Xt()),B=Q)),le[Y]={nextPos:j,result:B},B)}function co(){var B,Q,Y=j*34+28,H=le[Y];return H?(j=H.nextPos,H.result):(B=j,ui.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(li)),Q!==a&&(de=B,Q=Xt()),B=Q,le[Y]={nextPos:j,result:B},B)}function fo(){var B,Q,Y,H,X,ne,se,ce=j*34+29,Ce=le[ce];if(Ce)return j=Ce.nextPos,Ce.result;if(B=j,Q=dt(),Q!==a){if(Y=[],H=j,X=ot(),X!==a){for(ne=[],se=dt();se!==a;)ne.push(se),se=dt();ne!==a?(X=[X,ne],H=X):(j=H,H=a)}else j=H,H=a;for(;H!==a;)if(Y.push(H),H=j,X=ot(),X!==a){for(ne=[],se=dt();se!==a;)ne.push(se),se=dt();ne!==a?(X=[X,ne],H=X):(j=H,H=a)}else j=H,H=a;Y!==a?(de=B,Q=Xt(),B=Q):(j=B,B=a)}else j=B,B=a;return le[ce]={nextPos:j,result:B},B}function ot(){var B,Q,Y=j*34+30,H=le[Y];if(H)return j=H.nextPos,H.result;if(B=[],Wn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Un)),Q!==a)for(;Q!==a;)B.push(Q),Wn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Un));else B=a;return le[Y]={nextPos:j,result:B},B}function Oi(){var B,Q,Y=j*34+31,H=le[Y];if(H)return j=H.nextPos,H.result;if(B=[],Hn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue($n)),Q!==a)for(;Q!==a;)B.push(Q),Hn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue($n));else B=a;return le[Y]={nextPos:j,result:B},B}function dt(){var B,Q,Y=j*34+32,H=le[Y];if(H)return j=H.nextPos,H.result;if(B=[],Kn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Jn)),Q!==a)for(;Q!==a;)B.push(Q),Kn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Jn));else B=a;return le[Y]={nextPos:j,result:B},B}function me(){var B,Q,Y=j*34+33,H=le[Y];if(H)return j=H.nextPos,H.result;for(ie++,B=[],Gn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Yn));Q!==a;)B.push(Q),Gn.test(V.charAt(j))?(Q=V.charAt(j),j++):(Q=a,ie===0&&ue(Yn));return ie--,B===a&&(Q=a,ie===0&&ue(ci)),le[Y]={nextPos:j,result:B},B}function po(B,Q,Y){return Y===void 0&&(Y=!1),Q.reduce(function(H,X){return new b.BinaryOperand(X[1],H,X[3],Y)},B)}function xi(B){return[].concat.apply([],B)}if(Vt=u(),Vt!==a&&j===V.length)return Vt;throw Vt!==a&&j1&&this.isQuote(o[0])&&this.isQuote(o[o.length-1])?o.substring(1,o.length-1):g.isNumeric(o)?o.indexOf("0x")==0?parseInt(o):o.length>1&&o[0]=="0"?o:parseFloat(o):o},f.prototype.isContentEqual=function(o){var r=o;return r.value==this.value},f.prototype.isQuote=function(o){return o=="'"||o=='"'},f.prototype.isBooleanValue=function(o){return o&&(o.toLowerCase()==="true"||o.toLowerCase()==="false")},f}(V),s=function(h){T(f,h);function f(o){var r=h.call(this,o)||this;return r.variableName=o,r.valueInfo={},r.useValueAsItIs=!1,!!r.variableName&&r.variableName.length>1&&r.variableName[0]===f.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return Object.defineProperty(f,"DisableConversionChar",{get:function(){return M.settings.expressionDisableConversionChar},set:function(o){M.settings.expressionDisableConversionChar=o},enumerable:!1,configurable:!0}),f.prototype.getType=function(){return"variable"},f.prototype.toString=function(o){if(o===void 0&&(o=void 0),o){var r=o(this);if(r)return r}var n=this.useValueAsItIs?f.DisableConversionChar:"";return"{"+n+this.variableName+"}"},Object.defineProperty(f.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),f.prototype.evaluate=function(o){return this.valueInfo.name=this.variableName,o.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},f.prototype.setVariables=function(o){o.push(this.variableName)},f.prototype.getCorrectValue=function(o){return this.useValueAsItIs?o:h.prototype.getCorrectValue.call(this,o)},f.prototype.isContentEqual=function(o){var r=o;return r.variable==this.variable},f}(u),e=function(h){T(f,h);function f(o,r){var n=h.call(this)||this;return n.originalValue=o,n.parameters=r,n.isReadyValue=!1,Array.isArray(r)&&r.length===0&&(n.parameters=new p([])),n}return f.prototype.getType=function(){return"function"},f.prototype.evaluateAsync=function(o){var r=this;this.isReadyValue=!1;var n=new I.ProcessValue;n.values=b.Helpers.createCopy(o.values),n.properties=b.Helpers.createCopy(o.properties),n.properties.returnResult=function(i){r.asynResult=i,r.isReadyValue=!0,r.onAsyncReady()},this.evaluateCore(n)},f.prototype.evaluate=function(o){return this.isReady?this.asynResult:this.evaluateCore(o)},f.prototype.evaluateCore=function(o){return C.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(o),o.properties)},f.prototype.toString=function(o){if(o===void 0&&(o=void 0),o){var r=o(this);if(r)return r}return this.originalValue+"("+this.parameters.toString(o)+")"},f.prototype.setVariables=function(o){this.parameters.setVariables(o)},Object.defineProperty(f.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),f.prototype.hasFunction=function(){return!0},f.prototype.hasAsyncFunction=function(){return C.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},f.prototype.addToAsyncList=function(o){this.hasAsyncFunction()&&o.push(this)},f.prototype.isContentEqual=function(o){var r=o;return r.originalValue==this.originalValue&&this.areOperatorsEquals(r.parameters,this.parameters)},f}(V),g=function(){function h(){}return h.throwInvalidOperatorError=function(f){throw new Error("Invalid operator: '"+f+"'")},h.safeToString=function(f,o){return f==null?"":f.toString(o)},h.toOperandString=function(f){return!!f&&!h.isNumeric(f)&&!h.isBooleanValue(f)&&(f="'"+f+"'"),f},h.isSpaceString=function(f){return!!f&&!f.replace(" ","")},h.isNumeric=function(f){return!!f&&(f.indexOf("-")>-1||f.indexOf("+")>1||f.indexOf("*")>-1||f.indexOf("^")>-1||f.indexOf("/")>-1||f.indexOf("%")>-1)||h.isSpaceString(f)?!1:b.Helpers.isNumber(f)},h.isBooleanValue=function(f){return!!f&&(f.toLowerCase()==="true"||f.toLowerCase()==="false")},h.countDecimals=function(f){if(b.Helpers.isNumber(f)&&Math.floor(f)!==f){var o=f.toString().split(".");return o.length>1&&o[1].length||0}return 0},h.plusMinus=function(f,o,r){var n=h.countDecimals(f),i=h.countDecimals(o);if(n>0||i>0){var m=Math.max(n,i);r=parseFloat(r.toFixed(m))}return r},h.isTwoValueEquals=function(f,o){return f==="undefined"&&(f=void 0),o==="undefined"&&(o=void 0),b.Helpers.isTwoValueEquals(f,o,!0)},h.operatorToString=function(f){var o=h.signs[f];return o==null?f:o},h.unaryFunctions={empty:function(f){return b.Helpers.isValueEmpty(f)},notempty:function(f){return!h.unaryFunctions.empty(f)},negate:function(f){return!f}},h.binaryFunctions={arithmeticOp:function(f){return function(o,r){b.Helpers.isValueEmpty(o)&&!h.isSpaceString(o)&&(o=typeof r=="string"?"":0),b.Helpers.isValueEmpty(r)&&!h.isSpaceString(r)&&(r=typeof o=="string"?"":0);var n=h.binaryFunctions[f];return n==null?null:n.call(this,o,r)}},and:function(f,o){return f&&o},or:function(f,o){return f||o},plus:function(f,o){return!b.Helpers.isNumber(f)||!b.Helpers.isNumber(o)?f+o:b.Helpers.correctAfterPlusMinis(f,o,f+o)},minus:function(f,o){return b.Helpers.correctAfterPlusMinis(f,o,f-o)},mul:function(f,o){return b.Helpers.correctAfterMultiple(f,o,f*o)},div:function(f,o){return o?f/o:null},mod:function(f,o){return o?f%o:null},power:function(f,o){return Math.pow(f,o)},greater:function(f,o){return f==null||o==null?!1:f>o},less:function(f,o){return f==null||o==null?!1:f-1;return r?n:!n}for(var i=Array.isArray(o)?o:[o],m=0;m",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},h}()},"./src/flowpanel.ts":function(D,y,c){c.r(y),c.d(y,"FlowPanelModel",function(){return M});var b=c("./src/jsonobject.ts"),C=c("./src/panel.ts"),I=function(){var T=function(V,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(a[u]=p[u])},T(V,P)};return function(V,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(V,P);function a(){this.constructor=V}V.prototype=P===null?Object.create(P):(a.prototype=P.prototype,new a)}}(),M=function(T){I(V,T);function V(P){P===void 0&&(P="");var a=T.call(this,P)||this;return a.createLocalizableString("content",a,!0),a.registerPropertyChangedHandlers(["content"],function(){a.onContentChanged()}),a}return V.prototype.getType=function(){return"flowpanel"},V.prototype.getChildrenLayoutType=function(){return"flow"},V.prototype.onSurveyLoad=function(){T.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(V.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(P){this.setLocalizableStringText("content",P)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(P){this.setPropertyValue("html",P)},enumerable:!1,configurable:!0}),V.prototype.onContentChanged=function(){var P="";this.onCustomHtmlProducing?P=this.onCustomHtmlProducing():P=this.produceHtml(),this.html=P,this.contentChangedCallback&&this.contentChangedCallback()},V.prototype.produceHtml=function(){for(var P=[],a=/{(.*?(element:)[^$].*?)}/g,p=this.content,u=0,s=null;(s=a.exec(p))!==null;){s.index>u&&(P.push(p.substring(u,s.index)),u=s.index);var e=this.getQuestionFromText(s[0]);e?P.push(this.getHtmlForQuestion(e)):P.push(p.substring(u,s.index+s[0].length)),u=s.index+s[0].length}return u","g"),"
")},V.prototype.getQuestionFromText=function(P){return P=P.substring(1,P.length-1),P=P.replace(V.contentElementNamePrefix,"").trim(),this.getQuestionByName(P)},V.prototype.getHtmlForQuestion=function(P){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(P):""},V.prototype.getQuestionHtmlId=function(P){return this.name+"_"+P.id},V.prototype.onAddElement=function(P,a){T.prototype.onAddElement.call(this,P,a),this.addElementToContent(P),P.renderWidth=""},V.prototype.onRemoveElement=function(P){var a=this.getElementContentText(P);this.content=this.content.replace(a,""),T.prototype.onRemoveElement.call(this,P)},V.prototype.dragDropMoveElement=function(P,a,p){},V.prototype.addElementToContent=function(P){if(!this.isLoadingFromJson){var a=this.getElementContentText(P);this.insertTextAtCursor(a)||(this.content=this.content+a)}},V.prototype.insertTextAtCursor=function(P,a){if(a===void 0&&(a=null),!this.isDesignMode||typeof document>"u"||!window.getSelection)return!1;var p=window.getSelection();if(p.getRangeAt&&p.rangeCount){var u=p.getRangeAt(0);u.deleteContents(),u.insertNode(document.createTextNode(P));var s=this;if(s.getContent){var e=s.getContent(a);this.content=e}return!0}return!1},V.prototype.getElementContentText=function(P){return"{"+V.contentElementNamePrefix+P.name+"}"},V.contentElementNamePrefix="element:",V}(C.PanelModel);b.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new M},"panel")},"./src/functionsfactory.ts":function(D,y,c){c.r(y),c.d(y,"FunctionFactory",function(){return I}),c.d(y,"registerFunction",function(){return M});var b=c("./src/helpers.ts"),C=c("./src/settings.ts"),I=function(){function L(){this.functionHash={},this.isAsyncHash={}}return L.prototype.register=function(k,N,W){W===void 0&&(W=!1),this.functionHash[k]=N,W&&(this.isAsyncHash[k]=!0)},L.prototype.unregister=function(k){delete this.functionHash[k],delete this.isAsyncHash[k]},L.prototype.hasFunction=function(k){return!!this.functionHash[k]},L.prototype.isAsyncFunction=function(k){return!!this.isAsyncHash[k]},L.prototype.clear=function(){this.functionHash={}},L.prototype.getAll=function(){var k=[];for(var N in this.functionHash)k.push(N);return k.sort()},L.prototype.run=function(k,N,W){W===void 0&&(W=null);var U=this.functionHash[k];if(!U)return null;var J={func:U};if(W)for(var q in W)J[q]=W[q];return J.func(N)},L.Instance=new L,L}(),M=I.Instance.register;function T(L,k){if(L!=null)if(Array.isArray(L))for(var N=0;NN[U]&&(W=N[U]):W0?N/k.length:0}I.Instance.register("avg",s);function e(L){if(L.length!=2)return null;var k=L[0];if(!k||!Array.isArray(k)&&!Array.isArray(Object.keys(k)))return null;var N=L[1];return typeof N!="string"&&!(N instanceof String)?null:{data:k,name:N}}function g(L){return typeof L=="string"?b.Helpers.isNumber(L)?parseFloat(L):void 0:L}function h(L,k,N,W,U){if(!L||b.Helpers.isValueEmpty(L[k]))return N;var J=U?g(L[k]):1;return W(N,J)}function f(L,k,N){N===void 0&&(N=!0);var W=e(L);if(!!W){var U=void 0;if(Array.isArray(W.data))for(var J=0;JN?k:N})}I.Instance.register("maxInArray",n);function i(L){var k=f(L,function(N,W){return N==null&&(N=0),W==null||W==null?N:N+1},!1);return k!==void 0?k:0}I.Instance.register("countInArray",i);function m(L){var k=i(L);return k==0?0:o(L)/k}I.Instance.register("avgInArray",m);function O(L){return!L&&L.length!==3?"":L[0]?L[1]:L[2]}I.Instance.register("iif",O);function w(L){return!L&&L.length<1||!L[0]?null:new Date(L[0])}I.Instance.register("getDate",w);function x(L){if(!L&&L.length<1||!L[0])return null;var k=new Date(L[0]),N=new Date,W=N.getFullYear()-k.getFullYear(),U=N.getMonth()-k.getMonth();return(U<0||U===0&&N.getDate()0?1:0),W}I.Instance.register("age",x);function l(L){if(!L)return!1;for(var k=L.questions,N=0;N1)L[1]"u"||Array.isArray(T)&&T.length===0&&typeof M>"u"||M==null&&T===""||T==null&&M==="")return!0;if(a===void 0&&(a=b.settings.comparator.trimStrings),P===void 0&&(P=b.settings.comparator.caseSensitive),typeof M=="string"&&typeof T=="string")return a&&(M=M.trim(),T=T.trim()),P||(M=M.toLowerCase(),T=T.toLowerCase()),M===T;if(M instanceof Date&&T instanceof Date)return M.getTime()==T.getTime();if(I.isConvertibleToNumber(M)&&I.isConvertibleToNumber(T)&&parseInt(M)===parseInt(T)&&parseFloat(M)===parseFloat(T))return!0;if(!I.isValueEmpty(M)&&I.isValueEmpty(T)||I.isValueEmpty(M)&&!I.isValueEmpty(T))return!1;if((M===!0||M===!1)&&typeof T=="string")return M.toString()===T.toLocaleLowerCase();if((T===!0||T===!1)&&typeof M=="string")return T.toString()===M.toLocaleLowerCase();if(!(M instanceof Object)&&!(T instanceof Object))return M==T;if(!(M instanceof Object)||!(T instanceof Object))return!1;if(M.equals)return M.equals(T);if(!!M.toJSON&&!!T.toJSON&&!!M.getType&&!!T.getType)return M.isDiposed||T.isDiposed||M.getType()!==T.getType()||!!M.name&&M.name!==T.name?!1:this.isTwoValueEquals(M.toJSON(),T.toJSON(),V,P,a);if(Array.isArray(M)&&Array.isArray(T))return I.isArraysEqual(M,T,V,P,a);if(!!M.equalsTo&&T.equalsTo)return M.equalsTo(T);for(var p in M)if(!!M.hasOwnProperty(p)){if(!T.hasOwnProperty(p))return!1;if(M[p]!==T[p]&&(typeof M[p]!="object"||!this.isTwoValueEquals(M[p],T[p])))return!1}for(p in T)if(T.hasOwnProperty(p)&&!M.hasOwnProperty(p))return!1;return!0},I.randomizeArray=function(M){for(var T=M.length-1;T>0;T--){var V=Math.floor(Math.random()*(T+1)),P=M[T];M[T]=M[V],M[V]=P}return M},I.getUnbindValue=function(M){return!!M&&M instanceof Object?JSON.parse(JSON.stringify(M)):M},I.createCopy=function(M){var T={};if(!M)return T;for(var V in M)T[V]=M[V];return T},I.isConvertibleToNumber=function(M){return M!=null&&!Array.isArray(M)&&!isNaN(M)},I.isNumber=function(M){return typeof M=="string"&&!!M&&M.indexOf("0x")==0&&M.length>32?!1:!isNaN(parseFloat(M))&&isFinite(M)},I.getMaxLength=function(M,T){return M<0&&(M=T),M>0?M:null},I.getNumberByIndex=function(M,T){if(M<0)return"";var V=1,P="",a=".",p=!0,u="A",s="";if(T){s=T;for(var e=s.length-1,g=!1,h=0;h=0&&f();)e--;var o="";for(e=0&&!(f()||(e--,!g)););u=s.substring(e+1),P=s.substring(0,e+1),parseInt(u)?V=parseInt(u):u.length==1&&(p=!1),(!!o||!!P)&&(a=o)}return p?P+(M+V).toString()+a:P+String.fromCharCode(u.charCodeAt(0)+M)+a},I.isCharNotLetterAndDigit=function(M){return M.toUpperCase()==M.toLowerCase()&&!I.isCharDigit(M)},I.isCharDigit=function(M){return M>="0"&&M<="9"},I.countDecimals=function(M){if(I.isNumber(M)&&Math.floor(M)!==M){var T=M.toString().split(".");return T.length>1&&T[1].length||0}return 0},I.correctAfterPlusMinis=function(M,T,V){var P=I.countDecimals(M),a=I.countDecimals(T);if(P>0||a>0){var p=Math.max(P,a);V=parseFloat(V.toFixed(p))}return V},I.correctAfterMultiple=function(M,T,V){var P=I.countDecimals(M)+I.countDecimals(T);return P>0&&(V=parseFloat(V.toFixed(P))),V},I.convertArrayValueToObject=function(M,T,V){V===void 0&&(V=void 0);var P=new Array;if(!M||!Array.isArray(M))return P;for(var a=0;a-1&&(s=g.slice(0,h),e=g.slice(h+1))}this.setPropertyValue("value",s),e&&(this.text=e)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(s){this.text=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(s){this.locText.text=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),u.prototype.canSerializeValue=function(){var s=this.value;return s==null?!1:!Array.isArray(s)&&typeof s!="object"},u.prototype.getData=function(){var s=this.toJSON();if(!!s.value&&!!s.value.pos&&delete s.value.pos,I.Helpers.isValueEmpty(s.value))return s;var e=this.canSerializeValue(),g=!e||!V.settings.itemValueAlwaysSerializeAsObject&&!V.settings.itemValueAlwaysSerializeText;return g&&Object.keys(s).length==1?this.value:(V.settings.itemValueAlwaysSerializeText&&s.text===void 0&&e&&(s.text=this.value.toString()),s)},u.prototype.toJSON=function(){var s={},e=C.Serializer.getProperties(this.getType());(!e||e.length==0)&&(e=C.Serializer.getProperties("itemvalue"));for(var g=new C.JsonObject,h=0;h"u"&&typeof s.text<"u"&&Object.keys(s).length===1&&(s.value=s.text),typeof s.value<"u"){var e=void 0;typeof s.toJSON=="function"?e=s.toJSON():e=s,new C.JsonObject().toObject(e,this)}else this.value=s;this.locText.strChanged()}},Object.defineProperty(u.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(s){this.setPropertyValue("visibleIf",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(s){this.setPropertyValue("enableIf",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),u.prototype.setIsVisible=function(s){this.setPropertyValue("isVisible",s)},Object.defineProperty(u.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),u.prototype.setIsEnabled=function(s){this.setPropertyValue("isEnabled",s)},u.prototype.addUsedLocales=function(s){this.AddLocStringToUsedLocales(this.locTextValue,s)},u.prototype.locStrsChanged=function(){p.prototype.locStrsChanged.call(this),this.locText.strChanged()},u.prototype.onPropertyValueChanged=function(s,e,g){s==="value"&&!this.hasText&&this.locText.strChanged();var h="itemValuePropertyChanged";!this.locOwner||!this.locOwner[h]||this.locOwner[h](this,s,e,g)},u.prototype.getConditionRunner=function(s){return s?this.getVisibleConditionRunner():this.getEnableConditionRunner()},u.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new M.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},u.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new M.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},u}(T.Base);T.Base.createItemValue=function(p,u){var s=null;return u?s=C.JsonObject.metaData.createClass(u,{}):typeof p.getType=="function"?s=new a(null,void 0,p.getType()):s=new a(null),s.setData(p),s},T.Base.itemValueLocStrChanged=function(p){a.locStrsChanged(p)},C.JsonObjectProperty.getItemValuesDefaultValue=function(p,u){var s=new Array;return a.setData(s,Array.isArray(p)?p:[],u),s},C.Serializer.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(p){return!p||p.ownerPropertyName!=="rateValues"}}],function(p){return new a(p)})},"./src/jsonobject.ts":function(D,y,c){c.r(y),c.d(y,"property",function(){return a}),c.d(y,"propertyArray",function(){return u}),c.d(y,"JsonObjectProperty",function(){return s}),c.d(y,"CustomPropertiesCollection",function(){return e}),c.d(y,"JsonMetadataClass",function(){return g}),c.d(y,"JsonMetadata",function(){return h}),c.d(y,"JsonError",function(){return f}),c.d(y,"JsonUnknownPropertyError",function(){return o}),c.d(y,"JsonMissingTypeErrorBase",function(){return r}),c.d(y,"JsonMissingTypeError",function(){return n}),c.d(y,"JsonIncorrectTypeError",function(){return i}),c.d(y,"JsonRequiredPropertyError",function(){return m}),c.d(y,"JsonObject",function(){return O}),c.d(y,"Serializer",function(){return w});var b=c("./src/surveyStrings.ts"),C=c("./src/base.ts"),I=c("./src/helpers.ts"),M=function(){var x=function(l,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var E in v)Object.prototype.hasOwnProperty.call(v,E)&&(d[E]=v[E])},x(l,t)};return function(l,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");x(l,t);function d(){this.constructor=l}l.prototype=t===null?Object.create(t):(d.prototype=t.prototype,new d)}}(),T=function(x,l,t){if(t||arguments.length===2)for(var d=0,v=l.length,E;d-1&&(v=d.substring(E+1),d=d.substring(0,E));var R=this.getIsPropertyNameRequired(d)||!!l.isRequired;d=this.getPropertyName(d);var S=new s(this,d,R);if(v&&(S.type=v),typeof l=="object"){if(l.type&&(S.type=l.type),l.default!==void 0&&(S.defaultValue=l.default),I.Helpers.isValueEmpty(l.isSerializable)||(S.isSerializable=l.isSerializable),I.Helpers.isValueEmpty(l.isLightSerializable)||(S.isLightSerializable=l.isLightSerializable),I.Helpers.isValueEmpty(l.maxLength)||(S.maxLength=l.maxLength),I.Helpers.isValueEmpty(l.displayName)||(S.displayName=l.displayName),I.Helpers.isValueEmpty(l.category)||(S.category=l.category),I.Helpers.isValueEmpty(l.categoryIndex)||(S.categoryIndex=l.categoryIndex),I.Helpers.isValueEmpty(l.nextToProperty)||(S.nextToProperty=l.nextToProperty),I.Helpers.isValueEmpty(l.visibleIndex)||(S.visibleIndex=l.visibleIndex),I.Helpers.isValueEmpty(l.showMode)||(S.showMode=l.showMode),I.Helpers.isValueEmpty(l.maxValue)||(S.maxValue=l.maxValue),I.Helpers.isValueEmpty(l.minValue)||(S.minValue=l.minValue),I.Helpers.isValueEmpty(l.dataList)||(S.dataList=l.dataList),I.Helpers.isValueEmpty(l.isDynamicChoices)||(S.isDynamicChoices=l.isDynamicChoices),I.Helpers.isValueEmpty(l.isBindable)||(S.isBindable=l.isBindable),I.Helpers.isValueEmpty(l.isUnique)||(S.isUnique=l.isUnique),I.Helpers.isValueEmpty(l.uniqueProperty)||(S.uniquePropertyName=l.uniqueProperty),I.Helpers.isValueEmpty(l.isArray)||(S.isArray=l.isArray),(l.visible===!0||l.visible===!1)&&(S.visible=l.visible),l.visibleIf&&(S.visibleIf=l.visibleIf),l.onExecuteExpression&&(S.onExecuteExpression=l.onExecuteExpression),l.onPropertyEditorUpdate&&(S.onPropertyEditorUpdate=l.onPropertyEditorUpdate),l.readOnly===!0&&(S.readOnly=!0),l.choices){var A=typeof l.choices=="function"?l.choices:null,L=typeof l.choices!="function"?l.choices:null;S.setChoices(L,A)}l.baseValue&&S.setBaseValue(l.baseValue),l.onGetValue&&(S.onGetValue=l.onGetValue),l.onSetValue&&(S.onSetValue=l.onSetValue),l.onSettingValue&&(S.onSettingValue=l.onSettingValue),l.isLocalizable&&(l.serializationProperty="loc"+S.name),l.serializationProperty&&(S.serializationProperty=l.serializationProperty,S.serializationProperty&&S.serializationProperty.indexOf("loc")==0&&(S.isLocalizable=!0)),l.isLocalizable&&(S.isLocalizable=l.isLocalizable),l.className&&(S.className=l.className),l.baseClassName&&(S.baseClassName=l.baseClassName),l.classNamePart&&(S.classNamePart=l.classNamePart),l.alternativeName&&(S.alternativeName=l.alternativeName),l.layout&&(S.layout=l.layout),l.dependsOn&&this.addDependsOnProperties(S,l.dependsOn)}return this.properties.push(S),t&&!this.isOverridedProp(S.name)&&(S.isCustom=!0,e.addProperty(this.name,S)),S}},x.prototype.addDependsOnProperties=function(l,t){if(Array.isArray(t))for(var d=0;d0&&l[0]==x.requiredSymbol},x.prototype.getPropertyName=function(l){return this.getIsPropertyNameRequired(l)&&(l=l.slice(1)),l},x.requiredSymbol="!",x.typeSymbol=":",x}(),h=function(){function x(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return x.prototype.getObjPropertyValue=function(l,t){if(this.isObjWrapper(l)){var d=l.getOriginalObj(),v=w.findProperty(d.getType(),t);if(v)return this.getObjPropertyValueCore(d,v)}var v=w.findProperty(l.getType(),t);return v?this.getObjPropertyValueCore(l,v):l[t]},x.prototype.setObjPropertyValue=function(l,t,d){if(l[t]!==d)if(!!l[t]&&!!l[t].setJson)l[t].setJson(d);else{if(Array.isArray(d)){for(var v=[],E=0;E-1&&this.childrenClasses[t.parentName].splice(d,1)}},x.prototype.overrideClassCreatore=function(l,t){this.overrideClassCreator(l,t)},x.prototype.overrideClassCreator=function(l,t){l=l.toLowerCase();var d=this.findClass(l);d&&(d.creator=t)},x.prototype.getProperties=function(l){var t=this.findClass(l);if(!t)return[];var d=this.classProperties[t.name];return d||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},x.prototype.getHashProperties=function(l){var t=this.findClass(l);if(!t)return{};var d=this.classHashProperties[t.name];return d||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},x.prototype.fillPropertiesForClass=function(l){var t=new Array,d={};this.fillProperties(l,t,d),this.classProperties[l]=t,this.classHashProperties[l]=d},x.prototype.getPropertiesByObj=function(l){if(!l||!l.getType)return[];for(var t={},d=this.getProperties(l.getType()),v=0;v0)for(var v=0;v0&&(v.description+=", "),v.description+=E[R].name;v.description+="."}return v}return l}(f),r=function(x){M(l,x);function l(t,d,v){var E=x.call(this,d,v)||this;E.baseClassName=t,E.type=d,E.message=v,E.description="The following types are available: ";for(var R=O.metaData.getChildrenClasses(t,!0),S=0;S0&&(E.description+=", "),E.description+="'"+R[S].name+"'";return E.description+=".",E}return l}(f),n=function(x){M(l,x);function l(t,d){var v=x.call(this,d,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return v.propertyName=t,v.baseClassName=d,v}return l}(r),i=function(x){M(l,x);function l(t,d){var v=x.call(this,d,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return v.propertyName=t,v.baseClassName=d,v}return l}(r),m=function(x){M(l,x);function l(t,d){var v=x.call(this,"requiredproperty","The property '"+t+"' is required in class '"+d+"'.")||this;return v.propertyName=t,v.className=d,v}return l}(f),O=function(){function x(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(x,"metaData",{get:function(){return x.metaDataValue},enumerable:!1,configurable:!0}),x.prototype.toJsonObject=function(l,t){return t===void 0&&(t=!1),this.toJsonObjectCore(l,null,t)},x.prototype.toObject=function(l,t){this.toObjectCore(l,t);var d=this.getRequiredError(t,l);d&&this.addNewError(d,l)},x.prototype.toObjectCore=function(l,t){if(!!l){var d=null,v=void 0,E=!0;if(t.getType&&(v=t.getType(),d=x.metaData.getProperties(v),E=!!v&&!x.metaData.isDescendantOf(v,"itemvalue")),!!d){t.startLoadingFromJson&&t.startLoadingFromJson(l),d=this.addDynamicProperties(t,l,d);for(var R in l)if(R!==x.typePropertyName){if(R===x.positionPropertyName){t[R]=l[R];continue}var S=this.findProperty(d,R);if(!S){E&&this.addNewError(new o(R.toString(),v),l);continue}this.valueToObj(l[R],t,S)}t.endLoadingFromJson&&t.endLoadingFromJson()}}},x.prototype.toJsonObjectCore=function(l,t,d){if(d===void 0&&(d=!1),!l||!l.getType)return l;if(typeof l.getData=="function")return l.getData();var v={};return t!=null&&!t.className&&(v[x.typePropertyName]=t.getObjType(l.getType())),this.propertiesToJson(l,x.metaData.getProperties(l.getType()),v,d),this.propertiesToJson(l,this.getDynamicProperties(l),v,d),v},x.prototype.getDynamicProperties=function(l){return w.getDynamicPropertiesByObj(l)},x.prototype.addDynamicProperties=function(l,t,d){if(!l.getDynamicPropertyName)return d;var v=l.getDynamicPropertyName();if(!v)return d;t[v]&&(l[v]=t[v]);for(var E=this.getDynamicProperties(l),R=[],S=0;S0?R:null}else E=this.toJsonObjectCore(E,d,v);var A=typeof l.getPropertyValue=="function"&&l.getPropertyValue(d.name,null)!==null;(v&&A||!d.isDefaultValue(E))&&(!w.onSerializingProperty||!w.onSerializingProperty(l,d,E,t))&&(t[d.name]=E)}}},x.prototype.valueToObj=function(l,t,d){if(l!=null){if(this.removePos(d,l),d!=null&&d.hasToUseSetValue){d.setValue(t,l,this);return}if(this.isValueArray(l)){this.valueToArray(l,t,d.name,d);return}var v=this.createNewObj(l,d);v.newObj&&(this.toObjectCore(l,v.newObj),l=v.newObj),v.error||(d!=null?d.setValue(t,l,this):t[d.name]=l)}},x.prototype.removePos=function(l,t){!l||!l.type||l.type.indexOf("value")<0||this.removePosFromObj(t)},x.prototype.removePosFromObj=function(l){if(!!l){if(Array.isArray(l))for(var t=0;t0&&t[d].splice(0,t[d].length);var E=t[d]?t[d]:[];this.addValuesIntoArray(l,E,v),t[d]||(t[d]=E)}},x.prototype.addValuesIntoArray=function(l,t,d){for(var v=0;v=0;r--)(o=u[r])&&(f=(h<3?o(f):h>3?o(s,e,f):o(s,e))||f);return h>3&&f&&Object.defineProperty(s,e,f),f},a={root:"sv-list__container",item:"sv-list__item",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},p=function(u){V(s,u);function s(e,g,h,f,o){var r=u.call(this)||this;return r.onSelectionChanged=g,r.allowSelection=h,r.onFilterStringChangedCallback=o,r.onItemClick=function(n){r.isItemDisabled(n)||(r.isExpanded=!1,r.allowSelection&&(r.selectedItem=n),r.onSelectionChanged&&r.onSelectionChanged(n))},r.isItemDisabled=function(n){return n.enabled!==void 0&&!n.enabled},r.isItemSelected=function(n){return!!r.allowSelection&&!!r.selectedItem&&r.selectedItem.id==n.id},r.isItemFocused=function(n){return!!r.focusedItem&&r.focusedItem.id==n.id},r.getItemClass=function(n){return new M.CssClassBuilder().append(r.cssClasses.item).append(r.cssClasses.itemWithIcon,!!n.iconName).append(r.cssClasses.itemDisabled,r.isItemDisabled(n)).append(r.cssClasses.itemFocused,r.isItemFocused(n)).append(r.cssClasses.itemSelected,n.active||r.isItemSelected(n)).append(n.css).toString()},r.getItemIndent=function(n){var i=n.level||0;return(i+1)*s.INDENT+"px"},r.setItems(e),r.selectedItem=f,r}return s.prototype.hasText=function(e,g){if(!g)return!0;var h=(e.title||"").toLocaleLowerCase();return h.indexOf(g.toLocaleLowerCase())>-1},s.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(s.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(g){return e.isItemVisible(g)})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),s.prototype.onFilterStringChanged=function(e){var g=this;this.isEmpty=this.renderedActions.filter(function(h){return g.isItemVisible(h)}).length===0,this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e)},s.prototype.setItems=function(e,g){g===void 0&&(g=!0),u.prototype.setItems.call(this,e,g),!this.isAllDataLoaded&&!!this.actions.length&&this.actions.push(this.loadingIndicator)},s.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.actions||[]).length>s.MINELEMENTCOUNT,u.prototype.onSet.call(this)},s.prototype.getDefaultCssClasses=function(){return a},s.prototype.updateItemActiveState=function(){var e=this;this.actions.forEach(function(g){return g.active=e.isItemSelected(g)})},Object.defineProperty(s.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"emptyMessage",{get:function(){return this.getLocalizationString("emptyMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new I.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),s.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var g=e.target.parentElement;T.ElementHelper.focusElement(T.ElementHelper.getNextElementPreorder(g.nextElementSibling.firstElementChild)),e.preventDefault()}},s.prototype.onMouseMove=function(e){this.resetFocusedItem()},s.prototype.onKeyDown=function(e){var g=e.target;e.key==="ArrowDown"||e.keyCode===40?(T.ElementHelper.focusElement(T.ElementHelper.getNextElementPreorder(g)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(T.ElementHelper.focusElement(T.ElementHelper.getNextElementPostorder(g)),e.preventDefault())},s.prototype.onPointerDown=function(e,g){},s.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},s.prototype.resetFocusedItem=function(){this.focusedItem=void 0},s.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},s.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},s.prototype.initFocusedItem=function(){var e=this;this.selectedItem?this.focusedItem=this.visibleItems.filter(function(g){return g.id===e.selectedItem.id})[0]:this.focusFirstVisibleItem()},s.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,g=e.indexOf(this.focusedItem),h=e[g+1];h?this.focusedItem=h:this.focusFirstVisibleItem()}},s.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,g=e.indexOf(this.focusedItem),h=e[g-1];h?this.focusedItem=h:this.focusLastVisibleItem()}},s.prototype.selectFocusedItem=function(){this.onItemClick(this.focusedItem)},s.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},s.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&!!this.listContainerHtmlElement&&(this.hasVerticalScroller=T.ElementHelper.hasVerticalScroller(this.scrollableContainer))},s.prototype.scrollToFocusedItem=function(){var e=this;setTimeout(function(){if(!!e.listContainerHtmlElement){var g=e.listContainerHtmlElement.querySelector("."+e.getDefaultCssClasses().itemFocused);g&&g.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}},0)},s.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},s.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},s.INDENT=16,s.MINELEMENTCOUNT=10,P([Object(b.property)({defaultValue:!0,onSet:function(e,g){g.onSet()}})],s.prototype,"searchEnabled",void 0),P([Object(b.property)({defaultValue:!1})],s.prototype,"showFilter",void 0),P([Object(b.property)({defaultValue:!1})],s.prototype,"isExpanded",void 0),P([Object(b.property)({onSet:function(e,g){g.updateItemActiveState()}})],s.prototype,"selectedItem",void 0),P([Object(b.property)()],s.prototype,"focusedItem",void 0),P([Object(b.property)({onSet:function(e,g){g.onFilterStringChanged(g.filterString)}})],s.prototype,"filterString",void 0),P([Object(b.property)({defaultValue:!1})],s.prototype,"hasVerticalScroller",void 0),P([Object(b.property)({defaultValue:!0})],s.prototype,"isAllDataLoaded",void 0),s}(C.ActionContainer)},"./src/localizablestring.ts":function(D,y,c){c.r(y),c.d(y,"LocalizableString",function(){return T}),c.d(y,"LocalizableStrings",function(){return V});var b=c("./src/helpers.ts"),C=c("./src/surveyStrings.ts"),I=c("./src/settings.ts"),M=c("./src/base.ts"),T=function(){function P(a,p,u){p===void 0&&(p=!1),this.owner=a,this.useMarkdown=p,this.name=u,this.values={},this.htmlValues={},this.onStringChanged=new M.EventBase,this.onCreating()}return Object.defineProperty(P,"defaultLocale",{get:function(){return I.settings.defaultLocaleName},set:function(a){I.settings.defaultLocaleName=a},enumerable:!1,configurable:!0}),P.prototype.getIsMultiple=function(){return!1},Object.defineProperty(P.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var a=this.owner.getLocale();if(!!a||!this.sharedData)return a}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),P.prototype.strChanged=function(){this.searchableText=void 0,this.renderedText!==void 0&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(P.prototype,"text",{get:function(){return this.pureText},set:function(a){this.setLocaleText(this.locale,a)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),P.prototype.calcText=function(){var a=this.pureText;return a&&this.owner&&this.owner.getProcessedText&&a.indexOf("{")>-1&&(a=this.owner.getProcessedText(a)),this.onGetTextCallback&&(a=this.onGetTextCallback(a)),a},Object.defineProperty(P.prototype,"pureText",{get:function(){var a=this.locale;a||(a=this.defaultLoc);var p=this.getValue(a);if(!p&&a===this.defaultLoc&&(p=this.getValue(C.surveyLocalization.defaultLocale)),!p){var u=this.getRootDialect(a);u&&(p=this.getValue(u))}return!p&&a!==this.defaultLoc&&(p=this.getValue(this.defaultLoc)),!p&&!!this.getLocalizationName()&&(p=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(p=this.onGetLocalizationTextCallback(p))),p||(p=""),p},enumerable:!1,configurable:!0}),P.prototype.getRootDialect=function(a){if(!a)return a;var p=a.indexOf("-");return p>-1?a.substring(0,p):""},P.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},P.prototype.getLocalizationStr=function(){var a=this.getLocalizationName();return a?C.surveyLocalization.getString(a,this.locale):""},Object.defineProperty(P.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),P.prototype.getLocaleText=function(a){a||(a=this.defaultLoc);var p=this.getValue(a);return p||""},P.prototype.getLocaleTextWithDefault=function(a){var p=this.getLocaleText(a);return!p&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():p},P.prototype.setLocaleText=function(a,p){if(!this.storeDefaultText&&p==this.getLocaleTextWithDefault(a)){if(!!p||!!a&&a!==this.defaultLoc)return;var u=C.surveyLocalization.defaultLocale,s=this.getValue(u);!!u&&!!s&&(this.setValue(u,p),this.fireStrChanged(s,p));return}if(!(!I.settings.storeDuplicatedTranslations&&p&&a&&a!=this.defaultLoc&&!this.getValue(a)&&p==this.getLocaleText(this.defaultLoc))){var e=this.locale;a||(a=this.defaultLoc),e||(e=this.defaultLoc);var g=this.onStrChanged&&a===e?this.pureText:void 0;delete this.htmlValues[a],p?typeof p=="string"&&(this.canRemoveLocValue(a,p)?this.setLocaleText(a,null):(this.setValue(a,p),a==this.defaultLoc&&this.deleteValuesEqualsToDefault(p))):this.getValue(a)&&this.deleteValue(a),this.fireStrChanged(g,p)}},P.prototype.canRemoveLocValue=function(a,p){if(I.settings.storeDuplicatedTranslations||a===this.defaultLoc)return!1;var u=this.getRootDialect(a);if(u){var s=this.getLocaleText(u);return s?s==p:this.canRemoveLocValue(u,p)}else return p==this.getLocaleText(this.defaultLoc)},P.prototype.fireStrChanged=function(a,p){this.strChanged(),!!this.onStrChanged&&a!==p&&this.onStrChanged(a,p)},P.prototype.hasNonDefaultText=function(){var a=this.getValuesKeys();return a.length==0?!1:a.length>1||a[0]!=this.defaultLoc},P.prototype.getLocales=function(){var a=this.getValuesKeys();return a.length==0?[]:a},P.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var a=this.getValuesKeys();return a.length==0?null:a.length==1&&a[0]==I.settings.defaultLocaleName&&!I.settings.serializeLocalizableStringAsObject?this.values[a[0]]:this.values},P.prototype.setJson=function(a){if(this.sharedData){this.sharedData.setJson(a);return}if(this.values={},this.htmlValues={},!!a){if(typeof a=="string")this.setLocaleText(null,a);else for(var p in a)this.setLocaleText(p,a[p]);this.strChanged()}},Object.defineProperty(P.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?P.defaultRenderer:this.owner.getRenderer(this.name)||P.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),P.prototype.equals=function(a){return this.sharedData?this.sharedData.equals(a):!a||!a.values?!1:b.Helpers.isTwoValueEquals(this.values,a.values,!1,!0,!1)},P.prototype.setFindText=function(a){if(this.searchText!=a){if(this.searchText=a,!this.searchableText){var p=this.textOrHtml;this.searchableText=p?p.toLowerCase():""}var u=this.searchableText,s=!!u&&!!a?u.indexOf(a):void 0;return s<0&&(s=void 0),(s!=null||this.searchIndex!=s)&&(this.searchIndex=s,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},P.prototype.onChanged=function(){},P.prototype.onCreating=function(){},P.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var a=this.locale;if(a||(a=this.defaultLoc),this.htmlValues[a]!==void 0)return!!this.htmlValues[a];var p=this.calculatedText;if(!p||!!this.getLocalizationName()&&p===this.getLocalizationStr())return!1;var u=this.owner.getMarkdownHtml(p,this.name);return this.htmlValues[a]=u,!!u},P.prototype.getHtmlValue=function(){var a=this.locale;return a||(a=this.defaultLoc),this.htmlValues[a]},P.prototype.deleteValuesEqualsToDefault=function(a){for(var p=this.getValuesKeys(),u=0;u0},Object.defineProperty(P.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),P.prototype.getLocale=function(a){return a||(a=this.locale,a||I.settings.defaultLocaleName)},P.prototype.getLocales=function(){var a=this.getValuesKeys();return a.length==0?[]:a},P.prototype.getJson=function(){var a=this.getValuesKeys();return a.length==0?null:a.length==1&&a[0]==I.settings.defaultLocaleName&&!I.settings.serializeLocalizableStringAsObject?this.values[a[0]]:b.Helpers.createCopy(this.values)},P.prototype.setJson=function(a){if(this.values={},!!a)if(Array.isArray(a))this.setValue(null,a);else for(var p in a)this.setValue(p,a[p])},P.prototype.getValuesKeys=function(){return Object.keys(this.values)},P}()},"./src/localization/english.ts":function(D,y,c){c.r(y),c.d(y,"englishStrings",function(){return b});var b={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}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Tap to rate here...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {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:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drop a file here or click the button below to load the file.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved 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.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",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",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:`There are no entries yet. +Click the button below to add a new entry.`,more:"More"}},"./src/martixBase.ts":function(D,y,c){c.r(y),c.d(y,"QuestionMatrixBaseModel",function(){return p});var b=c("./src/itemvalue.ts"),C=c("./src/question.ts"),I=c("./src/jsonobject.ts"),M=c("./src/conditions.ts"),T=c("./src/helpers.ts"),V=c("./src/utils/cssClassBuilder.ts"),P=function(){var u=function(s,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(g[f]=h[f])},u(s,e)};return function(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(s,e);function g(){this.constructor=s}s.prototype=e===null?Object.create(e):(g.prototype=e.prototype,new g)}}(),a=function(u,s,e,g){var h=arguments.length,f=h<3?s:g===null?g=Object.getOwnPropertyDescriptor(s,e):g,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(u,s,e,g);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(f=(h<3?o(f):h>3?o(s,e,f):o(s,e))||f);return h>3&&f&&Object.defineProperty(s,e,f),f},p=function(u){P(s,u);function s(e){var g=u.call(this,e)||this;return g.generatedVisibleRows=null,g.generatedTotalRow=null,g.filteredRows=null,g.filteredColumns=null,g.columns=g.createColumnValues(),g.rows=g.createItemValues("rows"),g}return s.prototype.createColumnValues=function(){return this.createItemValues("columns")},s.prototype.getType=function(){return"matrixbase"},s.prototype.endLoadingFromJson=function(){u.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(s.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var g=this.processRowsOnSet(e);this.setPropertyValue("rows",g),this.filterItems()},enumerable:!1,configurable:!0}),s.prototype.processRowsOnSet=function(e){return e},s.prototype.getVisibleRows=function(){return[]},Object.defineProperty(s.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),s.prototype.runCondition=function(e,g){u.prototype.runCondition.call(this,e,g),this.runItemsCondition(e,g)},s.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):this.isLoadingFromJson||!this.data?!1:this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},s.prototype.onColumnsChanged=function(){},s.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},s.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},s.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},s.prototype.hasRowsAsItems=function(){return!0},s.prototype.runItemsCondition=function(e,g){var h=null;if(!!this.filteredRows&&!T.Helpers.isValueEmpty(this.defaultValue)){h=[];for(var f=0;f=0;g--)(e=V[g])&&(s=(u<3?e(s):u>3?e(P,a,s):e(P,a))||s);return u>3&&s&&Object.defineProperty(P,a,s),s},T=function(V){I(P,V);function P(a,p,u,s,e){var g=V.call(this,a,p,u,void 0,e)||this;return g.onItemClick=function(h){if(g.isExpanded=!1,g.isItemSelected(h)){var f=g.selectedItems.splice(g.selectedItems.indexOf(h),1)[0];g.onSelectionChanged&&g.onSelectionChanged(f,"removed")}else g.selectedItems.push(h),g.onSelectionChanged&&g.onSelectionChanged(h,"added")},g.isItemDisabled=function(h){return h.enabled!==void 0&&!h.enabled},g.isItemSelected=function(h){return!!g.allowSelection&&g.selectedItems.filter(function(f){return f.id==h.id}).length>0},g.setSelectedItems(s||[]),g}return P.prototype.updateItemState=function(){var a=this;this.actions.forEach(function(p){var u=a.isItemSelected(p);p.active=u,p.visible=a.hideSelectedItems?!u:!0})},P.prototype.setSelectedItems=function(a){var p=this;this.selectedItems=a,this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(u){return p.isItemVisible(u)}).length===0},P.prototype.initFocusedItem=function(){var a=this;this.hideSelectedItems||!this.selectedItems.length?this.focusFirstVisibleItem():this.selectedItems.length&&(this.focusedItem=this.visibleItems.filter(function(p){return p.id===a.selectedItems[0].id})[0])},P.prototype.selectFocusedItem=function(){V.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},M([Object(b.property)()],P.prototype,"hideSelectedItems",void 0),P}(C.ListModel)},"./src/page.ts":function(D,y,c){c.r(y),c.d(y,"PageModel",function(){return P});var b=c("./src/jsonobject.ts"),C=c("./src/panel.ts"),I=c("./src/utils/cssClassBuilder.ts"),M=c("./src/settings.ts"),T=function(){var a=function(p,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(s[g]=e[g])},a(p,u)};return function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(p,u);function s(){this.constructor=p}p.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),V=function(a,p,u,s){var e=arguments.length,g=e<3?p:s===null?s=Object.getOwnPropertyDescriptor(p,u):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,p,u,s);else for(var f=a.length-1;f>=0;f--)(h=a[f])&&(g=(e<3?h(g):e>3?h(p,u,g):h(p,u))||g);return e>3&&g&&Object.defineProperty(p,u,g),g},P=function(a){T(p,a);function p(u){u===void 0&&(u="");var s=a.call(this,u)||this;return s.hasShownValue=!1,s.timeSpent=0,s.locTitle.onGetTextCallback=function(e){return s.canShowPageNumber()&&e?s.num+". "+e:e},s.createLocalizableString("navigationTitle",s,!0),s.createLocalizableString("navigationDescription",s,!0),s}return p.prototype.getType=function(){return"page"},p.prototype.toString=function(){return this.name},Object.defineProperty(p.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),p.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},p.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(p.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(u){this.setLocalizableStringText("navigationTitle",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(u){this.setLocalizableStringText("navigationDescription",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),p.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(p.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(u){this.setPropertyValue("passed",u)},enumerable:!1,configurable:!0}),p.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},p.prototype.onFirstRendering=function(){this.wasShown||a.prototype.onFirstRendering.call(this)},Object.defineProperty(p.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(u){this.setPropertyValue("visibleIndex",u)},enumerable:!1,configurable:!0}),p.prototype.canRenderFirstRows=function(){return!this.isDesignMode||this.visibleIndex==0},Object.defineProperty(p.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),p.prototype.calcCssClasses=function(u){var s={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:""};return this.copyCssClasses(s.page,u.page),u.pageTitle&&(s.pageTitle=u.pageTitle),u.pageDescription&&(s.pageDescription=u.pageDescription),u.row&&(s.row=u.row),u.pageRow&&(s.pageRow=u.pageRow),u.rowMultiple&&(s.rowMultiple=u.rowMultiple),this.survey&&this.survey.updatePageCssClasses(this,s),s},Object.defineProperty(p.prototype,"cssTitle",{get:function(){return this.cssClasses.page?new I.CssClassBuilder().append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssRoot",{get:function(){return!this.cssClasses.page||!this.survey?"":new I.CssClassBuilder().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(u){this.setPropertyValue("navigationButtonsVisibility",u.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),p.prototype.setWasShown=function(u){if(u!=this.hasShownValue&&(this.hasShownValue=u,!(this.isDesignMode||u!==!0))){for(var s=this.elements,e=0;e-1&&(s=u,e=u,this.dragDropInfo.isBottom?s=o0?f[o-1]:null)}}var r={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:g,insertAfter:e,insertBefore:s};return this.survey.dragAndDropAllow(r)},p.prototype.dragDropFinish=function(u){if(u===void 0&&(u=!1),!!this.dragDropInfo){var s=this.dragDropInfo.target,e=this.dragDropInfo.source,g=this.dragDropInfo.destination,h=this.dragDropFindRow(s),f=this.dragDropGetElementIndex(s,h);this.updateRowsRemoveElementFromRow(s,h);var o=[],r=[];if(!u&&!!h){var n=!1;if(this.isDesignMode&&M.settings.supportCreatorV2){var i=e&&e.parent&&e.parent.dragDropFindRow(e);h.panel.elements[f]&&h.panel.elements[f].startWithNewLine&&h.elements.length>1&&h.panel.elements[f]===g&&(o.push(s),r.push(h.panel.elements[f])),s.startWithNewLine&&h.elements.length>1&&(!h.panel.elements[f]||!h.panel.elements[f].startWithNewLine)&&r.push(s),i&&i.elements[0]===e&&i.elements[1]&&o.push(i.elements[1]),h.elements.length<=1&&o.push(s),s.startWithNewLine&&h.elements.length>1&&h.elements[0]!==g&&r.push(s)}!!e&&!!e.parent&&(this.survey.startMovingQuestion(),n=h.panel==e.parent,n?(h.panel.dragDropMoveElement(e,s,f),f=-1):e.parent.removeElement(e)),f>-1&&h.panel.addElement(s,f),this.survey.stopMovingQuestion()}return o.map(function(m){m.startWithNewLine=!0}),r.map(function(m){m.startWithNewLine=!1}),this.dragDropInfo=null,u?null:s}},p.prototype.dragDropGetElementIndex=function(u,s){if(!s)return-1;var e=s.elements.indexOf(u);if(s.index==0)return e;var g=s.panel.rows[s.index-1],h=g.elements[g.elements.length-1];return e+s.panel.elements.indexOf(h)+1},p.prototype.dragDropCanDropTagert=function(){var u=this.dragDropInfo.destination;return!u||u.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,u)},p.prototype.dragDropCanDropSource=function(){var u=this.dragDropInfo.source;if(!u)return!0;var s=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(u,s))return!1;if(this.isDesignMode&&M.settings.supportCreatorV2){var e=this.dragDropFindRow(u),g=this.dragDropFindRow(s);if(e!==g&&(!u.startWithNewLine&&s.startWithNewLine||u.startWithNewLine&&!s.startWithNewLine))return!0;var h=this.dragDropFindRow(s);if(h&&h.elements.length==1)return!0}return this.dragDropCanDropNotNext(u,s,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},p.prototype.dragDropCanDropCore=function(u,s){if(!s)return!0;if(this.dragDropIsSameElement(s,u))return!1;if(u.isPanel){var e=u;if(e.containsElement(s)||!!e.getElementByName(s.name))return!1}return!0},p.prototype.dragDropCanDropNotNext=function(u,s,e,g){if(!s||s.isPanel&&!e||typeof u.parent>"u"||u.parent!==s.parent)return!0;var h=u.parent,f=h.elements.indexOf(u),o=h.elements.indexOf(s);return o1:f-o>0},p.prototype.dragDropIsSameElement=function(u,s){return u==s||u.name==s.name},p.prototype.ensureRowsVisibility=function(){a.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(u){return u.ensureRowsVisibility()})},V([Object(b.property)({defaultValue:-1,onSet:function(u,s){return s.onNumChanged(u)}})],p.prototype,"num",void 0),p}(C.PanelModelBase);b.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(a){return!!a.survey&&a.survey.progressBarType==="buttons"},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(a){return!!a.survey&&a.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new P},"panelbase")},"./src/panel.ts":function(D,y,c){c.r(y),c.d(y,"DragDropInfo",function(){return g}),c.d(y,"QuestionRowModel",function(){return h}),c.d(y,"PanelModelBase",function(){return f}),c.d(y,"PanelModel",function(){return o});var b=c("./src/jsonobject.ts"),C=c("./src/helpers.ts"),I=c("./src/base.ts"),M=c("./src/survey-element.ts"),T=c("./src/question.ts"),V=c("./src/questionfactory.ts"),P=c("./src/error.ts"),a=c("./src/settings.ts"),p=c("./src/utils/utils.ts"),u=c("./src/utils/cssClassBuilder.ts"),s=function(){var r=function(n,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,O){m.__proto__=O}||function(m,O){for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(m[w]=O[w])},r(n,i)};return function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(n,i);function m(){this.constructor=n}n.prototype=i===null?Object.create(i):(m.prototype=i.prototype,new m)}}(),e=function(r,n,i,m){var O=arguments.length,w=O<3?n:m===null?m=Object.getOwnPropertyDescriptor(n,i):m,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,n,i,m);else for(var l=r.length-1;l>=0;l--)(x=r[l])&&(w=(O<3?x(w):O>3?x(n,i,w):x(n,i))||w);return O>3&&w&&Object.defineProperty(n,i,w),w},g=function(){function r(n,i,m){m===void 0&&(m=-1),this.source=n,this.target=i,this.nestedPanelDepth=m}return r}(),h=function(r){s(n,r);function n(i){var m=r.call(this)||this;return m.panel=i,m._scrollableParent=void 0,m._updateVisibility=void 0,m.idValue=n.getRowId(),m.visible=i.areInvisibleElementsShowing,m.createNewArray("elements"),m.createNewArray("visibleElements"),m}return n.getRowId=function(){return"pr_"+n.rowCounter++},n.prototype.startLazyRendering=function(i,m){var O=this;m===void 0&&(m=p.findScrollableParent),this._scrollableParent=m(i),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var w=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!w,w&&(this._updateVisibility=function(){var x=Object(p.isElementVisible)(i,50);!O.isNeedRender&&x&&(O.isNeedRender=!0,O.stopLazyRendering())},setTimeout(function(){!!O._scrollableParent&&!!O._scrollableParent.addEventListener&&O._scrollableParent.addEventListener("scroll",O._updateVisibility),O.ensureVisibility()},10))},n.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},n.prototype.stopLazyRendering=function(){!!this._scrollableParent&&!!this._updateVisibility&&!!this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},n.prototype.setIsLazyRendering=function(i){this.isLazyRenderingValue=i,this.isNeedRender=!i},n.prototype.isLazyRendering=function(){return this.isLazyRenderingValue===!0},Object.defineProperty(n.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(i){this.setPropertyValue("visible",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(i){this.setPropertyValue("isneedrender",i)},enumerable:!1,configurable:!0}),n.prototype.updateVisible=function(){var i=this.calcVisible();this.setWidth(),this.visible=i},n.prototype.addElement=function(i){this.elements.push(i),this.updateVisible()},Object.defineProperty(n.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),n.prototype.setWidth=function(){var i,m=this.visibleElements.length;if(m!=0){for(var O=this.visibleElements.length===1,w=0,x=[],l=0;l-1||(x.length==0?t.renderWidth=(100/m).toFixed(6)+"%":t.renderWidth=this.getRenderedCalcWidth(t,x,m))}}},n.prototype.setElementMaxMinWidth=function(i){i.width&&typeof i.width=="string"&&i.width.indexOf("%")===-1&&(i.minWidth=i.width,i.maxWidth=i.width)},n.prototype.getRenderedCalcWidth=function(i,m,O){for(var w="100%",x=0;x1&&(w="("+w+")/"+l.toString()),"calc("+w+")"},n.prototype.getElementWidth=function(i){var m=i.width;return!m||typeof m!="string"?"":m.trim()},n.prototype.getRenderedWidthFromWidth=function(i){return C.Helpers.isNumber(i)?i+"px":i},n.prototype.calcVisible=function(){for(var i=[],m=0;m0},n.prototype.needToUpdateVisibleElements=function(i){if(i.length!==this.visibleElements.length)return!0;for(var m=0;m1).toString()},n.rowCounter=100,n}(I.Base),f=function(r){s(n,r);function n(i){i===void 0&&(i="");var m=r.call(this,i)||this;return m.isQuestionsReady=!1,m.questionsValue=new Array,m.isRandomizing=!1,m.createNewArray("rows"),m.elementsValue=m.createNewArray("elements",m.onAddElement.bind(m),m.onRemoveElement.bind(m)),m.id=n.getPanelId(),m.addExpressionProperty("visibleIf",function(O,w){m.visible=w===!0},function(O){return!m.areInvisibleElementsShowing}),m.addExpressionProperty("enableIf",function(O,w){m.readOnly=w===!1}),m.addExpressionProperty("requiredIf",function(O,w){m.isRequired=w===!0}),m.createLocalizableString("requiredErrorText",m),m.registerPropertyChangedHandlers(["questionTitleLocation"],function(){m.onVisibleChanged.bind(m),m.updateElementCss(!0)}),m.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){m.updateVisibleIndexes()}),m}return n.getPanelId=function(){return"sp_"+n.panelCounter++},n.prototype.getType=function(){return"panelbase"},n.prototype.setSurveyImpl=function(i,m){r.prototype.setSurveyImpl.call(this,i,m),this.isDesignMode&&this.onVisibleChanged();for(var O=0;O0||this.showTitle&&this.isDesignMode&&a.settings.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),n.prototype.canShowTitle=function(){return!0},Object.defineProperty(n.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&a.settings.allowShowEmptyTitleInDesignMode&&a.settings.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),n.prototype.localeChanged=function(){r.prototype.localeChanged.call(this);for(var i=0;i-1){w.updateVisible(),w.visible&&!w.isNeedRender&&(w.isNeedRender=!0);break}}},n.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},n.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var i=new Array,m=0;m=a.settings.lazyRowsRenderingStartRow||!this.canRenderFirstRows()},n.prototype.canRenderFirstRows=function(){return this.isPage},n.prototype.getDragDropInfo=function(){var i=this.getPage(this.parent);return i?i.getDragDropInfo():void 0},n.prototype.updateRowsOnElementAdded=function(i,m){if(!!this.canBuildRows()){var O=a.settings.supportCreatorV2?this.getDragDropInfo():void 0;O||(O=new g(null,i),O.target=i,O.isEdge=this.elements.length>1,this.elements.length<2?O.destination=this:(O.isBottom=m>0,m==0?O.destination=this.elements[1]:O.destination=this.elements[m-1])),this.dragDropAddTargetToRow(O,null)}},n.prototype.updateRowsOnElementRemoved=function(i){!this.canBuildRows()||this.updateRowsRemoveElementFromRow(i,this.findRowByElement(i))},n.prototype.updateRowsRemoveElementFromRow=function(i,m){if(!(!m||!m.panel)){var O=m.elements.indexOf(i);O<0||(m.elements.splice(O,1),m.elements.length>0?(m.elements[0].startWithNewLine=!0,m.updateVisible()):m.index>=0&&m.panel.rows.splice(m.index,1))}},n.prototype.findRowByElement=function(i){for(var m=this.rows,O=0;O-1)return m[O];return null},n.prototype.elementWidthChanged=function(i){if(!this.isLoadingFromJson){var m=this.findRowByElement(i);m&&m.updateVisible()}},Object.defineProperty(n.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),n.prototype.getRenderedTitle=function(i){return this.textProcessor!=null?this.textProcessor.processText(i,!0):i},Object.defineProperty(n.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(i){i!==this.visible&&(this.setPropertyValue("visible",i),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),n.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),!!this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var i=this.questions,m=0;m=this.elements.length?this.elements.push(i):this.elements.splice(m,0,i),!0):!1},n.prototype.insertElementAfter=function(i,m){var O=this.elements.indexOf(m);O>=0&&this.addElement(i,O+1)},n.prototype.insertElementBefore=function(i,m){var O=this.elements.indexOf(m);O>=0&&this.addElement(i,O)},n.prototype.canAddElement=function(i){return!!i&&i.isLayoutTypeSupported(this.getChildrenLayoutType())},n.prototype.addQuestion=function(i,m){return m===void 0&&(m=-1),this.addElement(i,m)},n.prototype.addPanel=function(i,m){return m===void 0&&(m=-1),this.addElement(i,m)},n.prototype.addNewQuestion=function(i,m,O){m===void 0&&(m=null),O===void 0&&(O=-1);var w=V.QuestionFactory.Instance.createQuestion(i,m);return this.addQuestion(w,O)?w:null},n.prototype.addNewPanel=function(i){i===void 0&&(i=null);var m=this.createNewPanel(i);return this.addPanel(m)?m:null},n.prototype.indexOf=function(i){return this.elements.indexOf(i)},n.prototype.createNewPanel=function(i){var m=b.Serializer.createClass("panel");return m.name=i,m},n.prototype.removeElement=function(i){var m=this.elements.indexOf(i);if(m<0){for(var O=0;O-1)return O[w];for(var w=0;w1?this.dragDropAddTargetToExistingRow(i,w,m):this.dragDropAddTargetToNewRow(i,w,m):i.target.startWithNewLine?this.dragDropAddTargetToNewRow(i,w,m):this.dragDropAddTargetToExistingRow(i,w,m):!0},n.prototype.dragDropAddTargetToEmptyPanel=function(i){if(i.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,i.target,i.isBottom),!0;var m=i.destination;if(m.isPanel&&!i.isEdge){var O=m;if(i.target.template===m)return!1;if(i.nestedPanelDepth<0||i.nestedPanelDepth>=O.depth)return this.dragDropAddTargetToEmptyPanelCore(m,i.target,i.isBottom),!0}return!1},n.prototype.dragDropAddTargetToExistingRow=function(i,m,O){var w=m.elements.indexOf(i.destination);if(w==0&&!i.isBottom&&!(this.isDesignMode&&a.settings.supportCreatorV2)){if(m.elements[0].startWithNewLine)return m.index>0?(i.isBottom=!0,m=m.panel.rows[m.index-1],i.destination=m.elements[m.elements.length-1],this.dragDropAddTargetToExistingRow(i,m,O)):this.dragDropAddTargetToNewRow(i,m,O)}var x=-1;O==m&&(x=m.elements.indexOf(i.target)),i.isBottom&&w++;var l=this.findRowByElement(i.source);return l==m&&l.elements.indexOf(i.source)==w||w==x?!1:(x>-1&&(m.elements.splice(x,1),xw&&O--,this.removeElement(i),this.addElement(m,O)},n.prototype.needResponsiveWidth=function(){var i=!1;return this.elements.forEach(function(m){m.needResponsiveWidth()&&(i=!0)}),this.rows.forEach(function(m){m.elements.length>1&&(i=!0)}),i},Object.defineProperty(n.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){if(r.prototype.dispose.call(this),this.rows){for(var i=0;i1},choices:function(r){var n=r?r.survey:null;return n?n.pages.map(function(i){return{value:i.name,text:i.title}}):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new o},"panelbase"),V.ElementFactory.Instance.registerElement("panel",function(r){return new o(r)})},"./src/popup-dropdown-view-model.ts":function(D,y,c){c.r(y),c.d(y,"PopupDropdownViewModel",function(){return V});var b=c("./src/jsonobject.ts"),C=c("./src/utils/popup.ts"),I=c("./src/popup-view-model.ts"),M=function(){var P=function(a,p){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&(u[e]=s[e])},P(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");P(a,p);function u(){this.constructor=a}a.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)}}(),T=function(P,a,p,u){var s=arguments.length,e=s<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,p):u,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(P,a,p,u);else for(var h=P.length-1;h>=0;h--)(g=P[h])&&(e=(s<3?g(e):s>3?g(a,p,e):g(a,p))||e);return s>3&&e&&Object.defineProperty(a,p,e),e},V=function(P){M(a,P);function a(p,u){var s=P.call(this,p)||this;return s.targetElement=u,s.isAutoScroll=!0,s.scrollEventCallBack=function(){s.isAutoScroll?s.isAutoScroll=!1:s.hidePopup()},s.model.onRecalculatePosition.add(function(e,g){s.updatePosition(g.isResetHeight)}),s}return a.prototype._updatePosition=function(){if(!!this.targetElement){var p=this.targetElement.getBoundingClientRect(),u=this.container.children[0],s=u.children[0],e=u.children[0].querySelector(".sv-popup__scrolling-content"),g=window.getComputedStyle(s),h=parseFloat(g.marginLeft)||0,f=parseFloat(g.marginRight)||0,o=s.offsetHeight-e.offsetHeight+e.scrollHeight,r=s.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=p.width+"px");var n=this.model.verticalPosition;window&&(o=Math.ceil(Math.min(o,window.innerHeight*.9)),n=C.PopupUtils.updateVerticalPosition(p,o,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=C.PopupUtils.calculatePopupDirection(n,this.model.horizontalPosition);var i=C.PopupUtils.calculatePosition(p,o,r+h+f,n,this.model.horizontalPosition,this.showHeader,this.model.positionMode);if(window){var m=C.PopupUtils.updateVerticalDimensions(i.top,o,window.innerHeight);m&&(this.height=m.height+"px",i.top=m.top);var O=C.PopupUtils.updateHorizontalDimensions(i.left,r,window.innerWidth,this.model.horizontalPosition,this.model.positionMode,{left:h,right:f});O&&(this.width=O.width?O.width+"px":void 0,i.left=O.left)}this.left=i.left+"px",this.top=i.top+"px",this.showHeader&&(this.pointerTarget=C.PopupUtils.calculatePointerTarget(p,i.top,i.left,n,this.model.horizontalPosition,h,f)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"}},a.prototype.hidePopup=function(){P.prototype.hidePopup.call(this),this.isAutoScroll=!0},a.prototype.getStyleClass=function(){return P.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--".concat(this.popupDirection),!this.isOverlay&&this.showHeader)},a.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},a.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},a.prototype.updateOnShowing=function(){this.prevActiveElement=document.activeElement,this.isOverlay?(this.top=null,this.left=null,this.height=null,this.width=null,this.minWidth=null):this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("scroll",this.scrollEventCallBack)},a.prototype.updatePosition=function(p,u){var s=this;u===void 0&&(u=!0),p&&(this.height="auto"),u?setTimeout(function(){s._updatePosition()},1):this._updatePosition()},a.prototype.updateOnHiding=function(){P.prototype.updateOnHiding.call(this),window.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},T([Object(b.property)({defaultValue:"left"})],a.prototype,"popupDirection",void 0),T([Object(b.property)({defaultValue:{left:"0px",top:"0px"}})],a.prototype,"pointerTarget",void 0),a}(I.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(D,y,c){c.r(y),c.d(y,"PopupModalViewModel",function(){return I});var b=c("./src/popup-view-model.ts"),C=function(){var M=function(T,V){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,a){P.__proto__=a}||function(P,a){for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(P[p]=a[p])},M(T,V)};return function(T,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");M(T,V);function P(){this.constructor=T}T.prototype=V===null?Object.create(V):(P.prototype=V.prototype,new P)}}(),I=function(M){C(T,M);function T(V){return M.call(this,V)||this}return T.prototype.getStyleClass=function(){return M.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},T.prototype.getShowFooter=function(){return!0},T.prototype.createFooterActionBar=function(){var V=this;M.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply",action:function(){V.apply()}})},Object.defineProperty(T.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),T.prototype.apply=function(){!!this.model.onApply&&!this.model.onApply()||this.hidePopup()},T.prototype.clickOutside=function(){},T.prototype.onKeyDown=function(V){(V.key==="Escape"||V.keyCode===27)&&this.model.onCancel(),M.prototype.onKeyDown.call(this,V)},T}(b.PopupBaseViewModel)},"./src/popup-survey.ts":function(D,y,c){c.r(y),c.d(y,"PopupSurveyModel",function(){return V}),c.d(y,"SurveyWindowModel",function(){return P});var b=c("./src/base.ts"),C=c("./src/survey.ts"),I=c("./src/jsonobject.ts"),M=function(){var a=function(p,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(s[g]=e[g])},a(p,u)};return function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(p,u);function s(){this.constructor=p}p.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),T=function(a,p,u,s){var e=arguments.length,g=e<3?p:s===null?s=Object.getOwnPropertyDescriptor(p,u):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,p,u,s);else for(var f=a.length-1;f>=0;f--)(h=a[f])&&(g=(e<3?h(g):e>3?h(p,u,g):h(p,u))||g);return e>3&&g&&Object.defineProperty(p,u,g),g},V=function(a){M(p,a);function p(u,s){s===void 0&&(s=null);var e=a.call(this)||this;return e.closeOnCompleteTimeout=0,s?e.surveyValue=s:e.surveyValue=e.createSurvey(u),e.surveyValue.showTitle=!1,typeof document<"u"&&(e.windowElement=document.createElement("div")),e.survey.onComplete.add(function(g,h){e.onSurveyComplete()}),e.registerPropertyChangedHandlers(["isShowing"],function(){e.showingChangedCallback&&e.showingChangedCallback()}),e.registerPropertyChangedHandlers(["isExpanded"],function(){e.onExpandedChanged()}),e.width=new b.ComputedUpdater(function(){return e.survey.width}),e.width=e.survey.width,e.updateCss(),e.onCreating(),e}return p.prototype.onCreating=function(){},p.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(p.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(u){this.setPropertyValue("isShowing",u)},enumerable:!1,configurable:!0}),p.prototype.show=function(){this.isShowing=!0},p.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(p.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(u){this.setPropertyValue("isExpanded",u)},enumerable:!1,configurable:!0}),p.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(p.prototype,"title",{get:function(){return this.survey.title},set:function(u){this.survey.title=u},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),p.prototype.expand=function(){this.isExpanded=!0},p.prototype.collapse=function(){this.isExpanded=!1},p.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(p.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"renderedWidth",{get:function(){var u=this.getPropertyValue("width","60%");return u&&!isNaN(u)&&(u=u+"px"),u},enumerable:!1,configurable:!0}),p.prototype.updateCss=function(){if(!(!this.css||!this.css.window)){var u=this.css.window;this.setPropertyValue("cssRoot",u.root),this.setPropertyValue("cssBody",u.body);var s=u.header;!s||(this.setPropertyValue("cssHeaderRoot",s.root),this.setPropertyValue("cssHeaderTitle",s.title),this.updateCssButton())}},p.prototype.updateCssButton=function(){var u=this.css.window?this.css.window.header:null;!u||this.setCssButton(this.isExpanded?u.buttonExpanded:u.buttonCollapsed)},p.prototype.setCssButton=function(u){!u||this.setPropertyValue("cssButton",u)},p.prototype.createSurvey=function(u){return new C.SurveyModel(u)},p.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var u=this,s=null,e=function(){u.hide(),typeof window<"u"&&window.clearInterval(s)};s=typeof window<"u"?window.setInterval(e,this.closeOnCompleteTimeout*1e3):0}},p.surveyElementName="PopupSurveyJS",T([Object(I.property)()],p.prototype,"width",void 0),p}(b.Base),P=function(a){M(p,a);function p(){return a!==null&&a.apply(this,arguments)||this}return p}(V)},"./src/popup-utils.ts":function(D,y,c){c.r(y),c.d(y,"createPopupModalViewModel",function(){return M}),c.d(y,"createPopupViewModel",function(){return T});var b=c("./src/popup.ts"),C=c("./src/popup-dropdown-view-model.ts"),I=c("./src/popup-modal-view-model.ts");function M(V){var P=new b.PopupModel(V.componentName,V.data,"top","left",!1,!0,V.onCancel,V.onApply,V.onHide,V.onShow,V.cssClass,V.title);P.displayMode=V.displayMode||"popup";var a=new I.PopupModalViewModel(P);return a.initializePopupContainer(),a}function T(V,P){return V.isModal?new I.PopupModalViewModel(V):new C.PopupDropdownViewModel(V,P)}},"./src/popup-view-model.ts":function(D,y,c){c.r(y),c.d(y,"FOCUS_INPUT_SELECTOR",function(){return P}),c.d(y,"PopupBaseViewModel",function(){return a});var b=c("./src/base.ts"),C=c("./src/jsonobject.ts"),I=c("./src/utils/cssClassBuilder.ts"),M=c("./src/actions/container.ts"),T=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),V=function(p,u,s,e){var g=arguments.length,h=g<3?u:e===null?e=Object.getOwnPropertyDescriptor(u,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,u,s,e);else for(var o=p.length-1;o>=0;o--)(f=p[o])&&(h=(g<3?f(h):g>3?f(u,s,h):f(u,s))||h);return g>3&&h&&Object.defineProperty(u,s,h),h},P='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',a=function(p){T(u,p);function u(s){var e=p.call(this)||this;return e.model=s,e}return u.prototype.hidePopup=function(){this.model.isVisible=!1},u.prototype.getStyleClass=function(){return new I.CssClassBuilder().append(this.model.cssClass).append("sv-popup--".concat(this.model.displayMode),this.isOverlay)},u.prototype.getShowFooter=function(){return this.isOverlay},u.prototype.getShowHeader=function(){return!1},u.prototype.getPopupHeaderTemplate=function(){},u.prototype.createFooterActionBar=function(){var s=this;this.footerToolbarValue=new M.ActionContainer,this.footerToolbar.updateCallback=function(e){s.footerToolbarValue.actions.forEach(function(g){return g.cssClasses={}})},this.footerToolbarValue.addAction({id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--cancel",action:function(){s.cancel()}})},u.prototype.setupModel=function(s){var e=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=s;var g=function(){s.isVisible||e.updateOnHiding(),e.isVisible=s.isVisible};s.registerPropertyChangedHandlers(["isVisible"],g,"PopupBaseViewModel"),g()},Object.defineProperty(u.prototype,"model",{get:function(){return this._model},set:function(s){this.setupModel(s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isOverlay",{get:function(){return this.model.displayMode==="overlay"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),u.prototype.onKeyDown=function(s){s.key==="Tab"||s.keyCode===9?this.trapFocus(s):(s.key==="Escape"||s.keyCode===27)&&this.hidePopup()},u.prototype.trapFocus=function(s){var e=this.container.querySelectorAll(P),g=e[0],h=e[e.length-1];s.shiftKey?document.activeElement===g&&(h.focus(),s.preventDefault()):document.activeElement===h&&(g.focus(),s.preventDefault())},u.prototype.switchFocus=function(){this.isFocusedContent&&this.focusFirstInput()},u.prototype.updateOnShowing=function(){this.prevActiveElement=document.activeElement,this.isOverlay&&(this.top=null,this.left=null,this.height=null,this.width=null,this.minWidth=null),this.switchFocus()},u.prototype.updateOnHiding=function(){this.prevActiveElement&&this.prevActiveElement.focus()},u.prototype.focusFirstInput=function(){var s=this;setTimeout(function(){if(!!s.container){var e=s.container.querySelector(s.model.focusFirstInputSelector||P);e?e.focus():s.container.children[0].focus()}},100)},u.prototype.clickOutside=function(){this.hidePopup()},u.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},u.prototype.dispose=function(){p.prototype.dispose.call(this),this.unmountPopupContainer(),this.container=void 0,this.model.onVisibilityChanged.clear(),this.model.onRecalculatePosition.clear()},u.prototype.initializePopupContainer=function(){if(!this.container){var s=document.createElement("div");this.container=s}document.body.appendChild(this.container)},u.prototype.unmountPopupContainer=function(){this.container.remove()},V([Object(C.property)({defaultValue:"0px"})],u.prototype,"top",void 0),V([Object(C.property)({defaultValue:"0px"})],u.prototype,"left",void 0),V([Object(C.property)({defaultValue:"auto"})],u.prototype,"height",void 0),V([Object(C.property)({defaultValue:"auto"})],u.prototype,"width",void 0),V([Object(C.property)({defaultValue:"auto"})],u.prototype,"minWidth",void 0),V([Object(C.property)({defaultValue:!1})],u.prototype,"isVisible",void 0),u}(b.Base)},"./src/popup.ts":function(D,y,c){c.r(y),c.d(y,"PopupModel",function(){return T}),c.d(y,"createDialogOptions",function(){return V});var b=c("./src/base.ts"),C=c("./src/jsonobject.ts"),I=function(){var P=function(a,p){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&(u[e]=s[e])},P(a,p)};return function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");P(a,p);function u(){this.constructor=a}a.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)}}(),M=function(P,a,p,u){var s=arguments.length,e=s<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,p):u,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(P,a,p,u);else for(var h=P.length-1;h>=0;h--)(g=P[h])&&(e=(s<3?g(e):s>3?g(a,p,e):g(a,p))||e);return s>3&&e&&Object.defineProperty(a,p,e),e},T=function(P){I(a,P);function a(p,u,s,e,g,h,f,o,r,n,i,m){s===void 0&&(s="bottom"),e===void 0&&(e="left"),g===void 0&&(g=!0),h===void 0&&(h=!1),f===void 0&&(f=function(){}),o===void 0&&(o=function(){return!0}),r===void 0&&(r=function(){}),n===void 0&&(n=function(){}),i===void 0&&(i=""),m===void 0&&(m="");var O=P.call(this)||this;return O.focusFirstInputSelector="",O.onVisibilityChanged=O.addEvent(),O.onRecalculatePosition=O.addEvent(),O.contentComponentName=p,O.contentComponentData=u,O.verticalPosition=s,O.horizontalPosition=e,O.showPointer=g,O.isModal=h,O.onCancel=f,O.onApply=o,O.onHide=r,O.onShow=n,O.cssClass=i,O.title=m,O}return Object.defineProperty(a.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(p){if(this.isVisible!==p)if(this.setPropertyValue("isVisible",p),this.onVisibilityChanged.fire(this,{model:this,isVisible:p}),this.isVisible){var u=this.contentComponentData.model;u&&u.refresh&&u.refresh(),this.onShow()}else this.onHide()},enumerable:!1,configurable:!0}),a.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},a.prototype.recalculatePosition=function(p){this.onRecalculatePosition.fire(this,{isResetHeight:p})},M([Object(C.property)()],a.prototype,"contentComponentName",void 0),M([Object(C.property)()],a.prototype,"contentComponentData",void 0),M([Object(C.property)({defaultValue:"bottom"})],a.prototype,"verticalPosition",void 0),M([Object(C.property)({defaultValue:"left"})],a.prototype,"horizontalPosition",void 0),M([Object(C.property)({defaultValue:!1})],a.prototype,"showPointer",void 0),M([Object(C.property)({defaultValue:!1})],a.prototype,"isModal",void 0),M([Object(C.property)({defaultValue:!0})],a.prototype,"isFocusedContent",void 0),M([Object(C.property)({defaultValue:function(){}})],a.prototype,"onCancel",void 0),M([Object(C.property)({defaultValue:function(){return!0}})],a.prototype,"onApply",void 0),M([Object(C.property)({defaultValue:function(){}})],a.prototype,"onHide",void 0),M([Object(C.property)({defaultValue:function(){}})],a.prototype,"onShow",void 0),M([Object(C.property)({defaultValue:""})],a.prototype,"cssClass",void 0),M([Object(C.property)({defaultValue:""})],a.prototype,"title",void 0),M([Object(C.property)({defaultValue:"popup"})],a.prototype,"displayMode",void 0),M([Object(C.property)({defaultValue:"flex"})],a.prototype,"positionMode",void 0),a}(b.Base);function V(P,a,p,u,s,e,g,h,f){return s===void 0&&(s=function(){}),e===void 0&&(e=function(){}),f===void 0&&(f="popup"),{componentName:P,data:a,onApply:p,onCancel:u,onHide:s,onShow:e,cssClass:g,title:h,displayMode:f}}},"./src/question.ts":function(D,y,c){c.r(y),c.d(y,"Question",function(){return f});var b=c("./src/helpers.ts"),C=c("./src/jsonobject.ts"),I=c("./src/survey-element.ts"),M=c("./src/error.ts"),T=c("./src/validator.ts"),V=c("./src/localizablestring.ts"),P=c("./src/conditions.ts"),a=c("./src/questionCustomWidgets.ts"),p=c("./src/settings.ts"),u=c("./src/rendererFactory.ts"),s=c("./src/utils/cssClassBuilder.ts"),e=c("./src/utils/utils.ts"),g=function(){var r=function(n,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,O){m.__proto__=O}||function(m,O){for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(m[w]=O[w])},r(n,i)};return function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(n,i);function m(){this.constructor=n}n.prototype=i===null?Object.create(i):(m.prototype=i.prototype,new m)}}(),h=function(r,n,i,m){var O=arguments.length,w=O<3?n:m===null?m=Object.getOwnPropertyDescriptor(n,i):m,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,n,i,m);else for(var l=r.length-1;l>=0;l--)(x=r[l])&&(w=(O<3?x(w):O>3?x(n,i,w):x(n,i))||w);return O>3&&w&&Object.defineProperty(n,i,w),w},f=function(r){g(n,r);function n(i){var m=r.call(this,i)||this;return m.customWidgetData={isNeedRender:!0},m.isReadyValue=!0,m.onReadyChanged=m.addEvent(),m.focusIn=function(){m.survey.whenQuestionFocusIn(m)},m.isRunningValidatorsValue=!1,m.isValueChangedInSurvey=!1,m.allowNotifyValueChanged=!0,m.id=n.getQuestionId(),m.onCreating(),m.createNewArray("validators",function(O){O.errorOwner=m}),m.addExpressionProperty("visibleIf",function(O,w){m.visible=w===!0},function(O){return!m.areInvisibleElementsShowing}),m.addExpressionProperty("enableIf",function(O,w){m.readOnly=w===!1}),m.addExpressionProperty("requiredIf",function(O,w){m.isRequired=w===!0}),m.createLocalizableString("commentText",m,!0,"otherItemText"),m.locTitle.onGetDefaultTextCallback=function(){return m.name},m.locTitle.storeDefaultText=!0,m.createLocalizableString("requiredErrorText",m),m.registerPropertyChangedHandlers(["width"],function(){m.updateQuestionCss(),m.parent&&m.parent.elementWidthChanged(m)}),m.registerPropertyChangedHandlers(["isRequired"],function(){m.locTitle.strChanged(),m.clearCssClasses()}),m.registerPropertyChangedHandlers(["indent","rightIndent"],function(){m.onIndentChanged()}),m.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){m.initCommentFromSurvey()}),m.registerPropertyChangedHandlers(["isMobile"],function(){m.onMobileChanged()}),m}return n.getQuestionId=function(){return"sq_"+n.questionCounter++},n.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&p.settings.readOnlyCommentRenderMode==="div"},n.prototype.createLocTitleProperty=function(){var i=this,m=r.prototype.createLocTitleProperty.call(this);return m.onGetTextCallback=function(O){return O||(O=i.name),i.survey?i.survey.getUpdatedQuestionTitle(i,O):O},this.locProcessedTitle=new V.LocalizableString(this,!0),this.locProcessedTitle.sharedData=m,m},n.prototype.getSurvey=function(i){return i===void 0&&(i=!1),i?this.parent?this.parent.getSurvey(i):null:this.onGetSurvey?this.onGetSurvey():r.prototype.getSurvey.call(this)},n.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(n.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(i){var m=this.getValueName();this.setPropertyValue("valueName",i),this.onValueNameChanged(m)},enumerable:!1,configurable:!0}),n.prototype.onValueNameChanged=function(i){!this.survey||(this.survey.questionRenamed(this,this.name,i||this.name),this.initDataFromSurvey())},n.prototype.onNameChanged=function(i){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,i,this.valueName?this.valueName:i)},Object.defineProperty(n.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),n.prototype.choicesLoaded=function(){},Object.defineProperty(n.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(i){this.setPage(this.parent,i)},enumerable:!1,configurable:!0}),n.prototype.getPanel=function(){return null},n.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(n.prototype,"isFlowLayout",{get:function(){return this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),n.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},n.prototype.isLayoutTypeSupported=function(i){return i!=="flow"},Object.defineProperty(n.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(i){i!=this.visible&&(this.setPropertyValue("visible",i),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),n.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(n.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(i){this.setPropertyValue("useDisplayValuesInDynamicTexts",i)},enumerable:!1,configurable:!0}),n.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(n.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(i){this.setPropertyValue("visibleIf",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isVisible",{get:function(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.visible||this.areInvisibleElementsShowing},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(i){this.setPropertyValue("hideNumber",i),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.getType=function(){return"question"},Object.defineProperty(n.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.moveTo=function(i,m){return m===void 0&&(m=null),this.moveToBase(this.parent,i,m)},n.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:r.prototype.getProgressInfo.call(this)},n.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},n.prototype.setSurveyImpl=function(i,m){r.prototype.setSurveyImpl.call(this,i),this.survey&&(this.survey.questionCreated(this),m!==!0&&this.runConditions())},Object.defineProperty(n.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(i){this.parent!==i&&(this.delete(),this.setPropertyValue("parent",i),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),n.prototype.onParentChanged=function(){},Object.defineProperty(n.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(i){var m=this.titleLocation=="hidden"||i=="hidden";this.setPropertyValue("titleLocation",i.toLowerCase()),this.updateQuestionCss(),m&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),n.prototype.getTitleOwner=function(){return this},n.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},n.prototype.notifySurveyVisibilityChanged=function(){!this.survey||this.isLoadingFromJson||(this.survey.questionVisibilityChanged(this,this.isVisible),this.isClearValueOnHidden&&(this.visible||this.clearValueIfInvisible(),this.isVisible&&this.updateValueWithDefaults()))},n.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var i=this.getTitleLocationCore();return i==="left"&&!this.isAllowTitleLeft&&(i="top"),i},n.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(n.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var i=this.getTitleLocation();return i==="left"||i==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),n.prototype.getDefaultTitleValue=function(){return this.name},n.prototype.getDefaultTitleTagName=function(){return p.settings.titleTags.question},Object.defineProperty(n.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(i){this.setPropertyValue("descriptionLocation",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasDescriptionUnderTitle",{get:function(){return this.getDescriptionLocation()=="underTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"},enumerable:!1,configurable:!0}),n.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},n.prototype.needClickTitleFunction=function(){return r.prototype.needClickTitleFunction.call(this)||this.hasInput},n.prototype.processTitleClick=function(){var i=this;if(r.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){i.focus()},1),!0},Object.defineProperty(n.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(i){this.setLocalizableStringText("requiredErrorText",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(i){this.setLocalizableStringText("commentText",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(i){this.commentPlaceholder=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"commentOrOtherPlaceholder",{get:function(){return this.otherPlaceholder||this.commentPlaceholder},enumerable:!1,configurable:!0}),n.prototype.getAllErrors=function(){return this.errors.slice()},n.prototype.getErrorByType=function(i){for(var m=0;m0).append(i.small,!this.width).append(i.answered,this.isAnswered).append(i.expanded,!!this.isExpanded).append(i.collapsed,!!this.isCollapsed).append(i.withFrame,this.hasFrameV2).append(i.nested,(this.hasParent||!this.isSingleInRow)&&this.isDefaultV2Theme).toString()},Object.defineProperty(n.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),n.prototype.setCssHeader=function(i){this.setPropertyValue("cssHeader",i)},n.prototype.getCssHeader=function(i){return new s.CssClassBuilder().append(i.header).append(i.headerTop,this.hasTitleOnTop).append(i.headerLeft,this.hasTitleOnLeft).append(i.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(n.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),n.prototype.setCssContent=function(i){this.setPropertyValue("cssContent",i)},n.prototype.getCssContent=function(i){return new s.CssClassBuilder().append(i.content).append(i.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(n.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),n.prototype.setCssTitle=function(i){this.setPropertyValue("cssTitle",i)},n.prototype.getCssTitle=function(i){return new s.CssClassBuilder().append(i.title).append(i.titleExpandable,this.state!=="default").append(i.titleExpanded,this.isExpanded).append(i.titleCollapsed,this.isCollapsed).append(i.titleDisabled,this.isReadOnly).append(i.titleOnError,this.containsErrors).append(i.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(n.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.cssClasses.description},enumerable:!1,configurable:!0}),n.prototype.setCssDescription=function(i){this.setPropertyValue("cssDescription","")},n.prototype.getCssDescription=function(i){return new s.CssClassBuilder().append(this.cssClasses.descriptionUnderInput,this.hasDescriptionUnderInput).append(this.cssClasses.description,this.hasDescriptionUnderTitle).toString()},n.prototype.getIsErrorsModeTooltip=function(){return r.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},n.prototype.showErrorOnCore=function(i){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===i},Object.defineProperty(n.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),n.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():r.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(n.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.errorLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.errorLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),n.prototype.setCssError=function(i){this.setPropertyValue("cssError",i)},n.prototype.getCssError=function(i){return new s.CssClassBuilder().append(i.error.root).append(i.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(i.error.belowQuestion,this.showErrorsBelowQuestion).append(i.error.aboveQuestion,this.showErrorsAboveQuestion).append(i.error.tooltip,this.isErrorsModeTooltip).append(i.error.locationTop,this.showErrorOnTop).append(i.error.locationBottom,this.showErrorOnBottom).toString()},n.prototype.getRootCss=function(){return new s.CssClassBuilder().append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},n.prototype.updateElementCss=function(i){r.prototype.updateElementCss.call(this,i),i&&this.updateQuestionCss(!0),this.onIndentChanged()},n.prototype.updateQuestionCss=function(i){this.isLoadingFromJson||!this.survey||i!==!0&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},n.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},n.prototype.updateElementCssCore=function(i){this.setCssRoot(this.getCssRoot(i)),this.setCssHeader(this.getCssHeader(i)),this.setCssContent(this.getCssContent(i)),this.setCssTitle(this.getCssTitle(i)),this.setCssDescription(this.getCssDescription(i)),this.setCssError(this.getCssError(i))},n.prototype.updateCssClasses=function(i,m){if(!!m.question){var O=m[this.getCssType()],w=new s.CssClassBuilder().append(i.title).append(m.question.titleRequired,this.isRequired);i.title=w.toString();var x=new s.CssClassBuilder().append(i.root).append(O,this.isRequired&&!!m.question.required);if(O==null)i.root=x.toString();else if(typeof O=="string"||O instanceof String)i.root=x.append(O.toString()).toString();else{i.root=x.toString();for(var l in O)i[l]=O[l]}}},n.prototype.getCssType=function(){return this.getType()},Object.defineProperty(n.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),n.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},n.prototype.getIndentSize=function(i){return i<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":i*this.cssClasses.indent+"px"},n.prototype.focus=function(i){if(i===void 0&&(i=!1),!this.isDesignMode){this.survey&&(this.expandAllPanels(this.parent),this.survey.scrollElementToTop(this,this,null,this.id));var m=i?this.getFirstErrorInputElementId():this.getFirstInputElementId();I.SurveyElement.FocusElement(m)&&this.fireCallback(this.focusCallback)}},n.prototype.expandAllPanels=function(i){!!i&&!!i.parent&&(i.isCollapsed&&i.expand(),this.expandAllPanels(i.parent))},n.prototype.fireCallback=function(i){i&&i()},n.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},n.prototype.onCreating=function(){},n.prototype.getFirstQuestionToFocus=function(i){return this.hasInput&&(!i||this.currentErrorCount>0)?this:null},n.prototype.getFirstInputElementId=function(){return this.inputId},n.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},n.prototype.getProcessedTextValue=function(i){var m=i.name.toLocaleLowerCase();i.isExists=Object.keys(n.TextPreprocessorValuesMap).indexOf(m)!==-1||this[i.name]!==void 0,i.value=this[n.TextPreprocessorValuesMap[m]||i.name]},n.prototype.supportComment=function(){return!1},n.prototype.supportOther=function(){return!1},Object.defineProperty(n.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(i){this.setPropertyValue("isRequired",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(i){this.setPropertyValue("requiredIf",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(i){!this.supportComment()||(this.setPropertyValue("showCommentArea",i),this.showCommentArea&&(this.hasOther=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(i){this.showCommentArea=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(i){this.setPropertyValue("id",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(i){!this.supportOther()||this.showOtherItem==i||(this.setPropertyValue("showOtherItem",i),this.showOtherItem&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(i){this.showOtherItem=i},enumerable:!1,configurable:!0}),n.prototype.hasOtherChanged=function(){},Object.defineProperty(n.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){var i=!!this.parent&&this.parent.isReadOnly,m=!!this.parentQuestion&&this.parentQuestion.isReadOnly,O=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||i||O||m},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInputReadOnly",{get:function(){var i=p.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),n.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),r.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(n.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(i){this.setPropertyValue("enableIf",i)},enumerable:!1,configurable:!0}),n.prototype.surveyChoiceItemVisibilityChange=function(){},n.prototype.runCondition=function(i,m){this.isDesignMode||(m||(m={}),m.question=this,this.runConditionCore(i,m),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,i,m)))},Object.defineProperty(n.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),n.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var i=b.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(i=this.survey.getUpdatedQuestionNo(this,i)),i},n.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},n.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},n.prototype.onSetData=function(){r.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},n.prototype.initDataFromSurvey=function(){if(this.data){var i=this.data.getValue(this.getValueName());(!b.Helpers.isValueEmpty(i)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(i),this.initCommentFromSurvey()}},n.prototype.initCommentFromSurvey=function(){!!this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},n.prototype.runExpression=function(i){if(!(!this.survey||!i))return this.survey.runExpression(i)},Object.defineProperty(n.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(i){this.setPropertyValue("value",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(i){this.setPropertyValue("comment",i),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValueCore()},set:function(i){this.setNewValue(i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),n.prototype.clearValue=function(){this.value!==void 0&&(this.value=void 0),this.comment&&(this.comment=void 0)},n.prototype.unbindValue=function(){this.clearValue()},n.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},n.prototype.getUnbindValue=function(i){return this.isValueSurveyElement(i)?i:b.Helpers.getUnbindValue(i)},n.prototype.isValueSurveyElement=function(i){return i?Array.isArray(i)?i.length>0?this.isValueSurveyElement(i[0]):!1:!!i.getType&&!!i.onPropertyChanged:!1},n.prototype.canClearValueAsInvisible=function(){return this.isVisible&&this.isParentVisible||!!this.page&&this.page.isStarted?!1:!this.survey||!this.valueName?!0:!this.survey.hasVisibleQuestionByValueName(this.valueName)},Object.defineProperty(n.prototype,"isParentVisible",{get:function(){for(var i=this.parent;i;){if(!i.isVisible)return!1;i=i.parent}return!0},enumerable:!1,configurable:!0}),n.prototype.clearValueIfInvisible=function(i){i===void 0&&(i="onHidden"),this.clearIfInvisible!=="none"&&(i==="onHidden"&&this.clearIfInvisible==="onComplete"||i==="none"&&(this.clearIfInvisible==="default"||this.clearIfInvisible==="none")||this.clearValueIfInvisibleCore())},n.prototype.clearValueIfInvisibleCore=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(n.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(i){this.setPropertyValue("clearIfInvisible",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),n.prototype.getDisplayValue=function(i,m){m===void 0&&(m=void 0);var O=this.calcDisplayValue(i,m);return this.displayValueCallback?this.displayValueCallback(O):O},n.prototype.calcDisplayValue=function(i,m){if(m===void 0&&(m=void 0),this.customWidget){var O=this.customWidget.getDisplayValue(this,m);if(O)return O}return m=m==null?this.createValueCopy():m,this.isValueEmpty(m)?this.getDisplayValueEmpty():this.getDisplayValueCore(i,m)},n.prototype.getDisplayValueCore=function(i,m){return m},n.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(n.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(i){if(this.isValueExpression(i)){this.defaultValueExpression=i.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(i)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(i){this.setPropertyValue("defaultValueExpression",i),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"resizeStyle",{get:function(){return this.autoGrowComment?"none":"both"},enumerable:!1,configurable:!0}),n.prototype.getPlainData=function(i){var m=this;if(i||(i={includeEmpty:!0,includeQuestionTypes:!1}),i.includeEmpty||!this.isEmpty()){var O={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(w){return typeof w=="object"?JSON.stringify(w):w}};return i.includeQuestionTypes===!0&&(O.questionType=this.getType()),(i.calculations||[]).forEach(function(w){O[w.propertyName]=m[w.propertyName]}),this.hasComment&&(O.isNode=!0,O.data=[{name:0,isComment:!0,title:"Comment",value:p.settings.commentPrefix,displayValue:this.comment,getString:function(w){return typeof w=="object"?JSON.stringify(w):w},isNode:!1}]),O}},Object.defineProperty(n.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(i){this.setPropertyValue("correctAnswer",this.convertDefaultValue(i))},enumerable:!1,configurable:!0}),n.prototype.convertDefaultValue=function(i){return i},Object.defineProperty(n.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"correctAnswerCount",{get:function(){return!this.isEmpty()&&!this.isValueEmpty(this.correctAnswer)?this.getCorrectAnswerCount():0},enumerable:!1,configurable:!0}),n.prototype.getQuizQuestionCount=function(){return 1},n.prototype.getCorrectAnswerCount=function(){return this.isTwoValueEquals(this.value,this.correctAnswer,!0,!0)?1:0},n.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},n.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()},Object.defineProperty(n.prototype,"isClearValueOnHidden",{get:function(){return this.clearIfInvisible==="none"||this.clearIfInvisible==="onComplete"?!1:this.clearIfInvisible==="onHidden"?!0:!!this.survey&&this.survey.isClearValueOnHidden},enumerable:!1,configurable:!0}),n.prototype.getQuestionFromArray=function(i,m){return null},n.prototype.getDefaultValue=function(){return this.defaultValue},n.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},n.prototype.getDefaultRunner=function(i,m){return!i&&!!m&&(i=new P.ExpressionRunner(m)),i&&(i.expression=m),i},n.prototype.setDefaultValue=function(){var i=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(m){i.value=m})},n.prototype.isValueExpression=function(i){return!!i&&typeof i=="string"&&i.length>0&&i[0]=="="},n.prototype.setValueAndRunExpression=function(i,m,O,w,x){var l=this;w===void 0&&(w=null),x===void 0&&(x=null);var t=function(d){l.runExpressionSetValue(d,O)};this.runDefaultValueExpression(i,w,x,t)||t(m)},n.prototype.runExpressionSetValue=function(i,m){m(b.Helpers.convertValToQuestionVal(i))},n.prototype.runDefaultValueExpression=function(i,m,O,w){var x=this;return m===void 0&&(m=null),O===void 0&&(O=null),!i||!this.data?!1:(w||(w=function(l){x.runExpressionSetValue(l,function(t){x.value=t})}),m||(m=this.data.getFilteredValues()),O||(O=this.data.getFilteredProperties()),!!i&&i.canRun&&(i.onRunComplete=function(l){l==null&&(l=x.defaultValue),x.isChangingViaDefaultValue=!0,w(l),x.isChangingViaDefaultValue=!1},i.run(m,O)),!0)},Object.defineProperty(n.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(i){if(i){var m=i.toString().trim();m!==i&&(i=m,i===this.comment&&this.setPropertyValueDirectly("comment",i))}this.comment!=i&&(this.setQuestionComment(i),this.updateCommentElement())},enumerable:!1,configurable:!0}),n.prototype.getQuestionComment=function(){return this.questionComment},n.prototype.setQuestionComment=function(i){this.setNewComment(i)},n.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(n.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(i){this.setPropertyValue("isAnswered",i)},enumerable:!1,configurable:!0}),n.prototype.updateIsAnswered=function(){var i=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),i!==this.isAnswered&&this.updateQuestionCss()},n.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(n.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(i){this.setPropertyValue("validators",i)},enumerable:!1,configurable:!0}),n.prototype.getValidators=function(){return this.validators},n.prototype.getSupportedValidators=function(){for(var i=[],m=this.getType();m;){var O=p.settings.supportedValidators[m];if(O)for(var w=O.length-1;w>=0;w--)i.splice(0,0,O[w]);var x=C.Serializer.findClass(m);m=x.parentName}return i},n.prototype.addSupportedValidators=function(i,m){},n.prototype.addConditionObjectsByContext=function(i,m){i.push({name:this.getValueName(),text:this.processedTitle,question:this})},n.prototype.getConditionJson=function(i,m){var O=new C.JsonObject().toJsonObject(this);return O.type=this.getType(),O},n.prototype.hasErrors=function(i,m){i===void 0&&(i=!0),m===void 0&&(m=null);var O=this.errors.length>0,w=this.checkForErrors(!!m&&m.isOnValueChanged===!0);return i&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,w),this.errors=w),this.updateContainsErrors(),O!=w.length>0&&this.updateQuestionCss(),this.isCollapsed&&m&&i&&w.length>0&&this.expand(),w.length>0},Object.defineProperty(n.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),n.prototype.addError=function(i){if(!!i){var m=null;typeof i=="string"||i instanceof String?m=new M.CustomError(i,this.survey):m=i,this.errors.push(m)}},n.prototype.removeError=function(i){var m=this.errors,O=m.indexOf(i);O!==-1&&m.splice(O,1)},n.prototype.checkForErrors=function(i){var m=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(m,i),m},n.prototype.canCollectErrors=function(){return!this.isReadOnly},n.prototype.collectErrors=function(i,m){if(this.onCheckForErrors(i,m),!(i.length>0||!this.canRunValidators(m))){var O=this.runValidators();if(O.length>0){i.length=0;for(var w=0;w0),this.onCompletedAsyncValidators=null)},n.prototype.setNewValue=function(i){var m=this.isAnswered;this.setNewValueInData(i),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=m&&this.updateQuestionCss()},n.prototype.isTextValue=function(){return!1},Object.defineProperty(n.prototype,"isSurveyInputTextUpdate",{get:function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},enumerable:!1,configurable:!0}),n.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},Object.defineProperty(n.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),n.prototype.setNewValueInData=function(i){i=this.valueToData(i),this.isValueChangedInSurvey||this.setValueCore(i)},n.prototype.getValueCore=function(){return this.questionValue},n.prototype.setValueCore=function(i){this.setQuestionValue(i),this.data!=null&&this.canSetValueToSurvey()&&(i=this.valueForSurvey,this.data.setValue(this.getValueName(),i,this.getDataLocNotification(),this.allowNotifyValueChanged))},n.prototype.canSetValueToSurvey=function(){return!0},n.prototype.valueFromData=function(i){return i},n.prototype.valueToData=function(i){return i},n.prototype.onValueChanged=function(){},n.prototype.setNewComment=function(i){this.questionComment!==i&&(this.questionComment=i,this.data!=null&&this.data.setComment(this.getValueName(),i,this.isSurveyInputTextUpdate?"text":!1))},n.prototype.getValidName=function(i){return i&&i.trim().replace(/[\{\}]+/g,"")},n.prototype.updateValueFromSurvey=function(i){i=this.getUnbindValue(i),this.valueFromDataCallback&&(i=this.valueFromDataCallback(i)),this.setQuestionValue(this.valueFromData(i)),this.updateIsAnswered()},n.prototype.updateCommentFromSurvey=function(i){this.questionComment=i},n.prototype.onChangeQuestionValue=function(i){},n.prototype.setQuestionValue=function(i,m){m===void 0&&(m=!0);var O=this.isTwoValueEquals(this.questionValue,i);!O&&!this.isChangingViaDefaultValue&&(this.isValueChangedDirectly=!0),this.questionValue=i,O||this.onChangeQuestionValue(i),!O&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),m&&this.updateIsAnswered()},n.prototype.onSurveyValueChanged=function(i){},n.prototype.setVisibleIndex=function(i){return(!this.isVisible||!this.hasTitle&&!p.settings.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!p.settings.setQuestionVisibleIndexForHiddenNumber)&&(i=-1),this.setPropertyValue("visibleIndex",i),this.setPropertyValue("no",this.calcNo()),i<0?0:1},n.prototype.removeElement=function(i){return!1},n.prototype.supportGoNextPageAutomatic=function(){return!1},n.prototype.supportGoNextPageError=function(){return!0},n.prototype.clearIncorrectValues=function(){},n.prototype.clearOnDeletingContainer=function(){},n.prototype.clearErrors=function(){this.errors=[]},n.prototype.clearUnusedValues=function(){},n.prototype.onAnyValueChanged=function(i){},n.prototype.checkBindings=function(i,m){if(!(this.bindings.isEmpty()||!this.data))for(var O=this.bindings.getPropertiesByValueName(i),w=0;w2){var O=this.renderAs;return i>m?this.renderAs=this.getCompactRenderAs():this.renderAs=this.getDesktopRenderAs(),O!==this.renderAs}return!1},n.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.renderAs=this.getDesktopRenderAs())},n.prototype.dispose=function(){r.prototype.dispose.call(this),this.destroyResizeObserver()},n.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},n.questionCounter=100,h([Object(C.property)({defaultValue:!1})],n.prototype,"isMobile",void 0),h([Object(C.property)({localizable:!0})],n.prototype,"commentPlaceholder",void 0),h([Object(C.property)({defaultValue:"default"})],n.prototype,"renderAs",void 0),n}(I.SurveyElement);function o(r){return!!r&&r[0]===p.settings.expressionDisableConversionChar?r.substring(1):r}C.Serializer.addClass("question",[{name:"!name",onSettingValue:function(r,n){return o(n)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",default:p.settings.minWidth},{name:"maxWidth",default:p.settings.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(r){var n=r?r.survey:null;return!n||!n.pages||n.pages.length>1},choices:function(r){var n=r?r.survey:null;return n?n.pages.map(function(i){return{value:i.name,text:i.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(r,n){!!r&&!!n&&(n.placeholder=r.name)}},{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(r){if(!r)return!0;if(r.titleLocation==="hidden")return!1;var n=r?r.parent:null,i=!n||n.showQuestionNumbers!=="off";if(!i)return!1;var m=r?r.survey:null;return!m||m.showQuestionNumbers!=="off"||!!n&&n.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(r,n){return o(n)}},"enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden"]},"isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(r){return r.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment"}]),C.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(D,y,c){c.r(y),c.d(y,"QuestionCustomWidget",function(){return C}),c.d(y,"CustomWidgetCollection",function(){return I});var b=c("./src/base.ts"),C=function(){function M(T,V){this.name=T,this.widgetJson=V,this.htmlTemplate=V.htmlTemplate?V.htmlTemplate:""}return M.prototype.afterRender=function(T,V){var P=this;!this.widgetJson.afterRender||(T.localeChangedCallback=function(){P.widgetJson.willUnmount&&P.widgetJson.willUnmount(T,V),P.widgetJson.afterRender(T,V)},this.widgetJson.afterRender(T,V))},M.prototype.willUnmount=function(T,V){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(T,V)},M.prototype.getDisplayValue=function(T,V){return V===void 0&&(V=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(T,V):null},M.prototype.isFit=function(T){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(T):!1},Object.defineProperty(M.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||I.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(T){this.widgetJson.showInToolbox=T},enumerable:!1,configurable:!0}),M.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},M.prototype.activatedByChanged=function(T){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(T)},M.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(M.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),M}(),I=function(){function M(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new b.Event}return Object.defineProperty(M.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),M.prototype.add=function(T,V){V===void 0&&(V="property"),this.addCustomWidget(T,V)},M.prototype.addCustomWidget=function(T,V){V===void 0&&(V="property");var P=T.name;P||(P="widget_"+this.widgets.length+1);var a=new C(P,T);return this.widgetsValues.push(a),a.init(),this.widgetsActivatedBy[P]=V,a.activatedByChanged(V),this.onCustomWidgetAdded.fire(a,null),a},M.prototype.getActivatedBy=function(T){var V=this.widgetsActivatedBy[T];return V||"property"},M.prototype.setActivatedBy=function(T,V){if(!(!T||!V)){var P=this.getCustomWidgetByName(T);!P||(this.widgetsActivatedBy[T]=V,P.activatedByChanged(V))}},M.prototype.clear=function(){this.widgetsValues=[]},M.prototype.getCustomWidgetByName=function(T){for(var V=0;V=0;x--)(w=o[x])&&(O=(m<3?w(O):m>3?w(r,n,O):w(r,n))||O);return m>3&&O&&Object.defineProperty(r,n,O),O},h=function(o){e(r,o);function r(n){var i=o.call(this,n)||this;i.otherItemValue=new M.ItemValue("other"),i.dependedQuestions=[],i.noneItemValue=new M.ItemValue("none"),i.isSettingDefaultValue=!1,i.isSettingComment=!1,i.isRunningChoices=!1,i.isFirstLoadChoicesFromUrl=!0,i.isUpdatingChoicesDependedQuestions=!1,i.prevIsOtherSelected=!1;var m=i.createLocalizableString("noneText",i.noneItemValue,!0,"noneItemText");i.noneItemValue.locOwner=i,i.noneItemValue.setLocText(m),i.createItemValues("choices"),i.registerPropertyChangedHandlers(["choices"],function(){i.filterItems()||i.onVisibleChoicesChanged()}),i.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","showNoneItem"],function(){i.onVisibleChoicesChanged()}),i.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){i.updateVisibilityBasedOnChoices()}),i.createNewArray("visibleChoices"),i.setNewRestfulProperty();var O=i.createLocalizableString("otherText",i.otherItemValue,!0,"otherItemText");return i.createLocalizableString("otherErrorText",i,!0,"otherRequiredError"),i.otherItemValue.locOwner=i,i.otherItemValue.setLocText(O),i.choicesByUrl.createItemValue=function(w){return i.createItemValue(w)},i.choicesByUrl.beforeSendRequestCallback=function(){i.onBeforeSendRequest()},i.choicesByUrl.getResultCallback=function(w){i.onLoadChoicesFromUrl(w)},i.choicesByUrl.updateResultCallback=function(w,x){return i.survey?i.survey.updateChoicesFromServer(i,w,x):w},i}return r.prototype.getType=function(){return"selectbase"},r.prototype.dispose=function(){o.prototype.dispose.call(this);for(var n=0;n0)return n[0];return n},r.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var n=this.getDataFilteredValues(),i=this.getDataFilteredProperties();return this.runItemsEnableCondition(n,i),this.runItemsCondition(n,i)},r.prototype.runItemsCondition=function(n,i){this.setConditionalChoicesRunner();var m=this.runConditionsForItems(n,i);return!!this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),m&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),m},r.prototype.runItemsEnableCondition=function(n,i){var m=this;this.setConditionalEnableChoicesRunner();var O=M.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,n,i,function(w,x){return x&&m.onEnableItemCallBack(w)});O&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},r.prototype.onAfterRunItemsEnableCondition=function(){},r.prototype.onEnableItemCallBack=function(n){return!0},r.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new a.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},r.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new a.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},r.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},r.prototype.changeItemVisisbility=function(){var n=this;return this.canSurveyChangeItemVisibility()?function(i,m){return n.survey.getChoiceItemVisibility(n,i,m)}:null},r.prototype.runConditionsForItems=function(n,i){this.filteredChoicesValue=[];var m=this.changeItemVisisbility();return M.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,n,i,!this.survey||!this.survey.areInvisibleElementsShowing,function(O,w){return m?m(O,w):w})},r.prototype.getHasOther=function(n){return n===this.otherItem.value},Object.defineProperty(r.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),r.prototype.createRestful=function(){return new P.ChoicesRestful},r.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(r.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(n){this.setPropertyValue("autoOtherMode",n)},enumerable:!1,configurable:!0}),r.prototype.getQuestionComment=function(){return this.commentValue?this.commentValue:this.hasComment||this.getStoreOthersAsComment()?o.prototype.getQuestionComment.call(this):this.commentValue},r.prototype.selectOtherValueFromComment=function(n){this.value=n?this.otherItem.value:void 0},r.prototype.setQuestionComment=function(n){if(this.autoOtherMode){this.prevCommentValue=void 0;var i=this.isOtherSelected;(!i&&!!n||i&&!n)&&this.selectOtherValueFromComment(!!n)}this.hasComment||this.getStoreOthersAsComment()?o.prototype.setQuestionComment.call(this,n):!this.isSettingComment&&n!=this.commentValue&&(this.isSettingComment=!0,this.commentValue=n,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1),this.updateChoicesDependedQuestions()},r.prototype.clearValue=function(){o.prototype.clearValue.call(this),this.prevCommentValue=void 0},r.prototype.updateCommentFromSurvey=function(n){o.prototype.updateCommentFromSurvey.call(this,n),this.prevCommentValue=void 0},Object.defineProperty(r.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(i){this.setPropertyValue("renderedValue",i);var i=this.rendredValueToData(i);this.isTwoValueEquals(i,this.value)||(this.value=i)},enumerable:!1,configurable:!0}),r.prototype.setQuestionValue=function(n,i,m){if(i===void 0&&(i=!0),m===void 0&&(m=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,n))&&(o.prototype.setQuestionValue.call(this,n,i),this.setPropertyValue("renderedValue",this.rendredValueFromData(n)),!(this.hasComment||!m))){var O=this.isOtherSelected;if(O&&!!this.prevCommentValue){var w=this.prevCommentValue;this.prevCommentValue=void 0,this.comment=w}!O&&!!this.comment&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevCommentValue=this.comment),this.comment="")}},r.prototype.setNewValue=function(n){n=this.valueFromData(n),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(n))&&(this.cachedValueForUrlRequests=n),o.prototype.setNewValue.call(this,n)},r.prototype.valueFromData=function(n){var i=M.ItemValue.getItemByValue(this.activeChoices,n);return i?i.value:o.prototype.valueFromData.call(this,n)},r.prototype.rendredValueFromData=function(n){return this.getStoreOthersAsComment()?n:this.renderedValueFromDataCore(n)},r.prototype.rendredValueToData=function(n){return this.getStoreOthersAsComment()?n:this.rendredValueToDataCore(n)},r.prototype.renderedValueFromDataCore=function(n){return this.hasUnknownValue(n,!0,!1)?(this.comment=n,this.otherItem.value):this.valueFromData(n)},r.prototype.rendredValueToDataCore=function(n){return n==this.otherItem.value&&this.getQuestionComment()&&(n=this.getQuestionComment()),n},r.prototype.hasUnknownValue=function(n,i,m,O){if(i===void 0&&(i=!1),m===void 0&&(m=!0),O===void 0&&(O=!1),!O&&this.isValueEmpty(n)||i&&n==this.otherItem.value||this.hasNone&&n==this.noneItem.value)return!1;var w=m?this.getFilteredChoices():this.activeChoices;return M.ItemValue.getItemByValue(w,n)==null},r.prototype.isValueDisabled=function(n){var i=M.ItemValue.getItemByValue(this.getFilteredChoices(),n);return!!i&&!i.isEnabled},Object.defineProperty(r.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(n){!n||(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(n.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(n){this.setPropertyValue("choices",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(n){var i=this.getQuestionWithChoices();i&&i.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",n)},enumerable:!1,configurable:!0}),r.prototype.addIntoDependedQuestion=function(n){!n||n.dependedQuestions.indexOf(this)>-1||n.dependedQuestions.push(this)},r.prototype.removeFromDependedQuestion=function(n){if(!!n){var i=n.dependedQuestions.indexOf(this);i>-1&&n.dependedQuestions.splice(i,1)}},Object.defineProperty(r.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(n){this.setPropertyValue("choicesFromQuestionMode",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(n){this.setPropertyValue("hideIfChoicesEmpty",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(n){this.setPropertyValue("keepIncorrectValues",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(n){this.setPropertyValue("storeOthersAsComment",n)},enumerable:!1,configurable:!0}),r.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(r.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(n){n=n.toLowerCase(),n!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",n),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(n){this.setLocalizableStringText("otherText",n),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(n){this.otherPlaceholder=n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(n){this.setLocalizableStringText("otherErrorText",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"enabledChoices",{get:function(){for(var n=[],i=this.visibleChoices,m=0;m0||this.choicesByUrl.allowEmptyResponse)&&(m=new Array,M.ItemValue.setData(m,n)),m)for(var x=0;x0}},r.prototype.sortVisibleChoices=function(n){var i=this.choicesOrder.toLowerCase();return i=="asc"?this.sortArray(n,1):i=="desc"?this.sortArray(n,-1):i=="random"?this.randomizeArray(n):n},r.prototype.sortArray=function(n,i){return n.sort(function(m,O){return m.calculatedTextO.calculatedText?1*i:0})},r.prototype.randomizeArray=function(n){return p.Helpers.randomizeArray(n)},r.prototype.clearIncorrectValues=function(){!this.hasValueToClearIncorrectValues()||!!this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||!!this.choicesByUrl&&!this.choicesByUrl.isEmpty&&(!this.choicesFromUrl||this.choicesFromUrl.length==0)||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},r.prototype.hasValueToClearIncorrectValues=function(){return!this.keepIncorrectValues&&!this.isEmpty()},r.prototype.clearValueIfInvisibleCore=function(){o.prototype.clearValueIfInvisibleCore.call(this),this.clearIncorrectValues()},r.prototype.isItemSelected=function(n){return n===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(n)},r.prototype.isItemSelectedCore=function(n){return n.value===this.value},r.prototype.clearDisabledValues=function(){!this.survey||!this.survey.clearValueOnDisableItems||this.clearDisabledValuesCore()},r.prototype.clearIncorrectValuesCore=function(){var n=this.value;this.canClearValueAnUnknow(n)&&this.clearValue()},r.prototype.canClearValueAnUnknow=function(n){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(n,!0,!0,!0)},r.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},r.prototype.clearUnusedValues=function(){o.prototype.clearUnusedValues.call(this),!this.isOtherSelected&&!this.hasComment&&(this.comment="")},r.prototype.getColumnClass=function(){return new s.CssClassBuilder().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},r.prototype.getItemIndex=function(n){return this.visibleChoices.indexOf(n)},r.prototype.getItemClass=function(n){var i={item:n},m=this.getItemClassCore(n,i);return i.css=m,this.survey&&this.survey.updateChoiceItemCss(this,i),i.css},r.prototype.getCurrentColCount=function(){return this.colCount},r.prototype.getItemClassCore=function(n,i){var m=new s.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.errors.length>0),O=this.isReadOnly||!n.isEnabled,w=this.isItemSelected(n)||this.isOtherSelected&&this.otherItem.value===n.value,x=!O&&!w&&!(!!this.survey&&this.survey.isDesignMode),l=n===this.noneItem;return i.isDisabled=O,i.isChecked=w,i.isNone=l,m.append(this.cssClasses.itemDisabled,O).append(this.cssClasses.itemChecked,w).append(this.cssClasses.itemHover,x).append(this.cssClasses.itemNone,l).toString()},r.prototype.getLabelClass=function(n){return new s.CssClassBuilder().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(n)).toString()},r.prototype.getControlLabelClass=function(n){return new s.CssClassBuilder().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(n)).toString()||void 0},Object.defineProperty(r.prototype,"headItems",{get:function(){var n=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter(function(i){return n.isHeadChoice(i,n)}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"footItems",{get:function(){var n=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter(function(i){return n.isFootChoice(i,n)}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataChoices",{get:function(){var n=this;return this.visibleChoices.filter(function(i){return!n.isBuiltInChoice(i,n)})},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"columns",{get:function(){var n=[],i=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var m=!this.separateSpecialChoices&&!this.isDesignMode?this.visibleChoices:this.dataChoices;if(u.settings.showItemsInOrder=="column")for(var O=0,w=m.length%i,x=0;x0&&(w--,l.push(m[t]),t++),O=t,n.push(l)}else for(var x=0;x1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),r.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var n=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:n}),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},r.prototype.getItemValueWrapperComponentName=function(n){var i=this.survey;return i?i.getItemValueWrapperComponentName(n,this):C.SurveyModel.TemplateRendererComponentName},r.prototype.getItemValueWrapperComponentData=function(n){var i=this.survey;return i?i.getItemValueWrapperComponentData(n,this):n},r.prototype.ariaItemChecked=function(n){return this.renderedValue===n.value?"true":"false"},r.prototype.isOtherItem=function(n){return this.hasOther&&n.value==this.otherItem.value},Object.defineProperty(r.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),r.prototype.getSelectBaseRootCss=function(){return new s.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},r.prototype.getAriaItemLabel=function(n){return n.locText.renderedHtml},r.prototype.getItemId=function(n){return this.inputId+"_"+this.getItemIndex(n)},Object.defineProperty(r.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),r.prototype.getItemEnabled=function(n){return!this.isInputReadOnly&&n.isEnabled},r.prototype.afterRender=function(n){o.prototype.afterRender.call(this,n),this.rootElement=n},r.prototype.focusOtherComment=function(){var n=this;this.rootElement&&setTimeout(function(){var i=n.rootElement.querySelector("textarea");i&&i.focus()},10)},r.prototype.onValueChanged=function(){o.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},r.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(r.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(n){this.setPropertyValue("itemComponent",n)},enumerable:!1,configurable:!0}),g([Object(b.property)({defaultValue:!1})],r.prototype,"separateSpecialChoices",void 0),g([Object(b.property)({localizable:!0})],r.prototype,"otherPlaceholder",void 0),r}(I.Question),f=function(o){e(r,o);function r(n){return o.call(this,n)||this}return Object.defineProperty(r.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(n){n<0||n>5||this.isFlowLayout||(this.setPropertyValue("colCount",n),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),r.prototype.onParentChanged=function(){o.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},r.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},r.prototype.getSearchableItemValueKeys=function(n){n.push("choices")},r}(h);b.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(o){return o.hasComment},serializationProperty:"locCommentText",layout:"row"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return T.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(o){return!o.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(o){return!!o.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(o){return!o.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"ChoicesRestful",onGetValue:function(o){return o.choicesByUrl.getData()},onSetValue:function(o,r){o.choicesByUrl.setData(r)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(o){return!o.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(o){return!o.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(o){return o.hasOther}},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(o){return o.hasComment}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(o){return o.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(o){return o.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(o){return o.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),b.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(D,y,c){c.r(y),c.d(y,"QuestionBooleanModel",function(){return a});var b=c("./src/questionfactory.ts"),C=c("./src/jsonobject.ts"),I=c("./src/question.ts"),M=c("./src/utils/cssClassBuilder.ts"),T=c("./src/utils/utils.ts"),V=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),P=function(p,u,s,e){var g=arguments.length,h=g<3?u:e===null?e=Object.getOwnPropertyDescriptor(u,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,u,s,e);else for(var o=p.length-1;o>=0;o--)(f=p[o])&&(h=(g<3?f(h):g>3?f(u,s,h):f(u,s))||h);return g>3&&h&&Object.defineProperty(u,s,h),h},a=function(p){V(u,p);function u(s){var e=p.call(this,s)||this;return e.createLocalizableString("labelFalse",e,!0,"booleanUncheckedLabel"),e.createLocalizableString("labelTrue",e,!0,"booleanCheckedLabel"),e}return u.prototype.getType=function(){return"boolean"},u.prototype.isLayoutTypeSupported=function(s){return!0},u.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},Object.defineProperty(u.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(s){this.isReadOnly||this.setBooleanValue(s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(s){this.booleanValue=s},enumerable:!1,configurable:!0}),u.prototype.setBooleanValue=function(s){this.isValueEmpty(s)?this.value=null:this.value=s==!0?this.getValueTrue():this.getValueFalse()},Object.defineProperty(u.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(s){s===!0&&(s="true"),s===!1&&(s="false"),s===void 0&&(s="indeterminate"),this.setPropertyValue("defaultValue",s),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),u.prototype.getDefaultValue=function(){return this.defaultValue=="indeterminate"||this.defaultValue===void 0?null:this.defaultValue=="true"?this.getValueTrue():this.getValueFalse()},Object.defineProperty(u.prototype,"locTitle",{get:function(){var s=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(s.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(s){this.setLocalizableStringText("labelTrue",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isDeterminated",{get:function(){return this.booleanValue!==null},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(s){this.setLocalizableStringText("labelFalse",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),u.prototype.getValueTrue=function(){return this.valueTrue?this.valueTrue:!0},u.prototype.getValueFalse=function(){return this.valueFalse?this.valueFalse:!1},u.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),this.defaultValue=="indeterminate"&&this.setBooleanValue(null)},u.prototype.isDefaultValueSet=function(s,e){return this.defaultValue==s||e!==void 0&&this.defaultValue===e},u.prototype.getDisplayValueCore=function(s,e){return e==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},u.prototype.getItemCssValue=function(s){return new M.CssClassBuilder().append(s.item).append(s.itemOnError,this.errors.length>0).append(s.itemDisabled,this.isReadOnly).append(s.itemChecked,!!this.booleanValue).append(s.itemIndeterminate,this.booleanValue===null).toString()},u.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},u.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},u.prototype.getLabelCss=function(s){return new M.CssClassBuilder().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!s||this.isReadOnly).toString()},Object.defineProperty(u.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:this.booleanValue===null&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),u.prototype.getCheckedLabel=function(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},u.prototype.setQuestionValue=function(s,e){e===void 0&&(e=!0),s==="true"&&this.valueTrue!=="true"&&(s=!0),s==="false"&&this.valueFalse!=="false"&&(s=!1),s==="indeterminate"&&(s=null),p.prototype.setQuestionValue.call(this,s,e)},u.prototype.onLabelClick=function(s,e){return this.allowClick&&(Object(T.preventDefaults)(s),this.booleanValue=e),!0},u.prototype.calculateBooleanValueByEvent=function(s,e){var g=document.defaultView.getComputedStyle(s.target).direction=="rtl";this.booleanValue=g?!e:e},u.prototype.onSwitchClickModel=function(s){if(this.allowClick){Object(T.preventDefaults)(s);var e=s.offsetX/s.target.offsetWidth>.5;this.calculateBooleanValueByEvent(s,e);return}return!0},u.prototype.onKeyDownCore=function(s){if(s.key==="ArrowLeft"||s.key==="ArrowRight"){Object(T.preventDefaults)(s),this.calculateBooleanValueByEvent(s,s.key==="ArrowRight");return}return!0},u.prototype.getRadioItemClass=function(s,e){var g=void 0;return s.radioItem&&(g=s.radioItem),s.radioItemChecked&&e===this.value&&(g=(g?g+" ":"")+s.radioItemChecked),g},u.prototype.supportResponsiveness=function(){return!0},u.prototype.getCompactRenderAs=function(){return"radio"},P([Object(C.property)()],u.prototype,"showTitle",void 0),P([Object(C.property)({localizable:!0})],u.prototype,"label",void 0),P([Object(C.property)()],u.prototype,"valueTrue",void 0),P([Object(C.property)()],u.prototype,"valueFalse",void 0),u}(I.Question);C.Serializer.addClass("boolean",[{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],function(){return new a("")},"question"),b.QuestionFactory.Instance.registerQuestion("boolean",function(p){return new a(p)})},"./src/question_buttongroup.ts":function(D,y,c){c.r(y),c.d(y,"ButtonGroupItemValue",function(){return P}),c.d(y,"QuestionButtonGroupModel",function(){return a}),c.d(y,"ButtonGroupItemModel",function(){return p});var b=c("./src/jsonobject.ts"),C=c("./src/itemvalue.ts"),I=c("./src/question_baseselect.ts"),M=c("./src/utils/cssClassBuilder.ts"),T=function(){var u=function(s,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(g[f]=h[f])},u(s,e)};return function(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(s,e);function g(){this.constructor=s}s.prototype=e===null?Object.create(e):(g.prototype=e.prototype,new g)}}(),V=function(u,s,e,g){var h=arguments.length,f=h<3?s:g===null?g=Object.getOwnPropertyDescriptor(s,e):g,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(u,s,e,g);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(f=(h<3?o(f):h>3?o(s,e,f):o(s,e))||f);return h>3&&f&&Object.defineProperty(s,e,f),f},P=function(u){T(s,u);function s(e,g,h){g===void 0&&(g=null),h===void 0&&(h="buttongroupitemvalue");var f=u.call(this,e,g,h)||this;return f.typeName=h,f}return s.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},V([Object(b.property)()],s.prototype,"iconName",void 0),V([Object(b.property)()],s.prototype,"iconSize",void 0),V([Object(b.property)()],s.prototype,"showCaption",void 0),s}(C.ItemValue),a=function(u){T(s,u);function s(e){return u.call(this,e)||this}return s.prototype.getType=function(){return"buttongroup"},s.prototype.getItemValueType=function(){return"buttongroupitemvalue"},s.prototype.supportOther=function(){return!1},s}(I.QuestionCheckboxBase);b.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new a("")},"checkboxbase"),b.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(u){return new P(u)},"itemvalue");var p=function(){function u(s,e,g){this.question=s,this.item=e,this.index=g}return Object.defineProperty(u.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"labelClass",{get:function(){return new M.CssClassBuilder().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),u.prototype.onChange=function(){this.question.renderedValue=this.item.value},u}()},"./src/question_checkbox.ts":function(D,y,c){c.r(y),c.d(y,"QuestionCheckboxModel",function(){return a});var b=c("./src/jsonobject.ts"),C=c("./src/questionfactory.ts"),I=c("./src/question_baseselect.ts"),M=c("./src/helpers.ts"),T=c("./src/itemvalue.ts"),V=c("./src/utils/cssClassBuilder.ts"),P=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),a=function(p){P(u,p);function u(s){var e=p.call(this,s)||this;e.selectAllItemValue=new T.ItemValue("selectall"),e.invisibleOldValues={},e.isChangingValueOnClearIncorrect=!1;var g=e.createLocalizableString("selectAllText",e.selectAllItem,!0,"selectAllItemText");return e.selectAllItem.locOwner=e,e.selectAllItem.setLocText(g),e.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){e.onVisibleChoicesChanged()}),e}return u.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(u.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),u.prototype.getType=function(){return"checkbox"},u.prototype.onCreating=function(){p.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},u.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(u.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(s){this.setPropertyValue("valuePropertyName",s)},enumerable:!1,configurable:!0}),u.prototype.getQuestionFromArray=function(s,e){if(!!s&&s===this.valuePropertyName){var g=this.value;if(Array.isArray(g)&&e=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected))},u.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var s=this.value,e=Array.isArray(s)?s.length:0;return e>=this.maxSelectedChoices},u.prototype.getItemClassCore=function(s,e){return this.value,e.isSelectAllItem=s===this.selectAllItem,new V.CssClassBuilder().append(p.prototype.getItemClassCore.call(this,s,e)).append(this.cssClasses.itemSelectAll,e.isSelectAllItem).toString()},u.prototype.updateValueFromSurvey=function(s){p.prototype.updateValueFromSurvey.call(this,s),this.invisibleOldValues={}},u.prototype.setDefaultValue=function(){p.prototype.setDefaultValue.call(this);var s=this.defaultValue;if(Array.isArray(s))for(var e=0;e-1?h>-1&&s.length>1&&s.splice(h,1):h>-1&&(s.splice(0,s.length),s.push(this.noneItem.value))}p.prototype.setNewValue.call(this,s)}},u.prototype.getIsMultipleValue=function(){return!0},u.prototype.getCommentFromValue=function(s){var e=this.getFirstUnknownIndex(s);return e<0?"":s[e]},u.prototype.setOtherValueIntoValue=function(s){var e=this.getFirstUnknownIndex(s);return e<0||s.splice(e,1,this.otherItem.value),s},u.prototype.getFirstUnknownIndex=function(s){if(!Array.isArray(s))return-1;for(var e=0;e=0},u.prototype.valueFromData=function(s){if(!s)return s;if(!Array.isArray(s))return[p.prototype.valueFromData.call(this,s)];for(var e=[],g=0;g1&&(e=this.data.getValue(this.getValueName())),M.Helpers.convertArrayValueToObject(s,this.valuePropertyName,e)},u.prototype.renderedValueFromDataCore=function(s){if((!s||!Array.isArray(s))&&(s=[]),!this.hasActiveChoices)return s;for(var e=0;e=0;n--)(r=s[n])&&(o=(f<3?r(o):f>3?r(e,g,o):r(e,g))||o);return f>3&&o&&Object.defineProperty(e,g,o),o},u=function(s){a(e,s);function e(g){var h=s.call(this,g)||this;return h.lastSelectedItemValue=null,h.minMaxChoices=[],h.onOpened=h.addEvent(),h.createLocalizableString("placeholder",h,!1,!0),h.createLocalizableString("clearCaption",h,!1,!0),h.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){h.onVisibleChoicesChanged()}),h.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices"],function(){h.updateReadOnlyText()}),h.updateReadOnlyText(),h}return e.prototype.updateReadOnlyText=function(){var g=this.placeholder;this.hasOther&&this.isOtherSelected?g=this.otherText:this.selectedItem&&(g=this.renderAs=="select"?this.selectedItemText:""),this.readOnlyText=g},e.prototype.locStrsChanged=function(){s.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(e.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(g){this.allowClear=g},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(g){this.placeholder=g},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(g){this.setLocalizableStringText("placeholder",g)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(g){this.setLocalizableStringText("clearCaption",g)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),e.prototype.getType=function(){return"dropdown"},Object.defineProperty(e.prototype,"selectedItem",{get:function(){if(this.isEmpty())return null;var g=M.ItemValue.getItemByValue(this.visibleChoices,this.value);return g&&(this.lastSelectedItemValue=g),this.lastSelectedItemValue},enumerable:!1,configurable:!0}),e.prototype.supportGoNextPageAutomatic=function(){return!0},e.prototype.getChoices=function(){var g=s.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return g;for(var h=[],f=0;f0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(e.prototype,"selectedItemLocText",{get:function(){var g=this.selectedItem;return g==null?void 0:g.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedItemText",{get:function(){var g=this.selectedItem;return g?g.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"popupModel",{get:function(){var g;return this.renderAs!=="select"&&!this.dropdownListModel&&(this.dropdownListModel=new V.DropdownListModel(this)),(g=this.dropdownListModel)===null||g===void 0?void 0:g.popupModel},enumerable:!1,configurable:!0}),e.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},e.prototype.onVisibleChoicesChanged=function(){s.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},e.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},e.prototype.getInputId=function(){return this.inputId+"_0"},e.prototype.clearValue=function(){s.prototype.clearValue.call(this),this.lastSelectedItemValue=null},e.prototype.onClick=function(g){this.onOpenedCallBack&&this.onOpenedCallBack()},e.prototype.onKeyUp=function(g){var h=g.which||g.keyCode;h===46&&(this.clearValue(),g.preventDefault(),g.stopPropagation())},p([Object(b.property)({defaultValue:!0})],e.prototype,"allowClear",void 0),p([Object(b.property)({defaultValue:!0,onSet:function(g,h){h.dropdownListModel&&h.dropdownListModel.setSearchEnabled(g)}})],e.prototype,"searchEnabled",void 0),p([Object(b.property)({defaultValue:!1})],e.prototype,"inputHasValue",void 0),p([Object(b.property)({defaultValue:""})],e.prototype,"readOnlyText",void 0),p([Object(b.property)({defaultValue:!1})],e.prototype,"choicesLazyLoadEnabled",void 0),p([Object(b.property)({defaultValue:25})],e.prototype,"choicesLazyLoadPageSize",void 0),e}(I.QuestionSelectBase);b.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:P.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new u("")},"selectbase"),C.QuestionFactory.Instance.registerQuestion("dropdown",function(s){var e=new u(s);return e.choices=C.QuestionFactory.DefaultChoices,e})},"./src/question_empty.ts":function(D,y,c){c.r(y),c.d(y,"QuestionEmptyModel",function(){return M});var b=c("./src/jsonobject.ts"),C=c("./src/question.ts"),I=function(){var T=function(V,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(a[u]=p[u])},T(V,P)};return function(V,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(V,P);function a(){this.constructor=V}V.prototype=P===null?Object.create(P):(a.prototype=P.prototype,new a)}}(),M=function(T){I(V,T);function V(P){return T.call(this,P)||this}return V.prototype.getType=function(){return"empty"},V}(C.Question);b.Serializer.addClass("empty",[],function(){return new M("")},"question")},"./src/question_expression.ts":function(D,y,c){c.r(y),c.d(y,"QuestionExpressionModel",function(){return P}),c.d(y,"getCurrecyCodes",function(){return a});var b=c("./src/helpers.ts"),C=c("./src/question.ts"),I=c("./src/jsonobject.ts"),M=c("./src/questionfactory.ts"),T=c("./src/conditions.ts"),V=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),P=function(p){V(u,p);function u(s){var e=p.call(this,s)||this;return e.createLocalizableString("format",e),e.registerPropertyChangedHandlers(["expression"],function(){e.expressionRunner&&(e.expressionRunner=new T.ExpressionRunner(e.expression))}),e.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){e.updateFormatedValue()}),e}return u.prototype.getType=function(){return"expression"},Object.defineProperty(u.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(s){this.setLocalizableStringText("format",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(s){this.setPropertyValue("expression",s)},enumerable:!1,configurable:!0}),u.prototype.locCalculation=function(){this.expressionIsRunning=!0},u.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},u.prototype.runCondition=function(s,e){var g=this;p.prototype.runCondition.call(this,s,e),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new T.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(h){b.Helpers.isTwoValueEquals(h,g.value)||(g.value=h),g.unlocCalculation()},this.expressionRunner.run(s,e))},u.prototype.canCollectErrors=function(){return!0},u.prototype.hasRequiredError=function(){return!1},Object.defineProperty(u.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(s){s<-1||s>20||this.setPropertyValue("maximumFractionDigits",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(s){s<-1||s>20||this.setPropertyValue("minimumFractionDigits",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"runIfReadOnly",{get:function(){return this.runIfReadOnlyValue===!0},set:function(s){this.runIfReadOnlyValue=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),u.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},u.prototype.onValueChanged=function(){this.updateFormatedValue()},u.prototype.updateValueFromSurvey=function(s){p.prototype.updateValueFromSurvey.call(this,s),this.updateFormatedValue()},u.prototype.getDisplayValueCore=function(s,e){var g=this.isValueEmpty(e)?this.defaultValue:e,h="";if(!this.isValueEmpty(g)){var f=this.getValueAsStr(g);h=this.format?this.format.format(f):f}return this.survey&&(h=this.survey.getExpressionDisplayValue(this,g,h)),h},Object.defineProperty(u.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(s){this.setPropertyValue("displayStyle",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(s){a().indexOf(s)<0||this.setPropertyValue("currency",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(s){this.setPropertyValue("useGrouping",s)},enumerable:!1,configurable:!0}),u.prototype.getValueAsStr=function(s){if(this.displayStyle=="date"){var e=new Date(s);if(!!e&&!!e.toLocaleDateString)return e.toLocaleDateString()}if(this.displayStyle!="none"&&b.Helpers.isNumber(s)){var g=this.getLocale();g||(g="en");var h={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(h.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(h.minimumFractionDigits=this.minimumFractionDigits),s.toLocaleString(g,h)}return s.toString()},u}(C.Question);function a(){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"]}I.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return a()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new P("")},"question"),M.QuestionFactory.Instance.registerQuestion("expression",function(p){return new P(p)})},"./src/question_file.ts":function(D,y,c){c.r(y),c.d(y,"QuestionFileModel",function(){return e}),c.d(y,"FileLoader",function(){return g});var b=c("./src/question.ts"),C=c("./src/jsonobject.ts"),I=c("./src/questionfactory.ts"),M=c("./src/error.ts"),T=c("./src/utils/cssClassBuilder.ts"),V=c("./src/utils/utils.ts"),P=c("./src/actions/container.ts"),a=c("./src/actions/action.ts"),p=c("./src/helpers.ts"),u=function(){var h=function(f,o){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h(f,o)};return function(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");h(f,o);function r(){this.constructor=f}f.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}}(),s=function(h,f,o,r){var n=arguments.length,i=n<3?f:r===null?r=Object.getOwnPropertyDescriptor(f,o):r,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(h,f,o,r);else for(var O=h.length-1;O>=0;O--)(m=h[O])&&(i=(n<3?m(i):n>3?m(f,o,i):m(f,o))||i);return n>3&&i&&Object.defineProperty(f,o,i),i},e=function(h){u(f,h);function f(o){var r=h.call(this,o)||this;return r.isUploading=!1,r.isDragging=!1,r.onUploadStateChanged=r.addEvent(),r.onStateChanged=r.addEvent(),r.mobileFileNavigator=new P.ActionContainer,r.dragCounter=0,r.onDragEnter=function(n){r.isInputReadOnly||(n.preventDefault(),r.isDragging=!0,r.dragCounter++)},r.onDragOver=function(n){if(r.isInputReadOnly)return n.returnValue=!1,!1;n.dataTransfer.dropEffect="copy",n.preventDefault()},r.onDrop=function(n){if(!r.isInputReadOnly){r.isDragging=!1,r.dragCounter=0,n.preventDefault();var i=n.dataTransfer;r.onChange(i)}},r.onDragLeave=function(n){r.isInputReadOnly||(r.dragCounter--,r.dragCounter===0&&(r.isDragging=!1))},r.doChange=function(n){var i=n.target||n.srcElement;r.onChange(i)},r.doClean=function(n){if(n.currentTarget||n.srcElement,r.needConfirmRemoveFile){var i=Object(V.confirmAction)(r.confirmRemoveAllMessage);if(!i)return}r.rootElement&&(r.rootElement.querySelectorAll("input")[0].value=""),r.clear()},r.doDownloadFile=function(n,i){Object(V.detectIEOrEdge)()&&(n.preventDefault(),Object(V.loadFileFromBase64)(i.content,i.name))},r.fileIndexAction=new a.Action({id:"fileIndex",title:r.getFileIndexCaption(),enabled:!1}),r.prevFileAction=new a.Action({id:"prevPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow-1+r.previewValue.length)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.nextFileAction=new a.Action({id:"nextPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow+1)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.mobileFileNavigator.actions=[r.prevFileAction,r.fileIndexAction,r.nextFileAction],r}return Object.defineProperty(f.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),f.prototype.updateElementCssCore=function(o){h.prototype.updateElementCssCore.call(this,o),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},f.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},f.prototype.isPreviewVisible=function(o){return!this.isMobile||o===this.indexToShow},f.prototype.getType=function(){return"file"},f.prototype.clearOnDeletingContainer=function(){!this.survey||this.survey.clearFiles(this,this.name,this.value,null,function(){})},Object.defineProperty(f.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(o){this.setPropertyValue("showPreview",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(o){this.setPropertyValue("allowMultiple",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(o){this.setPropertyValue("imageHeight",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(o){this.setPropertyValue("imageWidth",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(o){this.setPropertyValue("acceptedTypes",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(o){this.setPropertyValue("storeDataAsText",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(o){this.setPropertyValue("waitForUpload",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(o){this.setPropertyValue("allowImagesPreview",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(o){this.setPropertyValue("maxSize",o)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(o){this.setPropertyValue("needConfirmRemoveFile",o)},enumerable:!1,configurable:!0}),f.prototype.getConfirmRemoveMessage=function(o){return this.confirmRemoveMessage.format(o)},Object.defineProperty(f.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),f.prototype.clear=function(o){var r=this;!this.survey||(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(n,i){n==="success"&&(r.value=void 0,r.errors=[],o&&o(),r.indexToShow=0,r.fileIndexAction.title=r.getFileIndexCaption())}))},Object.defineProperty(f.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),f.prototype.defaultImage=function(o){return!this.canPreviewImage(o)&&!!this.cssClasses.defaultImage},f.prototype.removeFile=function(o){this.removeFileByContent(this.value.filter(function(r){return r.name===o})[0])},f.prototype.removeFileByContent=function(o){var r=this;!this.survey||this.survey.clearFiles(this,this.name,this.value,o.name,function(n,i){if(n==="success"){var m=r.value;Array.isArray(m)?r.value=m.filter(function(O){return!p.Helpers.isTwoValueEquals(O,o,!0)}):r.value=void 0}})},f.prototype.loadFiles=function(o){var r=this;if(!!this.survey&&(this.errors=[],!!this.allFilesOk(o))){var n=function(){r.stateChanged("loading");var i=[];r.storeDataAsText?o.forEach(function(m){var O=new FileReader;O.onload=function(w){i=i.concat([{name:m.name,type:m.type,content:O.result}]),i.length===o.length&&(r.value=(r.value||[]).concat(i))},O.readAsDataURL(m)}):r.survey&&r.survey.uploadFiles(r,r.name,o,function(m,O){m==="error"&&r.stateChanged("error"),m==="success"&&(r.value=(r.value||[]).concat(O.map(function(w){return{name:w.file.name,type:w.file.type,content:w.content}})))})};this.allowMultiple?n():this.clear(n)}},f.prototype.canPreviewImage=function(o){return this.allowImagesPreview&&!!o&&this.isFileImage(o)},f.prototype.loadPreview=function(o){var r=this;if(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!o)){var n=Array.isArray(o)?o:o?[o]:[];this.storeDataAsText?n.forEach(function(i){var m=i.content||i;r.previewValue.push({name:i.name,type:i.type,content:m})}):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new g(this,function(i,m){i==="loaded"&&m.forEach(function(O){r.previewValue.push(O)}),r.isReadyValue=!0,r.onReadyChanged&&r.onReadyChanged.fire(r,{question:r,isReady:!0,oldIsReady:!1}),r._previewLoader.dispose(),r._previewLoader=void 0}),this._previewLoader.load(n)),this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1}},f.prototype.onCheckForErrors=function(o,r){h.prototype.onCheckForErrors.call(this,o,r),this.isUploading&&this.waitForUpload&&o.push(new M.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},f.prototype.stateChanged=function(o){this.currentState!=o&&(o==="loading"&&(this.isUploading=!0),o==="loaded"&&(this.isUploading=!1),o==="error"&&(this.isUploading=!1),this.currentState=o,this.onStateChanged.fire(this,{state:o}),this.onUploadStateChanged.fire(this,{state:o}))},f.prototype.allFilesOk=function(o){var r=this,n=this.errors?this.errors.length:0;return(o||[]).forEach(function(i){r.maxSize>0&&i.size>r.maxSize&&r.errors.push(new M.ExceedSizeError(r.maxSize,r))}),n===this.errors.length},f.prototype.isFileImage=function(o){if(!o)return!1;var r="data:image",n=o.content&&o.content.substring(0,r.length);n=n&&n.toLowerCase();var i=n===r||!!o.type&&o.type.toLowerCase().indexOf("image/")===0;return i},f.prototype.getPlainData=function(o){o===void 0&&(o={includeEmpty:!0});var r=h.prototype.getPlainData.call(this,o);if(!!r&&!this.isEmpty()){r.isNode=!1;var n=Array.isArray(this.value)?this.value:[this.value];r.data=n.map(function(i,m){return{name:m,title:"File",value:i.content&&i.content||i,displayValue:i.name&&i.name||i,getString:function(O){return typeof O=="object"?JSON.stringify(O):O},isNode:!1}})}return r},f.prototype.supportComment=function(){return!0},f.prototype.getChooseFileCss=function(){var o=this.isAnswered;return new T.CssClassBuilder().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!o).append(this.cssClasses.chooseFileAsTextDisabled,!o&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,o).toString()},f.prototype.getReadOnlyFileCss=function(){return new T.CssClassBuilder().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(f.prototype,"fileRootCss",{get:function(){return new T.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),f.prototype.getFileDecoratorCss=function(){return new T.CssClassBuilder().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},f.prototype.onChange=function(o){if(!!window.FileReader&&!(!o||!o.files||o.files.length<1)){for(var r=[],n=this.allowMultiple?o.files.length:1,i=0;i-1)return g;for(var f="",o=g.length-1;o>=0&&!(g[o]==="="||g[o]==="/");o--)f=g[o]+f;return a+p+"/"+f}C.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{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"),I.QuestionFactory.Instance.registerQuestion("image",function(g){return new s(g)})},"./src/question_imagepicker.ts":function(D,y,c){c.r(y),c.d(y,"ImageItemValue",function(){return s}),c.d(y,"QuestionImagePickerModel",function(){return e});var b=c("./src/jsonobject.ts"),C=c("./src/questionfactory.ts"),I=c("./src/question_baseselect.ts"),M=c("./src/itemvalue.ts"),T=c("./src/helpers.ts"),V=c("./src/utils/cssClassBuilder.ts"),P=c("./src/settings.ts"),a=c("./src/utils/utils.ts"),p=function(){var g=function(h,f){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])},g(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");g(h,f);function o(){this.constructor=h}h.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),u=function(g,h,f,o){var r=arguments.length,n=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,f):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(g,h,f,o);else for(var m=g.length-1;m>=0;m--)(i=g[m])&&(n=(r<3?i(n):r>3?i(h,f,n):i(h,f))||n);return r>3&&n&&Object.defineProperty(h,f,n),n},s=function(g){p(h,g);function h(f,o,r){o===void 0&&(o=null),r===void 0&&(r="imageitemvalue");var n=g.call(this,f,o,r)||this;return n.typeName=r,n.createLocalizableString("imageLink",n,!1),n}return h.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(h.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(f){this.setLocalizableStringText("imageLink",f)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),h.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},h.prototype.getMarkdownHtml=function(f,o){return this.locOwner?this.locOwner.getMarkdownHtml(f,o):void 0},h.prototype.getRenderer=function(f){return this.locOwner?this.locOwner.getRenderer(f):null},h.prototype.getRendererContext=function(f){return this.locOwner?this.locOwner.getRendererContext(f):f},h.prototype.getProcessedText=function(f){return this.locOwner?this.locOwner.getProcessedText(f):f},h}(M.ItemValue),e=function(g){p(h,g);function h(f){var o=g.call(this,f)||this;return o.isResponsiveValue=!1,o.onContentLoaded=function(r,n){var i=n.target;o.contentMode=="video"?r.aspectRatio=i.videoWidth/i.videoHeight:r.aspectRatio=i.naturalWidth/i.naturalHeight,o._width&&o.processResponsiveness(0,o._width)},o.colCount=0,o.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){o._width&&o.processResponsiveness(0,o._width)}),o.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){o.calcIsResponsive()}),o.calcIsResponsive(),o}return h.prototype.getType=function(){return"imagepicker"},h.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(h.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(h.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.supportOther=function(){return!1},h.prototype.supportNone=function(){return!1},h.prototype.isAnswerCorrect=function(){return this.multiSelect?T.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):g.prototype.isAnswerCorrect.call(this)},Object.defineProperty(h.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(f){this.setPropertyValue("multiSelect",f)},enumerable:!1,configurable:!0}),h.prototype.isItemSelected=function(f){var o=this.value;if(this.isValueEmpty(o))return!1;if(!this.multiSelect)return this.isTwoValueEquals(o,f.value);if(!Array.isArray(o))return!1;for(var r=0;ro){var d=r(o,m,i);t=Math.floor((o-i*(d-1))/d)}else t=Math.floor((o-i*(n-1))/n);else{var v=r(o,m,i);v=1?v:1,l=this.responsiveColCount):this.responsiveColCount=l,t=Math.floor((o-i*(l-1))/l)}t=Math.max(m,Math.min(t,O));var E=Number.MIN_VALUE;this.choices.forEach(function(A){var L=t/A.aspectRatio;E=L>E?L:E}),E>w?E=w:E=0&&i=i.length)return null;n=i[n].value}return n.value?n.value:n},r.prototype.getJson=function(){if(this.isEmpty)return null;var n={};for(var i in this.values){var m={},O=this.values[i];for(var w in O)m[w]=O[w].getJson();n[i]=m}return n},r.prototype.setJson=function(n){if(this.values={},n){for(var i in n)if(i!="pos"){var m=n[i];this.values[i]={};for(var O in m)if(O!="pos"){var w=this.createString();w.setJson(m[O]),this.values[i][O]=w}}}this.valuesChanged()},r.prototype.createString=function(){return new p.LocalizableString(this.cellsOwner,!0)},r}(),o=function(r){g(n,r);function n(i){var m=r.call(this,i)||this;return m.isRowChanging=!1,m.emptyLocalizableString=new p.LocalizableString(m),m.cellsValue=new f(m),m.cellsValue.onValuesChanged=function(){m.updateHasCellText(),m.propertyValueChanged("cells",m.cells,m.cells)},m.registerPropertyChangedHandlers(["columns"],function(){m.onColumnsChanged()}),m.registerPropertyChangedHandlers(["rows"],function(){m.filterItems()||m.onRowsChanged()}),m.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){m.updateVisibilityBasedOnRows()}),m}return n.prototype.getType=function(){return"matrix"},Object.defineProperty(n.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(i){this.setPropertyValue("isAllRowRequired",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(i){i=i.toLowerCase(),i!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",i),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(i){this.setPropertyValue("hideIfRowsEmpty",i)},enumerable:!1,configurable:!0}),n.prototype.getRows=function(){return this.rows},n.prototype.getColumns=function(){return this.visibleColumns},n.prototype.addColumn=function(i,m){var O=new C.ItemValue(i,m);return this.columns.push(O),O},n.prototype.getItemClass=function(i,m){var O=i.value==m.value,w=this.isReadOnly,x=!O&&!w;return new e.CssClassBuilder().append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,O).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,w).append(this.cssClasses.itemHover,x&&!this.hasCellText).toString()},Object.defineProperty(n.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),n.prototype.getQuizQuestionCount=function(){for(var i=0,m=0;m0)&&this.hasErrorInRows()&&i.push(new P.RequiredInAllRowsError(null,this))},n.prototype.hasErrorInRows=function(){return this.isAllRowRequired?!this.hasValuesInAllRows():!1},n.prototype.hasValuesInAllRows=function(){var i=this.generatedVisibleRows;if(i||(i=this.visibleRows),!i)return!0;for(var m=0;m0&&this.visibleColumns.length>0?this.inputId+"_"+i[0].name+"_"+0:r.prototype.getFirstInputElementId.call(this)},n.prototype.onMatrixRowChanged=function(i){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(i.value);else{var m=this.value;m||(m={}),m[i.name]=i.value,this.setNewValue(m)}this.isRowChanging=!1}},n.prototype.getCorrectedRowValue=function(i){for(var m=0;m4||this.setPropertyValue("columnColCount",l)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(l){this.setPropertyValue("columnMinWidth",l)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(l){this.setPropertyValue("horizontalScroll",l)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(l){this.setPropertyValue("allowAdaptiveActions",l),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=l)},enumerable:!1,configurable:!0}),x.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},x.prototype.hasChoices=function(){return this.choices.length>0},x.prototype.onColumnPropertyChanged=function(l,t,d){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var v=0;v=0&&t[v]!=".";v--)d=t[v]+d;var E=this.getColumnByName(d);if(!E)return null;var R=E.createCellQuestion(null);return R?R.getConditionJson(l):null},x.prototype.clearIncorrectValues=function(){var l=this.visibleRows;if(!!l)for(var t=0;t0,E=0;E=t.length)return null;var d=this.createNewValue();return this.getRowValueCore(t[l],d)},x.prototype.checkIfValueInRowDuplicated=function(l,t){if(!this.generatedVisibleRows)return!1;for(var d=!1,v=0;v=d.length)return null;d[l].value=t,this.onRowChanged(d[l],"",t,!1)},x.prototype.generateRows=function(){return null},x.prototype.generateTotalRow=function(){return new m(this)},x.prototype.createNewValue=function(l){l===void 0&&(l=!1);var t=this.value?this.createValueCopy():{};return l&&this.isMatrixValueEmpty(t)?null:t},x.prototype.getRowValueCore=function(l,t,d){d===void 0&&(d=!1);var v=!!t&&!!t[l.rowName]?t[l.rowName]:null;return!v&&d&&(v={},t&&(t[l.rowName]=v)),v},x.prototype.getRowObj=function(l){var t=this.getRowValueCore(l,this.value);return!!t&&!!t.getType?t:null},x.prototype.getRowDisplayValue=function(l,t,d){if(!d||t.editingObj)return d;for(var v=Object.keys(d),E=0;E-1:!1,v=this.getConditionObjectsRowIndeces();d&&v.push(-1);for(var E=0;E-1?this.getConditionObjectRowName(R):"row";if(!!S)for(var A=R>-1?this.getConditionObjectRowText(R):"row",L=R>-1||t===!0,k=L&&R===-1?".":"",N=(L?this.getValueName():"")+k+S+".",W=(L?this.processedTitle:"")+k+A+".",U=0;U0&&(l=l.concat(R))}return l},x.prototype.hasErrorInRows=function(l,t){var d=this,v=this.generatedVisibleRows;this.generatedVisibleRows||(v=this.visibleRows);var E=!1;if(t||(t={}),!v)return t;t.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var R=0;R0)return d[v].question;return null},x.prototype.onReadOnlyChanged=function(){if(w.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var l=0;l0},x.prototype.getIsDetailPanelShowing=function(l){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var t=this.visibleRows.indexOf(l)==0;return t&&(l.detailPanel||l.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+l.id,!1)},x.prototype.setIsDetailPanelShowing=function(l,t){if(t!=this.getIsDetailPanelShowing(l)&&(this.setPropertyValue("isRowShowing"+l.id,t),this.updateDetailPanelButtonCss(l),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(l,t),t&&this.detailPanelMode==="underRowSingle"))for(var d=this.visibleRows,v=0;v=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(l)},x.prototype.isMatrixValueEmpty=function(l){if(!!l){if(Array.isArray(l)){for(var t=0;t0)return!1;return!0}return Object.keys(l).length==0}},Object.defineProperty(x.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),x.prototype.getCellTemplateData=function(l){return this.SurveyModel.getMatrixCellTemplateData(l)},x.prototype.getCellWrapperComponentName=function(l){return this.SurveyModel.getElementWrapperComponentName(l,"cell")},x.prototype.getCellWrapperComponentData=function(l){return this.SurveyModel.getElementWrapperComponentData(l,"cell")},x.prototype.getColumnHeaderWrapperComponentName=function(l){return this.SurveyModel.getElementWrapperComponentName(l,"column-header")},x.prototype.getColumnHeaderWrapperComponentData=function(l){return this.SurveyModel.getElementWrapperComponentData(l,"column-header")},x.prototype.getRowHeaderWrapperComponentName=function(l){return this.SurveyModel.getElementWrapperComponentName(l,"row-header")},x.prototype.getRowHeaderWrapperComponentData=function(l){return this.SurveyModel.getElementWrapperComponentData(l,"row-header")},Object.defineProperty(x.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),x.prototype.getRootCss=function(){return new e.CssClassBuilder().append(w.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},x.prototype.getIsTooltipErrorInsideSupported=function(){return!0},x}(C.QuestionMatrixBaseModel);b.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new O("")},"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(D,y,c){c.r(y),c.d(y,"matrixDropdownColumnTypes",function(){return P}),c.d(y,"MatrixDropdownColumn",function(){return a});var b=c("./src/jsonobject.ts"),C=c("./src/base.ts"),I=c("./src/question_expression.ts"),M=c("./src/settings.ts"),T=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}();function V(p,u,s,e){p.storeOthersAsComment=s?s.storeOthersAsComment:!1,(!p.choices||p.choices.length==0)&&p.choicesByUrl.isEmpty&&(p.choices=s.choices),p.choicesByUrl.isEmpty||p.choicesByUrl.run(e.getTextProcessor())}var P={dropdown:{onCellQuestionUpdate:function(p,u,s,e){V(p,u,s,e),!!p.locPlaceholder&&p.locPlaceholder.isEmpty&&!s.locPlaceholder.isEmpty&&(p.optionsCaption=s.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(p,u,s,e){V(p,u,s,e),p.colCount=u.colCount>-1?u.colCount:s.columnColCount}},radiogroup:{onCellQuestionUpdate:function(p,u,s,e){V(p,u,s,e),p.colCount=u.colCount>-1?u.colCount:s.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(p,u,s,e){p.renderAs=u.renderAs}},expression:{},rating:{}},a=function(p){T(u,p);function u(s,e){e===void 0&&(e=null);var g=p.call(this)||this;return g.colOwnerValue=null,g.indexValue=-1,g._isVisible=!0,g._hasVisibleCell=!0,g.previousChoicesId=void 0,g.createLocalizableString("totalFormat",g),g.createLocalizableString("cellHint",g),g.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){g.doShowInMultipleColumnsChanged()}),g.updateTemplateQuestion(),g.name=s,e?g.title=e:g.templateQuestion.locTitle.strChanged(),g}return u.getColumnTypes=function(){var s=[];for(var e in P)s.push(e);return s},u.prototype.getOriginalObj=function(){return this.templateQuestion},u.prototype.getClassNameProperty=function(){return"cellType"},u.prototype.getSurvey=function(s){return this.colOwner?this.colOwner.survey:null},u.prototype.endLoadingFromJson=function(){var s=this;p.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return s.getSurvey()}},u.prototype.getDynamicPropertyName=function(){return"cellType"},u.prototype.getDynamicType=function(){return this.cellType==="default"?"question":this.calcCellQuestionType(null)},Object.defineProperty(u.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(s){this.colOwnerValue=s,s&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),u.prototype.locStrsChanged=function(){p.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},u.prototype.addUsedLocales=function(s){p.prototype.addUsedLocales.call(this,s),this.templateQuestion.addUsedLocales(s)},Object.defineProperty(u.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),u.prototype.setIndex=function(s){this.indexValue=s},u.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(u.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(s){s=s.toLocaleLowerCase(),this.updateTemplateQuestion(s),this.setPropertyValue("cellType",s),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),u.prototype.setIsVisible=function(s){this._isVisible=s},Object.defineProperty(u.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(s){this._hasVisibleCell=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(s){this.templateQuestion.name=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(s){this.templateQuestion.title=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(s){this.templateQuestion.isRequired=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(s){this.setPropertyValue("isRenderedRequired",s)},enumerable:!1,configurable:!0}),u.prototype.updateIsRenderedRequired=function(s){this.isRenderedRequired=s||this.isRequired},Object.defineProperty(u.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(s){this.templateQuestion.requiredErrorText=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(s){this.templateQuestion.readOnly=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(s){this.templateQuestion.hasOther=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(s){this.templateQuestion.visibleIf=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(s){this.templateQuestion.enableIf=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(s){this.templateQuestion.requiredIf=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(s){this.setPropertyValue("isUnique",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns",!1)},set:function(s){this.setPropertyValue("showInMultipleColumns",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(s){this.templateQuestion.validators=s},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(s){this.setPropertyValue("totalType",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(s){this.setPropertyValue("totalExpression",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasTotal",{get:function(){return this.totalType!="none"||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(s){this.setLocalizableStringText("totalFormat",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(s){this.setLocalizableStringText("cellHint",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(s){this.setPropertyValue("renderAs",s),this.templateQuestion&&(this.templateQuestion.renderAs=s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(s){s<-1||s>20||this.setPropertyValue("totalMaximumFractionDigits",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(s){s<-1||s>20||this.setPropertyValue("totalMinimumFractionDigits",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(s){this.setPropertyValue("totalDisplayStyle",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(s){Object(I.getCurrecyCodes)().indexOf(s)<0||this.setPropertyValue("totalCurrency",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(s){this.setPropertyValue("minWidth",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(s){this.setPropertyValue("width",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(s){s<-1||s>4||this.setPropertyValue("colCount",s)},enumerable:!1,configurable:!0}),u.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},u.prototype.getMarkdownHtml=function(s,e){return this.colOwner?this.colOwner.getMarkdownHtml(s,e):void 0},u.prototype.getRenderer=function(s){return this.colOwner?this.colOwner.getRenderer(s):null},u.prototype.getRendererContext=function(s){return this.colOwner?this.colOwner.getRendererContext(s):s},u.prototype.getProcessedText=function(s){return this.colOwner?this.colOwner.getProcessedText(s):s},u.prototype.createCellQuestion=function(s){var e=this.calcCellQuestionType(s),g=this.createNewQuestion(e);return this.callOnCellQuestionUpdate(g,s),g},u.prototype.startLoadingFromJson=function(s){p.prototype.startLoadingFromJson.call(this,s),!!s&&!s.cellType&&!!s.choices&&(s.cellType=this.colOwner.getCellType())},u.prototype.updateCellQuestion=function(s,e,g){g===void 0&&(g=null),this.setQuestionProperties(s,g)},u.prototype.callOnCellQuestionUpdate=function(s,e){var g=s.getType(),h=P[g];h&&h.onCellQuestionUpdate&&h.onCellQuestionUpdate(s,this,this.colOwner,e)},u.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},u.prototype.calcCellQuestionType=function(s){var e=this.getDefaultCellQuestionType();return!!s&&!!this.colOwner&&(e=this.colOwner.getCustomCellType(this,s,e)),e},u.prototype.getDefaultCellQuestionType=function(s){return s||(s=this.cellType),s!=="default"?s:this.colOwner?this.colOwner.getCellType():M.settings.matrixDefaultCellType},u.prototype.updateTemplateQuestion=function(s){var e=this,g=this.getDefaultCellQuestionType(s),h=this.templateQuestion?this.templateQuestion.getType():"";g!==h&&(this.templateQuestion&&this.removeProperties(h),this.templateQuestionValue=this.createNewQuestion(g),this.templateQuestion.locOwner=this,this.addProperties(g),this.templateQuestion.onPropertyChanged.add(function(f,o){e.propertyValueChanged(o.name,o.oldValue,o.newValue)}),this.templateQuestion.onItemValuePropertyChanged.add(function(f,o){e.doItemValuePropertyChanged(o.propertyName,o.obj,o.name,o.newValue,o.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}),this.templateQuestion.locTitle.strChanged())},u.prototype.createNewQuestion=function(s){var e=b.Serializer.createClass(s);return e||(e=b.Serializer.createClass("text")),e.loadingOwner=this,e.isEditableTemplateElement=!0,e.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(e),this.setParentQuestionToTemplate(e),e},u.prototype.setParentQuestionToTemplate=function(s){!!this.colOwner&&this.colOwner.isQuestion&&s.setParentQuestion(this.colOwner)},u.prototype.setQuestionProperties=function(s,e){var g=this;if(e===void 0&&(e=null),this.templateQuestion){var h=new b.JsonObject().toJsonObject(this.templateQuestion,!0);e&&e(h),h.type=s.getType(),this.cellType==="default"&&!!this.colOwner&&this.colOwner.hasChoices()&&delete h.choices,delete h.itemComponent,new b.JsonObject().toObject(h,s),s.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,s.loadedChoicesFromServerCallback=function(){if(!!g.isShowInMultipleColumns&&!(!!g.previousChoicesId&&g.previousChoicesId!==s.id)){g.previousChoicesId=s.id;var f=s.visibleChoices;g.templateQuestion.choices=f,g.propertyValueChanged("choices",f,f)}}}},u.prototype.propertyValueChanged=function(s,e,g){p.prototype.propertyValueChanged.call(this,s,e,g),s==="isRequired"&&this.updateIsRenderedRequired(g),!(!this.colOwner||this.isLoadingFromJson)&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(s)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),b.Serializer.hasOriginalProperty(this,s)&&this.colOwner.onColumnPropertyChanged(this,s,g))},u.prototype.doItemValuePropertyChanged=function(s,e,g,h,f){!b.Serializer.hasOriginalProperty(e,g)||this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,s,e,g,h,f)},u.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},u.prototype.getProperties=function(s){return b.Serializer.getDynamicPropertiesByObj(this,s)},u.prototype.removeProperties=function(s){for(var e=this.getProperties(s),g=0;g=0;O--)(m=h[O])&&(i=(n<3?m(i):n>3?m(f,o,i):m(f,o))||i);return n>3&&i&&Object.defineProperty(f,o,i),i},s=function(){function h(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=h.counter++}return Object.defineProperty(h.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),h.prototype.showErrorOnCore=function(f){return this.getShowErrorLocation(f)&&(!this.isChoice||this.isFirstChoice)},h.prototype.getShowErrorLocation=function(f){return this.hasQuestion&&this.question.showErrorOnCore(f)},Object.defineProperty(h.prototype,"item",{get:function(){return this.itemValue},set:function(f){this.itemValue=f,f&&(f.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"className",{get:function(){var f=new V.CssClassBuilder().append(this.classNameValue);return this.hasQuestion&&f.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),f.toString()},set:function(f){this.classNameValue=f},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.cell.column.cellHint===" ")return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.cell.column.isShowInMultipleColumns)return this.item.locText.renderedHtml}return this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),h.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},h.prototype.calculateFinalClassName=function(f){var o=this.cell.question.cssClasses,r=new V.CssClassBuilder().append(o.itemValue,!!o).append(o.asCell,!!o);return r.append(f.cell,r.isEmpty()&&!!f).append(f.choiceCell,this.isChoice).toString()},h.counter=1,h}(),e=function(h){p(f,h);function f(o,r){r===void 0&&(r=!1);var n=h.call(this)||this;return n.cssClasses=o,n.isDetailRow=r,n.cells=[],n.idValue=f.counter++,n}return Object.defineProperty(f.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"className",{get:function(){return new V.CssClassBuilder().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),f.counter=1,u([Object(b.property)({defaultValue:null})],f.prototype,"isGhostRow",void 0),u([Object(b.property)({defaultValue:!1})],f.prototype,"isAdditionalClasses",void 0),f}(C.Base),g=function(h){p(f,h);function f(o){var r=h.call(this)||this;return r.matrix=o,r.renderedRowsChangedCallback=function(){},r.hasActionCellInRowsValues={},r.build(),r}return Object.defineProperty(f.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),f.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(f.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),f.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},f.prototype.updateShowTableAndAddRow=function(){var o=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",o);var r=this.matrix.canAddRow&&o,n=r,i=r;n&&(this.matrix.getAddRowLocation()==="default"?n=!this.matrix.isColumnLayoutHorizontal:n=this.matrix.getAddRowLocation()!=="bottom"),i&&this.matrix.getAddRowLocation()!=="topBottom"&&(i=!n),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",i)},f.prototype.onAddedRow=function(){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var o=this.matrix.visibleRows[this.matrix.visibleRows.length-1];this.rowsActions.push(this.buildRowActions(o)),this.addHorizontalRow(this.rows,o,this.matrix.visibleRows.length==1&&!this.matrix.showHeader),this.updateShowTableAndAddRow()}},f.prototype.getRenderedDataRowCount=function(){for(var o=0,r=0;r-1||!r&&i<0))if(r){var m=this.createDetailPanelRow(o,this.rows[n]);this.rows.splice(n+1,0,m)}else this.rows.splice(i,1)}},f.prototype.getRenderedRowIndex=function(o){for(var r=0;r=0?i:l,v=x[l].cells[r],E=n?v.question.visibleChoices:void 0;!!E&&d1?this.cells[1].questionValue:void 0,m=this.cells.length>0?this.cells[0].questionValue:void 0;return i&&i.value||m&&m.value||""+n},enumerable:!1,configurable:!0}),o}(I.MatrixDropdownRowModelBase),g=function(f){s(o,f);function o(r){var n=f.call(this,r)||this;n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(m,O){n.dragDropMatrixRows.startDrag(m,n.draggedRow,n,m.target)},n.moveRowByIndex=function(m,O){var w=n.createNewValue();if(!!w){var x=w[m];!x||(w.splice(m,1),w.splice(O,0,x),n.value=w)}},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var i=n.createLocalizableString("addRowText",n);return i.onGetTextCallback=function(m){return m||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],function(){n.clearRowsAndResetRenderedTable()}),n.dragOrClickHelper=new u.DragOrClickHelper(n.startDragMatrixRow),n}return o.prototype.setSurveyImpl=function(r,n){f.prototype.setSurveyImpl.call(this,r,n),this.dragDropMatrixRows=new P.DragDropMatrixRows(this.survey)},o.prototype.isBanStartDrag=function(r){var n=r.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"},o.prototype.onPointerDown=function(r,n){!n||!this.allowRowsDragAndDrop||this.isBanStartDrag(r)||n.isDetailPanelShowing||(this.draggedRow=n,this.dragOrClickHelper.onPointerDown(r))},o.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(o.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(r){this.setPropertyValue("confirmDelete",r)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(r){this.setPropertyValue("keyName",r)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(r){this.setPropertyValue("defaultRowValue",r)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(r){this.setPropertyValue("defaultValueFromLastRow",r)},enumerable:!1,configurable:!0}),o.prototype.isDefaultValueEmpty=function(){return f.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},o.prototype.valueFromData=function(r){if(this.minRowCount<1)return f.prototype.valueFromData.call(this,r);Array.isArray(r)||(r=[]);for(var n=r.length;nT.settings.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=r,this.value&&this.value.length>r){var i=this.value;i.splice(r),this.value=i}if(this.isUpdateLocked){this.initialRowCount=r;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(r);for(var m=n;mthis.maxRowCount&&(this.maxRowCount=r),this.rowCountT.settings.matrixMaximumRowCount&&(r=T.settings.matrixMaximumRowCount),r!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",r),rr&&(this.rowCount=r)))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(r){this.setPropertyValue("allowAddRows",r)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(r){this.setPropertyValue("allowRemoveRows",r),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCountthis.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(r):r},enumerable:!1,configurable:!0}),o.prototype.canRemoveRow=function(r){return this.survey?this.survey.matrixAllowRemoveRow(this,r.index,r):!0},o.prototype.addRowUI=function(){var r=this.rowCount;if(this.addRow(),r!==this.rowCount){var n=this.getQuestionToFocusOnAddingRow();n&&n.focus()}},o.prototype.getQuestionToFocusOnAddingRow=function(){for(var r=this.visibleRows[this.visibleRows.length-1],n=0;n0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel())},Object.defineProperty(o.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(r){this.setPropertyValue("detailPanelShowOnAdding",r)},enumerable:!1,configurable:!0}),o.prototype.hasRowsAsItems=function(){return!1},o.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,f.prototype.unbindValue.call(this)},o.prototype.isValueSurveyElement=function(r){return this.isEditingSurveyElement||f.prototype.isValueSurveyElement.call(this,r)},o.prototype.addRowCore=function(){var r=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),i=null;if(this.isValueEmpty(n)||(i=this.createNewValue(),i.length==this.rowCount&&(i[i.length-1]=n,this.value=i)),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(n))){var m=this.visibleRows[this.rowCount-1];this.isValueEmpty(m.value)||(i||(i=this.createNewValue()),!this.isValueSurveyElement(i)&&!this.isTwoValueEquals(i[i.length-1],m.value)&&(i[i.length-1]=m.value,this.value=i))}this.survey&&r+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},o.prototype.getDefaultRowValue=function(r){for(var n=null,i=0;i=this.rowCount-1){var x=w[this.rowCount-2];for(var O in x)n=n||{},n[O]=x[O]}}return n},o.prototype.removeRowUI=function(r){if(!!r&&!!r.rowName){var n=this.visibleRows.indexOf(r);if(n<0)return;r=n}(!this.isRequireConfirmOnRowDelete(r)||Object(V.confirmAction)(this.confirmDeleteText))&&this.removeRow(r)},o.prototype.isRequireConfirmOnRowDelete=function(r){if(!this.confirmDelete||r<0||r>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||r>=n.length?!1:!this.isValueEmpty(n[r])},o.prototype.removeRow=function(r){if(!!this.canRemoveRows&&!(r<0||r>=this.rowCount)){var n=!!this.visibleRows&&rthis.rowCount&&r.splice(this.rowCount);var n=this.getDefaultRowValue(!1);n=n||{};for(var i=r.length;i0){i=!1;break}return i?null:r},o.prototype.getRowValueByIndex=function(r,n){return Array.isArray(r)&&n>=0&&n5||this.setPropertyValue("colCount",f)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(f){this.setPropertyValue("itemSize",f)},enumerable:!1,configurable:!0}),h.prototype.getRows=function(){for(var f=this.colCount,o=this.items,r=[],n=0,i=0;i=f&&(n=0);return r},h.prototype.onValueChanged=function(){g.prototype.onValueChanged.call(this),this.onItemValueChanged()},h.prototype.createTextItem=function(f,o){return new s(f,o)},h.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var f=0;f0&&(f=f.concat(r))}return f},h.prototype.clearErrors=function(){g.prototype.clearErrors.call(this);for(var f=0;f0).toString()},h.prototype.getItemCss=function(){return new a.CssClassBuilder().append(this.cssClasses.item).toString()},h.prototype.getItemTitleCss=function(){return new a.CssClassBuilder().append(this.cssClasses.itemTitle).toString()},h.prototype.getIsTooltipErrorInsideSupported=function(){return!0},h}(I.Question);T.Serializer.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:p.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new s("")}),T.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new e("")},"question"),V.QuestionFactory.Instance.registerQuestion("multipletext",function(g){var h=new e(g);return e.addDefaultItems(h),h})},"./src/question_paneldynamic.ts":function(D,y,c){c.r(y),c.d(y,"QuestionPanelDynamicItem",function(){return o}),c.d(y,"QuestionPanelDynamicTemplateSurveyImpl",function(){return r}),c.d(y,"QuestionPanelDynamicModel",function(){return n});var b=c("./src/helpers.ts"),C=c("./src/survey-element.ts"),I=c("./src/textPreProcessor.ts"),M=c("./src/question.ts"),T=c("./src/jsonobject.ts"),V=c("./src/questionfactory.ts"),P=c("./src/error.ts"),a=c("./src/settings.ts"),p=c("./src/utils/utils.ts"),u=c("./src/utils/cssClassBuilder.ts"),s=c("./src/actions/action.ts"),e=function(){var i=function(m,O){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var l in x)Object.prototype.hasOwnProperty.call(x,l)&&(w[l]=x[l])},i(m,O)};return function(m,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");i(m,O);function w(){this.constructor=m}m.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}}(),g=function(i,m,O,w){var x=arguments.length,l=x<3?m:w===null?w=Object.getOwnPropertyDescriptor(m,O):w,t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,m,O,w);else for(var d=i.length-1;d>=0;d--)(t=i[d])&&(l=(x<3?t(l):x>3?t(m,O,l):t(m,O))||l);return x>3&&l&&Object.defineProperty(m,O,l),l},h=function(i,m,O){if(O||arguments.length===2)for(var w=0,x=m.length,l;w-1?this.data.getSharedQuestionFromArray(O,x):void 0;var l=w?w.name:O;return this.sharedQuestions[l]=O,w},m.prototype.getQuestionDisplayText=function(O){var w=this.sharedQuestions[O.name];if(!w)return i.prototype.getQuestionDisplayText.call(this,O);var x=this.panelItem.getValue(w);return O.getDisplayValue(!0,x)},m.prototype.onCustomProcessText=function(O){if(O.name==o.IndexVariableName){var w=this.panelIndex;if(w>-1)return O.isExists=!0,O.value=w+1,!0}if(O.name.toLowerCase().indexOf(o.ParentItemVariableName+".")==0){var x=this.data;if(!!x&&!!x.parentQuestion&&!!x.parent&&!!x.parent.data){var l=new m(x.parentQuestion,x.parent.data,o.ItemVariableName),t=o.ItemVariableName+O.name.substring(o.ParentItemVariableName.length),d=l.processValue(t,O.returnDisplayValue);O.isExists=d.isExists,O.value=d.value}return!0}return!1},m}(I.QuestionTextProcessor),o=function(){function i(m,O){this.data=m,this.panelValue=O,this.textPreProcessor=new f(m,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(m){var O=this.getAllValues();return O[m]},i.prototype.setValue=function(m,O){var w=this.data.getPanelItemData(this),x=w?w[m]:void 0;if(!(typeof x!="object"&&b.Helpers.isTwoValueEquals(O,x))){this.data.setPanelItemData(this,m,O);for(var l=this.panel.questions,t=0;t0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(O){this.currentIndexValue!==O&&(O>=this.panelCount&&(O=this.panelCount-1),this.currentIndexValue=O,this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"currentPanel",{get:function(){var O=this.currentIndex;return O<0||O>=this.panels.length?null:this.panels[O]},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(O){this.setPropertyValue("confirmDelete",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(O){this.setPropertyValue("keyName",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(O){this.setLocalizableStringText("confirmDeleteText",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(O){this.setLocalizableStringText("keyDuplicationError",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(O){this.setLocalizableStringText("panelPrevText",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(O){this.setLocalizableStringText("panelNextText",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(O){this.setLocalizableStringText("panelAddText",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(O){this.setLocalizableStringText("panelRemoveText",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isProgressTopShowing",{get:function(){return this.renderMode==="progressTop"||this.renderMode==="progressTopBottom"},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isProgressBottomShowing",{get:function(){return this.renderMode==="progressBottom"||this.renderMode==="progressTopBottom"},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex=0&&this.panelCount>1},enumerable:!1,configurable:!0}),m.prototype.getElementsInDesign=function(O){return O===void 0&&(O=!1),O?[this.template]:this.templateElements},m.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},m.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},m.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:i.prototype.getValueCore.call(this)},m.prototype.setValueCore=function(O){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=O):i.prototype.setValueCore.call(this,O)},Object.defineProperty(m.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.loadingPanelCount:this.panels.length},set:function(O){if(!(O<0)){if(this.isLoadingFromJson||this.useTemplatePanel){this.loadingPanelCount=O;return}if(!(O==this.panels.length||this.useTemplatePanel)){this.updateBindings("panelCount",O),this.prepareValueForPanelCreating();for(var w=this.panelCount;wthis.panelCount&&O.splice(this.panelCount,O.length-this.panelCount),this.isValueChangingInternally=!0,this.value=O,this.isValueChangingInternally=!1}},Object.defineProperty(m.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(O){O<0&&(O=0),O!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",O),O>this.maxPanelCount&&(this.maxPanelCount=O),this.panelCounta.settings.panelMaximumPanelCount&&(O=a.settings.panelMaximumPanelCount),O!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",O),OO&&(this.panelCount=O)))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(O){this.setPropertyValue("allowAddPanel",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(O){this.setPropertyValue("allowRemovePanel",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(O){this.setPropertyValue("templateTitleLocation",O.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(O){this.setPropertyValue("showQuestionNumbers",O),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(O){this.setPropertyValue("panelRemoveButtonLocation",O)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(O){this.setPropertyValue("showRangeInProgress",O),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(O){this.setPropertyValue("renderMode",O),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isRenderModeList",{get:function(){return this.renderMode==="list"},enumerable:!1,configurable:!0}),m.prototype.setVisibleIndex=function(O){if(!this.isVisible)return 0;for(var w=this.showQuestionNumbers=="onSurvey"?O:0,x=0;xthis.minPanelCount},enumerable:!1,configurable:!0}),m.prototype.rebuildPanels=function(){var O;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var w=[];if(this.useTemplatePanel)new o(this,this.template),w.push(this.template);else for(var x=0;x1&&O.length==this.panelCount&&(w=!0,this.copyValue(O[O.length-1],O[O.length-2])),w&&(this.value=O),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},m.prototype.canLeaveCurrentPanel=function(){return!(this.renderMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors())},m.prototype.copyValue=function(O,w){for(var x in w)O[x]=w[x]},m.prototype.removePanelUI=function(O){!this.canRemovePanel||(!this.confirmDelete||Object(p.confirmAction)(this.confirmDeleteText))&&this.removePanel(O)},m.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},m.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},m.prototype.removePanel=function(l){var w=this.getPanelIndex(l);if(!(w<0||w>=this.panelCount)){var x=this.panels[w];if(!(this.survey&&!this.survey.dynamicPanelRemoving(this,w,x))){this.panels.splice(w,1),this.updateBindings("panelCount",this.panelCount);var l=this.value;!l||!Array.isArray(l)||w>=l.length||(this.isValueChangingInternally=!0,l.splice(w,1),this.value=l,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,w,x),this.isValueChangingInternally=!1)}}},m.prototype.getPanelIndex=function(O){if(b.Helpers.isNumber(O))return O;for(var w=this.items,x=0;x=this.panelCount?null:this.panels[w].getQuestionByName(O)},m.prototype.clearIncorrectValuesInPanel=function(O){var w=this.panels[O];w.clearIncorrectValues();var x=this.value,l=!!x&&O-1:!1,l=this.getValueName()+"[0].",t=this.processedTitle+"[0].",d=new Array,v=this.template.questions,E=0;E-1&&(x=w.substring(0,l),w=w.substring(l+1));var t=this.template.getQuestionByName(x);return t?t.getConditionJson(O,w):null},m.prototype.onReadOnlyChanged=function(){var O=this.isReadOnly;this.template.readOnly=O;for(var w=0;w0&&(this.panelCount=this.loadingPanelCount),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var O=0;O0&&(O=O.concat(t))}return O},m.prototype.getDisplayValueCore=function(O,w){var x=this.getUnbindValue(w);if(!x||!Array.isArray(x))return x;for(var l=0;l0&&(w=this.loadingPanelCount),this.panelCount=w}},m.prototype.setQuestionValue=function(O){i.prototype.setQuestionValue.call(this,O,!1),this.setPanelCountBasedOnValue();for(var w=0;w-1?w:this.items.length},m.prototype.getPanelItemData=function(O){var w=this.items,x=w.indexOf(O),l=this.value;return x<0&&Array.isArray(l)&&l.length>w.length&&(x=w.length),x<0?{}:!l||!Array.isArray(l)||l.length<=x?{}:l[x]},m.prototype.setPanelItemData=function(O,w,x){if(!(this.isSetPanelItemData&&this.isSetPanelItemData.indexOf(w)>-1)){this.isSetPanelItemData||(this.isSetPanelItemData=[]),this.isSetPanelItemData.push(w);var l=this.items,E=l.indexOf(O);E<0&&(E=l.length);var t=this.getUnbindValue(this.value);if((!t||!Array.isArray(t))&&(t=[]),t.length<=E)for(var d=t.length;d<=E;d++)t.push({});if(t[E]||(t[E]={}),this.isValueEmpty(x)?delete t[E][w]:t[E][w]=x,E>=0&&E-1&&this.isSetPanelItemData.splice(E,1)}},m.prototype.getRootData=function(){return this.data},m.prototype.getPlainData=function(O){O===void 0&&(O={includeEmpty:!0});var w=i.prototype.getPlainData.call(this,O);return w&&(w.isNode=!0,w.data=this.panels.map(function(x,l){var t={name:x.name||l,title:x.title||"Panel",value:x.getValue(),displayValue:x.getValue(),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!0,data:x.questions.map(function(d){return d.getPlainData(O)}).filter(function(d){return!!d})};return(O.calculations||[]).forEach(function(d){t[d.propertyName]=x[d.propertyName]}),t})),w},m.prototype.updateElementCss=function(O){i.prototype.updateElementCss.call(this,O);for(var w=0;w0,l.visible=L&&O.currentIndex=0;i--)(n=e[i])&&(r=(o<3?n(r):o>3?n(g,h,r):n(g,h))||r);return o>3&&r&&Object.defineProperty(g,h,r),r},s=function(e){p(g,e);function g(h){var f=e.call(this,h)||this;return f.domNode=null,f.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(f),f.visibleChoices.length===1){f.value=[],f.updateRankingChoices();return}if(f.isEmpty()){f.updateRankingChoices();return}f.visibleChoices.length>f.value.length&&f.addToValueByVisibleChoices(),f.visibleChoices.length0).toString()},enumerable:!1,configurable:!0}),g.prototype.getItemClassCore=function(h,f){var o=this.rankingChoices.indexOf(h),r=this.rankingChoices.indexOf(this.currentDropTarget);return new V.CssClassBuilder().append(e.prototype.getItemClassCore.call(this,h,f)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===h).append("sv-dragdrop-movedown",o===r+1&&this.dropTargetNodeMove==="down").append("sv-dragdrop-moveup",o===r-1&&this.dropTargetNodeMove==="up").toString()},g.prototype.isItemCurrentDropTarget=function(h){return this.dragDropRankingChoices.dropTarget===h},Object.defineProperty(g.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),g.prototype.getNumberByIndex=function(h){return this.isEmpty()?"\u2013":h+1+""},g.prototype.setSurveyImpl=function(h,f){e.prototype.setSurveyImpl.call(this,h,f),this.updateRankingChoices()},g.prototype.isAnswerCorrect=function(){return a.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},g.prototype.onSurveyValueChanged=function(h){e.prototype.onSurveyValueChanged.call(this,h),!this.isLoadingFromJson&&this.updateRankingChoices()},g.prototype.addToValueByVisibleChoices=function(){var h=this.value.slice();this.visibleChoices.forEach(function(f){h.indexOf(f.value)===-1&&h.push(f.value)}),this.value=h},g.prototype.removeFromValueByVisibleChoices=function(){var h=this,f=this.value.slice();this.value.forEach(function(o,r){var n=!0;h.visibleChoices.forEach(function(i){i.value===o&&(n=!1)}),n&&f.splice(r,1)}),this.value=f},Object.defineProperty(g.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),g.prototype.updateRankingChoices=function(h){var f=this;h===void 0&&(h=!1);var o=[];if(this.visibleChoices.length===1){this.setPropertyValue("rankingChoices",o);return}if(h&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()){this.setPropertyValue("rankingChoices",this.visibleChoices);return}this.value.forEach(function(r){f.visibleChoices.forEach(function(n){n.value===r&&o.push(n)})}),this.setPropertyValue("rankingChoices",o)},g.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.dragDropRankingChoices=new b.DragDropRankingChoices(this.survey,null,this.longTap)},Object.defineProperty(g.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),g.prototype.afterRenderQuestionElement=function(h){this.domNode=h,e.prototype.afterRenderQuestionElement.call(this,h)},g.prototype.beforeDestroyQuestionElement=function(h){e.prototype.beforeDestroyQuestionElement.call(this,h)},g.prototype.supportSelectAll=function(){return!1},g.prototype.supportOther=function(){return!1},g.prototype.supportNone=function(){return!1},g.prototype.getChoicesFromQuestion=function(h){var f=e.prototype.getChoicesFromQuestion.call(this,h);return this.choicesFromQuestionMode==="selected"&&h.isOtherSelected&&!!h.comment&&f.push(new C.ItemValue(h.otherItem.value,h.comment)),f},g.prototype.getIconHoverCss=function(){return new V.CssClassBuilder().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},g.prototype.getIconFocusCss=function(){return new V.CssClassBuilder().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(g.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(h){this.setPropertyValue("longTap",h)},enumerable:!1,configurable:!0}),u([Object(I.property)({defaultValue:null})],g.prototype,"currentDropTarget",void 0),u([Object(I.property)({defaultValue:null})],g.prototype,"dropTargetNodeMove",void 0),g}(T.QuestionCheckboxModel);I.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new s("")},"checkbox"),M.QuestionFactory.Instance.registerQuestion("ranking",function(e){var g=new s(e);return g.choices=M.QuestionFactory.DefaultChoices,g})},"./src/question_rating.ts":function(D,y,c){c.r(y),c.d(y,"RenderedRatingItem",function(){return s}),c.d(y,"QuestionRatingModel",function(){return e});var b=c("./src/itemvalue.ts"),C=c("./src/question.ts"),I=c("./src/jsonobject.ts"),M=c("./src/questionfactory.ts"),T=c("./src/settings.ts"),V=c("./src/surveyStrings.ts"),P=c("./src/utils/cssClassBuilder.ts"),a=c("./src/base.ts"),p=function(){var g=function(h,f){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])},g(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");g(h,f);function o(){this.constructor=h}h.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),u=function(g,h,f,o){var r=arguments.length,n=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,f):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(g,h,f,o);else for(var m=g.length-1;m>=0;m--)(i=g[m])&&(n=(r<3?i(n):r>3?i(h,f,n):i(h,f))||n);return r>3&&n&&Object.defineProperty(h,f,n),n},s=function(g){p(h,g);function h(f,o){o===void 0&&(o=null);var r=g.call(this)||this;return r.itemValue=f,r.locString=o,r}return Object.defineProperty(h.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),h}(a.Base),e=function(g){p(h,g);function h(f){var o=g.call(this,f)||this;return o.createItemValues("rateValues"),o.createRenderedRateItems(),o.createLocalizableString("ratingOptionsCaption",o,!1,!0),o.onPropertyChanged.add(function(r,n){(n.name=="rateMin"||n.name=="rateMax"||n.name=="minRateDescription"||n.name=="maxRateDescription"||n.name=="rateStep"||n.name=="displayRateDescriptionsAsExtremeItems")&&o.createRenderedRateItems()}),o.createLocalizableString("minRateDescription",o,!0),o.createLocalizableString("maxRateDescription",o,!0),o}return h.prototype.endLoadingFromJson=function(){g.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,this.createRenderedRateItems()},Object.defineProperty(h.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(f){this.setPropertyValue("rateValues",f),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(f){this.setPropertyValue("rateMin",f)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(f){this.setPropertyValue("rateMax",f)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(f){this.setPropertyValue("rateStep",f)},enumerable:!1,configurable:!0}),h.prototype.getDisplayValueCore=function(f,o){var r=b.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,o);return r||o},Object.defineProperty(h.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(f){return f.itemValue})},enumerable:!1,configurable:!0}),h.prototype.itemValuePropertyChanged=function(f,o,r,n){this.rateValues.length===0&&n!==void 0&&this.setPropertyValue("rateValues",this.visibleRateValues),g.prototype.itemValuePropertyChanged.call(this,f,o,r,n)},h.prototype.createRenderedRateItems=function(){var f=this,o=[];if(this.rateValues.length>0)o=this.rateValues;else{for(var r=[],n=this.rateMin,i=this.rateStep;n<=this.rateMax&&r.length0){var o=b.ItemValue.getItemByValue(this.rateValues,f);return o?o.value:f}return isNaN(f)?f:parseFloat(f)},h.prototype.setValueFromClick=function(f){this.value===parseFloat(f)?this.clearValue():this.value=f},Object.defineProperty(h.prototype,"ratingRootCss",{get:function(){return(this.displayMode=="buttons"||!!this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root},enumerable:!1,configurable:!0}),h.prototype.getItemClass=function(f){var o=this.value==f.value,r=this.isReadOnly||!f.isEnabled,n=!r&&!o&&!(!!this.survey&&this.survey.isDesignMode);return new P.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.selected,this.value==f.value).append(this.cssClasses.itemDisabled,this.isReadOnly).append(this.cssClasses.itemHover,n).append(this.cssClasses.itemOnError,this.errors.length>0).toString()},h.prototype.getControlClass=function(){return this.isEmpty(),new P.CssClassBuilder().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(h.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(f){this.setLocalizableStringText("ratingOptionsCaption",f)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"renderedValue",{get:function(){return this.value},set:function(f){this.value=f},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),h.prototype.needResponsiveWidth=function(){var f=this.getPropertyValue("rateValues"),o=this.getPropertyValue("rateStep"),r=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||f.length>0||o&&(r-n)/o>9)},h.prototype.supportResponsiveness=function(){return!0},h.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},h.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},u([Object(I.propertyArray)()],h.prototype,"renderedRateItems",void 0),u([Object(I.property)({defaultValue:!1})],h.prototype,"hasMinRateDescription",void 0),u([Object(I.property)({defaultValue:!1})],h.prototype,"hasMaxRateDescription",void 0),u([Object(I.property)({defaultValue:!1})],h.prototype,"displayRateDescriptionsAsExtremeItems",void 0),u([Object(I.property)({defaultValue:"auto",onSet:function(f,o){}})],h.prototype,"displayMode",void 0),h}(C.Question);I.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(g){return g.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(g){return g.hasComment}},{name:"rateValues:itemvalue[]",baseValue:function(){return V.surveyLocalization.getString("choices_Item")}},{name:"rateMin:number",default:1,onSettingValue:function(g,h){return h>g.rateMax-g.rateStep?g.rateMax-g.rateStep:h}},{name:"rateMax:number",default:5,onSettingValue:function(g,h){return hg.rateMax-g.rateMin&&(h=g.rateMax-g.rateMin),h}},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"]}],function(){return new e("")},"question"),M.QuestionFactory.Instance.registerQuestion("rating",function(g){return new e(g)})},"./src/question_signaturepad.ts":function(D,y,c){c.r(y),c.d(y,"QuestionSignaturePadModel",function(){return s});var b=c("./src/jsonobject.ts"),C=c("./src/questionfactory.ts"),I=c("./src/question.ts"),M=c("./node_modules/signature_pad/dist/signature_pad.mjs"),T=c("./src/utils/cssClassBuilder.ts"),V=function(){var e=function(g,h){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(f[r]=o[r])},e(g,h)};return function(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");e(g,h);function f(){this.constructor=g}g.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),P=function(e,g,h,f){var o=arguments.length,r=o<3?g:f===null?f=Object.getOwnPropertyDescriptor(g,h):f,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,g,h,f);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(r=(o<3?n(r):o>3?n(g,h,r):n(g,h))||r);return o>3&&r&&Object.defineProperty(g,h,r),r},a=300,p=200;function u(e){var g=e.getContext("2d"),h=window.devicePixelRatio||1,f=g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1,o=h/f,r=e.width,n=e.height;e.width=r*o,e.height=n*o,e.style.width=r+"px",e.style.height=n+"px",g.scale(o,o)}var s=function(e){V(g,e);function g(h){return e.call(this,h)||this}return g.prototype.getCssRoot=function(h){return new T.CssClassBuilder().append(e.prototype.getCssRoot.call(this,h)).append(h.small,this.signatureWidth.toString()==="300").toString()},g.prototype.updateValue=function(){if(this.signaturePad){var h=this.signaturePad.toDataURL(this.dataFormat);this.value=h}},g.prototype.getType=function(){return"signaturepad"},g.prototype.afterRenderQuestionElement=function(h){h&&this.initSignaturePad(h),e.prototype.afterRenderQuestionElement.call(this,h)},g.prototype.beforeDestroyQuestionElement=function(h){h&&this.destroySignaturePad(h)},g.prototype.initSignaturePad=function(h){var f=this,o=h.getElementsByTagName("canvas")[0],r=new M.default(o,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){f.isInputReadOnly?r.off():r.on()},r.penColor=this.penColor,r.backgroundColor=this.backgroundColor,r.onBegin=function(){f.isDrawingValue=!0,o.focus()},r.onEnd=function(){f.isDrawingValue=!1,f.updateValue()};var n=function(){var m=f.value;o.width=f.signatureWidth||a,o.height=f.signatureHeight||p,u(o),m?r.fromDataURL(m):r.clear()};n(),this.readOnlyChangedCallback(),this.signaturePad=r;var i=function(m,O){(O.name==="signatureWidth"||O.name==="signatureHeight"||O.name==="value")&&n()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},g.prototype.destroySignaturePad=function(h){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(g.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(h){this.setPropertyValue("signatureWidth",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(h){this.setPropertyValue("signatureHeight",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(h){this.setPropertyValue("height",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(h){this.setPropertyValue("allowClear",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"canShowClearButton",{get:function(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(h){this.setPropertyValue("penColor",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(h){this.setPropertyValue("backgroundColor",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),g.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(g.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),g.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&!!this.width&&typeof this.width=="number"&&this.width&&(console.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&!!this.height&&(console.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},P([Object(b.property)({defaultValue:!1})],g.prototype,"isDrawingValue",void 0),P([Object(b.property)({defaultValue:""})],g.prototype,"dataFormat",void 0),g}(I.Question);b.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],function(){return new s("")},"question"),C.QuestionFactory.Instance.registerQuestion("signaturepad",function(e){return new s(e)})},"./src/question_tagbox.ts":function(D,y,c){c.r(y),c.d(y,"QuestionTagboxModel",function(){return a});var b=c("./src/jsonobject.ts"),C=c("./src/questionfactory.ts"),I=c("./src/utils/cssClassBuilder.ts"),M=c("./src/question_checkbox.ts"),T=c("./src/dropdownMultiSelectListModel.ts"),V=function(){var p=function(u,s){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(e[h]=g[h])},p(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");p(u,s);function e(){this.constructor=u}u.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}}(),P=function(p,u,s,e){var g=arguments.length,h=g<3?u:e===null?e=Object.getOwnPropertyDescriptor(u,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,u,s,e);else for(var o=p.length-1;o>=0;o--)(f=p[o])&&(h=(g<3?f(h):g>3?f(u,s,h):f(u,s))||h);return g>3&&h&&Object.defineProperty(u,s,h),h},a=function(p){V(u,p);function u(s){var e=p.call(this,s)||this;return e.onOpened=e.addEvent(),e.createLocalizableString("placeholder",e,!1,!0),e.createLocalizableString("clearCaption",e,!1,!0),e}return u.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(u.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),u.prototype.onSurveyLoad=function(){p.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new T.DropdownMultiSelectListModel(this))},Object.defineProperty(u.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(s){this.setLocalizableStringText("placeholder",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(s){this.setLocalizableStringText("clearCaption",s)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),u.prototype.getType=function(){return"tagbox"},Object.defineProperty(u.prototype,"popupModel",{get:function(){var s;return(s=this.dropdownListModel)===null||s===void 0?void 0:s.popupModel},enumerable:!1,configurable:!0}),u.prototype.getControlClass=function(){return new I.CssClassBuilder().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},u.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},u.prototype.onVisibleChoicesChanged=function(){p.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},u.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},u.prototype.getInputId=function(){return this.inputId+"_0"},P([Object(b.property)({defaultValue:!0})],u.prototype,"allowClear",void 0),P([Object(b.property)({defaultValue:!0,onSet:function(s,e){e.dropdownListModel&&e.dropdownListModel.setSearchEnabled(s)}})],u.prototype,"searchEnabled",void 0),P([Object(b.property)({defaultValue:!1,onSet:function(s,e){e.dropdownListModel&&e.dropdownListModel.setHideSelectedItems(s)}})],u.prototype,"hideSelectedItems",void 0),P([Object(b.property)({defaultValue:!1})],u.prototype,"choicesLazyLoadEnabled",void 0),P([Object(b.property)({defaultValue:25})],u.prototype,"choicesLazyLoadPageSize",void 0),u}(M.QuestionCheckboxModel);b.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean",default:!0,visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new a("")},"checkbox"),C.QuestionFactory.Instance.registerQuestion("tagbox",function(p){var u=new a(p);return u.choices=C.QuestionFactory.DefaultChoices,u})},"./src/question_text.ts":function(D,y,c){c.r(y),c.d(y,"QuestionTextModel",function(){return u});var b=c("./src/questionfactory.ts"),C=c("./src/jsonobject.ts"),I=c("./src/localizablestring.ts"),M=c("./src/helpers.ts"),T=c("./src/validator.ts"),V=c("./src/error.ts"),P=c("./src/settings.ts"),a=c("./src/question_textbase.ts"),p=function(){var o=function(r,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(i[O]=m[O])},o(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");o(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(o){p(r,o);function r(n){var i=o.call(this,n)||this;return i.createLocalizableString("minErrorText",i,!0,"minError"),i.createLocalizableString("maxErrorText",i,!0,"maxError"),i.locDataListValue=new I.LocalizableStrings(i),i.locDataListValue.onValueChanged=function(m,O){i.propertyValueChanged("dataList",m,O)},i.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){i.setRenderedMinMax()}),i.registerPropertyChangedHandlers(["inputType","size"],function(){i.updateInputSize(),i.calcRenderedPlaceholder()}),i}return r.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},r.prototype.getType=function(){return"text"},r.prototype.onSurveyLoad=function(){o.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(r.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(n){n=n.toLowerCase(),n=="datetime_local"&&(n="datetime-local"),this.setPropertyValue("inputType",n.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),r.prototype.runCondition=function(n,i){o.prototype.runCondition.call(this,n,i),(!!this.minValueExpression||!!this.maxValueExpression)&&this.setRenderedMinMax(n,i)},r.prototype.getValidators=function(){var n=o.prototype.getValidators.call(this);return this.inputType==="email"&&!this.validators.some(function(i){return i.getType()==="emailvalidator"})&&n.push(new T.EmailValidator),n},r.prototype.isLayoutTypeSupported=function(n){return!0},Object.defineProperty(r.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(n){this.setPropertyValue("size",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),r.prototype.updateInputSize=function(){var n=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&n<1&&this.parent&&!!this.parent.itemSize&&(n=this.parent.itemSize),this.setPropertyValue("inputSize",n),this.setPropertyValue("inputWidth",n>0?"auto":"")},Object.defineProperty(r.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(n){this.setPropertyValue("autocomplete",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(n){if(this.isValueExpression(n)){this.minValueExpression=n.substring(1);return}this.setPropertyValue("min",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(n){if(this.isValueExpression(n)){this.maxValueExpression=n.substring(1);return}this.setPropertyValue("max",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(n){this.setPropertyValue("minValueExpression",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(n){this.setPropertyValue("maxValueExpression",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(n){this.setLocalizableStringText("minErrorText",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(n){this.setLocalizableStringText("maxErrorText",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isMinMaxType",{get:function(){return e(this)},enumerable:!1,configurable:!0}),r.prototype.onCheckForErrors=function(n,i){var m=this;if(o.prototype.onCheckForErrors.call(this,n,i),!i){if(this.isValueLessMin){var O=new V.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);O.onUpdateErrorTextCallback=function(x){x.text=m.getMinMaxErrorText(m.minErrorText,m.getCalculatedMinMax(m.renderedMin))},n.push(O)}if(this.isValueGreaterMax){var w=new V.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);w.onUpdateErrorTextCallback=function(x){x.text=m.getMinMaxErrorText(m.maxErrorText,m.getCalculatedMinMax(m.renderedMax))},n.push(w)}}},r.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var n=!this.isValueLessMin&&!this.isValueGreaterMax;return this.inputType==="number"&&!!this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),n},r.prototype.getMinMaxErrorText=function(n,i){if(M.Helpers.isValueEmpty(i))return n;var m=i.toString();return this.inputType==="date"&&!!i.toDateString&&(m=i.toDateString()),n.replace("{0}",m)},Object.defineProperty(r.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&this.getCalculatedMinMax(this.value)this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isDateInputType",{get:function(){return this.inputType==="date"||this.inputType==="datetime-local"},enumerable:!1,configurable:!0}),r.prototype.getCalculatedMinMax=function(n){return this.isValueEmpty(n)?n:this.isDateInputType?new Date(n):n},r.prototype.setRenderedMinMax=function(n,i){var m=this;n===void 0&&(n=null),i===void 0&&(i=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(O){!O&&m.isDateInputType&&!!P.settings.minDate&&(O=P.settings.minDate),m.setPropertyValue("renderedMin",O)},n,i),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(O){!O&&m.isDateInputType&&(O=P.settings.maxDate?P.settings.maxDate:"2999-12-31"),m.setPropertyValue("renderedMax",O)},n,i)},Object.defineProperty(r.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(n){this.setPropertyValue("step",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),r.prototype.supportGoNextPageAutomatic=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},r.prototype.supportGoNextPageError=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(r.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(n){this.locDataList.value=n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),r.prototype.canRunValidators=function(n){return this.errors.length>0||!n||this.supportGoNextPageError()},r.prototype.setNewValue=function(n){n=this.correctValueType(n),o.prototype.setNewValue.call(this,n)},r.prototype.correctValueType=function(n){return n&&(this.inputType=="number"||this.inputType=="range"?M.Helpers.isNumber(n)?parseFloat(n):"":n)},r.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&this.inputType!=="range"},r.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&P.settings.readOnlyTextRenderMode==="div"},Object.defineProperty(r.prototype,"inputStyle",{get:function(){var n={};return this.inputWidth&&(n.width=this.inputWidth),n},enumerable:!1,configurable:!0}),r}(a.QuestionTextBase),s=["number","date","datetime","datetime-local","month","time","week"];function e(o){var r=o?o.inputType:"";return r?s.indexOf(r)>-1:!1}function g(o,r){var n=o.split(r);return n.length!==2||!M.Helpers.isNumber(n[0])||!M.Helpers.isNumber(n[1])?-1:parseFloat(n[0])*60+parseFloat(n[1])}function h(o,r,n){var i=g(o,n),m=g(r,n);return i<0||m<0?!1:i>m}function f(o,r,n,i){var m=i?n:r;if(!e(o)||M.Helpers.isValueEmpty(r)||M.Helpers.isValueEmpty(n))return m;if(o.inputType.indexOf("date")===0||o.inputType==="month"){var O=o.inputType==="month",w=new Date(O?r+"-1":r),x=new Date(O?n+"-1":n);if(!w||!x)return m;if(w>x)return i?r:n}if(o.inputType==="week"||o.inputType==="time"){var l=o.inputType==="week"?"-W":":";return h(r,n,l)?i?r:n:m}if(o.inputType==="number"){if(!M.Helpers.isNumber(r)||!M.Helpers.isNumber(n))return m;if(parseFloat(r)>parseFloat(n))return i?r:n}return typeof r=="string"||typeof n=="string"?m:r>n?i?r:n:m}C.Serializer.addClass("text",[{name:"inputType",default:"text",choices:P.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(o){return o?o.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(o){return o?o.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:P.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(o){return e(o)},onPropertyEditorUpdate:function(o,r){!!o&&!!o.inputType&&(r.inputType=o.inputType)},onSettingValue:function(o,r){return f(o,r,o.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(o){return e(o)},onSettingValue:function(o,r){return f(o,o.min,r,!0)},onPropertyEditorUpdate:function(o,r){!!o&&!!o.inputType&&(r.inputType=o.inputType)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(o){return e(o)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(o){return e(o)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(o){return e(o)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(o){return e(o)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(o){return o?o.inputType==="number":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(o){return o?o.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(o){return o?o.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(o){return o?o.inputType==="text":!1}}],function(){return new u("")},"textbase"),b.QuestionFactory.Instance.registerQuestion("text",function(o){return new u(o)})},"./src/question_textbase.ts":function(D,y,c){c.r(y),c.d(y,"QuestionTextBase",function(){return P});var b=c("./src/question.ts"),C=c("./src/jsonobject.ts"),I=c("./src/helpers.ts"),M=c("./src/utils/cssClassBuilder.ts"),T=function(){var a=function(p,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(s[g]=e[g])},a(p,u)};return function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(p,u);function s(){this.constructor=p}p.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),V=function(a,p,u,s){var e=arguments.length,g=e<3?p:s===null?s=Object.getOwnPropertyDescriptor(p,u):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,p,u,s);else for(var f=a.length-1;f>=0;f--)(h=a[f])&&(g=(e<3?h(g):e>3?h(p,u,g):h(p,u))||g);return e>3&&g&&Object.defineProperty(p,u,g),g},P=function(a){T(p,a);function p(u){return a.call(this,u)||this}return p.prototype.isTextValue=function(){return!0},Object.defineProperty(p.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(u){this.setPropertyValue("maxLength",u)},enumerable:!1,configurable:!0}),p.prototype.getMaxLength=function(){return I.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(p.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(u){this.placeholder=u},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),p.prototype.getType=function(){return"textbase"},p.prototype.isEmpty=function(){return a.prototype.isEmpty.call(this)||this.value===""},Object.defineProperty(p.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(u){this.setPropertyValue("textUpdateMode",u)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isSurveyInputTextUpdate",{get:function(){return this.textUpdateMode=="default"?this.survey?this.survey.isUpdateValueTextOnTyping:!1:this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),p.prototype.setRenderedPlaceholder=function(u){this.setPropertyValue("renderedPlaceholder",u)},p.prototype.onReadOnlyChanged=function(){a.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},p.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),a.prototype.onSurveyLoad.call(this)},p.prototype.localeChanged=function(){a.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},p.prototype.calcRenderedPlaceholder=function(){var u=this.placeHolder;!!u&&!this.hasPlaceHolder()&&(u=void 0),this.setRenderedPlaceholder(u)},p.prototype.hasPlaceHolder=function(){return!this.isReadOnly},p.prototype.getControlClass=function(){return new M.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(p.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),V([Object(C.property)({localizable:!0,onSet:function(u,s){return s.calcRenderedPlaceholder()}})],p.prototype,"placeholder",void 0),p}(b.Question);C.Serializer.addClass("textbase",[],function(){return new P("")},"question")},"./src/questionfactory.ts":function(D,y,c){c.r(y),c.d(y,"QuestionFactory",function(){return I}),c.d(y,"ElementFactory",function(){return M});var b=c("./src/surveyStrings.ts"),C=c("./src/jsonobject.ts"),I=function(){function T(){this.creatorHash={}}return Object.defineProperty(T,"DefaultChoices",{get:function(){return[b.surveyLocalization.getString("choices_Item")+"1",b.surveyLocalization.getString("choices_Item")+"2",b.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(T,"DefaultColums",{get:function(){var V=b.surveyLocalization.getString("matrix_column")+" ";return[V+"1",V+"2",V+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(T,"DefaultRows",{get:function(){var V=b.surveyLocalization.getString("matrix_row")+" ";return[V+"1",V+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(T,"DefaultMutlipleTextItems",{get:function(){var V=b.surveyLocalization.getString("multipletext_itemname");return[V+"1",V+"2"]},enumerable:!1,configurable:!0}),T.prototype.registerQuestion=function(V,P){this.creatorHash[V]=P},T.prototype.unregisterElement=function(V){delete this.creatorHash[V]},T.prototype.clear=function(){this.creatorHash={}},T.prototype.getAllTypes=function(){var V=new Array;for(var P in this.creatorHash)V.push(P);return V.sort()},T.prototype.createQuestion=function(V,P){var a=this.creatorHash[V];return a==null?null:a(P)},T.Instance=new T,T}(),M=function(){function T(){this.creatorHash={}}return T.prototype.registerElement=function(V,P){this.creatorHash[V]=P},T.prototype.clear=function(){this.creatorHash={}},T.prototype.unregisterElement=function(V,P){P===void 0&&(P=!1),delete this.creatorHash[V],I.Instance.unregisterElement(V),P&&C.Serializer.removeClass(V)},T.prototype.getAllTypes=function(){var V=I.Instance.getAllTypes();for(var P in this.creatorHash)V.push(P);return V.sort()},T.prototype.createElement=function(V,P){var a=this.creatorHash[V];return a==null?I.Instance.createQuestion(V,P):a(P)},T.Instance=new T,T}()},"./src/questionnonvalue.ts":function(D,y,c){c.r(y),c.d(y,"QuestionNonValue",function(){return M});var b=c("./src/question.ts"),C=c("./src/jsonobject.ts"),I=function(){var T=function(V,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(a[u]=p[u])},T(V,P)};return function(V,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(V,P);function a(){this.constructor=V}V.prototype=P===null?Object.create(P):(a.prototype=P.prototype,new a)}}(),M=function(T){I(V,T);function V(P){return T.call(this,P)||this}return V.prototype.getType=function(){return"nonvalue"},Object.defineProperty(V.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),V.prototype.getTitleLocation=function(){return""},Object.defineProperty(V.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),V.prototype.hasErrors=function(P,a){return!1},V.prototype.getAllErrors=function(){return[]},V.prototype.supportGoNextPageAutomatic=function(){return!1},V.prototype.addConditionObjectsByContext=function(P,a){},V.prototype.getConditionJson=function(P,a){return null},V}(b.Question);C.Serializer.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:"clearIfInvisible",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:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new M("")},"question")},"./src/rendererFactory.ts":function(D,y,c){c.r(y),c.d(y,"RendererFactory",function(){return b});var b=function(){function C(){this.renderersHash={}}return C.prototype.unregisterRenderer=function(I,M){delete this.renderersHash[I][M]},C.prototype.registerRenderer=function(I,M,T){this.renderersHash[I]||(this.renderersHash[I]={}),this.renderersHash[I][M]=T},C.prototype.getRenderer=function(I,M){return this.renderersHash[I]&&this.renderersHash[I][M]||"default"},C.prototype.getRendererByQuestion=function(I){return this.getRenderer(I.getType(),I.renderAs)},C.prototype.clear=function(){this.renderersHash={}},C.Instance=new C,C}()},"./src/settings.ts":function(D,y,c){c.r(y),c.d(y,"settings",function(){return b});var b={comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,commentPrefix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return b.useCachingForChoicesRestful},set useCachingForChoicesRestfull(C){b.useCachingForChoicesRestful=C},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(C){return confirm(C)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,showItemsInOrder:"default",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]}}},"./src/stylesmanager.ts":function(D,y,c){c.r(y),c.d(y,"StylesManager",function(){return C});var b=c("./src/defaultCss/cssstandard.ts"),C=function(){function I(){this.sheet=null,I.Enabled&&(this.sheet=I.findSheet(I.SurveyJSStylesSheetId),this.sheet||(this.sheet=I.createSheet(I.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return I.findSheet=function(M){if(typeof document>"u")return null;for(var T=0;T 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":"table-layout: fixed;",".sv_q_mt_label":"display: flex; align-items: center; font-weight: inherit;",".sv_q_mt_title":"margin-right: 0.5em; width: 33%;",".sv_q_mt_item":"flex: 1;",".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; max-width: 50%",'[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, .sv_q_title_expandable":"cursor: pointer; position: relative; display: flex; align-items: center; padding-right: 24px;",".sv_p_title_expandable::after, .sv_q_title_expandable::after":`content: ""; display: block;background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-position: center center; background-size: 10px 12px; width: 24px; height: 24px; position: absolute; right: 0;`,".sv_p_title_expanded::after, .sv_q_title_expanded::after":"transform: rotate(180deg);",".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_matrix_cell_detail_button":"position: relative",".sv_detail_panel_icon":"display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px;",".sv_detail_panel_icon::before":`content: ''; background-repeat: no-repeat; background-position: center; width: 14px; height: 14px; display: block; transform: rotate(270deg); background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 15 15' style='enable-background:new 0 0 15 15;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='14,5.5 12.6,4.1 7.5,9.1 2.4,4.1 1,5.5 7.5,12 '/%3E%3C/svg%3E%0A");`,".sv_detail_panel_icon.sv_detail_expanded::before":"transform: rotate(0deg)",".sv_matrix_empty_rows_section":"text-align: center; vertical-align: middle;",".sv_matrix_empty_rows_text":"padding:20px",".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_q_dd_clean-button":"margin: 0.15em 3em;",".sv_q_dd_clean-button-svg":"width: 1em; height: 1em;",".sv_q_dd_control":"display: flex; justify-content: space-between; appearance: none;",".sv_q_dd_value":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative;",".sv_q_dd_root":"position: relative;",".sv_q_dd_select_wrapper::after":`content: ""; display: block;background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-position: center center; background-size: 10px 12px; width: 34px; height: 100%; position: absolute; inset-inline-end: 0; top: 0;`,".sv_q_dd_filter-string-input":"outline: none; border: none; background-color: transparent; position: absolute; inset-inline-start: 0;",".sv_q_dropdown_clean-button":"margin: auto 2em;",".sv_q_tagbox__placeholder":"position: absolute; top: 0; inset-inline-start: 1em; max-width: 100%; width: auto; height: 100%; text-align: start; cursor: text; pointer-events: none;",".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: calc(50% - 1em); 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: calc(33.33333% - 1em); 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: calc(25% - 1em); 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: calc(20% - 1em); 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_progress-buttons__container-center":"text-align: center;",".sv_progress-buttons__container":"display: inline-block; font-size: 0; width: 100%; max-width: 1100px; white-space: nowrap; overflow: hidden;",".sv_progress-buttons__image-button-left":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=);",".sv_progress-buttons__image-button-right":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==);",".sv_progress-buttons__image-button--hidden":"visibility: hidden;",".sv_progress-buttons__list-container":"max-width: calc(100% - 36px); display: inline-block; overflow: hidden;",".sv_progress-buttons__list":"display: inline-block; width: max-content; padding-left: 28px; padding-right: 28px; margin-top: 14px; margin-bottom: 14px;",".sv_progress-buttons__list li":"width: 138px; font-size: 14px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; text-align: center; vertical-align: top; display: inline-block;",".sv_progress-buttons__list li:before":"width: 24px; height: 24px; content: ''; line-height: 30px; display: block; margin: 0 auto 10px auto; border: 3px solid; border-radius: 50%; box-sizing: content-box; cursor: pointer;",".sv_progress-buttons__list li:after":"width: 73%; height: 3px; content: ''; position: absolute; top: 15px; left: -36.5%;",".sv_progress-buttons__list li:first-child:after":"content: none;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before":"cursor: not-allowed;",".sv-ranking":"outline: none; user-select: none;",".sv-ranking-item":"cursor: pointer; position: relative;",".sv-ranking-item:focus .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: visible;",".sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:focus":"outline: none;",".sv-ranking-item:focus .sv-ranking-item__icon--focus":"visibility: visible; top: 15px;",".sv-ranking-item:focus .sv-ranking-item__index":"background: white; border: 2px solid var(--primary, #19b394);",".sv-ranking-item__content":"display: flex; align-items: center; line-height: 1em; background-color: white;padding: 5px 0px; border-radius: 100px;",".sv-ranking-item__icon-container":"left: 0;top: 0;bottom: 0;width: 25px; flex-shrink: 0;",".sv-ranking-item__icon":"visibility: hidden;top:20px; fill: var(--primary, #19b394); position: absolute;",".sv-ranking-item__index":"display: flex; flex-shrink: 0; align-items: center; justify-content: center; background: rgba(25, 179, 148, 0.1);border-radius: 100%; border:2px solid transparent; margin-right: 16px; width: 40px; height: 40px; line-height: 1em;",".sv-ranking-item__text":"display: inline-block; overflow:hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-ranking-item__ghost":"display: none;background: #f3f3f3;border-radius: 100px;width: 200px;height: 55px;z-index: 1;position: absolute;left: 25px;","[dir='rtl'] .sv-ranking-item__ghost":"left: initilal; right: 25px;",".sv-ranking-item--ghost .sv-ranking-item__ghost":"display: block;",".sv-ranking-item--ghost .sv-ranking-item__content":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__content":"box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);border-radius: 100px;",".sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__icon--hover":"visibility: visible;",".sv-ranking--mobile .sv-ranking-item__icon--hover":"visibility:visible; fill:#9f9f9f;",".sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover":"visibility:hidden;",".sv-ranking--mobile.sv-ranking-shortcut":"max-width: 80%;",".sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon":"visibility: hidden;",".sv-ranking--disabled":"opacity: 0.8;",".sv-ranking-shortcut .sv-ranking-item__icon":"fill: var(--primary, #19b394); ",".sv-dragged-element-shortcut":"height: 24px; min-width: 100px; border-radius: 36px; background-color: white; padding: 16px; cursor: grabbing; position: absolute; z-index: 1000; box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); font-family: 'Open Sans'; font-size: 16px; padding-left: 20px;line-height: 24px;",".sv-matrixdynamic__drag-icon":"padding-top:14px",".sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid #e7e7e7; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv-matrix-row--drag-drop-ghost-mod td":"background-color: #f3f3f3;",".sv-matrix-row--drag-drop-ghost-mod td > *":"visibility: hidden",".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; position: relative;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; display: inline-block; width: calc(100% - 250px); margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right;",".sv_main .sv-paneldynamic__add-btn--list-mode":"float: none; margin-top: 0;",".sv_main .sv-paneldynamic__remove-btn":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__remove-btn--right":"margin-top: 0; margin-left: 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 svg, .sv_main .sv-paneldynamic__next-btn svg":"width: 0.7em; height: 0.7em; display: block;",".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 input:focus ~ .sv-boolean__switch":"outline-width: 1px; outline-style: solid; outline-offset: 1px;",".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; box-sizing: content-box;",".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 .sjs_sp_placeholder":"display: flex; align-items: center; justify-content: center; position: absolute; z-index: 0; user-select: none; pointer-events: none; width: 100%; height: 100%;",".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; ",".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; max-width: 100%; width: 100%",".sv_main .sv-expand-action:before":`content: ""; display: inline-block; background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-position: center center; height: 10px; width: 12px; margin: auto 8px;`,".sv_main .sv-expand-action--expanded:before":"transform: rotate(180deg);",".sv_main .sv-action-bar":"display: flex; position: relative; align-items: center; margin-left: auto; padding: 0 0 0 16px; overflow: hidden; white-space: nowrap;",".sv_main .sv-action-bar-separator":"display: inline-block; width: 1px; height: 24px; vertical-align: middle; margin-right: 16px; background-color: #d6d6d6;",".sv_main .sv-action-bar-item":"-webkit-appearance: none; -moz-appearance: none; appearance: none; display: flex; height: 40px; padding: 8px; box-sizing: border-box; margin-right: 16px; border: none; border-radius: 2px; background-color: transparent; cursor: pointer; line-height: 24px; font-size: 16px; overflow-x: hidden; white-space: nowrap; min-width: auto; font-weight: normal",".sv_main .sv-action-bar-item__title":"vertical-align: middle; white-space: nowrap;",".sv_main .sv-action-bar-item__title--with-icon":"margin-left: 8px;",".sv_main .sv-action__content":"display: flex; flex-direction: row; align-items: center;",".sv_main .sv-action__content > *":"flex: 0 0 auto;",".sv_main .sv-action--hidden":"width: 0px; height: 0px; overflow: hidden;",".sv_main .sv-action-bar-item__icon svg":"display: block;",".sv_main .sv-action-bar-item:active":"opacity: 0.5;",".sv_main .sv-action-bar-item:focus":"outline: none;",".sv_main .sv-title-actions":"display: flex; align-items: center; width: 100%;",".sv_main .sv-title-actions__title":"flex-wrap: wrap; max-width: 90%; min-width: 50%;",".sv_main .sv-title-actions__bar":"min-width: 56px;",".sv_main .sv-title-actions .sv-title-actions__title":"min-width: unset; max-width: unset; flex-wrap: wrap; flex: 0 0 auto;",".sv_main .sv-title-actions .sv-action-title-bar":"min-width: unset; flex: 1 1 auto; justify-content: flex-end;",".sv_main .sv_matrix_cell_actions .sv-action-bar":"margin-left: 0; padding-left: 0;",".sv_main .sv_p_wrapper_in_row":"display: flex; flex-direction: row; align-items: center;",".sv_main .sv_p_remove_btn_right":"margin-left: 1em;",".sv_main .sv-button-group":"display: flex; align-items: center; flex-direction: row; font-size: 16px; height: 48px; overflow: auto;",".sv_main .sv-button-group__item":"display: flex; box-sizing: border-box; flex-direction: row; justify-content: center; align-items: center; width: 100%; padding: 11px 16px; line-height: 24px; border-width: 1px; border-style: solid; outline: none; font-size: 16px; font-weight: 400; cursor: pointer; overflow: hidden;",".sv_main .sv-button-group__item:not(:first-of-type)":"margin-left: -1px;",".sv_main .sv-button-group__item-icon":"display: block; height: 24px;",".sv_main .sv-button-group__item--selected":"font-weight: 600;",".sv_main .sv-button-group__item-decorator":"display: flex; align-items: center; max-width: 100%;",".sv_main .sv-button-group__item-icon + .sv-button-group__item-caption":"margin-left: 8px",".sv_main .sv-button-group__item-caption":"display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_main .sv-button-group__item--disabled":"color: cursor: default;","sv-popup":"display: block; position: absolute; z-index: -1;",".sv-popup":"position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; outline: none; z-index: 1500;",".sv-popup__container":"box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1); position: absolute; padding: 0;",".sv-popup__body-content":"background-color: var(--background, #fff); border-radius: calc(0.5 * var(--base-unit, 8px)); width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; max-height: 90vh; max-width: 90vw;",".sv-popup--modal .sv-list__filter":"padding-top: 8px;",".sv-popup--modal .sv-list__filter-icon":"top: 20px;",".sv-popup--overlay .sv-list__filter":"padding-top: 8px;",".sv-popup--overlay .sv-list__filter-icon":"top: 20px;",".sv-popup--modal":"display: flex; align-items: center; justify-content: center;",".sv-popup--modal .sv-popup__container":"position: static;",".sv-popup--modal .sv-popup__body-content":"padding: calc(4 * var(--base-unit, 8px));",".sv-popup--overlay":"width: 100%;",".sv-popup--overlay .sv-popup__container":"background: rgba(144, 144, 144, 0.5); max-width: 100vw; max-height: calc(100vh - 1 * var(--base-unit, 8px)); height: calc(100vh - 1 * var(--base-unit, 8px)); width: 100%; padding-top: calc(2 * var(--base-unit, 8px)); border: unset;",".sv-popup__shadow":"width: 100%; height: 100%; border-radius: calc(1 * var(--base-unit, 8px));",".sv-popup--overlay .sv-popup__body-content":"border-radius: calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) 0px 0px; background: var(--background, #fff); box-shadow: 0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.1); padding: calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)); height: calc(100% - calc(1 * var(--base-unit, 8px))); max-height: 100vh; max-width: 100vw;",".sv-popup--overlay .sv-popup__scrolling-content":"height: calc(100% - (10 * var(--base-unit, 8px)));",".sv-popup--overlay .sv-popup__body-footer":"margin-top: calc(2 * var(--base-unit, 8px));",".sv-popup--overlay .sv-popup__body-footer .sv-action":"width: 100%;",".sv-popup--overlay .sv-popup__body-footer .sv-action-bar":"width: 100%;",".sv-popup--overlay .sv-popup__body-footer-item":"width: 100%;",".sv-popup--overlay .sv-popup__button":"background-color: var(--primary, #19b394); border: 2px solid var(--primary, #19b394); color: var(--primary-foreground, #fff);",".sv-popup__scrolling-content":"height: 100%; overflow: auto; display: flex; flex-direction: column;",".sv-popup__scrolling-content::-webkit-scrollbar":"height: 6px; width: 6px; background-color: var(--background-dim, #f3f3f3);",".sv-popup__scrolling-content::-webkit-scrollbar-thumb":"background: var(--primary-light, rgba(25, 179, 148, 0.1));",".sv-popup__content":"min-width: 100%; height: 100%;",".sv-popup--show-pointer.sv-popup--top .sv-popup__pointer":"transform: translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg);",".sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer":"transform: translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--right":"transform: translate(calc(1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--right .sv-popup__pointer":"transform: translate(-12px, -4px) rotate(-90deg);",".sv-popup--show-pointer.sv-popup--left":"transform: translate(calc(-1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--left .sv-popup__pointer":"transform: translate(-4px, -4px) rotate(90deg);",".sv-popup__pointer":"display: block; position: absolute;",".sv-popup__pointer:after":"content: ' '; display: block; width: 0; height: 0; border-left: calc(1 * var(--base-unit, 8px)) solid transparent; border-right: calc(1 * var(--base-unit, 8px)) solid transparent; border-bottom: calc(1 * var(--base-unit, 8px)) solid var(--background, #fff); align-self: center;",".sv-popup__body-header":"font-family: Open Sans; font-size: calc(3 * var(--base-unit, 8px)); line-height: calc(4 * var(--base-unit, 8px)); font-style: normal; font-weight: 700; margin-bottom: calc(2 * var(--base-unit, 8px)); color: var(--foreground, #161616);",".sv-popup__body-footer":"display: flex; margin-top: calc(4 * var(--base-unit, 8px));",".sv-popup__body-footer .sv-action-bar":"gap: calc(1.5 * var(--base-unit, 8px));",".sv-popup__button":"padding: calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px)); background: var(--background, #fff); box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); border-radius: 4px; margin: 2px; cursor: pointer; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: 600; font-size: calc(2 * var(--base-unit, 8px)); line-height: calc(3 * var(--base-unit, 8px)); text-align: center; color: var(--primary, #19b394); border: none; outline: none;",".sv-popup__button:hover":"box-shadow: 0 0 0 2px var(--primary, #19b394);",".sv-popup__button:disabled":"color: var(--foreground-disabled, rgba(#161616, 0.16)); cursor: default;",".sv-popup__button:disabled:hover":"box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);",".sv-popup__button.sv-popup__button--apply":"background-color: var(--primary, #19b394); color: var(--primary-foreground, #fff);",".sv-popup__button.sv-popup__button--apply:disabled":"background-color: var(--background-dim, #f3f3f3);",".sv-list":"padding: 0; margin: 0; background: var(--background, #fff); list-style-type: none; overflow-y: auto;",".sv-list__item--with-icon":"padding-top: 12px; padding-bottom: 12px;",".sv-list__item":"width: 100%; box-sizing: border-box; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__item-body":"width: 100%; box-sizing: border-box; padding-top: 8px; padding-bottom: 8px; padding-inline-end: 64px; padding-inline-start: 16px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__item-icon":"float: left; width: calc(3 * 8px); height: calc(3 * 8px); margin-right: calc(2 * 8px);",".sv-list__item-icon svg":"display: block;",".sv-list__item-icon use":"fill: #909090;",".sv-list__item:hover .sv-list__item-body":"background-color: var(--background-dim, #f3f3f3);",".sv-list__item.sv-list__item--focused .sv-list__item-body":"background-color: var(--background-dim, #f3f3f3);",".sv-list__loading-indicator":"pointer-events: none;",".sv-list__loading-indicator .sv-list__item-body":"background-color: transparent",".sv-list__item--selected .sv-list__item-icon use":"fill: var(--primary-foreground, #fff);",".sv-list__item.sv-list__item--disabled":"color: var(--foreground-light, #909090); cursor: default;",".sv-list__item span":"white-space: nowrap;",".sv-list__container":"position: relative; display: flex; flex-direction: column; height: 100%; display: flex; flex-direction: column; min-height: 0;",".sv-list__filter":"border-bottom: 1px solid rgba(0, 0, 0, 0.16); background: var(--background, #fff); padding-bottom: calcSize(1);",".sv-list__input":"-webkit-appearance: none; -moz-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; line-height: 24px; padding-left: 56px; padding-right: 24px; padding-top: 12px; padding-bottom: 12px; outline: none; font-size: 1em; border: none",".sv-list__filter-icon":"display: block; position: absolute; top: 12px; left: 16px;",".sv-list__filter-icon .sv-svg-icon":"width: 24px; height: 24px;",".sv-list__empty-container":"width: 100%; box-sizing: border-box; padding: 12px 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__empty-text":"line-height: 24px; font-size: 16px; font-weight: 400; text-align: center; color: var(--foreground-light, #909090);",".sv-skeleton-element":"min-height: 50px;"},I.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(data-responsive-title);",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(data-responsive-title); 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-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)"}},I.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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},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","$light-text-color":"#fff","$button-text-color":"#fff","$checkmark-color":"#fff","$matrix-text-checked-color":"#fff","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4","$text-input-color":"#404040","$inputs-background-color":"transparent","$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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-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","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"}},I.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_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_default_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".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; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control__input-field-component":"height: auto;",".sv_default_css input[type='text']":"color: $text-color; -webkit-text-fill-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-input-color; -webkit-text-fill-color: $text-input-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-input-color; -webkit-text-fill-color: $text-input-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_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control:focus-within":"border: 1px solid $main-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 .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control .sv_q_dropdown__value .sv_q_dropdown__filter-string-input[type=text]":"border: none; outline: none; padding: 0px; width: auto; display: flex; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; position: absolute; inset-inline-start: 0; top: 0; height: 100%; background-color: transparent;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control .sv_q_dropdown__value.sv_q_tagbox__value .sv_q_dropdown__filter-string-input.sv_q_tagbox__filter-string-input":"position: initial;",".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_q_input.sv_q_input.sv_q_input.sv_q_tagbox.sv_q_tagbox.sv_q_tagbox:not(.sv_q_tagbox--empty)":"height: auto;",".sv_default_css .sv_select_wrapper.sv_q_tagbox_wrapper::before":"height: 100%; padding: 0 1em;",".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; outline-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;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item--hover:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item-icon use":"fill: $foreground-light;",".sv_main .sv-button-group__item--selected":"color: $main-color;",".sv_main .sv-button-group__item--selected .sv-button-group__item-icon use":"fill: $main-color;",".sv_main .sv-button-group__item--disabled":"color: $foreground-disabled;",".sv_main .sv-button-group__item--disabled .sv-button-group__item-icon use":"fill: $foreground-disabled;",".sv_main .sv-button-group__item":"background: $body-background-color; border-color: $border-color;",".sv_main .sv_qstn textarea":"max-width: 100%","body .sv-list__input":"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;","body .sv-list__input::placeholder":"color: $foreground-light;","body .sv-list__input:disabled":"color: $foreground-disabled;","body .sv-list__input:disabled::placeholder":"color: $foreground-disabled;","body .sv-list__item--selected":"background: rgba(25, 179, 148, 0.1); color: $foreground-disabled","body .sv-list__item--selected.sv-list__item--focused":"background-color: $main-color; color: $inputs-background-color;","body .sv-list__item--selected:focus":"background-color: $main-color; color: $inputs-background-color;","body .sv-list__item--selected:hover":"background-color: $main-color; color: $inputs-background-color;",".sv-skeleton-element":"background-color: $background-dim;",".sv_main .sv-ranking-item:focus .sv-ranking-item__index":"border: 2px solid $main-color;",".sv_main .sv-ranking-item__icon":"fill: $main-color;","body .sv-ranking-shortcut .sv-ranking-item__icon":"fill: $main-color;"},I.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: $button-text-color;",".sv-btn--navigation":"background-color: $main-color",".sv-checkbox__svg":"border-color: $border-color; fill: transparent;",".sv-checkbox--allowhover:hover .sv-checkbox__svg":"background-color: $main-hover-color; fill: $checkmark-color;",".sv-checkbox--checked .sv-checkbox__svg":"background-color: $main-color; fill: $checkmark-color;",".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg":"background-color: $disable-color; fill: $checkmark-color;",".sv-checkbox--disabled .sv-checkbox__svg":"border-color: $disable-color;",".sv-comment":"border-color: $text-border-color; max-width: 100%;",".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-tagbox":"border-bottom: 0.06em solid $text-border-color;",".sv-tagbox:focus":"border-color: $dropdown-border-color;",".sv-tagbox--error":"border-color: $error-color; color: $error-color;",".sv-tagbox--error::placeholder":"color: $error-color;",".sv-tagbox--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:not(.sv-file__choose-btn--disabled)":"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-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--checked":"color: $matrix-text-checked-color; background-color: $main-color;",".sv-matrix__text--disabled.sv-matrix__text--checked":"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":"fill: $text-color;",".sv-paneldynamic__next-btn":"fill: $text-color;",".sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__next-btn.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_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".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;","input.sv-text, textarea.sv-comment, select.sv-dropdown":"color: $text-input-color; background-color: $inputs-background-color;",".sv-text::placeholder":"color: $text-input-color;",".sv-text::-ms-placeholder":"color: $text-input-color;",".sv-text:-ms-placeholder":"color: $text-input-color;",".sv-table__row--detail":"background-color: $header-background-color;",".sjs_sp_container":"border: 1px dashed $disable-color;",".sjs_sp_placeholder":"color: $foreground-light;",".sv-matrixdynamic__drag-icon":"padding-top:16px",".sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid $border-color; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv-matrix__drag-drop-ghost-position-top, .sv-matrix__drag-drop-ghost-position-bottom":"position: relative;",".sv-matrix__drag-drop-ghost-position-top::after, .sv-matrix__drag-drop-ghost-position-bottom::after":"content: ''; width: 100%; height: 4px; background-color: var(--primary, #19b394); position: absolute; left: 0;",".sv-matrix__drag-drop-ghost-position-top::after":"top: 0;",".sv-matrix__drag-drop-ghost-position-bottom::after":"bottom: 0;",".sv-skeleton-element":"background-color: $background-dim;",".sv-ranking-item:focus .sv-ranking-item__index":"border: 2px solid $main-color;",".sv-ranking-item__icon":"fill: $main-color;","body .sv-ranking-shortcut .sv-ranking-item__icon":"fill: $main-color;"},I.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_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".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;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},I.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_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".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_bootstrapmaterial_css .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".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;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},I.Enabled=!0,I}()},"./src/survey-element.ts":function(D,y,c){c.r(y),c.d(y,"SurveyElementCore",function(){return p}),c.d(y,"DragTypeOverMeEnum",function(){return u}),c.d(y,"SurveyElement",function(){return s});var b=c("./src/jsonobject.ts"),C=c("./src/base.ts"),I=c("./src/actions/adaptive-container.ts"),M=c("./src/helpers.ts"),T=c("./src/settings.ts"),V=c("./src/actions/container.ts"),P=function(){var e=function(g,h){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(f[r]=o[r])},e(g,h)};return function(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");e(g,h);function f(){this.constructor=g}g.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),a=function(e,g,h,f){var o=arguments.length,r=o<3?g:f===null?f=Object.getOwnPropertyDescriptor(g,h):f,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,g,h,f);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(r=(o<3?n(r):o>3?n(g,h,r):n(g,h))||r);return o>3&&r&&Object.defineProperty(g,h,r),r},p=function(e){P(g,e);function g(){var h=e.call(this)||this;return h.createLocTitleProperty(),h}return g.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(g.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(h){this.setLocalizableStringText("title",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),g.prototype.getDefaultTitleValue=function(){},g.prototype.updateDescriptionVisibility=function(h){this.hasDescription=!!h},Object.defineProperty(g.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleTagName",{get:function(){var h=this.getDefaultTitleTagName(),f=this.getSurvey();return f?f.getElementTitleTagName(this,h):h},enumerable:!1,configurable:!0}),g.prototype.getDefaultTitleTagName=function(){return T.settings.titleTags[this.getType()]},Object.defineProperty(g.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),g.prototype.getTitleToolbar=function(){return null},g.prototype.getTitleOwner=function(){},Object.defineProperty(g.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),g.prototype.toggleState=function(){},Object.defineProperty(g.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),g.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},a([Object(b.property)()],g.prototype,"hasDescription",void 0),a([Object(b.property)({localizable:!0,onSet:function(h,f){f.updateDescriptionVisibility(f,h)}})],g.prototype,"description",void 0),g}(C.Base),u;(function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft"})(u||(u={}));var s=function(e){P(g,e);function g(h){var f=e.call(this)||this;return f.selectedElementInDesignValue=f,f.disableDesignActions=g.CreateDisabledDesignElements,f.parentQuestionValue=null,f.isContentElement=!1,f.isEditableTemplateElement=!1,f.isInteractiveDesignElement=!0,f.isSingleInRow=!0,f.name=h,f.createNewArray("errors"),f.createNewArray("titleActions"),f.registerPropertyChangedHandlers(["isReadOnly"],function(){f.onReadOnlyChanged()}),f.registerPropertyChangedHandlers(["errors"],function(){f.updateVisibleErrors()}),f.registerPropertyChangedHandlers(["isSingleInRow"],function(){f.updateElementCss(!1)}),f}return g.getProgressInfoByElements=function(h,f){for(var o=C.Base.createProgressInfo(),r=0;r0&&(o.requiredQuestionCount==0&&(o.requiredQuestionCount=1),o.answeredQuestionCount>0&&(o.requiredAnsweredQuestionCount=1)),o},g.ScrollElementToTop=function(h){if(!h||typeof document>"u")return!1;var f=document.getElementById(h);if(!f||!f.scrollIntoView)return!1;var o=f.getBoundingClientRect().top;return o<0&&f.scrollIntoView(),o<0},g.GetFirstNonTextElement=function(h,f){if(f===void 0&&(f=!1),!h||!h.length||h.length==0)return null;if(f){var o=h[0];o.nodeName==="#text"&&(o.data=""),o=h[h.length-1],o.nodeName==="#text"&&(o.data="")}for(var r=0;r"u")return!1;var f=g.focusElementCore(h);return f||setTimeout(function(){g.focusElementCore(h)},10),f},g.focusElementCore=function(h){if(!document)return!1;var f=document.getElementById(h);return f&&!f.disabled?(f.focus(),!0):!1},g.prototype.onPropertyValueChanged=function(h,f,o){e.prototype.onPropertyValueChanged.call(this,h,f,o),h==="state"&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},g.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(g.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),g.prototype.setParentQuestion=function(h){this.parentQuestionValue=h,this.onParentQuestionChanged()},g.prototype.onParentQuestionChanged=function(){},Object.defineProperty(g.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(h){this.setPropertyValue("state",h),this.notifyStateChanged()},enumerable:!1,configurable:!0}),g.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(g.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return this.state==="collapsed"},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isExpanded",{get:function(){return this.state==="expanded"},enumerable:!1,configurable:!0}),g.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},g.prototype.expand=function(){this.state="expanded"},g.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):this.isExpanded?(this.collapse(),!1):!0},Object.defineProperty(g.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),g.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},g.prototype.createActionContainer=function(h){var f=h?new I.AdaptiveActionContainer:new V.ActionContainer;return this.survey&&!!this.survey.getCss().actionBar&&(f.cssClasses=this.survey.getCss().actionBar),f},Object.defineProperty(g.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),g.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},g.prototype.getDefaultTitleActions=function(){return[]},g.prototype.updateTitleActions=function(){var h=this.getDefaultTitleActions();this.survey&&(h=this.survey.getUpdatedElementTitleActions(this,h)),this.setPropertyValue("titleActions",h)},Object.defineProperty(g.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"},enumerable:!1,configurable:!0}),g.prototype.setSurveyImpl=function(h,f){this.surveyImplValue=h,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):this.setSurveyCore(null),this.survey&&this.clearCssClasses()},g.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},g.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},g.prototype.getDataFilteredProperties=function(){var h=this.data?this.data.getFilteredProperties():{};return h.question=this,h},Object.defineProperty(g.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),g.prototype.__setData=function(h){T.settings.supportCreatorV2&&(this.surveyDataValue=h)},Object.defineProperty(g.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),g.prototype.getSurvey=function(h){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},g.prototype.setSurveyCore=function(h){this.surveyValue=h,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(g.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(h){this.readOnly!=h&&(this.setPropertyValue("readOnly",h),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),g.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(g.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),g.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(g.prototype,"cssClasses",{get:function(){return this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),g.prototype.calcCssClasses=function(h){},g.prototype.updateElementCssCore=function(h){},Object.defineProperty(g.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),g.prototype.updateElementCss=function(h){this.clearCssClasses()},g.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},g.prototype.getIsLoadingFromJson=function(){return e.prototype.getIsLoadingFromJson.call(this)?!0:this.survey?this.survey.isLoadingFromJson:!1},Object.defineProperty(g.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(h){var f=this.name;this.setPropertyValue("name",this.getValidName(h)),!this.isLoadingFromJson&&!!f&&this.onNameChanged(f)},enumerable:!1,configurable:!0}),g.prototype.getValidName=function(h){return h},g.prototype.onNameChanged=function(h){},g.prototype.updateBindingValue=function(h,f){!!this.data&&!this.isTwoValueEquals(f,this.data.getValue(h))&&this.data.setValue(h,f,!1)},Object.defineProperty(g.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(h){this.setPropertyValue("errors",h)},enumerable:!1,configurable:!0}),g.prototype.updateVisibleErrors=function(){for(var h=0,f=0;f0},Object.defineProperty(g.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),g.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},g.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(g.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(h){this.selectedElementInDesignValue=h},enumerable:!1,configurable:!0}),g.prototype.updateCustomWidgets=function(){},g.prototype.onSurveyLoad=function(){},g.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},g.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},g.prototype.setVisibleIndex=function(h){return 0},Object.defineProperty(g.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.delete=function(){},g.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},g.prototype.getMarkdownHtml=function(h,f){return this.survey?this.survey.getSurveyMarkdownHtml(this,h,f):this.locOwner?this.locOwner.getMarkdownHtml(h,f):void 0},g.prototype.getRenderer=function(h){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,h):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(h):null},g.prototype.getRendererContext=function(h){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,h):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?this.locOwner.getRendererContext(h):h},g.prototype.getProcessedText=function(h){return this.isLoadingFromJson?h:this.textProcessor?this.textProcessor.processText(h,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(h):h},g.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},g.prototype.removeSelfFromList=function(h){if(!(!h||!Array.isArray(h))){var f=h.indexOf(this);f>-1&&h.splice(f,1)}},Object.defineProperty(g.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),g.prototype.getProcessedHtml=function(h){return!h||!this.textProcessor?h:this.textProcessor.processText(h,!0)},g.prototype.onSetData=function(){},Object.defineProperty(g.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(h){this.setPropertyValue("parent",h)},enumerable:!1,configurable:!0}),g.prototype.getPage=function(h){for(;h&&h.parent;)h=h.parent;return h&&h.getType()=="page"?h:null},g.prototype.moveToBase=function(h,f,o){if(o===void 0&&(o=null),!f)return!1;h.removeElement(this);var r=-1;return M.Helpers.isNumber(o)&&(r=parseInt(o)),r==-1&&!!o&&!!o.getType&&(r=f.indexOf(o)),f.addElement(this,r),!0},g.prototype.setPage=function(h,f){var o=this.getPage(h);if(typeof f=="string"){var r=this.getSurvey();r.pages.forEach(function(n){f===n.name&&(f=n)})}o!==f&&(h&&h.removeElement(this),f&&f.addElement(this,-1))},g.prototype.getSearchableLocKeys=function(h){h.push("title"),h.push("description")},Object.defineProperty(g.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root=="sd-root-modern"},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),g.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},g.prototype.getIsTooltipErrorSupportedByParent=function(){var h;return(h=this.parent)===null||h===void 0?void 0:h.getIsTooltipErrorInsideSupported()},g.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(g.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasFrameV2",{get:function(){return!this.hasParent&&this.isDefaultV2Theme&&!this.isDesignMode&&this.isSingleInRow},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(h){this.setPropertyValue("width",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(h){this.setPropertyValue("minWidth",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(h){this.setPropertyValue("maxWidth",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(h){this.setPropertyValue("renderWidth",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(h){this.setPropertyValue("indent",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(h){this.setPropertyValue("rightIndent",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(h){this.setPropertyValue("paddingLeft",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(h){this.setPropertyValue("paddingRight",h)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"rootStyle",{get:function(){var h={};return this.allowRootStyle&&this.renderWidth&&(h.flexGrow=1,h.flexShrink=1,h.flexBasis=this.renderWidth,h.minWidth=this.minWidth,h.maxWidth=this.maxWidth),h},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"clickTitleFunction",{get:function(){var h=this;if(this.needClickTitleFunction())return function(){return h.processTitleClick()}},enumerable:!1,configurable:!0}),g.prototype.needClickTitleFunction=function(){return this.state!=="default"},g.prototype.processTitleClick=function(){this.state!=="default"&&this.toggleState()},g.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(h){h.updateText()})},g.CreateDisabledDesignElements=!1,a([Object(b.property)({defaultValue:null})],g.prototype,"dragTypeOverMe",void 0),a([Object(b.property)({defaultValue:!1})],g.prototype,"isDragMe",void 0),a([Object(b.property)()],g.prototype,"cssClassesValue",void 0),a([Object(b.property)({defaultValue:!1})],g.prototype,"hasVisibleErrors",void 0),a([Object(b.property)({defaultValue:!0})],g.prototype,"isSingleInRow",void 0),a([Object(b.property)({defaultValue:!0})],g.prototype,"allowRootStyle",void 0),g}(p)},"./src/survey-error.ts":function(D,y,c){c.r(y),c.d(y,"SurveyError",function(){return I});var b=c("./src/localizablestring.ts"),C=c("./src/surveyStrings.ts"),I=function(){function M(T,V){T===void 0&&(T=null),V===void 0&&(V=null),this.text=T,this.errorOwner=V,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return M.prototype.equalsTo=function(T){return!T||!T.getErrorType||this.getErrorType()!==T.getErrorType()?!1:this.text===T.text&&this.visible===T.visible},Object.defineProperty(M.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new b.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),M.prototype.getText=function(){var T=this.text;return T||(T=this.getDefaultText()),this.errorOwner&&(T=this.errorOwner.getErrorCustomText(T,this)),T},M.prototype.getErrorType=function(){return"base"},M.prototype.getDefaultText=function(){return""},M.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},M.prototype.getLocalizationString=function(T){return C.surveyLocalization.getString(T,this.getLocale())},M.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},M}()},"./src/survey.ts":function(D,y,c){c.r(y),c.d(y,"SurveyModel",function(){return w});var b=c("./src/helpers.ts"),C=c("./src/jsonobject.ts"),I=c("./src/base.ts"),M=c("./src/survey-element.ts"),T=c("./src/defaultCss/cssstandard.ts"),V=c("./src/textPreProcessor.ts"),P=c("./src/conditionProcessValue.ts"),a=c("./src/dxSurveyService.ts"),p=c("./src/surveyStrings.ts"),u=c("./src/error.ts"),s=c("./src/localizablestring.ts"),e=c("./src/stylesmanager.ts"),g=c("./src/surveyTimerModel.ts"),h=c("./src/conditions.ts"),f=c("./src/settings.ts"),o=c("./src/utils/utils.ts"),r=c("./src/actions/action.ts"),n=c("./src/actions/container.ts"),i=c("./src/utils/cssClassBuilder.ts"),m=function(){var x=function(l,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var E in v)Object.prototype.hasOwnProperty.call(v,E)&&(d[E]=v[E])},x(l,t)};return function(l,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");x(l,t);function d(){this.constructor=l}l.prototype=t===null?Object.create(t):(d.prototype=t.prototype,new d)}}(),O=function(x,l,t,d){var v=arguments.length,E=v<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,t):d,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(x,l,t,d);else for(var S=x.length-1;S>=0;S--)(R=x[S])&&(E=(v<3?R(E):v>3?R(l,t,E):R(l,t))||E);return v>3&&E&&Object.defineProperty(l,t,E),E},w=function(x){m(l,x);function l(t,d){t===void 0&&(t=null),d===void 0&&(d=null);var v=x.call(this)||this;v.valuesHash={},v.variablesHash={},v.onTriggerExecuted=v.addEvent(),v.onCompleting=v.addEvent(),v.onComplete=v.addEvent(),v.onShowingPreview=v.addEvent(),v.onNavigateToUrl=v.addEvent(),v.onStarted=v.addEvent(),v.onPartialSend=v.addEvent(),v.onCurrentPageChanging=v.addEvent(),v.onCurrentPageChanged=v.addEvent(),v.onValueChanging=v.addEvent(),v.onValueChanged=v.addEvent(),v.onVariableChanged=v.addEvent(),v.onVisibleChanged=v.addEvent(),v.onPageVisibleChanged=v.addEvent(),v.onPanelVisibleChanged=v.addEvent(),v.onQuestionCreated=v.addEvent(),v.onQuestionAdded=v.addEvent(),v.onQuestionRemoved=v.addEvent(),v.onPanelAdded=v.addEvent(),v.onPanelRemoved=v.addEvent(),v.onPageAdded=v.addEvent(),v.onValidateQuestion=v.addEvent(),v.onSettingQuestionErrors=v.addEvent(),v.onServerValidateQuestions=v.addEvent(),v.onValidatePanel=v.addEvent(),v.onErrorCustomText=v.addEvent(),v.onValidatedErrorsOnCurrentPage=v.addEvent(),v.onProcessHtml=v.addEvent(),v.onGetQuestionTitle=v.addEvent(),v.onGetTitleTagName=v.addEvent(),v.onGetQuestionNo=v.addEvent(),v.onProgressText=v.addEvent(),v.onTextMarkdown=v.addEvent(),v.onTextRenderAs=v.addEvent(),v.onSendResult=v.addEvent(),v.onGetResult=v.addEvent(),v.onUploadFiles=v.addEvent(),v.onDownloadFile=v.addEvent(),v.onClearFiles=v.addEvent(),v.onLoadChoicesFromServer=v.addEvent(),v.onLoadedSurveyFromService=v.addEvent(),v.onProcessTextValue=v.addEvent(),v.onUpdateQuestionCssClasses=v.addEvent(),v.onUpdatePanelCssClasses=v.addEvent(),v.onUpdatePageCssClasses=v.addEvent(),v.onUpdateChoiceItemCss=v.addEvent(),v.onAfterRenderSurvey=v.addEvent(),v.onAfterRenderHeader=v.addEvent(),v.onAfterRenderPage=v.addEvent(),v.onAfterRenderQuestion=v.addEvent(),v.onAfterRenderQuestionInput=v.addEvent(),v.onAfterRenderPanel=v.addEvent(),v.onFocusInQuestion=v.addEvent(),v.onFocusInPanel=v.addEvent(),v.onShowingChoiceItem=v.addEvent(),v.onChoicesLazyLoad=v.addEvent(),v.onMatrixRowAdded=v.addEvent(),v.onMatrixBeforeRowAdded=v.addEvent(),v.onMatrixRowRemoving=v.addEvent(),v.onMatrixRowRemoved=v.addEvent(),v.onMatrixAllowRemoveRow=v.addEvent(),v.onMatrixCellCreating=v.addEvent(),v.onMatrixCellCreated=v.addEvent(),v.onMatrixAfterCellRender=v.addEvent(),v.onMatrixCellValueChanged=v.addEvent(),v.onMatrixCellValueChanging=v.addEvent(),v.onMatrixCellValidate=v.addEvent(),v.onDynamicPanelAdded=v.addEvent(),v.onDynamicPanelRemoved=v.addEvent(),v.onDynamicPanelRemoving=v.addEvent(),v.onTimer=v.addEvent(),v.onTimerPanelInfoText=v.addEvent(),v.onDynamicPanelItemValueChanged=v.addEvent(),v.onIsAnswerCorrect=v.addEvent(),v.onDragDropAllow=v.addEvent(),v.onScrollingElementToTop=v.addEvent(),v.onLocaleChangedEvent=v.addEvent(),v.onGetQuestionTitleActions=v.addEvent(),v.onGetPanelTitleActions=v.addEvent(),v.onGetPageTitleActions=v.addEvent(),v.onGetMatrixRowActions=v.addEvent(),v.onElementContentVisibilityChanged=v.addEvent(),v.onGetExpressionDisplayValue=v.addEvent(),v.jsonErrors=null,v.cssValue=null,v.hideRequiredErrors=!1,v._isMobile=!1,v._isDesignMode=!1,v.ignoreValidation=!1,v.isNavigationButtonPressed=!1,v.mouseDownPage=null,v.isCalculatingProgressText=!1,v.isFirstPageRendering=!0,v.isCurrentPageRendering=!0,v.isTriggerIsRunning=!1,v.triggerValues=null,v.triggerKeys=null,v.conditionValues=null,v.isValueChangedOnRunningCondition=!1,v.conditionRunnerCounter=0,v.conditionUpdateVisibleIndexes=!1,v.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,v.isEndLoadingFromJson=null,v.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},v.needRenderIcons=!0,v.skeletonComponentName="sv-skeleton",typeof document<"u"&&(l.stylesManager=new e.StylesManager);var E=function(R){return"

"+R+"

"};return v.createHtmlLocString("completedHtml","completingSurvey",E),v.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",E),v.createHtmlLocString("loadingHtml","loadingSurvey",E),v.createLocalizableString("logo",v,!1),v.createLocalizableString("startSurveyText",v,!1,!0),v.createLocalizableString("pagePrevText",v,!1,!0),v.createLocalizableString("pageNextText",v,!1,!0),v.createLocalizableString("completeText",v,!1,!0),v.createLocalizableString("previewText",v,!1,!0),v.createLocalizableString("editText",v,!1,!0),v.createLocalizableString("questionTitleTemplate",v,!0),v.textPreProcessor=new V.TextPreProcessor,v.textPreProcessor.onProcess=function(R){v.getProcessedTextValue(R)},v.timerModelValue=new g.SurveyTimerModel(v),v.timerModelValue.onTimer=function(R){v.doTimer(R)},v.createNewArray("pages",function(R){v.doOnPageAdded(R)},function(R){v.doOnPageRemoved(R)}),v.createNewArray("triggers",function(R){R.setOwner(v)}),v.createNewArray("calculatedValues",function(R){R.setOwner(v)}),v.createNewArray("completedHtmlOnCondition",function(R){R.locOwner=v}),v.createNewArray("navigateToUrlOnCondition",function(R){R.locOwner=v}),v.registerPropertyChangedHandlers(["locale"],function(){v.onSurveyLocaleChanged()}),v.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){v.onFirstPageIsStartedChanged()}),v.registerPropertyChangedHandlers(["mode"],function(){v.onModeChanged()}),v.registerPropertyChangedHandlers(["progressBarType"],function(){v.updateProgressText()}),v.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){v.resetVisibleIndexes()}),v.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],function(){v.updateState()}),v.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){v.onStateAndCurrentPageChanged()}),v.onGetQuestionNo.onCallbacksChanged=function(){v.resetVisibleIndexes()},v.onProgressText.onCallbacksChanged=function(){v.updateProgressText()},v.onTextMarkdown.onCallbacksChanged=function(){v.locStrsChanged()},v.onProcessHtml.onCallbacksChanged=function(){v.locStrsChanged()},v.onGetQuestionTitle.onCallbacksChanged=function(){v.locStrsChanged()},v.onUpdatePageCssClasses.onCallbacksChanged=function(){v.currentPage&&v.currentPage.updateElementCss()},v.onUpdatePanelCssClasses.onCallbacksChanged=function(){v.currentPage&&v.currentPage.updateElementCss()},v.onUpdateQuestionCssClasses.onCallbacksChanged=function(){v.currentPage&&v.currentPage.updateElementCss()},v.onShowingChoiceItem.onCallbacksChanged=function(){v.rebuildQuestionChoices()},v.navigationBarValue=v.createNavigationBar(),v.navigationBar.locOwner=v,v.onBeforeCreating(),t&&((typeof t=="string"||t instanceof String)&&(t=JSON.parse(t)),t&&t.clientId&&(v.clientId=t.clientId),v.fromJSON(t),v.surveyId&&v.loadSurveyFromService(v.surveyId,v.clientId)),v.onCreating(),d&&v.render(d),v.updateCss(),v.setCalculatedWidthModeUpdater(),v}return Object.defineProperty(l,"cssType",{get:function(){return T.surveyCss.currentType},set:function(t){e.StylesManager.applyTheme(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"platformName",{get:function(){return l.platform},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"commentPrefix",{get:function(){return f.settings.commentPrefix},set:function(t){f.settings.commentPrefix=t},enumerable:!1,configurable:!0}),l.prototype.createHtmlLocString=function(t,d,v){this.createLocalizableString(t,this,!1,d).onGetLocalizationTextCallback=v},l.prototype.getType=function(){return"survey"},l.prototype.onPropertyValueChanged=function(t,d,v){t==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(d)},Object.defineProperty(l.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),l.prototype.render=function(t){this.renderCallback&&this.renderCallback()},l.prototype.updateSurvey=function(t,d){var v=function(){if(R=="model"||R=="children")return"continue";if(R.indexOf("on")==0&&E[R]&&E[R].add){var S=t[R],A=function(L,k){S(L,k)};E[R].add(A)}else E[R]=t[R]},E=this;for(var R in t)v();t&&t.data&&this.onValueChanged.add(function(S,A){t.data[A.name]=A.value})},l.prototype.getCss=function(){return this.css},l.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new i.CssClassBuilder().append(this.css.body).append(this.css.completedPage).toString()},l.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(l.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,T.surveyCss.getCss())),this.cssValue},set:function(t){this.setCss(t)},enumerable:!1,configurable:!0}),l.prototype.setCss=function(t,d){d===void 0&&(d=!0),d?this.mergeValues(t,this.css):this.cssValue=t,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(l.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssSurveyNavigationButton",{get:function(){return new i.CssClassBuilder().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"bodyCss",{get:function(){return new i.CssClassBuilder().append(this.css.body).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completedStateCss",{get:function(){return this.getPropertyValue("completedStateCss","")},enumerable:!1,configurable:!0}),l.prototype.getCompletedStateCss=function(){return new i.CssClassBuilder().append(this.css.saveData[this.completedState],this.completedState!=="").toString()},l.prototype.getNavigationCss=function(t,d){return new i.CssClassBuilder().append(t).append(d).toString()},Object.defineProperty(l.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(t){if(this.lazyRendering!==t){this.lazyRenderingValue=t;var d=this.currentPage;d&&d.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||f.settings.lazyRowsRendering},enumerable:!1,configurable:!0}),l.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(!!this.isLazyRendering){var t=this.currentPage;t&&Object(o.scrollElementByChildId)(t.id)}},Object.defineProperty(l.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(t){this.setPropertyValue("triggers",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(t){this.setPropertyValue("calculatedValues",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(t){this.setPropertyValue("surveyId",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(t){this.setPropertyValue("surveyPostId",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(t){this.setPropertyValue("clientId",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(t){this.setPropertyValue("cookieName",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(t){this.setPropertyValue("sendResultOnPageNext",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(t){this.setPropertyValue("surveyShowDataSaving",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(t){this.setPropertyValue("focusFirstQuestionAutomatic",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(t){this.setPropertyValue("focusOnFirstError",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(t){(t===!0||t===void 0)&&(t="bottom"),t===!1&&(t="none"),this.setPropertyValue("showNavigationButtons",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(t){this.setPropertyValue("showPrevButton",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(t){this.setPropertyValue("showTitle",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(t){this.setPropertyValue("showPageTitles",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(t){this.setPropertyValue("showCompletedPage",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(t){this.setPropertyValue("navigateToUrl",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(t){this.setPropertyValue("navigateToUrlOnCondition",t)},enumerable:!1,configurable:!0}),l.prototype.getNavigateToUrl=function(){var t=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),d=t?t.url:this.navigateToUrl;return d&&(d=this.processText(d,!0)),d},l.prototype.navigateTo=function(){var t=this.getNavigateToUrl(),d={url:t};this.onNavigateToUrl.fire(this,d),!(!d.url||typeof window>"u"||!window.location)&&(window.location.href=d.url)},Object.defineProperty(l.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(t){this.setPropertyValue("requiredText",t)},enumerable:!1,configurable:!0}),l.prototype.beforeSettingQuestionErrors=function(t,d){this.maakeRequiredErrorsInvisibgle(d),this.onSettingQuestionErrors.fire(this,{question:t,errors:d})},l.prototype.beforeSettingPanelErrors=function(t,d){this.maakeRequiredErrorsInvisibgle(d)},l.prototype.maakeRequiredErrorsInvisibgle=function(t){if(!!this.hideRequiredErrors)for(var d=0;d-1){var v=p.surveyLocalization.defaultLocale,E=t.indexOf(v);E>-1&&t.splice(E,1),d=t.indexOf("default"),t[d]=v}return t},l.prototype.localeChanged=function(){for(var t=0;t"+this.getLocalizationString("loadingSurvey")+""},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),l.prototype.addNavigationItem=function(t){return t.component||(t.component="sv-nav-btn"),t.innerCss||(t.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(t)},Object.defineProperty(l.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(t){this.setLocalizableStringText("startSurveyText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(t){this.setLocalizableStringText("pagePrevText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(t){this.setLocalizableStringText("pageNextText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(t){this.setLocalizableStringText("completeText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(t){this.setLocalizableStringText("previewText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(t){this.setLocalizableStringText("editText",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),l.prototype.getElementTitleTagName=function(t,d){if(this.onGetTitleTagName.isEmpty)return d;var v={element:t,tagName:d};return this.onGetTitleTagName.fire(this,v),v.tagName},Object.defineProperty(l.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(t){t!=="numRequireTitle"&&t!=="requireNumTitle"&&t!="numTitle"&&(t="numTitleRequire"),this.setPropertyValue("questionTitlePattern",t)},enumerable:!1,configurable:!0}),l.prototype.getQuestionTitlePatternOptions=function(){var t=new Array,d=this.getLocalizationString("questionTitlePatternText"),v=this.questionStartIndex?this.questionStartIndex:"1.";return t.push({value:"numTitleRequire",text:v+" "+d+" "+this.requiredText}),t.push({value:"numRequireTitle",text:v+" "+this.requiredText+" "+d}),t.push({value:"requireNumTitle",text:this.requiredText+" "+v+" "+d}),t.push({value:"numTitle",text:v+" "+d}),t},Object.defineProperty(l.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(t){this.setLocalizableStringText("questionTitleTemplate",t),this.questionTitlePattern=this.getNewTitlePattern(t),this.questionStartIndex=this.getNewQuestionTitleElement(t,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(t,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),l.prototype.getNewTitlePattern=function(t){if(t){for(var d=[];t.indexOf("{")>-1;){t=t.substring(t.indexOf("{")+1);var v=t.indexOf("}");if(v<0)break;d.push(t.substring(0,v)),t=t.substring(v+1)}if(d.length>1){if(d[0]=="require")return"requireNumTitle";if(d[1]=="require"&&d.length==3)return"numRequireTitle";if(d.indexOf("require")<0)return"numTitle"}if(d.length==1&&d[0]=="title")return"numTitle"}return"numTitleRequire"},l.prototype.getNewQuestionTitleElement=function(t,d,v,E){if(d="{"+d+"}",!t||t.indexOf(d)<0)return v;for(var R=t.indexOf(d),S="",A="",L=R-1;L>=0&&t[L]!="}";L--);for(LR&&(A=t.substring(R,L)),L=0;L=0&&A.charCodeAt(L)<33;)L--;if(A=A.substring(0,L+1),!S&&!A)return v;var k=v||E;return S+k+A},Object.defineProperty(l.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),l.prototype.getUpdatedQuestionTitle=function(t,d){if(this.onGetQuestionTitle.isEmpty)return d;var v={question:t,title:d};return this.onGetQuestionTitle.fire(this,v),v.title},l.prototype.getUpdatedQuestionNo=function(t,d){if(this.onGetQuestionNo.isEmpty)return d;var v={question:t,no:d};return this.onGetQuestionNo.fire(this,v),v.no},Object.defineProperty(l.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(t){t!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",t),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(t){t===!0&&(t="on"),t===!1&&(t="off"),t=t.toLowerCase(),t=t==="onpage"?"onPage":t,t!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",t),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(t){this.setPropertyValue("showProgressBar",t.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(t){t==="correctquestion"&&(t="correctQuestion"),t==="requiredquestion"&&(t="requiredQuestion"),this.setPropertyValue("progressBarType",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?this.showProgressBar==="top"||this.showProgressBar==="both":!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both":!1},enumerable:!1,configurable:!0}),l.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},Object.defineProperty(l.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(t){this.setPropertyValue("questionTitleLocation",t.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),l.prototype.updateElementCss=function(t){this.startedPage&&this.startedPage.updateElementCss(t);for(var d=this.visiblePages,v=0;v0&&(t[E]=this.getDataValueCore(this.valuesHash,E))}return t},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var t=new Array,d=0;d1?this.pages[0]:null;return t&&(t.onFirstRendering(),t.setWasShown(!0)),t},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(t){if(!this.isLoadingFromJson){var d=this.getPageByObject(t);if(!(!!t&&!d)&&!(!d&&this.isCurrentPageAvailable)){var v=this.visiblePages;if(!(d!=null&&v.indexOf(d)<0)&&d!=this.currentPage){var E=this.currentPage;!this.currentPageChanging(d,E)||(this.setPropertyValue("currentPage",d),d&&(d.onFirstRendering(),d.updateCustomWidgets(),d.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(d,E))}}}},enumerable:!1,configurable:!0}),l.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(l.prototype,"isCurrentPageAvailable",{get:function(){var t=this.currentPage;return!!t&&this.isPageInVisibleList(t)&&this.isPageExistsInSurvey(t)},enumerable:!1,configurable:!0}),l.prototype.isPageExistsInSurvey=function(t){return this.pages.indexOf(t)>-1?!0:!!this.onContainsPageCallback&&this.onContainsPageCallback(t)},Object.defineProperty(l.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowStartingPage",{get:function(){return this.state==="starting"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowingPage",{get:function(){return this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),l.prototype.updateActivePage=function(){var t=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",t)},l.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},l.prototype.getPageByObject=function(t){if(!t)return null;if(t.getType&&t.getType()=="page")return t;if(typeof t=="string"||t instanceof String)return this.getPageByName(String(t));if(!isNaN(t)){var d=Number(t),v=this.visiblePages;return t<0||t>=v.length?null:v[d]}return t},Object.defineProperty(l.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(t){var d=this.visiblePages;t<0||t>=d.length||(this.currentPage=d[t])},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(t){this.setPropertyValue("questionsOrder",t)},enumerable:!1,configurable:!0}),l.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var t=this.activePage;t&&(t.scrollToTop(),t.focusFirstQuestion())}},l.prototype.scrollToTopOnPageChange=function(t){t===void 0&&(t=!0);var d=this.activePage;!d||(t&&d.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&(d.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(l.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),l.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},l.prototype.calcState=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"},Object.defineProperty(l.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(t){this.setPropertyValue("isCompleted",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(t){this.isShowingPreview!=t&&(this.setPropertyValue("isShowingPreview",t),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(t){this.setPropertyValue("isStartedState",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(t){this.setPropertyValue("isCompletedBefore",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(t){this.setPropertyValue("isLoading",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),l.prototype.setCompletedState=function(t,d){this.setPropertyValue("completedState",t),d||(t=="saving"&&(d=this.getLocalizationString("savingData")),t=="error"&&(d=this.getLocalizationString("savingDataError")),t=="success"&&(d=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",d),this.setPropertyValue("completedStateCss",this.getCompletedStateCss())},l.prototype.clear=function(t,d){t===void 0&&(t=!0),d===void 0&&(d=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.canBeCompletedByTrigger=!1,t&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var v=0;v=1?Math.ceil(t.requiredAnsweredQuestionCount*100/t.requiredQuestionCount):100:t.questionCount>=1?Math.ceil(t.answeredQuestionCount*100/t.questionCount):100}var d=this.visiblePages,v=d.indexOf(this.currentPage)+1;return Math.ceil(v*100/d.length)},Object.defineProperty(l.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var t=this.currentPage;return t?t.navigationButtonsVisibility==="show"?"bottom":t.navigationButtonsVisibility==="hide"?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),l.prototype.getIsNavigationButtonsShowingOn=function(t){var d=this.isNavigationButtonsShowing;return d=="both"||d==t},Object.defineProperty(l.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){return this.mode=="display"||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),l.prototype.setDesignMode=function(t){this._isDesignMode=t,this.onQuestionsOnPageModeChanged("standard")},Object.defineProperty(l.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(t){var d=this.visiblePages;this.setPropertyValue("showInvisibleElements",t),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(d))},enumerable:!1,configurable:!0}),l.prototype.updateAllElementsVisibility=function(t){for(var d=0;d-1!=v.isVisible&&this.onPageVisibleChanged.fire(this,{page:v,visible:v.isVisible})}},Object.defineProperty(l.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&this.showPreviewBeforeComplete=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasCookie",{get:function(){if(!this.cookieName||typeof document>"u")return!1;var t=document.cookie;return t&&t.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),l.prototype.setCookie=function(){!this.cookieName||typeof document>"u"||(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},l.prototype.deleteCookie=function(){!this.cookieName||(document.cookie=this.cookieName+"=;")},l.prototype.nextPage=function(){return this.isLastPage?!1:this.doCurrentPageComplete(!1)},l.prototype.hasErrorsOnNavigate=function(t){var d=this;if(this.ignoreValidation||!this.isEditMode)return!1;var v=function(E){E||d.doCurrentPageCompleteCore(t)};return this.checkErrorsMode==="onComplete"?this.isLastPage?this.hasErrors(!0,!0,v)!==!1:!1:this.hasCurrentPageErrors(v)!==!1},l.prototype.checkForAsyncQuestionValidation=function(t,d){var v=this;this.clearAsyncValidationQuesitons();for(var E=function(){if(t[S].isRunningValidators){var A=t[S];A.onCompletedAsyncValidators=function(L){v.onCompletedAsyncQuestionValidators(A,d,L)},R.asyncValidationQuesitons.push(t[S])}},R=this,S=0;S0},l.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var t=this.asyncValidationQuesitons,d=0;d0)return;t.focus(!0)}return}for(var S=this.asyncValidationQuesitons,A=0;A0){L[A].focus(!0);break}}return S||!v?S:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(k){return v(k)})?void 0:!1},l.prototype.ensureUniqueNames=function(t){if(t===void 0&&(t=null),t==null)for(var d=0;d0&&t[d-1]>="0"&&t[d-1]<="9";)d--;var v=t.substring(0,d),E=0;return d0){v.push(S);for(var A=0;A0&&(t=this.visiblePageCount-1),t!==null&&(this.currentPage=t))},l.prototype.cancelPreviewByPage=function(t){this.cancelPreview(t.originalPage)},l.prototype.doCurrentPageComplete=function(t){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(t))?!1:this.doCurrentPageCompleteCore(t)},l.prototype.doCurrentPageCompleteCore=function(t){return this.doServerValidation(t)?!1:t?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0)},Object.defineProperty(l.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(t){this.questionsOnPageMode=t?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(t){this.setPropertyValue("questionsOnPageMode",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(t){this.setPropertyValue("firstPageIsStarted",t)},enumerable:!1,configurable:!0}),l.prototype.isPageStarted=function(t){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===t},Object.defineProperty(l.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(t){this.setPropertyValue("showPreviewBeforeComplete",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isShowPreviewBeforeComplete",{get:function(){var t=this.showPreviewBeforeComplete;return t=="showAllQuestions"||t=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),l.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},l.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=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},l.prototype.onQuestionsOnPageModeChanged=function(t){this.isShowingPreview||(this.questionsOnPageMode=="standard"||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):((!t||t=="standard")&&(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},l.prototype.restoreOrigionalPages=function(t){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var d=0;d0?1:0},l.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var d=this.getPageStartIndex();x.prototype.startLoadingFromJson.call(this);var v=this.createPagesForQuestionOnPageMode(t,d),E=this.pages.length-d;this.pages.splice(d,E);for(var R=0;R=0;d--)if(this.isPageInVisibleList(t[d]))return t[d];return null},enumerable:!1,configurable:!0}),l.prototype.doComplete=function(t){t===void 0&&(t=!1);var d={allowComplete:!0,isCompleteOnTrigger:t};if(this.onCompleting.fire(this,d),!d.allowComplete)return this.isCompleted=!1,!1;var v=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var E=this,R=!1,S={isCompleteOnTrigger:t,showDataSaving:function(A){R=!0,E.setCompletedState("saving",A)},showDataSavingError:function(A){E.setCompletedState("error",A)},showDataSavingSuccess:function(A){E.setCompletedState("success",A),E.navigateTo()},showDataSavingClear:function(A){E.setCompletedState("","")}};return this.onComplete.fire(this,S),!v&&this.surveyPostId&&this.sendResult(),R||this.navigateTo(),!0},l.prototype.start=function(){return!this.firstPageIsStarted||this.checkIsPageHasErrors(this.startedPage,!0)?!1:(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(l.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),l.prototype.setIsValidatingOnServer=function(t){t!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",t),this.onIsValidatingOnServerChanged())},l.prototype.createServerValidationOptions=function(t,d){var v=this,E={data:{},errors:{},survey:this,complete:function(){v.completeServerValidation(E,d)}};if(t&&this.checkErrorsMode==="onComplete")E.data=this.data;else for(var R=this.activePage.questions,S=0;S1&&(this.serverValidationEventCount--,!!t&&!!t.errors&&Object.keys(t.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!t&&!t.survey))){var v=t.survey,E=!1;if(t.errors){var R=this.focusOnFirstError;for(var S in t.errors){var A=v.getQuestionByName(S);A&&A.errors&&(E=!0,A.addError(new u.CustomError(t.errors[S],this)),R&&(R=!1,A.page&&(this.currentPage=A.page),A.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}E||(d?this.showPreviewCore():v.isLastPage?v.doComplete():v.doNextPage())}},l.prototype.doNextPage=function(){var t=this.currentPage;if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),t===this.currentPage){var d=this.visiblePages,v=d.indexOf(this.currentPage);this.currentPage=d[v+1]}},l.prototype.setCompleted=function(){this.isCompleted=!0},l.prototype.canBeCompleted=function(){!f.settings.changeNavigationButtonsOnCompleteTrigger||this.canBeCompletedByTrigger||(this.canBeCompletedByTrigger=!0,this.updateButtonsVisibility())},Object.defineProperty(l.prototype,"processedCompletedHtml",{get:function(){var t=this.renderedCompletedHtml;return t?this.processHtml(t):""},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"processedCompletedBeforeHtml",{get:function(){return this.processHtml(this.completedBeforeHtml)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"processedLoadingHtml",{get:function(){return this.processHtml(this.loadingHtml)},enumerable:!1,configurable:!0}),l.prototype.getProgressInfo=function(){var t=this.isDesignMode?this.pages:this.visiblePages;return M.SurveyElement.getProgressInfoByElements(t,!1)},Object.defineProperty(l.prototype,"progressText",{get:function(){var t=this.getPropertyValue("progressText","");return t||(this.updateProgressText(),t=this.getPropertyValue("progressText","")),t},enumerable:!1,configurable:!0}),l.prototype.updateProgressText=function(t){t===void 0&&(t=!1),!this.isCalculatingProgressText&&(t&&this.progressBarType=="pages"&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},l.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var t={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},d=this.progressBarType.toLowerCase();if(d==="questions"||d==="requiredquestions"||d==="correctquestions"||!this.onProgressText.isEmpty){var v=this.getProgressInfo();t.questionCount=v.questionCount,t.answeredQuestionCount=v.answeredQuestionCount,t.requiredQuestionCount=v.requiredQuestionCount,t.requiredAnsweredQuestionCount=v.requiredAnsweredQuestionCount}return t.text=this.getProgressTextCore(t),this.onProgressText.fire(this,t),t.text},l.prototype.getProgressTextCore=function(t){var d=this.progressBarType.toLowerCase();if(d==="questions")return this.getLocalizationFormatString("questionsProgressText",t.answeredQuestionCount,t.questionCount);if(d==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",t.requiredAnsweredQuestionCount,t.requiredQuestionCount);if(d==="correctquestions"){var v=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",v,t.questionCount)}var E=this.isDesignMode?this.pages:this.visiblePages,R=E.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",R,E.length)},l.prototype.getRootCss=function(){return new i.CssClassBuilder().append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,this.mode==="display").toString()},l.prototype.afterRenderSurvey=function(t){var d=this;this.destroyResizeObserver(),Array.isArray(t)&&(t=M.SurveyElement.GetFirstNonTextElement(t));var v=t,E=this.css.variables;if(E){var R=Number.parseFloat(window.getComputedStyle(v).getPropertyValue(E.mobileWidth));if(R){var S=!1;this.resizeObserver=new ResizeObserver(function(){S||!Object(o.isContainerVisible)(v)?S=!1:S=d.processResponsiveness(v.offsetWidth,R)}),this.resizeObserver.observe(v)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:t})},l.prototype.processResponsiveness=function(t,d){var v=t=this.pages.length?this.pages.push(t):this.pages.splice(d,0,t))},l.prototype.addNewPage=function(t,d){t===void 0&&(t=null),d===void 0&&(d=-1);var v=this.createNewPage(t);return this.addPage(v,d),v},l.prototype.removePage=function(t){var d=this.pages.indexOf(t);d<0||(this.pages.splice(d,1),this.currentPage==t&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},l.prototype.getQuestionByName=function(t,d){if(d===void 0&&(d=!1),!t)return null;d&&(t=t.toLowerCase());var v=d?this.questionHashes.namesInsensitive:this.questionHashes.names,E=v[t];return E?E[0]:null},l.prototype.getQuestionByValueName=function(t,d){d===void 0&&(d=!1);var v=this.getQuestionsByValueName(t,d);return v?v[0]:null},l.prototype.getQuestionsByValueName=function(t,d){d===void 0&&(d=!1);var v=d?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,E=v[t];return E||null},l.prototype.getCalculatedValueByName=function(t){for(var d=0;d0&&t.push(S)}return t},l.prototype.getPanelByName=function(t,d){d===void 0&&(d=!1);var v=this.getAllPanels();d&&(t=t.toLowerCase());for(var E=0;E0)&&this.checkQuestionErrorOnValueChangedCore(t)},l.prototype.checkQuestionErrorOnValueChangedCore=function(t){var d=t.getAllErrors().length,v=t.hasErrors(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return!!t.page&&(d>0||t.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(t.page),v},l.prototype.checkErrorsOnValueChanging=function(t,d){if(this.isLoadingFromJson)return!1;var v=this.getQuestionsByValueName(t);if(!v)return!1;for(var E=!1,R=0;R0}return E},l.prototype.notifyQuestionOnValueChanged=function(t,d){if(!this.isLoadingFromJson){var v=this.getQuestionsByValueName(t);if(v)for(var E=0;E0||!E.isStarted);E.visibleIndex=R?d++:-1,E.num=R?E.visibleIndex+1:-1}},l.prototype.fromJSON=function(t){if(!!t){this.questionHashesClear(),this.jsonErrors=null;var d=new C.JsonObject;d.toObject(t,this),d.errors.length>0&&(this.jsonErrors=d.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},l.prototype.setJsonObject=function(t){this.fromJSON(t)},l.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),x.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},l.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},l.prototype.updateNavigationBarCss=function(){var t=this.navigationBar;t.cssClasses=this.css.actionBar,t.containerCss=this.css.footer},l.prototype.createNavigationBar=function(){var t=new n.ActionContainer;return t.setItems(this.createNavigationActions()),t},l.prototype.createNavigationActions=function(){var t=this,d="sv-nav-btn",v=new r.Action({id:"sv-nav-start",visible:new I.ComputedUpdater(function(){return t.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return t.start()},component:d}),E=new r.Action({id:"sv-nav-prev",visible:new I.ComputedUpdater(function(){return t.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return t.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return t.prevPage()},component:d}),R=new r.Action({id:"sv-nav-next",visible:new I.ComputedUpdater(function(){return t.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return t.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return t.nextPageUIClick()},component:d}),S=new r.Action({id:"sv-nav-preview",visible:new I.ComputedUpdater(function(){return t.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return t.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return t.showPreview()},component:d}),A=new r.Action({id:"sv-nav-complete",visible:new I.ComputedUpdater(function(){return t.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return t.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return t.completeLastPage()},component:d});return this.updateNavigationItemCssCallback=function(){v.innerCss=t.cssNavigationStart,E.innerCss=t.cssNavigationPrev,R.innerCss=t.cssNavigationNext,S.innerCss=t.cssNavigationPreview,A.innerCss=t.cssNavigationComplete},[v,E,R,S,A]},l.prototype.onBeforeCreating=function(){},l.prototype.onCreating=function(){},l.prototype.getProcessedTextValue=function(t){if(this.getProcessedTextValueCore(t),!this.onProcessTextValue.isEmpty){var d=this.isValueEmpty(t.value);this.onProcessTextValue.fire(this,t),t.isExists=t.isExists||d&&!this.isValueEmpty(t.value)}},l.prototype.getBuiltInVariableValue=function(t){if(t==="pageno"){var d=this.currentPage;return d!=null?this.visiblePages.indexOf(d)+1:0}if(t==="pagecount")return this.visiblePageCount;if(t==="correctedanswers"||t==="correctanswers"||t==="correctedanswercount")return this.getCorrectedAnswerCount();if(t==="incorrectedanswers"||t==="incorrectanswers"||t==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(t==="questioncount")return this.getQuizQuestionCount()},l.prototype.getProcessedTextValueCore=function(t){var d=t.name.toLocaleLowerCase();if(["no","require","title"].indexOf(d)===-1){var v=this.getBuiltInVariableValue(d);if(v!==void 0){t.isExists=!0,t.value=v;return}if(d==="locale"){t.isExists=!0,t.value=this.locale?this.locale:p.surveyLocalization.defaultLocale;return}var E=this.getVariable(d);if(E!==void 0){t.isExists=!0,t.value=E;return}var R=this.getFirstName(d);if(R){t.isExists=!0;var S=R.getValueName().toLowerCase();d=S+d.substring(S.length),d=d.toLocaleLowerCase();var A={};A[S]=t.returnDisplayValue?R.getDisplayValue(!1,void 0):R.value,t.value=new P.ProcessValue().getValue(d,A);return}this.getProcessedValuesWithoutQuestion(t)}},l.prototype.getProcessedValuesWithoutQuestion=function(t){var d=this.getValue(t.name);if(d!==void 0){t.isExists=!0,t.value=d;return}var v=new P.ProcessValue,E=v.getFirstName(t.name);if(E!==t.name){var R={},S=this.getValue(E);b.Helpers.isValueEmpty(S)&&(S=this.getVariable(E)),!b.Helpers.isValueEmpty(S)&&(R[E]=S,t.value=v.getValue(t.name,R),t.isExists=v.hasValue(t.name,R))}},l.prototype.getFirstName=function(t){t=t.toLowerCase();var d;do d=this.getQuestionByValueName(t,!0),t=this.reduceFirstName(t);while(!d&&!!t);return d},l.prototype.reduceFirstName=function(t){var d=t.lastIndexOf("."),v=t.lastIndexOf("[");if(d<0&&v<0)return"";var E=Math.max(d,v);return t.substring(0,E)},l.prototype.clearUnusedValues=function(){for(var t=this.getAllQuestions(),d=0;d-1||t.indexOf("[")>-1)&&new P.ProcessValue().hasValue(t,this.variablesHash)?new P.ProcessValue().getValue(t,this.variablesHash):d},l.prototype.setVariable=function(t,d){!t||(t=t.toLowerCase(),this.variablesHash[t]=d,this.notifyElementsOnAnyValueOrVariableChanged(t),this.runConditionOnValueChanged(t,d),this.onVariableChanged.fire(this,{name:t,value:d}))},l.prototype.getVariableNames=function(){var t=[];for(var d in this.variablesHash)t.push(d);return t},l.prototype.getUnbindValue=function(t){return this.editingObj?t:b.Helpers.getUnbindValue(t)},l.prototype.getValue=function(t){if(!t||t.length==0)return null;var d=this.getDataValueCore(this.valuesHash,t);return this.getUnbindValue(d)},l.prototype.setValue=function(t,d,v,E){v===void 0&&(v=!1),E===void 0&&(E=!0);var R=d;if(E&&(R=this.questionOnValueChanging(t,d)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(t,R))&&!(!this.editingObj&&this.isValueEqual(t,R)&&this.isTwoValueEquals(R,d))){var S=this.getValue(t);this.isValueEmpty(R)?this.deleteDataValueCore(this.valuesHash,t):(R=this.getUnbindValue(R),this.setDataValueCore(this.valuesHash,t,R)),this.updateOnSetValue(t,R,S,v,E)}},l.prototype.updateOnSetValue=function(t,d,v,E,R){if(E===void 0&&(E=!1),R===void 0&&(R=!0),this.updateQuestionValue(t,d),!(E===!0||this.isDisposed||this.isRunningElementsBindings)){var S={};S[t]={newValue:d,oldValue:v},this.runConditionOnValueChanged(t,d),this.checkTriggers(S,!1),R&&this.notifyQuestionOnValueChanged(t,d),E!=="text"&&this.tryGoNextPageAutomatic(t)}},l.prototype.isValueEqual=function(t,d){(d===""||d===void 0)&&(d=null);var v=this.getValue(t);return(v===""||v===void 0)&&(v=null),d===null||v===null?d===v:this.isTwoValueEquals(d,v)},l.prototype.doOnPageAdded=function(t){t.setSurveyImpl(this),t.name||(t.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(t),this.updateVisibleIndexes(),this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var d={page:t};this.onPageAdded.fire(this,d)},l.prototype.doOnPageRemoved=function(t){t.setSurveyImpl(null),t===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},l.prototype.generateNewName=function(t,d){for(var v={},E=0;E-1&&E.splice(R,1),E.length==0&&delete t[v]}},l.prototype.panelAdded=function(t,d,v,E){t.name||(t.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(t),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:t,name:t.name,index:d,parentPanel:v,rootPanel:E})},l.prototype.panelRemoved=function(t){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:t,name:t.name}),this.updateLazyRenderingRowsOnRemovingElements()},l.prototype.validateQuestion=function(t){if(this.onValidateQuestion.isEmpty)return null;var d={name:t.name,question:t,value:t.value,error:null};return this.onValidateQuestion.fire(this,d),d.error?new u.CustomError(d.error,this):null},l.prototype.validatePanel=function(t){if(this.onValidatePanel.isEmpty)return null;var d={name:t.name,panel:t,error:null};return this.onValidatePanel.fire(this,d),d.error?new u.CustomError(d.error,this):null},l.prototype.processHtml=function(t){var d={html:t};return this.onProcessHtml.fire(this,d),this.processText(d.html,!0)},l.prototype.processText=function(t,d){return this.processTextEx(t,d,!1).text},l.prototype.processTextEx=function(t,d,v){var E={text:this.processTextCore(t,d,v),hasAllValuesOnLastRun:!0};return E.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,E},l.prototype.processTextCore=function(t,d,v){return v===void 0&&(v=!1),this.isDesignMode?t:this.textPreProcessor.process(t,d,v)},l.prototype.getSurveyMarkdownHtml=function(t,d,v){var E={element:t,text:d,name:v,html:null};return this.onTextMarkdown.fire(this,E),E.html},l.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},l.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},l.prototype.getQuizQuestionCount=function(){for(var t=this.getQuizQuestions(),d=0,v=0;v0&&this.maxTimeToFinish>0)return this.getLocalizationFormatString("timerLimitAll",d,R,v,S);var A=this.getTimerInfoPageText(t,d,R),L=this.getTimerInfoSurveyText(v,S);return A+" "+L}return""},l.prototype.getTimerInfoPageText=function(t,d,v){return this.getPageMaxTimeToFinish(t)>0?this.getLocalizationFormatString("timerLimitPage",d,v):this.getLocalizationFormatString("timerSpentPage",d,v)},l.prototype.getTimerInfoSurveyText=function(t,d){var v=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(v,t,d)},l.prototype.getDisplayTime=function(t){var d=Math.floor(t/60),v=t%60,E="";return d>0&&(E+=d+" "+this.getLocalizationString("timerMin")),E&&v==0?E:(E&&(E+=" "),E+v+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(l.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),l.prototype.startTimer=function(){this.timerModel.start()},l.prototype.startTimerFromUI=function(){this.showTimerPanel!="none"&&this.state==="running"&&this.startTimer()},l.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(l.prototype,"timeSpent",{get:function(){return this.timerModel.spent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(t){this.setPropertyValue("maxTimeToFinish",t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(t){this.setPropertyValue("maxTimeToFinishPage",t)},enumerable:!1,configurable:!0}),l.prototype.getPageMaxTimeToFinish=function(t){return!t||t.maxTimeToFinish<0?0:t.maxTimeToFinish>0?t.maxTimeToFinish:this.maxTimeToFinishPage},l.prototype.doTimer=function(t){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),t){var d=this.getPageMaxTimeToFinish(t);d>0&&d==t.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(l.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.getSurveyData=function(){return this},l.prototype.getSurvey=function(){return this},l.prototype.getTextProcessor=function(){return this},l.prototype.getObjects=function(t,d){var v=[];return Array.prototype.push.apply(v,this.getPagesByNames(t)),Array.prototype.push.apply(v,this.getQuestionsByNames(d)),v},l.prototype.setTriggerValue=function(t,d,v){if(!!t)if(v)this.setVariable(t,d);else{var E=this.getQuestionByName(t);if(E)E.value=d;else{var R=new P.ProcessValue,S=R.getFirstName(t);if(S==t)this.setValue(t,d);else{if(!this.getQuestionByName(S))return;var A=this.getUnbindValue(this.getFilteredValues());R.setValue(A,t,d),this.setValue(S,A[S])}}}},l.prototype.copyTriggerValue=function(t,d){if(!(!t||!d)){var v=new P.ProcessValue,E=v.getValue(d,this.getFilteredValues());this.setTriggerValue(t,E,!1)}},l.prototype.triggerExecuted=function(t){this.onTriggerExecuted.fire(this,{trigger:t})},l.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},l.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},l.prototype.focusQuestion=function(t){var d=this.getQuestionByName(t,!0);return!d||!d.isVisible||!d.page?!1:(this.isFocusingQuestion=!0,this.currentPage=d.page,d.focus(),this.isFocusingQuestion=!1,this.isCurrentPageRendering=!1,!0)},l.prototype.getElementWrapperComponentName=function(t,d){return d==="logo-image"?"sv-logo-image":l.TemplateRendererComponentName},l.prototype.getQuestionContentWrapperComponentName=function(t){return l.TemplateRendererComponentName},l.prototype.getRowWrapperComponentName=function(t){return l.TemplateRendererComponentName},l.prototype.getElementWrapperComponentData=function(t,d){return t},l.prototype.getRowWrapperComponentData=function(t){return t},l.prototype.getItemValueWrapperComponentName=function(t,d){return l.TemplateRendererComponentName},l.prototype.getItemValueWrapperComponentData=function(t,d){return t},l.prototype.getMatrixCellTemplateData=function(t){return t.question},l.prototype.searchText=function(t){t&&(t=t.toLowerCase());for(var d=[],v=0;v=this.survey.visiblePages.length))return new b.CssClassBuilder().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[M].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===M).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(M)).toString()},I.prototype.getScrollButtonCss=function(M,T){return new b.CssClassBuilder().append(this.survey.css.progressButtonsImageButtonLeft,T).append(this.survey.css.progressButtonsImageButtonRight,!T).append(this.survey.css.progressButtonsImageButtonHidden,!M).toString()},I.prototype.clickListElement=function(M){if(!this.survey.isDesignMode){if(Mthis.survey.currentPageNo)for(var T=this.survey.currentPageNo;T-1)return this.getString(M,T.substring(0,a));P=this.locales[this.defaultLocale];var p=P[M];return p===void 0&&(p=this.locales.en[M]),p===void 0?this.onGetExternalString(M,V):p},getLocales:function(M){M===void 0&&(M=!1);var T=[];T.push("");var V=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){V={};for(var P=0;P=0;h--)(g=P[h])&&(e=(s<3?g(e):s>3?g(a,p,e):g(a,p))||e);return s>3&&e&&Object.defineProperty(a,p,e),e},V=function(P){M(a,P);function a(p){var u=P.call(this)||this;return u.timerFunc=null,u.surveyValue=p,u.onCreating(),u}return Object.defineProperty(a.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),a.prototype.onCreating=function(){},a.prototype.start=function(){var p=this;!this.survey||this.isRunning||this.isDesignMode||(this.timerFunc=function(){p.doTimer()},this.setIsRunning(!0),this.updateText(),C.SurveyTimer.instance.start(this.timerFunc))},a.prototype.stop=function(){!this.isRunning||(this.setIsRunning(!1),C.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(a.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),a.prototype.setIsRunning=function(p){this.setPropertyValue("isRunning",p)},a.prototype.doTimer=function(){var p=this.survey.currentPage;p&&(p.timeSpent=p.timeSpent+1),this.spent=this.spent+1,this.updateText(),this.onTimer&&this.onTimer(p)},a.prototype.updateText=function(){this.text=this.survey.timerInfoText},T([Object(I.property)()],a.prototype,"text",void 0),T([Object(I.property)({defaultValue:0})],a.prototype,"spent",void 0),a}(b.Base)},"./src/surveytimer.ts":function(D,y,c){c.r(y),c.d(y,"surveyTimerFunctions",function(){return C}),c.d(y,"SurveyTimer",function(){return I});var b=c("./src/base.ts"),C={setTimeout:function(M){return typeof window>"u"?0:window.setTimeout(M,1e3)},clearTimeout:function(M){typeof window>"u"||window.clearTimeout(M)}},I=function(){function M(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new b.Event}return Object.defineProperty(M,"instance",{get:function(){return M.instanceValue||(M.instanceValue=new M),M.instanceValue},enumerable:!1,configurable:!0}),M.prototype.start=function(T){var V=this;T===void 0&&(T=null),T&&this.onTimer.add(T),this.timerId<0&&(this.timerId=C.setTimeout(function(){V.doTimer()})),this.listenerCounter++},M.prototype.stop=function(T){T===void 0&&(T=null),T&&this.onTimer.remove(T),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(C.clearTimeout(this.timerId),this.timerId=-1)},M.prototype.doTimer=function(){var T=this;if((this.onTimer.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var V=this.timerId;this.onTimer.fire(this,{}),V===this.timerId&&(this.timerId=C.setTimeout(function(){T.doTimer()}))}},M.instanceValue=null,M}()},"./src/svgbundle.ts":function(D,y,c){c.r(y),c.d(y,"SvgIconRegistry",function(){return b}),c.d(y,"SvgRegistry",function(){return C}),c.d(y,"SvgBundleViewModel",function(){return I});var b=function(){function T(){this.icons={},this.iconPrefix="icon-"}return T.prototype.registerIconFromSymbol=function(V,P){this.icons[V]=P},T.prototype.registerIconFromSvgViaElement=function(V,P,a){a===void 0&&(a=this.iconPrefix);var p=document.createElement("div");p.innerHTML=P;var u=document.createElement("symbol"),s=p.querySelector("svg");u.innerHTML=s.innerHTML;for(var e=0;e"),!0):!1},T.prototype.registerIconsFromFolder=function(V){var P=this;V.keys().forEach(function(a){P.registerIconFromSvg(a.substring(2,a.length-4).toLowerCase(),V(a))})},T.prototype.iconsRenderedHtml=function(){var V=this;return Object.keys(this.icons).map(function(P){return V.icons[P]}).join("")},T.prototype.renderIcons=function(){var V="sv-icon-holder-global-container";if(!document.getElementById(V)){var P=document.createElement("div");P.id=V,P.innerHTML=""+this.iconsRenderedHtml()+"",P.style.display="none",document.head.insertBefore(P,document.head.firstChild)}},T}(),C=new b,I,M=c("./src/images sync \\.svg$");C.registerIconsFromFolder(M)},"./src/template-renderer.ts":function(D,y,c){c.r(y)},"./src/textPreProcessor.ts":function(D,y,c){c.r(y),c.d(y,"TextPreProcessorItem",function(){return I}),c.d(y,"TextPreProcessorValue",function(){return M}),c.d(y,"TextPreProcessor",function(){return T}),c.d(y,"QuestionTextProcessor",function(){return V});var b=c("./src/helpers.ts"),C=c("./src/conditionProcessValue.ts"),I=function(){function P(){}return P}(),M=function(){function P(a,p){this.name=a,this.returnDisplayValue=p,this.isExists=!1,this.canProcess=!0}return P}(),T=function(){function P(){this._unObservableValues=[void 0]}return Object.defineProperty(P.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(a){this._unObservableValues[0]=a},enumerable:!1,configurable:!0}),P.prototype.process=function(a,p,u){if(p===void 0&&(p=!1),u===void 0&&(u=!1),this.hasAllValuesOnLastRunValue=!0,!a||!this.onProcess)return a;for(var s=this.getItems(a),e=s.length-1;e>=0;e--){var g=s[e],h=this.getName(a.substring(g.start+1,g.end));if(!!h){var f=new M(h,p);if(this.onProcess(f),!f.isExists){f.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}b.Helpers.isValueEmpty(f.value)&&(this.hasAllValuesOnLastRunValue=!1);var o=b.Helpers.isValueEmpty(f.value)?"":f.value;u&&(o=encodeURIComponent(o)),a=a.substring(0,g.start)+o+a.substring(g.end+1)}}return a},P.prototype.processValue=function(a,p){var u=new M(a,p);return this.onProcess&&this.onProcess(u),u},Object.defineProperty(P.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),P.prototype.getItems=function(a){for(var p=[],u=a.length,s=-1,e="",g=0;g-1){var h=new I;h.start=s,h.end=g,p.push(h)}s=-1}return p},P.prototype.getName=function(a){if(!!a)return a.trim()},P}(),V=function(){function P(a){var p=this;this.variableName=a,this.textPreProcessor=new T,this.textPreProcessor.onProcess=function(u){p.getProcessedTextValue(u)}}return P.prototype.processValue=function(a,p){return this.textPreProcessor.processValue(a,p)},Object.defineProperty(P.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),P.prototype.getValues=function(){return this.panel?this.panel.getValue():null},P.prototype.getQuestionByName=function(a){return this.panel?this.panel.getQuestionByValueName(a):null},P.prototype.getParentTextProcessor=function(){return null},P.prototype.onCustomProcessText=function(a){return!1},P.prototype.getQuestionDisplayText=function(a){return a.displayValue},P.prototype.getProcessedTextValue=function(a){if(!!a&&!this.onCustomProcessText(a)){var p=new C.ProcessValue().getFirstName(a.name);if(a.isExists=p==this.variableName,a.canProcess=a.isExists,!!a.canProcess){a.name=a.name.replace(this.variableName+".","");var p=new C.ProcessValue().getFirstName(a.name),u=this.getQuestionByName(p),s={};if(u)s[p]=a.returnDisplayValue?this.getQuestionDisplayText(u):u.value;else{var e=this.panel?this.getValues():null;e&&(s[p]=e[p])}a.value=new C.ProcessValue().getValue(a.name,s)}}},P.prototype.processText=function(a,p){return this.survey&&this.survey.isDesignMode?a:(a=this.textPreProcessor.process(a,p),a=this.processTextCore(this.getParentTextProcessor(),a,p),this.processTextCore(this.survey,a,p))},P.prototype.processTextEx=function(a,p){a=this.processText(a,p);var u=this.textPreProcessor.hasAllValuesOnLastRun,s={hasAllValuesOnLastRun:!0,text:a};return this.survey&&(s=this.survey.processTextEx(a,p,!1)),s.hasAllValuesOnLastRun=s.hasAllValuesOnLastRun&&u,s},P.prototype.processTextCore=function(a,p,u){return a?a.processText(p,u):p},P}()},"./src/trigger.ts":function(D,y,c){c.r(y),c.d(y,"Trigger",function(){return p}),c.d(y,"SurveyTrigger",function(){return u}),c.d(y,"SurveyTriggerVisible",function(){return s}),c.d(y,"SurveyTriggerComplete",function(){return e}),c.d(y,"SurveyTriggerSetValue",function(){return g}),c.d(y,"SurveyTriggerSkip",function(){return h}),c.d(y,"SurveyTriggerRunExpression",function(){return f}),c.d(y,"SurveyTriggerCopyValue",function(){return o});var b=c("./src/helpers.ts"),C=c("./src/base.ts"),I=c("./src/jsonobject.ts"),M=c("./src/conditions.ts"),T=c("./src/expressions/expressions.ts"),V=c("./src/conditionProcessValue.ts"),P=c("./src/settings.ts"),a=function(){var r=function(n,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,O){m.__proto__=O}||function(m,O){for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(m[w]=O[w])},r(n,i)};return function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(n,i);function m(){this.constructor=n}n.prototype=i===null?Object.create(i):(m.prototype=i.prototype,new m)}}(),p=function(r){a(n,r);function n(){var i=r.call(this)||this;return i.usedNames=[],i.registerPropertyChangedHandlers(["operator","value","name"],function(){i.oldPropertiesChanged()}),i.registerPropertyChangedHandlers(["expression"],function(){i.onExpressionChanged()}),i}return Object.defineProperty(n,"operators",{get:function(){return n.operatorsValue!=null||(n.operatorsValue={empty:function(i,m){return!i},notempty:function(i,m){return!!i},equal:function(i,m){return i==m},notequal:function(i,m){return i!=m},contains:function(i,m){return i&&i.indexOf&&i.indexOf(m)>-1},notcontains:function(i,m){return!i||!i.indexOf||i.indexOf(m)==-1},greater:function(i,m){return i>m},less:function(i,m){return i=m},lessorequal:function(i,m){return i<=m}}),n.operatorsValue},enumerable:!1,configurable:!0}),n.prototype.getType=function(){return"triggerbase"},n.prototype.toString=function(){var i=this.getType().replace("trigger",""),m=this.expression?this.expression:this.buildExpression();return m&&(i+=", "+m),i},Object.defineProperty(n.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(i){!i||(i=i.toLowerCase(),n.operators[i]&&this.setPropertyValue("operator",i))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(i){this.setPropertyValue("value",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(i){this.setPropertyValue("name",i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(i){this.setPropertyValue("expression",i)},enumerable:!1,configurable:!0}),n.prototype.canBeExecuted=function(i){return!0},n.prototype.checkExpression=function(i,m,O,w){w===void 0&&(w=null),this.isExecutingOnNextPage=i,this.canBeExecuted(i)&&(!this.isCheckRequired(m)||this.conditionRunner&&this.perform(O,w))},n.prototype.check=function(i){var m=n.operators[this.operator](i,this.value);m?this.onSuccess({},null):this.onFailure()},n.prototype.perform=function(i,m){var O=this;this.conditionRunner.onRunComplete=function(w){O.triggerResult(w,i,m)},this.conditionRunner.run(i,m)},n.prototype.triggerResult=function(i,m,O){i?(this.onSuccess(m,O),this.onSuccessExecuted()):this.onFailure()},n.prototype.onSuccess=function(i,m){},n.prototype.onFailure=function(){},n.prototype.onSuccessExecuted=function(){},n.prototype.endLoadingFromJson=function(){r.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},n.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},n.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},n.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+T.OperandMaker.toOperandString(this.value)},n.prototype.isCheckRequired=function(i){if(!i)return!1;if(this.buildUsedNames(),this.hasFunction===!0)return!0;for(var m=new V.ProcessValue,O=0;O0||navigator.platform==="iPad"||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(P)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(P.substring(0,4)))&&(b=!0)}(C);var I=!1,M=b||I,T=!1;typeof window<"u"&&(T="ontouchstart"in window||navigator.maxTouchPoints>0);var V=M&&T},"./src/utils/dragOrClickHelper.ts":function(D,y,c){c.r(y),c.d(y,"DragOrClickHelper",function(){return C});var b=c("./src/entries/core.ts"),C=function(){function I(M){var T=this;this.dragHandler=M,this.onPointerUp=function(V){T.clearListeners()},this.tryToStartDrag=function(V){if(T.currentX=V.pageX,T.currentY=V.pageY,!T.isMicroMovement)return T.clearListeners(),T.dragHandler(T.pointerDownEvent,T.currentTarget,T.itemModel),!0}}return I.prototype.onPointerDown=function(M,T){if(b.IsTouch){this.dragHandler(M,M.currentTarget,T);return}this.pointerDownEvent=M,this.currentTarget=M.currentTarget,this.startX=M.pageX,this.startY=M.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=T},Object.defineProperty(I.prototype,"isMicroMovement",{get:function(){var M=10,T=Math.abs(this.currentX-this.startX),V=Math.abs(this.currentY-this.startY);return TT){var P=Math.min(M,T-I-C.bottomIndent);V={height:P,top:I}}return V},C.updateHorizontalDimensions=function(I,M,T,V,P,a){P===void 0&&(P="flex"),a===void 0&&(a={left:0,right:0}),M+=a.left+a.right;var p=void 0,u=I;return V==="center"&&(P==="fixed"?(I+M>T&&(p=T-I),u-=a.left):I<0?(u=a.left,p=Math.min(M,T)):M+I>T&&(u=T-M,u=Math.max(u,a.left),p=Math.min(M,T))),V==="left"&&I<0&&(u=a.left,p=Math.min(M,T)),V==="right"&&M+I>T&&(p=T-I),{width:p-a.left-a.right,left:u}},C.updateVerticalPosition=function(I,M,T,V,P){var a=M-(I.top+(V?I.height:0)),p=M+I.bottom-(V?I.height:0)-P;return a>0&&p<=0&&T=="top"?T="bottom":p>0&&a<=0&&T=="bottom"?T="top":p>0&&a>0&&(T=a"u")return!1;var E=window.navigator.userAgent,R=E.indexOf("MSIE "),S=E.indexOf("Trident/");return R>-1||S>-1}function T(){if(typeof window>"u")return!1;if(typeof T.isIEOrEdge>"u"){var E=window.navigator.userAgent,R=E.indexOf("MSIE "),S=E.indexOf("Trident/"),A=E.indexOf("Edge/");T.isIEOrEdge=A>0||S>0||R>0}return T.isIEOrEdge}function V(E,R){try{for(var S=atob(E.split(",")[1]),A=E.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(S.length),k=new Uint8Array(L),N=0;N"u")return!1;var S=E.getBoundingClientRect(),A=Math.max(document.documentElement.clientHeight,window.innerHeight),L=-R,k=A+R,N=S.top,W=S.bottom,U=Math.max(L,N),J=Math.min(k,W);return U<=J}function p(E){return E?E.scrollHeight>E.clientHeight&&(getComputedStyle(E).overflowY==="scroll"||getComputedStyle(E).overflowY==="auto")||E.scrollWidth>E.clientWidth&&(getComputedStyle(E).overflowX==="scroll"||getComputedStyle(E).overflowX==="auto")?E:p(E.parentElement):document.documentElement}function u(E){if(!!document){var R=document.getElementById(E);if(!!R){var S=p(R);S&&S.dispatchEvent(new CustomEvent("scroll"))}}}function s(E){if(!E)return E;var R=b.settings.customIcons[E];return R||E}function e(E,R,S,A,L,k){if(!!L){E!=="auto"&&(L.style.width=(E||R||16)+"px",L.style.height=(E||S||16)+"px");var N=L.childNodes[0],W=s(A);N.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+W);var U=L.getElementsByTagName("title")[0];if(k)U=document.createElementNS("http://www.w3.org/2000/svg","title"),L.appendChild(U);else{U&&L.removeChild(U);return}U.textContent=k}}function g(E){return typeof E!="function"?E:E()}function h(E){if(typeof E=="number")return""+E+"px";if(!!E&&typeof E=="string"&&E.length>0){var R=E[E.length-1];if(R>="0"&&R<="9"||R==".")try{var S=parseFloat(E);return""+S+"px"}catch{}}return E}var f="sv-focused--by-key";function o(E){var R=E.target;!R||!R.classList||R.classList.remove(f)}function r(E,R){if(!(!!E.target&&E.target.contentEditable==="true")){var S=E.target;if(!!S){var A=E.which||E.keyCode;A===9?!!S.classList&&!S.classList.contains(f)&&S.classList.add(f):A===13||A===32?S.click&&S.click():(!R||R.processEsc)&&A===27&&S.blur&&S.blur()}}}function n(E,R){if(R===void 0&&(R={processEsc:!0}),!(!!E.target&&E.target.contentEditable==="true")){var S=E.which||E.keyCode,A=[13,32];R.processEsc&&A.push(27),A.indexOf(S)!==-1&&E.preventDefault()}}function i(E,R){if(!!E){R||(R=function(A){return window.getComputedStyle(A)});var S=R(E);E.style.height="auto",E.style.height=E.scrollHeight+parseFloat(S.borderTopWidth)+parseFloat(S.borderBottomWidth)+"px"}}function m(E){return E.originalEvent||E}function O(E){E.preventDefault(),E.stopPropagation()}function w(E){var R=/\s*?([\w-]+)\s*?/g;return E.replace(R,".$1")}function x(E){return getComputedStyle?Number.parseFloat(getComputedStyle(E).width):E.offsetWidth}function l(E){return!!(E.offsetWidth||E.offsetHeight||E.getClientRects().length)}function t(E,R){if(E)return R.every(function(S){return!S||E.classList.contains(S)})?E:t(E.parentElement,R)}function d(E){if(window.getSelection&&document.createRange&&E.childNodes.length>0){var R=document.getSelection(),S=R.getRangeAt(0);S.setStart(S.endContainer,S.endOffset),S.setEndAfter(E.lastChild),R.removeAllRanges(),R.addRange(S);var A=R.toString().replace(/\n/g,"").length;E.innerText=E.innerText.replace(/\n/g,""),S=document.createRange(),S.setStart(E.childNodes[0],E.innerText.length-A),S.collapse(!0),R.removeAllRanges(),R.addRange(S)}}function v(E,R){if(!(!R||!E)&&typeof R=="object")for(var S in E){var A=E[S];A&&typeof A=="object"?((!R[S]||typeof R[S]!="object")&&(R[S]={}),v(A,R[S])):R[S]=A}}},"./src/validator.ts":function(D,y,c){c.r(y),c.d(y,"ValidatorResult",function(){return P}),c.d(y,"SurveyValidator",function(){return a}),c.d(y,"ValidatorRunner",function(){return p}),c.d(y,"NumericValidator",function(){return u}),c.d(y,"TextValidator",function(){return s}),c.d(y,"AnswerCountValidator",function(){return e}),c.d(y,"RegexValidator",function(){return g}),c.d(y,"EmailValidator",function(){return h}),c.d(y,"ExpressionValidator",function(){return f});var b=c("./src/base.ts"),C=c("./src/error.ts"),I=c("./src/jsonobject.ts"),M=c("./src/conditions.ts"),T=c("./src/helpers.ts"),V=function(){var o=function(r,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(i[O]=m[O])},o(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");o(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(){function o(r,n){n===void 0&&(n=null),this.value=r,this.error=n}return o}(),a=function(o){V(r,o);function r(){var n=o.call(this)||this;return n.createLocalizableString("text",n,!0),n}return r.prototype.getSurvey=function(n){return!!this.errorOwner&&!!this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(r.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(n){this.setLocalizableStringText("text",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),r.prototype.getErrorText=function(n){return this.text?this.text:this.getDefaultErrorText(n)},r.prototype.getDefaultErrorText=function(n){return""},r.prototype.validate=function(n,i,m,O){return null},Object.defineProperty(r.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},r.prototype.getMarkdownHtml=function(n,i){return this.errorOwner?this.errorOwner.getMarkdownHtml(n,i):void 0},r.prototype.getRenderer=function(n){return this.errorOwner?this.errorOwner.getRenderer(n):null},r.prototype.getRendererContext=function(n){return this.errorOwner?this.errorOwner.getRendererContext(n):n},r.prototype.getProcessedText=function(n){return this.errorOwner?this.errorOwner.getProcessedText(n):n},r.prototype.createCustomError=function(n){var i=this,m=new C.CustomError(this.getErrorText(n),this.errorOwner);return m.onUpdateErrorTextCallback=function(O){return O.text=i.getErrorText(n)},m},r.prototype.toString=function(){var n=this.getType().replace("validator","");return this.text&&(n+=", "+this.text),n},r}(b.Base),p=function(){function o(){}return o.prototype.run=function(r){var n=this,i=[],m=null,O=null;this.prepareAsyncValidators();for(var w=[],x=r.getValidators(),l=0;lw.value?(w.error=this.createCustomError(i),w):this.maxValue!==null&&this.maxValue0&&n.length0&&n.length>this.maxLength?new P(null,this.createCustomError(i)):null},r.prototype.getDefaultErrorText=function(n){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(r.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(n){this.setPropertyValue("minLength",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(n){this.setPropertyValue("maxLength",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(n){this.setPropertyValue("allowDigits",n)},enumerable:!1,configurable:!0}),r}(a),e=function(o){V(r,o);function r(n,i){n===void 0&&(n=null),i===void 0&&(i=null);var m=o.call(this)||this;return m.minCount=n,m.maxCount=i,m}return r.prototype.getType=function(){return"answercountvalidator"},r.prototype.validate=function(n,i,m,O){if(n==null||n.constructor!=Array)return null;var w=n.length;return w==0?null:this.minCount&&wthis.maxCount?new P(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},r.prototype.getDefaultErrorText=function(n){return n},Object.defineProperty(r.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(n){this.setPropertyValue("minCount",n)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(n){this.setPropertyValue("maxCount",n)},enumerable:!1,configurable:!0}),r}(a),g=function(o){V(r,o);function r(n){n===void 0&&(n=null);var i=o.call(this)||this;return i.regex=n,i}return r.prototype.getType=function(){return"regexvalidator"},r.prototype.validate=function(n,i,m,O){if(i===void 0&&(i=null),!this.regex||this.isValueEmpty(n))return null;var w=new RegExp(this.regex);if(Array.isArray(n))for(var x=0;x()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,n}return r.prototype.getType=function(){return"emailvalidator"},r.prototype.validate=function(n,i,m,O){return i===void 0&&(i=null),!n||this.re.test(n)?null:new P(n,this.createCustomError(i))},r.prototype.getDefaultErrorText=function(n){return this.getLocalizationString("invalidEmail")},r}(a),f=function(o){V(r,o);function r(n){n===void 0&&(n=null);var i=o.call(this)||this;return i.conditionRunner=null,i.isRunningValue=!1,i.expression=n,i}return r.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(r.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isAsync",{get:function(){return this.ensureConditionRunner()?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),r.prototype.validate=function(n,i,m,O){var w=this;if(i===void 0&&(i=null),m===void 0&&(m=null),O===void 0&&(O=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(l){w.isRunningValue=!1,w.onAsyncCompleted&&w.onAsyncCompleted(w.generateError(l,n,i))},this.isRunningValue=!0;var x=this.conditionRunner.run(m,O);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(x,n,i))},r.prototype.generateError=function(n,i,m){return n?null:new P(i,this.createCustomError(m))},r.prototype.getDefaultErrorText=function(n){return this.getLocalizationFormatString("invalidExpression",this.expression)},r.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):this.expression?(this.conditionRunner=new M.ConditionRunner(this.expression),!0):!1},Object.defineProperty(r.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(n){this.setPropertyValue("expression",n)},enumerable:!1,configurable:!0}),r}(a);I.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),I.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new u},"surveyvalidator"),I.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new s},"surveyvalidator"),I.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new e},"surveyvalidator"),I.Serializer.addClass("regexvalidator",["regex"],function(){return new g},"surveyvalidator"),I.Serializer.addClass("emailvalidator",[],function(){return new h},"surveyvalidator"),I.Serializer.addClass("expressionvalidator",["expression:condition"],function(){return new f},"surveyvalidator")}})})}(cn)),cn.exports}var Ye=jo(),No={exports:{}},Tt={exports:{}};/*! + * Knockout JavaScript library v3.5.1 + * (c) The Knockout.js team - http://knockoutjs.com/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */var Po;function Xi(){return Po||(Po=1,function(z,F){(function(){(function(D){var y=this||(0,eval)("this"),c=y.document,b=y.navigator,C=y.jQuery,I=y.JSON;C||typeof jQuery>"u"||(C=jQuery),function(M){M(z.exports||F)}(function(M,T){function V(t,d){return t===null||typeof t in g?t===d:!1}function P(t,d){var v;return function(){v||(v=e.a.setTimeout(function(){v=D,t()},d))}}function a(t,d){var v;return function(){clearTimeout(v),v=e.a.setTimeout(t,d)}}function p(t,d){d&&d!=="change"?d==="beforeChange"?this.pc(t):this.gb(t,d):this.qc(t)}function u(t,d){d!==null&&d.s&&d.s()}function s(t,d){var v=this.qd,E=v[n];E.ra||(this.Qb&&this.mb[d]?(v.uc(d,t,this.mb[d]),this.mb[d]=null,--this.Qb):E.I[d]||v.uc(d,t,E.J?{da:t}:v.$c(t)),t.Ja&&t.gd())}var e=typeof M<"u"?M:{};e.b=function(t,d){for(var v=t.split("."),E=e,R=0;R",$[0];);return 4e.a.A(K,$)&&K.push($)}),K},Mb:function(q,K,$){var Z=[];if(q)for(var ee=0,G=q.length;eeZ?$&&q.push(K):$||q.splice(Z,1)},Ba:S,extend:d,setPrototypeOf:v,Ab:S?v:d,P:t,Ga:function(q,K,$){if(!q)return q;var Z={},ee;for(ee in q)R.call(q,ee)&&(Z[ee]=K.call($,q[ee],ee,q));return Z},Tb:function(q){for(;q.firstChild;)e.removeNode(q.firstChild)},Yb:function(q){q=e.a.la(q);for(var K=(q[0]&&q[0].ownerDocument||c).createElement("div"),$=0,Z=q.length;$W?q.setAttribute("selected",K):q.selected=K},Db:function(q){return q===null||q===D?"":q.trim?q.trim():q.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(q,K){return q=q||"",K.length>q.length?!1:q.substring(0,K.length)===K},vd:function(q,K){if(q===K)return!0;if(q.nodeType===11)return!1;if(K.contains)return K.contains(q.nodeType!==1?q.parentNode:q);if(K.compareDocumentPosition)return(K.compareDocumentPosition(q)&16)==16;for(;q&&q!=K;)q=q.parentNode;return!!q},Sb:function(q){return e.a.vd(q,q.ownerDocument.documentElement)},kd:function(q){return!!e.a.Lb(q,e.a.Sb)},R:function(q){return q&&q.tagName&&q.tagName.toLowerCase()},Ac:function(q){return e.onError?function(){try{return q.apply(this,arguments)}catch(K){throw e.onError&&e.onError(K),K}}:q},setTimeout:function(q,K){return setTimeout(e.a.Ac(q),K)},Gc:function(q){setTimeout(function(){throw e.onError&&e.onError(q),q},0)},B:function(q,K,$){var Z=e.a.Ac($);if($=N[K],e.options.useOnlyNativeEvents||$||!C)if($||typeof q.addEventListener!="function")if(typeof q.attachEvent<"u"){var ee=function(_){Z.call(q,_)},G="on"+K;q.attachEvent(G,ee),e.a.K.za(q,function(){q.detachEvent(G,ee)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else q.addEventListener(K,Z,!1);else J||(J=typeof C(q).on=="function"?"on":"bind"),C(q)[J](K,Z)},Fb:function(q,K){if(!q||!q.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var $;if(e.a.R(q)==="input"&&q.type&&K.toLowerCase()=="click"?($=q.type,$=$=="checkbox"||$=="radio"):$=!1,e.options.useOnlyNativeEvents||!C||$)if(typeof c.createEvent=="function")if(typeof q.dispatchEvent=="function")$=c.createEvent(k[K]||"HTMLEvents"),$.initEvent(K,!0,!0,y,0,0,0,0,0,!1,!1,!1,!1,0,q),q.dispatchEvent($);else throw Error("The supplied element doesn't support dispatchEvent");else if($&&q.click)q.click();else if(typeof q.fireEvent<"u")q.fireEvent("on"+K);else throw Error("Browser doesn't support triggering events");else C(q).trigger(K)},f:function(q){return e.O(q)?q():q},bc:function(q){return e.O(q)?q.v():q},Eb:function(q,K,$){var Z;K&&(typeof q.classList=="object"?(Z=q.classList[$?"add":"remove"],e.a.D(K.match(U),function(ee){Z.call(q.classList,ee)})):typeof q.className.baseVal=="string"?E(q.className,"baseVal",K,$):E(q,"className",K,$))},Bb:function(q,K){var $=e.a.f(K);($===null||$===D)&&($="");var Z=e.h.firstChild(q);!Z||Z.nodeType!=3||e.h.nextSibling(Z)?e.h.va(q,[q.ownerDocument.createTextNode($)]):Z.data=$,e.a.Ad(q)},Yc:function(q,K){if(q.name=K,7>=W)try{var $=q.name.replace(/[&<>'"]/g,function(Z){return"&#"+Z.charCodeAt(0)+";"});q.mergeAttributes(c.createElement(""),!1)}catch{}},Ad:function(q){9<=W&&(q=q.nodeType==1?q:q.parentNode,q.style&&(q.style.zoom=q.style.zoom))},wd:function(q){if(W){var K=q.style.width;q.style.width=0,q.style.width=K}},Pd:function(q,K){q=e.a.f(q),K=e.a.f(K);for(var $=[],Z=q;Z<=K;Z++)$.push(Z);return $},la:function(q){for(var K=[],$=0,Z=q.length;$",""],v=[3,"","
"],E=[1,""],R={thead:d,tbody:d,tfoot:d,tr:[2,"","
"],td:v,th:v,option:E,optgroup:E},S=8>=e.a.W;e.a.ua=function(A,L){var k;if(C){if(C.parseHTML)k=C.parseHTML(A,L)||[];else if((k=C.clean([A],L))&&k[0]){for(var N=k[0];N.parentNode&&N.parentNode.nodeType!==11;)N=N.parentNode;N.parentNode&&N.parentNode.removeChild(N)}}else{(k=L)||(k=c);var N=k.parentWindow||k.defaultView||y,W=e.a.Db(A).toLowerCase(),U=k.createElement("div"),J;for(J=(W=W.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&R[W[1]]||t,W=J[0],J="ignored
"+J[1]+A+J[2]+"
",typeof N.innerShiv=="function"?U.appendChild(N.innerShiv(J)):(S&&k.body.appendChild(U),U.innerHTML=J,S&&U.parentNode.removeChild(U));W--;)U=U.lastChild;k=e.a.la(U.lastChild.childNodes)}return k},e.a.Md=function(A,L){var k=e.a.ua(A,L);return k.length&&k[0].parentElement||e.a.Yb(k)},e.a.fc=function(A,L){if(e.a.Tb(A),L=e.a.f(L),L!==null&&L!==D)if(typeof L!="string"&&(L=L.toString()),C)C(A).html(L);else for(var k=e.a.ua(L,A.ownerDocument),N=0;N"},bd:function(v,E){var R=d[v];if(R===D)throw Error("Couldn't find any memo with ID "+v+". Perhaps it's already been unmemoized.");try{return R.apply(null,E||[]),!0}finally{delete d[v]}},cd:function(v,E){var R=[];t(v,R);for(var S=0,A=R.length;SL){if(5e3<=++k){A=R,e.a.Gc(Error("'Too much recursion' after processing "+k+" task groups."));break}L=R}try{N()}catch(W){e.a.Gc(W)}}}}function d(){t(),A=R=E.length=0}var v,E=[],R=0,S=1,A=0;return y.MutationObserver?v=function(L){var k=c.createElement("div");return new MutationObserver(L).observe(k,{attributes:!0}),function(){k.classList.toggle("foo")}}(d):v=c&&"onreadystatechange"in c.createElement("script")?function(L){var k=c.createElement("script");k.onreadystatechange=function(){k.onreadystatechange=null,c.documentElement.removeChild(k),k=null,L()},c.documentElement.appendChild(k)}:function(L){setTimeout(L,0)},{scheduler:v,zb:function(L){return R||e.na.scheduler(d),E[R++]=L,S++},cancel:function(L){L=L-(S-R),L>=A&&Lq[0]?Z+q[0]:q[0]),Z);for(var Z=ee===1?Z:Math.min(J+(q[1]||0),Z),ee=J+ee-2,G=Math.max(Z,ee),_=[],te=[],re=2;JS;S++)R=R();return R})},e.toJSON=function(E,R,S){return E=e.ad(E),e.a.hc(E,R,S)},v.prototype={constructor:v,save:function(E,R){var S=e.a.A(this.keys,E);0<=S?this.values[S]=R:(this.keys.push(E),this.values.push(R))},get:function(E){return E=e.a.A(this.keys,E),0<=E?this.values[E]:D}}}(),e.b("toJS",e.ad),e.b("toJSON",e.toJSON),e.Wd=function(t,d,v){function E(R){var S=e.xb(t,v).extend({ma:"always"}),A=S.subscribe(function(L){L&&(A.s(),R(L))});return S.notifySubscribers(S.v()),A}return typeof Promise!="function"||d?E(d.bind(v)):new Promise(E)},e.b("when",e.Wd),function(){e.w={M:function(t){switch(e.a.R(t)){case"option":return t.__ko__hasDomDataOptionValue__===!0?e.a.g.get(t,e.c.options.$b):7>=e.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?e.w.M(t.options[t.selectedIndex]):D;default:return t.value}},cb:function(t,d,v){switch(e.a.R(t)){case"option":typeof d=="string"?(e.a.g.set(t,e.c.options.$b,D),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=d):(e.a.g.set(t,e.c.options.$b,d),t.__ko__hasDomDataOptionValue__=!0,t.value=typeof d=="number"?d:"");break;case"select":(d===""||d===null)&&(d=D);for(var E=-1,R=0,S=t.options.length,A;R=J){k.push(W&&U.length?{key:W,value:U.join("")}:{unknown:W||U.join("")}),W=J=0,U=[];continue}}else if($===58){if(!J&&!W&&U.length===1){W=U.pop();continue}}else{if($===47&&1",S=R?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,A=R?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,L={ul:!0,ol:!0},k="__ko_matchedEndComment__";e.h={ea:{},childNodes:function(N){return t(N)?v(N):N.childNodes},Ea:function(N){if(t(N)){N=e.h.childNodes(N);for(var W=0,U=N.length;Warguments.length){if(_=c.body,!_)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!_||_.nodeType!==1&&_.nodeType!==8)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");k(U(G,te),_)},e.Dc=function(G){return!G||G.nodeType!==1&&G.nodeType!==8?D:e.Td(G)},e.Ec=function(G){return(G=e.Dc(G))?G.$data:D},e.b("bindingHandlers",e.c),e.b("bindingEvent",e.i),e.b("bindingEvent.subscribe",e.i.subscribe),e.b("bindingEvent.startPossiblyAsyncContentBinding",e.i.Cb),e.b("applyBindings",e.vc),e.b("applyBindingsToDescendants",e.Oa),e.b("applyBindingAccessorsToNode",e.ib),e.b("applyBindingsToNode",e.ld),e.b("contextFor",e.Dc),e.b("dataFor",e.Ec)}(),function(t){function d(A,L){var k=Object.prototype.hasOwnProperty.call(R,A)?R[A]:t,N;k?k.subscribe(L):(k=R[A]=new e.T,k.subscribe(L),v(A,function(W,U){var J=!(!U||!U.synchronous);S[A]={definition:W,Gd:J},delete R[A],N||J?k.notifySubscribers(W):e.na.zb(function(){k.notifySubscribers(W)})}),N=!0)}function v(A,L){E("getConfig",[A],function(k){k?E("loadComponent",[A,k],function(N){L(N,k)}):L(null,null)})}function E(A,L,k,N){N||(N=e.j.loaders.slice(0));var W=N.shift();if(W){var U=W[A];if(U){var J=!1;if(U.apply(W,L.concat(function(q){J?k(null):q!==null?k(q):E(A,L,k,N)}))!==t&&(J=!0,!W.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else E(A,L,k,N)}else k(null)}var R={},S={};e.j={get:function(A,L){var k=Object.prototype.hasOwnProperty.call(S,A)?S[A]:t;k?k.Gd?e.u.G(function(){L(k.definition)}):e.na.zb(function(){L(k.definition)}):d(A,L)},Bc:function(A){delete S[A]},oc:E},e.j.loaders=[],e.b("components",e.j),e.b("components.get",e.j.get),e.b("components.clearCachedDefinition",e.j.Bc)}(),function(){function t(k,N,W,U){function J(){--K===0&&U(q)}var q={},K=2,$=W.template;W=W.viewModel,$?R(N,$,function(Z){e.j.oc("loadTemplate",[k,Z],function(ee){q.template=ee,J()})}):J(),W?R(N,W,function(Z){e.j.oc("loadViewModel",[k,Z],function(ee){q[L]=ee,J()})}):J()}function d(k,N,W){if(typeof N=="function")W(function(J){return new N(J)});else if(typeof N[L]=="function")W(N[L]);else if("instance"in N){var U=N.instance;W(function(){return U})}else"viewModel"in N?d(k,N.viewModel,W):k("Unknown viewModel value: "+N)}function v(k){switch(e.a.R(k)){case"script":return e.a.ua(k.text);case"textarea":return e.a.ua(k.value);case"template":if(E(k.content))return e.a.Ca(k.content.childNodes)}return e.a.Ca(k.childNodes)}function E(k){return y.DocumentFragment?k instanceof DocumentFragment:k&&k.nodeType===11}function R(k,N,W){typeof N.require=="string"?T||y.require?(T||y.require)([N.require],function(U){U&&typeof U=="object"&&U.Xd&&U.default&&(U=U.default),W(U)}):k("Uses require, but no AMD loader is present"):W(N)}function S(k){return function(N){throw Error("Component '"+k+"': "+N)}}var A={};e.j.register=function(k,N){if(!N)throw Error("Invalid configuration for "+k);if(e.j.tb(k))throw Error("Component "+k+" is already registered");A[k]=N},e.j.tb=function(k){return Object.prototype.hasOwnProperty.call(A,k)},e.j.unregister=function(k){delete A[k],e.j.Bc(k)},e.j.Fc={getConfig:function(k,N){N(e.j.tb(k)?A[k]:null)},loadComponent:function(k,N,W){var U=S(k);R(U,N,function(J){t(k,U,J,W)})},loadTemplate:function(k,N,W){if(k=S(k),typeof N=="string")W(e.a.ua(N));else if(N instanceof Array)W(N);else if(E(N))W(e.a.la(N.childNodes));else if(N.element)if(N=N.element,y.HTMLElement?N instanceof HTMLElement:N&&N.tagName&&N.nodeType===1)W(v(N));else if(typeof N=="string"){var U=c.getElementById(N);U?W(v(U)):k("Cannot find element with ID "+N)}else k("Unknown element type: "+N);else k("Unknown template value: "+N)},loadViewModel:function(k,N,W){d(S(k),N,W)}};var L="createViewModel";e.b("components.register",e.j.register),e.b("components.isRegistered",e.j.tb),e.b("components.unregister",e.j.unregister),e.b("components.defaultLoader",e.j.Fc),e.j.loaders.push(e.j.Fc),e.j.dd=A}(),function(){function t(v,E){var R=v.getAttribute("params");if(R){var R=d.parseBindingsString(R,E,v,{valueAccessors:!0,bindingParams:!0}),R=e.a.Ga(R,function(L){return e.o(L,null,{l:v})}),S=e.a.Ga(R,function(L){var k=L.v();return L.ja()?e.o({read:function(){return e.a.f(L())},write:e.Za(k)&&function(N){L()(N)},l:v}):k});return Object.prototype.hasOwnProperty.call(S,"$raw")||(S.$raw=R),S}return{$raw:{}}}e.j.getComponentNameForNode=function(v){var E=e.a.R(v);if(e.j.tb(E)&&(E.indexOf("-")!=-1||""+v=="[object HTMLUnknownElement]"||8>=e.a.W&&v.tagName===E))return E},e.j.tc=function(v,E,R,S){if(E.nodeType===1){var A=e.j.getComponentNameForNode(E);if(A){if(v=v||{},v.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var L={name:A,params:t(E,R)};v.component=S?function(){return L}:L}}return v};var d=new e.ga;9>e.a.W&&(e.j.register=function(v){return function(E){return v.apply(this,arguments)}}(e.j.register),c.createDocumentFragment=function(v){return function(){var E=v();return e.j.dd,E}}(c.createDocumentFragment))}(),function(){function t(E,R,S){if(R=R.template,!R)throw Error("Component '"+E+"' has no template");E=e.a.Ca(R),e.h.va(S,E)}function d(E,R,S){var A=E.createViewModel;return A?A.call(E,R,S):R}var v=0;e.c.component={init:function(E,R,S,A,L){function k(){var q=N&&N.dispose;typeof q=="function"&&q.call(N),U&&U.s(),W=N=U=null}var N,W,U,J=e.a.la(e.h.childNodes(E));return e.h.Ea(E),e.a.K.za(E,k),e.o(function(){var q=e.a.f(R()),K,$;if(typeof q=="string"?K=q:(K=e.a.f(q.name),$=e.a.f(q.params)),!K)throw Error("No component name specified");var Z=e.i.Cb(E,L),ee=W=++v;e.j.get(K,function(G){if(W===ee){if(k(),!G)throw Error("Unknown component '"+K+"'");t(K,G,E);var _=d(G,$,{element:E,templateNodes:J});G=Z.createChildContext(_,{extend:function(te){te.$component=_,te.$componentTemplateNodes=J}}),_&&_.koDescendantsComplete&&(U=e.i.subscribe(E,e.i.pa,_.koDescendantsComplete,_)),N=_,e.Oa(G,E)}})},null,{l:E}),{controlsDescendantBindings:!0}}},e.h.ea.component=!0}();var x={class:"className",for:"htmlFor"};e.c.attr={update:function(t,d){var v=e.a.f(d())||{};e.a.P(v,function(E,R){R=e.a.f(R);var S=E.indexOf(":"),S="lookupNamespaceURI"in t&&0=e.a.W&&E in x?(E=x[E],A?t.removeAttribute(E):t[E]=R):A||(S?t.setAttributeNS(S,E,R):t.setAttribute(E,R)),E==="name"&&e.a.Yc(t,A?"":R)})}},function(){e.c.checked={after:["value","attr"],init:function(t,d,v){function E(){var q=t.checked,K=S();if(!e.S.Ya()&&(q||!L&&!e.S.qa())){var $=e.u.G(d);if(N){var Z=W?$.v():$,ee=J;J=K,ee!==K?q&&(e.a.Na(Z,K,!0),e.a.Na(Z,ee,!1)):e.a.Na(Z,K,q),W&&e.Za($)&&$(Z)}else A&&(K===D?K=q:q||(K=D)),e.m.eb($,v,"checked",K,!0)}}function R(){var q=e.a.f(d()),K=S();N?(t.checked=0<=e.a.A(q,K),J=K):t.checked=A&&K===D?!!q:S()===q}var S=e.xb(function(){if(v.has("checkedValue"))return e.a.f(v.get("checkedValue"));if(U)return v.has("value")?e.a.f(v.get("value")):t.value}),A=t.type=="checkbox",L=t.type=="radio";if(A||L){var k=d(),N=A&&e.a.f(k)instanceof Array,W=!(N&&k.push&&k.splice),U=L||N,J=N?S():D;L&&!t.name&&e.c.uniqueName.init(t,function(){return!0}),e.o(E,null,{l:t}),e.a.B(t,"click",E),e.o(R,null,{l:t}),k=D}}},e.m.wa.checked=!0,e.c.checkedValue={update:function(t,d){t.value=e.a.f(d())}}}(),e.c.class={update:function(t,d){var v=e.a.Db(e.a.f(d()));e.a.Eb(t,t.__ko__cssValue,!1),t.__ko__cssValue=v,e.a.Eb(t,v,!0)}},e.c.css={update:function(t,d){var v=e.a.f(d());v!==null&&typeof v=="object"?e.a.P(v,function(E,R){R=e.a.f(R),e.a.Eb(t,E,R)}):e.c.class.update(t,d)}},e.c.enable={update:function(t,d){var v=e.a.f(d());v&&t.disabled?t.removeAttribute("disabled"):v||t.disabled||(t.disabled=!0)}},e.c.disable={update:function(t,d){e.c.enable.update(t,function(){return!e.a.f(d())})}},e.c.event={init:function(t,d,v,E,R){var S=d()||{};e.a.P(S,function(A){typeof A=="string"&&e.a.B(t,A,function(L){var k,N=d()[A];if(N){try{var W=e.a.la(arguments);E=R.$data,W.unshift(E),k=N.apply(E,W)}finally{k!==!0&&(L.preventDefault?L.preventDefault():L.returnValue=!1)}v.get(A+"Bubble")===!1&&(L.cancelBubble=!0,L.stopPropagation&&L.stopPropagation())}})})}},e.c.foreach={Rc:function(t){return function(){var d=t(),v=e.a.bc(d);return!v||typeof v.length=="number"?{foreach:d,templateEngine:e.ba.Ma}:(e.a.f(d),{foreach:v.data,as:v.as,noChildContext:v.noChildContext,includeDestroyed:v.includeDestroyed,afterAdd:v.afterAdd,beforeRemove:v.beforeRemove,afterRender:v.afterRender,beforeMove:v.beforeMove,afterMove:v.afterMove,templateEngine:e.ba.Ma})}},init:function(t,d){return e.c.template.init(t,e.c.foreach.Rc(d))},update:function(t,d,v,E,R){return e.c.template.update(t,e.c.foreach.Rc(d),v,E,R)}},e.m.Ra.foreach=!1,e.h.ea.foreach=!0,e.c.hasfocus={init:function(t,d,v){function E(A){t.__ko_hasfocusUpdating=!0;var L=t.ownerDocument;if("activeElement"in L){var k;try{k=L.activeElement}catch{k=L.body}A=k===t}L=d(),e.m.eb(L,v,"hasfocus",A,!0),t.__ko_hasfocusLastValue=A,t.__ko_hasfocusUpdating=!1}var R=E.bind(null,!0),S=E.bind(null,!1);e.a.B(t,"focus",R),e.a.B(t,"focusin",R),e.a.B(t,"blur",S),e.a.B(t,"focusout",S),t.__ko_hasfocusLastValue=!1},update:function(t,d){var v=!!e.a.f(d());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===v||(v?t.focus():t.blur(),!v&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),e.u.G(e.a.Fb,null,[t,v?"focusin":"focusout"]))}},e.m.wa.hasfocus=!0,e.c.hasFocus=e.c.hasfocus,e.m.wa.hasFocus="hasfocus",e.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,d){e.a.fc(t,d())}},function(){function t(d,v,E){e.c[d]={init:function(R,S,A,L,k){var N,W,U={},J,q,K;if(v){L=A.get("as");var $=A.get("noChildContext");K=!(L&&$),U={as:L,noChildContext:$,exportDependencies:K}}return q=(J=A.get("completeOn")=="render")||A.has(e.i.pa),e.o(function(){var Z=e.a.f(S()),ee=!E!=!Z,G=!W,_;(K||ee!==N)&&(q&&(k=e.i.Cb(R,k)),ee&&((!v||K)&&(U.dataDependency=e.S.o()),_=v?k.createChildContext(typeof Z=="function"?Z:S,U):e.S.qa()?k.extend(null,U):k),G&&e.S.qa()&&(W=e.a.Ca(e.h.childNodes(R),!0)),ee?(G||e.h.va(R,e.a.Ca(W)),e.Oa(_,R)):(e.h.Ea(R),J||e.i.ma(R,e.i.H)),N=ee)},null,{l:R}),{controlsDescendantBindings:!0}}},e.m.Ra[d]=!1,e.h.ea[d]=!0}t("if"),t("ifnot",!1,!0),t("with",!0)}(),e.c.let={init:function(t,d,v,E,R){return d=R.extend(d),e.Oa(d,t),{controlsDescendantBindings:!0}}},e.h.ea.let=!0;var l={};e.c.options={init:function(t){if(e.a.R(t)!=="select")throw Error("options binding applies only to SELECT elements");for(;0"u"&&(k=[k]),U=e.a.jb(k,function($){return W||$===D||$===null||!e.a.f($._destroy)}),v.has("optionsCaption")&&(k=e.a.f(v.get("optionsCaption")),k!==null&&k!==D&&U.unshift(l)));var q=!1;if(d.beforeRemove=function($){t.removeChild($)},k=S,v.has("optionsAfterRender")&&typeof v.get("optionsAfterRender")=="function"&&(k=function($,Z){S(0,Z),e.u.G(v.get("optionsAfterRender"),null,[Z[0],$!==l?$:D])}),e.a.ec(t,U,function($,Z,ee){return ee.length&&(J=!N&&ee[0].selected?[e.w.M(ee[0])]:[],q=!0),Z=t.ownerDocument.createElement("option"),$===l?(e.a.Bb(Z,v.get("optionsCaption")),e.w.cb(Z,D)):(ee=R($,v.get("optionsValue"),$),e.w.cb(Z,e.a.f(ee)),$=R($,v.get("optionsText"),ee),e.a.Bb(Z,$)),[Z]},d,k),!N){var K;A?K=J.length&&E().lengthS)var L=e.a.g.Z(),k=e.a.g.Z(),N=function(U){var J=this.activeElement;(J=J&&e.a.g.get(J,k))&&J(U)},W=function(U,J){var q=U.ownerDocument;e.a.g.get(q,L)||(e.a.g.set(q,L,!0),e.a.B(q,"selectionchange",N)),e.a.g.set(U,k,J)};e.c.textInput={init:function(U,J,q){function K(ae,pe){e.a.B(U,ae,pe)}function $(){var ae=e.a.f(J());(ae===null||ae===D)&&(ae=""),te!==D&&ae===te?e.a.setTimeout($,4):U.value!==ae&&(oe=!0,U.value=ae,oe=!1,G=U.value)}function Z(){_||(te=U.value,_=e.a.setTimeout(ee,4))}function ee(){clearTimeout(_),te=_=D;var ae=U.value;G!==ae&&(G=ae,e.m.eb(J(),q,"textInput",ae))}var G=U.value,_,te,re=e.a.W==9?Z:ee,oe=!1;S&&K("keypress",ee),11>S&&K("propertychange",function(ae){oe||ae.propertyName!=="value"||re()}),S==8&&(K("keyup",ee),K("keydown",ee)),W&&(W(U,re),K("dragend",Z)),(!S||9<=S)&&K("input",re),5>E&&e.a.R(U)==="textarea"?(K("keydown",Z),K("paste",Z),K("cut",Z)):11>v?K("keydown",Z):4>R?(K("DOMAutoComplete",ee),K("dragdrop",ee),K("drop",ee)):A&&U.type==="number"&&K("keydown",Z),K("change",ee),K("blur",ee),e.o($,null,{l:U})}},e.m.wa.textInput=!0,e.c.textinput={preprocess:function(U,J,q){q("textInput",U)}}}(),e.c.uniqueName={init:function(t,d){if(d()){var v="ko_unique_"+ ++e.c.uniqueName.rd;e.a.Yc(t,v)}}},e.c.uniqueName.rd=0,e.c.using={init:function(t,d,v,E,R){var S;return v.has("as")&&(S={as:v.get("as"),noChildContext:v.get("noChildContext")}),d=R.createChildContext(d,S),e.Oa(d,t),{controlsDescendantBindings:!0}}},e.h.ea.using=!0,e.c.value={init:function(t,d,v){var E=e.a.R(t),R=E=="input";if(!R||t.type!="checkbox"&&t.type!="radio"){var S=[],A=v.get("valueUpdate"),L=!1,k=null;A&&(typeof A=="string"?S=[A]:S=e.a.wc(A),e.a.Pa(S,"change"));var N=function(){k=null,L=!1;var J=d(),q=e.w.M(t);e.m.eb(J,v,"value",q)};!e.a.W||!R||t.type!="text"||t.autocomplete=="off"||t.form&&t.form.autocomplete=="off"||e.a.A(S,"propertychange")!=-1||(e.a.B(t,"propertychange",function(){L=!0}),e.a.B(t,"focus",function(){L=!1}),e.a.B(t,"blur",function(){L&&N()})),e.a.D(S,function(J){var q=N;e.a.Ud(J,"after")&&(q=function(){k=e.w.M(t),e.a.setTimeout(N,0)},J=J.substring(5)),e.a.B(t,J,q)});var W;if(W=R&&t.type=="file"?function(){var J=e.a.f(d());J===null||J===D||J===""?t.value="":e.u.G(N)}:function(){var J=e.a.f(d()),q=e.w.M(t);k!==null&&J===k?e.a.setTimeout(W,0):(J!==q||q===D)&&(E==="select"?(q=v.get("valueAllowUnset"),e.w.cb(t,J,q),q||J===e.w.M(t)||e.u.G(N)):e.w.cb(t,J))},E==="select"){var U;e.i.subscribe(t,e.i.H,function(){U?v.get("valueAllowUnset")?W():N():(e.a.B(t,"change",N),U=e.o(W,null,{l:t}))},null,{notifyImmediately:!0})}else e.a.B(t,"change",N),e.o(W,null,{l:t})}else e.ib(t,{checkedValue:d})},update:function(){}},e.m.wa.value=!0,e.c.visible={update:function(t,d){var v=e.a.f(d()),E=t.style.display!="none";v&&!E?t.style.display="":!v&&E&&(t.style.display="none")}},e.c.hidden={update:function(t,d){e.c.visible.update(t,function(){return!e.a.f(d())})}},function(t){e.c[t]={init:function(d,v,E,R,S){return e.c.event.init.call(this,d,function(){var A={};return A[t]=v(),A},E,R,S)}}}("click"),e.ca=function(){},e.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},e.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},e.ca.prototype.makeTemplateSource=function(t,d){if(typeof t=="string"){d=d||c;var v=d.getElementById(t);if(!v)throw Error("Cannot find template with ID "+t);return new e.C.F(v)}if(t.nodeType==1||t.nodeType==8)return new e.C.ia(t);throw Error("Unknown template type: "+t)},e.ca.prototype.renderTemplate=function(t,d,v,E){return t=this.makeTemplateSource(t,E),this.renderTemplateSource(t,d,v,E)},e.ca.prototype.isTemplateRewritten=function(t,d){return this.allowTemplateRewriting===!1?!0:this.makeTemplateSource(t,d).data("isRewritten")},e.ca.prototype.rewriteTemplate=function(t,d,v){t=this.makeTemplateSource(t,v),d=d(t.text()),t.text(d),t.data("isRewritten",!0)},e.b("templateEngine",e.ca),e.kc=function(){function t(E,R,S,A){E=e.m.ac(E);for(var L=e.m.Ra,k=0;k]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,v=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(E,R,S){R.isTemplateRewritten(E,S)||R.rewriteTemplate(E,function(A){return e.kc.Ld(A,R)},S)},Ld:function(E,R){return E.replace(d,function(S,A,L,k,N){return t(N,A,L,R)}).replace(v,function(S,A){return t(A,"","#comment",R)})},md:function(E,R){return e.aa.Xb(function(S,A){var L=S.nextSibling;L&&L.nodeName.toLowerCase()===R&&e.ib(L,E,A)})}}}(),e.b("__tr_ambtns",e.kc.md),function(){e.C={},e.C.F=function(v){if(this.F=v){var E=e.a.R(v);this.ab=E==="script"?1:E==="textarea"?2:E=="template"&&v.content&&v.content.nodeType===11?3:4}},e.C.F.prototype.text=function(){var v=this.ab===1?"text":this.ab===2?"value":"innerHTML";if(arguments.length==0)return this.F[v];var E=arguments[0];v==="innerHTML"?e.a.fc(this.F,E):this.F[v]=E};var t=e.a.g.Z()+"_";e.C.F.prototype.data=function(v){if(arguments.length===1)return e.a.g.get(this.F,t+v);e.a.g.set(this.F,t+v,arguments[1])};var d=e.a.g.Z();e.C.F.prototype.nodes=function(){var v=this.F;if(arguments.length==0){var E=e.a.g.get(v,d)||{},R=E.lb||(this.ab===3?v.content:this.ab===4?v:D);if(!R||E.jd){var S=this.text();S&&S!==E.bb&&(R=e.a.Md(S,v.ownerDocument),e.a.g.set(v,d,{lb:R,bb:S,jd:!0}))}return R}E=arguments[0],this.ab!==D&&this.text(""),e.a.g.set(v,d,{lb:E})},e.C.ia=function(v){this.F=v},e.C.ia.prototype=new e.C.F,e.C.ia.prototype.constructor=e.C.ia,e.C.ia.prototype.text=function(){if(arguments.length==0){var v=e.a.g.get(this.F,d)||{};return v.bb===D&&v.lb&&(v.bb=v.lb.innerHTML),v.bb}e.a.g.set(this.F,d,{bb:arguments[0]})},e.b("templateSources",e.C),e.b("templateSources.domElement",e.C.F),e.b("templateSources.anonymousTemplate",e.C.ia)}(),function(){function t(k,N,W){var U;for(N=e.h.nextSibling(N);k&&(U=k)!==N;)k=e.h.nextSibling(U),W(U,k)}function d(k,N){if(k.length){var W=k[0],U=k[k.length-1],J=W.parentNode,q=e.ga.instance,K=q.preprocessNode;if(K){if(t(W,U,function($,Z){var ee=$.previousSibling,G=K.call(q,$);G&&($===W&&(W=G[0]||Z),$===U&&(U=G[G.length-1]||ee))}),k.length=0,!W)return;W===U?k.push(W):(k.push(W,U),e.a.Ua(k,J))}t(W,U,function($){$.nodeType!==1&&$.nodeType!==8||e.vc(N,$)}),t(W,U,function($){$.nodeType!==1&&$.nodeType!==8||e.aa.cd($,[N])}),e.a.Ua(k,J)}}function v(k){return k.nodeType?k:0"u"&&(te=[te]),G&&(te=e.a.jb(te,function(re){return re===D||re===null||!e.a.f(re._destroy)})),q(te)},null,{l:U});q(N.v());var _=N.subscribe(function(te){q(N(),te)},null,"arrayChange");return _.l(U),_};var A=e.a.g.Z(),L=e.a.g.Z();e.c.template={init:function(k,N){var W=e.a.f(N());if(typeof W=="string"||"name"in W)e.h.Ea(k);else if("nodes"in W){if(W=W.nodes||[],e.O(W))throw Error('The "nodes" option must be a plain, non-observable array.');var U=W[0]&&W[0].parentNode;U&&e.a.g.get(U,L)||(U=e.a.Yb(W),e.a.g.set(U,L,!0)),new e.C.ia(k).nodes(U)}else if(W=e.h.childNodes(k),0"u"&&(R=[R]),A=A||{};var J=e.a.g.get(E,d),q=!J,K=[],$=0,Z=0,ee=[],G=[],_=[],te=[],re=[],oe,ae=0;if(q)e.a.D(R,N);else{if(!k||J&&J._countWaitingForRemove){var pe=e.a.Mb(J,function(he){return he.Aa});k=e.a.Pb(pe,R,{dontLimitMoves:A.dontLimitMoves,sparse:!0})}for(var pe=0,we,xe,Te;we=k[pe];pe++)switch(xe=we.moved,Te=we.index,we.status){case"deleted":for(;$e.a.W)&&t.nodes?t.nodes():null)?e.a.la(d.cloneNode(!0).childNodes):(t=t.text(),e.a.ua(t,E))},e.ba.Ma=new e.ba,e.gc(e.ba.Ma),e.b("nativeTemplateEngine",e.ba),function(){e.$a=function(){var d=this.Hd=function(){if(!C||!C.tmpl)return 0;try{if(0<=C.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch{}return 1}();this.renderTemplateSource=function(v,E,R,S){if(S=S||c,R=R||{},2>d)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var A=v.data("precompiled");return A||(A=v.text()||"",A=C.template(null,"{{ko_with $item.koBindingContext}}"+A+"{{/ko_with}}"),v.data("precompiled",A)),v=[E.$data],E=C.extend({koBindingContext:E},R.templateOptions),E=C.tmpl(A,v,E),E.appendTo(S.createElement("div")),C.fragments={},E},this.createJavaScriptEvaluatorBlock=function(v){return"{{ko_code ((function() { return "+v+" })()) }}"},this.addTemplate=function(v,E){c.write(" +