1// Generated by build.js â the contents of qna.min.js as a string, for the editor's "embed the library" option. 2window.QNA_LIB_SOURCE = "/*!\n * QnA Markup â client-side interpreter\n * https://www.qnamarkup.org/ | https://github.com/colarusso/QnAMarkup\n * MIT License. See qna.js for documentation.\n */\n(function(c,u){typeof module==\"object\"&&module.exports?module.exports=u(c):c.QnA=u(c)})(typeof window!=\"undefined\"?window:this,function(c){\"use strict\";var u={version:\"2.6.0\"};u.defaults={fontFamily:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif\",fontSize:16,lineHeight:22,colWidth:500,framePad:15,radius:15,compBg:\"5489eb\",compTxt:\"ffffff\",compLink:\"e3fbfc\",usrBg:\"eeeeee\",usrTxt:\"000000\",usrLink:\"0000ff\",bodyBg:\"ffffff\",bodyTxt:\"000000\",bodyLink:\"0000ff\",btnBg:\"eeeeee\",btnTxt:\"000000\",btnBold:!1,btnBorder:\"888888\",btnDivider:\"dddddd\",chatStyle:\"sms\",labelSave:\"Save above text as answer.\",labelBack:\"GO BACK ONE\",labelRestart:\"START OVER\",labelCredits:\"credits\",labelEdit:\"edit\",labelCode:\"code your own\",labelEmpty:\"Your answer appears to be empty.\",labelEditWarn:\"You are about to edit a copy of this QnA. Any edits will not change this instance.\",qShare:!0,labelEarlier:\"Earlier you entered:\",labelConfirm:\"It looks like you may have answered this before; click OK to use <x>answer</x> as your answer.\",start:\"1\",footer:!0,saveProgress:!1,loadTimeout:3e4,editorUrl:\"https://www.qnamarkup.org/\",animate:!0,scroll:!0,injectCss:!0};var U={font_family:\"fontFamily\",font_size:\"fontSize\",line_height:\"lineHeight\",col_width:\"colWidth\",frame_pad:\"framePad\",radius:\"radius\",comp_bg:\"compBg\",comp_txt:\"compTxt\",comp_link:\"compLink\",usr_bg:\"usrBg\",usr_txt:\"usrTxt\",usr_link:\"usrLink\",body_bg:\"bodyBg\",body_txt:\"bodyTxt\",body_link:\"bodyLink\",start:\"start\",save_progress:\"saveProgress\",editor_url:\"editorUrl\",chat_style:\"chatStyle\",btn_bg:\"btnBg\",btn_txt:\"btnTxt\",btn_bold:\"btnBold\",btn_border:\"btnBorder\",btn_divider:\"btnDivider\",label_save:\"labelSave\",label_back:\"labelBack\",label_restart:\"labelRestart\",label_credits:\"labelCredits\",label_edit:\"labelEdit\",label_code:\"labelCode\",q_share:\"qShare\",label_earlier:\"labelEarlier\",label_confirm:\"labelConfirm\",label_empty:\"labelEmpty\",label_edit_warn:\"labelEditWarn\"},re=[\"labelSave\",\"labelEmpty\",\"labelBack\",\"labelRestart\",\"labelCredits\",\"labelEdit\",\"labelEditWarn\",\"labelCode\",\"labelEarlier\",\"labelConfirm\"];u.LINK_MAX={plain:8e3,z:32e3};function ne(t){var r={},e;for(e in u.defaults)r[e]=u.defaults[e];if(t){for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=U[e]||e;t[e]===void 0||t[e]===null||t[e]===\"\"||(r[n]=t[e])}}return/^([a-zA-Z,\\s\\-'])+$/.test(String(r.fontFamily))||(r.fontFamily=u.defaults.fontFamily),[\"fontSize\",\"lineHeight\",\"colWidth\",\"framePad\",\"radius\"].forEach(function(i){/^\\d+$/.test(String(r[i]))||(r[i]=u.defaults[i]),r[i]=parseInt(r[i],10)}),[\"compBg\",\"compTxt\",\"compLink\",\"usrBg\",\"usrTxt\",\"usrLink\",\"bodyBg\",\"bodyTxt\",\"bodyLink\",\"btnBg\",\"btnTxt\",\"btnBorder\",\"btnDivider\"].forEach(function(i){var a=String(r[i]).replace(/^#/,\"\").toLowerCase();/^[0-9a-f]{6}$/.test(a)||(a=u.defaults[i]),r[i]=a}),r.chatStyle=/^llm$/i.test(w(r.chatStyle))?\"llm\":\"sms\",re.forEach(function(i){var a=w(String(r[i]).replace(/\\s+/g,\" \")).slice(0,200);r[i]=a===\"\"?u.defaults[i]:a}),r.start||(r.start=\"1\"),[\"btnBold\",\"qShare\",\"footer\",\"saveProgress\",\"animate\",\"scroll\",\"injectCss\"].forEach(function(i){typeof r[i]==\"string\"?r[i]=!/^(false|0|no|off)$/i.test(r[i]):r[i]=!!r[i]}),r}u.normalizeOptions=ne;function k(t){return String(t).replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\")}function K(t){return String(t).replace(/[.*+?^${}()|[\\]\\\\\\/-]/g,\"\\\\$&\")}function Qt(t){return String(t).replace(/\\s+$/,\"\")}function w(t){return String(t).replace(/^\\s+|\\s+$/g,\"\")}function Me(t){return/^\\d+(\\.\\d+)*$/.test(t)}var De=/^(module|(text|application)\\/(x-)?(java|ecma|j)script(1\\.\\d)?)?$/i;function Fe(t){return t.replace(/\\.\\d+$/,\"\")}u.escapeHtml=k;var be=/(^|\\n)[ \\t]*((Q(\\((.*)\\))?|DOC\\(?(\\d?)(.\\s*\\d+)*\\)?):|(A((\\(.*\\))|)|X)((\\[(?:[^\\]\\\\]|\\\\[\\s\\S])*\\])+:|:(\\[(?:[^\\]\\\\]|\\\\[\\s\\S])*\\])?))/g;function vt(t){for(var r=[],e=[],n=[0],i=0;i<t.length;i++){for(var a=(t[i].match(/^\\n?([ \\t]*)/)||[\"\",\"\"])[1],s=0,o=0;o<a.length;
2o++)s=a[o]===\"\t\"?(Math.floor(s/4)+1)*4:s+1;for(var l=!1;n.length>1&&s<n[n.length-1];)n.pop(),l=!0;s>n[n.length-1]&&(l?e[i]=!0:n.push(s)),r.push(n.length-1)}return r.odd=e,r}var Ge=/^(Title|Author|Description|Before|After):/gim,ye=/GOTO:\\s?([a-zA-Z0-9._\\-]*)\\s*$/i;function xe(){this.items=[],this.warnings=[],this.line=null}xe.prototype.add=function(t,r){this.items.push({message:t,near:r,line:this.line})},xe.prototype.warn=function(t,r){this.warnings.push({message:t,near:r,line:this.line})};function $e(t){if(t=String(t).replace(/\\\\\\]/g,\"]\"),!/^\\s*javascript:/i.test(t)||t.indexOf(`\n`)<0)return w(t);var r=t.split(`\n`).map(function(e){for(var n=e.indexOf(\"//\");n>=0;){var i=e.slice(0,n),a=(i.match(/'/g)||[]).length,s=(i.match(/\"/g)||[]).length,o=(i.match(/`/g)||[]).length;if(a%2===0&&s%2===0&&o%2===0&&!/:$/.test(i)){e=i;break}n=e.indexOf(\"//\",n+2)}return w(e)}).filter(function(e){return e!==\"\"});return r.join(`\n`)}var gt=/\\bloadQnA\\s*\\(/;function we(t){return`(['\"])((?:(?!\\\\`+t+\")[^\\\\\\\\]|\\\\\\\\.)*)\\\\\"+t}var mt=new RegExp(\"\\\\bloadQnA\\\\s*\\\\(\\\\s*(?:\"+we(1)+`|([^,()'\"]+?))\\\\s*(?:,\\\\s*(?:`+we(4)+\"\\\\s*,\\\\s*\"+we(6)+\"|(\\\\{[^}]*\\\\})))?\\\\s*[,)]\");function Se(t){var r={loads:null,returns:[],jumps:[]};if(t=String(t||\"\"),!t)return r;if(gt.test(t)){r.loads=!0;var e=mt.exec(t);if(e){if(e[2]!==void 0&&(r.loads=e[2]),e[7]!==void 0)r.returns.push(e[7]);else if(e[8])for(var n=/(['\"]?)([A-Za-z0-9._\\-]+)\\1\\s*:\\s*(['\"])([A-Za-z0-9._\\-]*)\\3/g,i;(i=n.exec(e[8]))!==null;)r.returns.push(i[4])}}for(var a=/\\bgoto\\s*\\(\\s*(?:(['\"])([A-Za-z0-9._\\-]*)\\1|(\\d+(?:\\.\\d+)*))\\s*\\)/g,s;(s=a.exec(t))!==null;)r.jumps.push(s[2]!==void 0?s[2]:s[3]);return r}function bt(t){for(var r=[],e=/<script\\b([^>]*)>([\\s\\S]*?)<\\/script\\s*>/gi,n;(n=e.exec(String(t||\"\")))!==null;){var i=(/\\btype\\s*=\\s*[\"']?([^\"'\\s>]*)/i.exec(n[1])||[])[1]||\"\";De.test(w(i))&&!/\\bsrc\\s*=/i.test(n[1])&&r.push(n[2])}return r.join(`\n`)}function q(t,r){var e=w(t)+String(r||\"\").substr(0,50)+\"...\";return e}var qe=[\"fontFamily\",\"fontSize\",\"lineHeight\",\"colWidth\",\"framePad\",\"radius\",\"compBg\",\"compTxt\",\"compLink\",\"usrBg\",\"usrTxt\",\"usrLink\",\"bodyBg\",\"bodyTxt\",\"bodyLink\",\"btnBg\",\"btnTxt\",\"btnBold\",\"btnBorder\",\"btnDivider\",\"chatStyle\",\"qShare\"].concat(re,[\"footer\",\"saveProgress\",\"start\"]),yt=/(^|\\n)[ \\t]*Settings:([^\\n]*)\\s*$/i;u.splitSettings=function(t){var r=String(t==null?\"\":t).replace(/\\r\\n?/g,`\n`),e=yt.exec(r);if(!e)return{markup:r,settings:null};var n={};e[2].split(\";\").forEach(function(a){var s=a.indexOf(\"=\");if(!(s<0)){var o=w(a.slice(0,s)),l=w(a.slice(s+1));o=U[o]||o,re.indexOf(o)>=0&&(l=w(l.replace(/%([0-9a-fA-F]{2})/g,function(d,h){return String.fromCharCode(parseInt(h,16))}))),qe.indexOf(o)>=0&&l!==\"\"&&(n[o]=l)}});var i=r.slice(0,e.index).replace(/\\s+$/,\"\");return{markup:i+(i?`\n`:\"\"),settings:n}},u.settingsTag=function(t){var r=ne(t);return\"Settings: \"+qe.map(function(e){var n=String(r[e]);return re.indexOf(e)>=0&&(n=n.replace(/[%;]/g,function(i){return i===\"%\"?\"%25\":\"%3B\"})),e+\"=\"+n}).join(\"; \")};var Ve=/<(input|select|textarea)\\b([^>]*)>/gi;function We(t){var r=[],e;for(Ve.lastIndex=0,t=String(t).replace(/<(script|style)\\b[^>]*>[\\s\\S]*?<\\/\\1\\s*>/gi,\"\");(e=Ve.exec(t))!==null;){var n=e[2],i=e[1].toLowerCase(),a=function(o){var l=new RegExp(\"(?:^|\\\\s)\"+o+`\\\\s*=\\\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\\\s\"'>]+))`,\"i\").exec(n);return l?l[1]!==void 0?l[1]:l[2]!==void 0?l[2]:l[3]:\"\"},s=i===\"input\"?(a(\"type\")||\"text\").toLowerCase():i;/^(button|submit|reset|image|file)$/.test(s)||r.push({tag:i,name:w(a(\"name\")),type:s,html:e[0]})}return r}u.fieldsIn=We,u.parse=function(t){var r=u.splitSettings(t),e=r.markup,n=new xe,i=[],a=[],s,o=0;be.lastIndex=0;for(var l=[];(s=be.exec(e))!==null;){a.push(e.slice(o,s.index)),i.push(s[0]);var d=s.index+(s[1]===`\n`?1:0);l.push((e.slice(0,d).match(/\\n/g)||[]).length+1),o=s.index+s[0].length,s[0].length===0&&be.lastIndex++}a.push(e.slice(o));var h={},v=vt(i);(function(){for(var p=[],T=0,j=-1,X=0;X<i.length;X++){var ht=i[X].replace(/^\\n?[ \\t]*/,\"\"),H=v[X];if(/^Q/.test(ht)){H===0&&(j=-1,T++),p[H]=0;for(var ft=String(T),me=0;me<H&&p[me];)ft+=\".\"+p[me],me++;h[ft]=!0,j=H}else/^DOC/.test(ht)||(p[H]=(p[H]||0)+1,j=H)}})();for(var m=/GOTO:\\s?([a-zA-Z0-9._\\-]*)\\s*(\\n|$)/g,y,S={};(y=m.exec(e))!==null;){var A=y[1];if(!(A===\"\"||S[A])){S[A]=!0;var Y=new RegExp(\"(^|\\\\n)+[ \\\\t]*(Q\\\\(\"+K(A)+\"\\\\):)\",\"gi\"),J=(e.match(Y)||[]).length,z=null;if(J===0&&!h.hasOwnProperty(A)?z=\"GOTO:????\":J>1&&(z=\"GOTO:???\"),z)for(var Ct=new RegExp(\"GOTO:\\\\s?\"+K(A)+\"(?![a-zA-Z0-9._\\\\-])\",\"gi\"),oe=0;oe<a.length;oe++)a[oe]=a[oe].replace(Ct,z)}}var M={title:\"\",author:\"\",description:\"\",before:\"\",after:\"\"},Z,B=[];for(Ge.lastIndex=0;(Z=Ge.exec(a[0]))!==null;)B.push({key:Z[1].toLowerCase(),start:Z.index,end:Z.index+Z[0].length});for(var N=0;N<B.length;N++){var Lt=N+1<B.length?B[N+1].start:a[0].length,Ae=a[0].slice(B[N].end,Lt);(B[N].key===\"title\"||B[N].key===\"author\"||B[N].key===\"description\")&&(Ae=w(Ae)),M[B[N].key]=Ae}var st=function(p){return w(String(p).replace(/<[^>]*>/g,\"\").replace(/[\\r\\n]+/g,\" \"))};M.titleText=st(M.title),M.descriptionText=st(M.description);var Q=[],_=-1,ee=\"\",D=!1,le=0,F=[],te=[],ue=[],ce=null,_t=null,G={},Ce={},Le={},Bt={},de=a[0];function Ot(p){var T=new RegExp(\"Q\\\\(\"+K(p)+\"\\\\):\",\"g\");return(e.match(T)||[]).length}function pe(p){for(var T=String(le),j=0;j<p&&Q[j];)T+=\".\"+Q[j],j++;return T}for(var O=0;O<i.length;O++){var x=i[O],g=a[O+1],b=v[O],P=x.replace(/^\\n?[ \\t]*/,\"\");n.line=l[O],v.odd[O]&&n.add(\"Indentation does not line up with any earlier tag (mixing tabs and spaces?).\",q(x,a[O+1]));var R;/^Q/.test(P)?R=\"Q\":/^X[:\\[]/.test(P)?R=\"X\":/^DOC/.test(P)?R=\"DOC\":R=\"A\";var _e=x;if(R===\"Q\"){b===0&&(_=-1,le++),Q[b]=0;var $=pe(b),Oe=/^Q(?:\\((.*)\\))?:/.exec(P),V=Oe&&Oe[1]!==void 0?Oe[1]:\"\",W;V===\"\"||Me(V)?(V!==\"\"&&V!==$&&(G[V]=$),_e=x.replace(/Q(\\((.*)\\))?:/,\"Q(\"+$+\"):\"),W=$):W=V,ue.push([$,W]),b-_!==1&&n.add(\"Misaligned Q.\",q(x,g)),D&&_!==-1&&n.add(\"Mismatched Q and Q.\",q(x,g)),b>0&&Le[b-1]&&n.add('An answer that calls <code>loadQnA()</code> cannot have a Q beneath it: the loaded QnA takes its place. To bring the visitor back to a question in this QnA, use the <code>find</code> and <code>replace</code> arguments of <code>loadQnA()</code>. See <a href=\"https://www.qnamarkup.org/syntax/#loadQnA()\" target=\"_blank\">Documentation</a>.',q(x,g));var ot=g.search(/GOTO:/i),je=ot>=0?(g.slice(0,ot).match(/\\n/g)||[]).length:0,Qe=je>0?w(g.split(`\n`)[je]).substr(0,60):q(x,g);n.line=l[O]+je,/GOTO:\\?\\?\\?\\?/i.test(g)?n.add(\"The target of this GOTO does not exist (or was removed).\",Qe):/GOTO:\\?\\?\\?/i.test(g)?n.add('The target of this GOTO appears more than once, so the call was disabled. Look for \"GOTO:???\".',Qe):/GOTO:/i.test(g)&&!ye.test(g)&&n.add(\"Poorly-formed GOTO call: GOTO must be the last thing in a Q tag, written GOTO:target.\",Qe),n.line=l[O],/^[a-z0-9._\\-]*$/i.test(W)||n.add(\"Variable names must contain only letters, numbers, periods, underscores, or dashes.\",q(x,g)),Ot(W)>1&&n.add(\"Variable names must be unique (not repeated).\",q(x,g));var Be=ye.exec(g),lt={label:$,name:W,text:g,display:w(Be?g.replace(ye,\"\"):g),goto:Be?Be[1]:null,doc:null,jumps:Se(bt(g)).jumps,fields:[],line:l[O]};ce!==null&&(lt.doc=ce,ce=null),F.push(lt),_=b,ee=x,D=!0}else if(R===\"A\"){Q[b]=(Q[b]||0)+1;var ut=pe(b)+\".\"+Q[b];b-_>0&&n.add(\"Misaligned A.\",q(x,g)),/GOTO:/.test(g)&&n.add(\"GOTO calls not allowed in A tags.\",q(x,g));var Ne=/^A(?:\\((.*)\\))?((?:\\[(?:[^\\]\\\\]|\\\\[\\s\\S])*\\])+:|:(?:\\[(?:[^\\]\\\\]|\\\\[\\s\\S])*\\])?)/.exec(P),C={label:ut,parent:Fe(ut),text:g,href:\"javascript:void('');\",target:\"\",value:\"\",isVar:!1},he;(he=/^A(?:\\(.*\\))?:\\[((?:[^\\]\\\\]|\\\\[\\s\\S])*)\\]/.exec(P))?(C.href=he[1],C.target=\"_blank\"):(he=/^A(?:\\(.*\\))?\\[((?:[^\\]\\\\]|\\\\[\\s\\S])*)\\]:/.exec(P))&&(C.href=he[1]),C.href=$e(C.href),Ne&&Ne[1]!==void 0?C.value=Ne[1]:C.value=w(g);var fe=Se(/^javascript:/i.test(C.href)?C.href.replace(/^javascript:/i,\"\"):\"\");C.loads=fe.loads,C.returns=fe.returns,C.jumps=fe.jumps,Le[b]=fe.loads!==null,te.push(C),_=b,ee=x,D=!1}else if(R===\"X\"){Q[b]=(Q[b]||0)+1;var ct=pe(b)+\".\"+Q[b],ve=Fe(ct);b-_>0&&n.add(\"Misaligned X.\",q(x,g)),g=g.replace(/\\s+$/,\"\");var dt=\"text\";/^[ \\t]+\\[\\s*javascript:/i.test(g)?n.add(\"To run JavaScript from an X tag, put the bracket right against the colon, with no space between them: <code>X:[javascript:\\u2026]</code> or <code>X[javascript:\\u2026]:</code>.\",q(x,g)):/^\\s*number\\s*$/i.test(g)?(dt=\"number\",g=\"number\"):/^\\s*$/.test(g)||(g=g.replace(/\\s/g,\"\"),n.warn(`The text after this <code>X:</code> tag has no effect and will be ignored. The field is named by its question's id, the part in parentheses in <code>Q(<em>name</em>):</code>, so nothing needs to follow the colon. The one word that means
2something there is <code>number</code>: <code>X:number</code> makes the field accept only a number. See <a href=\"https://www.qnamarkup.org/syntax/#x\" target=\"_blank\">Documentation</a>.`,q(x,g))),Ce[ve]=(Ce[ve]||0)+1,Ce[ve]>1&&n.add(\"Limit one variable per answer set.\",q(x,g));var Pe=\"\",Re=P.match(/\\[(?:[^\\]\\\\]|\\\\[\\s\\S])*\\]/g);if(Re){var Ie=$e(Re[0].slice(1,-1));Re.length>1?n.add(\"An X tag takes a single <code>[javascript:\\u2026]</code>.\",q(x,g)):/^javascript:/i.test(Ie)?Pe=Ie.replace(/^javascript:/i,\"\"):n.add(\"Square brackets on an X tag must hold JavaScript, written <code>X[javascript:\\u2026]:</code> or <code>X:[javascript:\\u2026]</code>. \"+(w(Ie)===\"\"?\"These are empty.\":\"The <code>javascript:</code> prefix is missing.\")+` The code runs after the visitor's text is saved to the question's variable. See <a href=\"https://www.qnamarkup.org/syntax/#x\" target=\"_blank\">Documentation</a>.`,q(x,g))}var ge=Se(Pe);Le[b]=ge.loads!==null,te.push({label:ct,parent:ve,text:\"<variable>\",href:\"javascript:void('');\",value:\"\",target:\"\",isVar:!0,script:Pe,inputType:dt,loads:ge.loads,returns:ge.returns,jumps:ge.jumps}),_=b,ee=x,D=!1}else if(R===\"DOC\"){var He=!1;b===0&&!/^DOC/.test(ee.replace(/^\\n?[ \\t]*/,\"\"))&&(_=-1,ee=\"Q:\",le++,He=!0),Q[b]=0;var pt=pe(b);He&&le--,_e=x.replace(/DOC\\(?(\\d?)(.\\s*\\d+)*\\)?:/,\"DOC(\"+pt+\"):\"),b-_!==1&&n.add(\"Misaligned DOC.\",q(x,g)),D&&_!==-1&&n.add(\"Mismatched DOC.\",q(x,g)),ce=g,_t=pt,He&&(D=!0)}de+=_e+g}n.line=null,F.length||n.add(\"You must have at least one Q: tag.\",q(i[i.length-1]||\"\",a[a.length-1])),te.length||n.add(\"You must have at least one A: tag.\",q(i[i.length-1]||\"\",a[a.length-1])),Object.keys(G).length&&(de=de.replace(/GOTO:(\\s?)([0-9.]+)(\\s*(?=\\n|$))/gi,function(p,T,j,X){return G.hasOwnProperty(j)?\"GOTO:\"+T+G[j]+X:p}),F.forEach(function(p){p.goto&&G.hasOwnProperty(p.goto)&&(p.goto=G[p.goto])}));var I={};ue.forEach(function(p){I.hasOwnProperty(p[1])||(I[p[1]]=p[0])});var Ue={};ue.forEach(function(p){Ue[p[0]]=!0}),F.forEach(function(p){n.line=p.line,We(p.text).forEach(function(T){if(!T.name){n.warn(\"A form field in this question has no <code>name</code> attribute, so nothing entered in it is saved: give it one (<code><\"+T.tag+' name=\"\\u2026\"</code>) to make it a variable.',q(\"\",T.html));return}p.fields.indexOf(T.name)<0&&p.fields.push(T.name),(I.hasOwnProperty(T.name)||Ue[T.name])&&n.warn(\"The form field <code>\"+k(T.name)+\"</code> has the same name as a question, so the two would share one variable and overwrite each other. Give the field another name.\",q(\"\",T.html))})}),n.line=null;var jt=function(p){return I.hasOwnProperty(p)?I[p]:Ue[p]?p:null},ze=function(p){return p.map(jt).filter(function(T){return T!==null})};return F.forEach(function(p){p.gotoName=p.goto,p.goto=p.goto===null?null:I.hasOwnProperty(p.goto)?I[p.goto]:null,p.jumps=ze(p.jumps)}),te.forEach(function(p){p.jumps=ze(p.jumps),p.returns=ze(p.returns)}),{ok:n.items.length===0,errors:n.items,warnings:n.warnings,code:de,header:M,questions:F,answers:te,names:ue,markup:e,settings:r.settings}},u.errorsHtml=function(t){return t.errors.map(function(r){var e=r.line?'<b class=\"qna-error-line\">Line '+r.line+\":</b> \":\"\";return'<li class=\"error\"'+(r.line?' data-line=\"'+r.line+'\"':\"\")+\">\"+e+r.message+(r.near?\"<br><code>\"+k(r.near)+\"</code>\":\"\")+\"</li>\"}).join(\"\")};function xt(t,r,e){for(var n=\"\",i=0;i<6;i+=2){var a=Math.round(parseInt(t.substr(i,2),16)*(1-e)+parseInt(r.substr(i,2),16)*e);n+=(a<16?\"0\":\"\")+a.toString(16)}return n}u.css=function(t,r){var e=ne(t),n=e.lineHeight,i=e.radius,a=r?r+\" \":\"\",s=\"font-family:\"+e.fontFamily+\";font-size:\"+e.fontSize+\"px;line-height:\"+n+\"px;\",o=\"padding:\"+n*.5+\"px \"+n*.75+\"px \"+n*.7+\"px \"+n*.75+\"px;\",l=\"padding:\"+n*.5+\"px 0 \"+n*.6+\"px 0;\",d=e.chatStyle===\"llm\",h=d?e.bodyBg:e.compBg,v=d?e.bodyTxt:e.compTxt,m=d?e.bodyLink:e.compLink,y=xt(e.btnBg,e.btnTxt,1/14),S=\"background:#\"+e.btnBg+\";\",A=\"color:#\"+e.btnTxt+\";\"+(e.btnBold?\"font-weight:bold;\":\"\"),Y=\"background:#\"+y+\";\",J=e.btnTxt!==u.defaults.btnTxt,z=d?\"border-radius:0;padding:8px 0 0 0;margin:0;\":\"border-radius:\"+i+\"px;\"+o+\"margin-right:\"+(i+30)+\"px;\";return[r?\"\":'script[type=\"text/qna\"],#rawmarkup{display:none;}',\"\"+a+\".qna-conversation,\"+a+\"#QandA{display:flow-root;}\",\"\"+a+\".qna-conversation{\"+s+\"background:#\"+e.bodyBg+\";color:#\"+e.bodyTxt+\";}\",\"\"+a+\".qna-conversation :where(a){color:#\"+e.bodyLink+\";}\",r?\"\":\"body.qna-page{\"+s+\"background:#\"+e.bodyBg+\";color:#\"+e.bodyTxt+\";}\",\"\"+a+\"#QandA img{max-width:100%;}\",\"\"+a+\"div.frame{float:left;width:100%;margin:5px 0 5px 0;}\",\"\"+a+\"div.full{float:left;width:100%;}\",\"\"+a+\"div.question_text{float:left;\"+s+\"color:#\"+v+\";min-width:30px;background:#\"+h+\";\"+z+\"}\",\"\"+a+\"div.question_text a:link,\"+a+\"div.question_text a:hover,\"+a+\"div.question_text a:active,\"+a+\"div.question_text a:visited{color:#\"+m+\";}\",\"\"+a+\"div.question_arrow{\"+(d?\"display:none;\":\"\")+\"float:left;width:0;height:0;border-left:5px solid transparent;border-right:10px solid transparent;border-top:15px solid #\"+h+\";margin:0 \"+(i+5)+\"px;}\",\"\"+a+\"div.ans_text{float:right;\"+s+\"color:#\"+e.usrTxt+\";min-width:\"+(i+15)+\"px;background:#\"+e.usrBg+\";border-radius:\"+i+\"px;\"+o+\"margin-left:\"+(i+30)+\"px;\"+(d?\"margin-top:8px;\":\"\")+\"}\",\"\"+a+\"div.ans_text a:link,\"+a+\"div.ans_text a:hover,\"+a+\"div.ans_text a:active,\"+a+\"div.ans_text a:visited{color:#\"+e.usrLink+\";}\",\"\"+a+\"div.ans_arrow{float:right;width:0;height:0;border-left:10px solid transparent;border-right:5px solid transparent;border-top:15px solid #\"+e.usrBg+\";margin:0 \"+(i+5)+\"px;}\",\"\"+a+\"div.choices{float:left;width:100%;margin:15px 0 0 0;}\",\"\"+a+\"div.standard_buttons{float:left;width:100%;margin-top:5px;border-top:1px solid #\"+e.btnDivider+\";padding-top:12px;}\",\"\"+a+\"div.credits{float:left;width:100%;\"+S+\"margin:0 0 15px 0;}\",\"\"+a+\"div.credit_text{\"+s+\"color:#\"+e.btnTxt+\";padding:4px 15px 10px 15px;}\",\"\"+a+\"div.credit_text a:link{color:#\"+(J?e.btnTxt:\"0000ee\")+\";}\",\"\"+a+\"div.credit_text a:visited{color:#\"+(J?e.btnTxt:\"551a8b\")+\";}\",\"\"+a+\"li.error{list-style-type:none;background:#ffdddd;margin:10px 0 0 0;padding:5px;}\",\"\"+a+\".qpad{float:left;padding:0 \"+n*.75+\"px;}\",\"\"+a+\"a.sbutton{float:left;\"+s+\"width:48%;\"+S+\"border-radius:8px;\"+l+\"margin:0 0 3px 0;border:solid 1px #\"+e.btnBorder+\";text-align:center;\"+A+\"text-decoration:none;cursor:pointer;}\",\"\"+a+\"a.sbutton:hover,\"+a+\"a.sbutton:active{\"+Y+\"}\",\"\"+a+\"a.qabutton{float:left;\"+s+\"width:100%;\"+S+\"border-radius:8px;\"+l+\"margin:0 0 8px 0;border:solid 1px #\"+e.btnBorder+\";text-align:left;\"+A+\"text-decoration:none;cursor:pointer;box-sizing:border-box;}\",\"\"+a+\"a.qabutton:hover,\"+a+\"a.qabutton:active{\"+Y+\"}\",\"\"+a+\"div.xdiv{float:left;width:100%;margin:0 0 8px 0;\"+S+\"border:solid 1px #\"+e.btnBorder+\";border-radius:8px;box-sizing:border-box;}\",\"\"+a+\"input.xinput{box-sizing:border-box;float:left;width:100%;\"+s+\"background:#fff;border-top-left-radius:8px;border-top-right-radius:8px;padding:\"+n*.5+\"px \"+n*.5+\"px \"+n*.6+\"px \"+n*.5+\"px;border:solid 0 #\"+e.btnBorder+\";border-bottom:solid 1px #\"+e.btnBorder+\";text-align:left;color:#000;}\",\"\"+a+\"a.xbutton{float:left;width:100%;text-align:left;\"+s+S+\"border-radius:8px;\"+l+A+\"text-decoration:none;cursor:pointer;}\",\"\"+a+\"a.xbutton:hover,\"+a+\"a.xbutton:active{border-top-left-radius:0;border-top-right-radius:0;\"+Y+\"}\",\"\"+a+\".qna-jump{float:left;width:100%;height:1px;}\",\"\"+a+\".qna-pending{float:left;width:100%;position:relative;min-height:\"+(d?n+18:Math.round(n*2.2+25))+\"px;}\",\"\"+a+\".qna-pending .qna-typing{position:absolute;top:0;left:0;width:100%;margin:5px 0 0 0;}\",\"\"+a+\".qna-pending-body{float:left;width:100%;visibility:hidden;}\",\"\"+a+\".qna-pending-body.qna-revealed{visibility:visible;animation:qna-fadein .15s ease-in;}\",\"\"+a+\".qna-dots{display:inline-block;line-height:\"+n+\"px;}\",\"\"+a+\".qna-dots i{display:inline-block;width:\"+Math.max(5,Math.round(e.fontSize*.45))+\"px;height:\"+Math.max(5,Math.round(e.fontSize*.45))+\"px;margin:0 2px;border-radius:50%;background:currentColor;opacity:.35;animation:qna-blink 1.2s infinite ease-in-out;}\",\"\"+a+\".qna-dots i:nth-child(2){animation-delay:.2s;}\",\"\"+a+\".qna-dots i:nth-child(3){animation-delay:.4s;}\",r?\"\":\"@keyframes qna-blink{0%,80%,100%{opacity:.35;transform:translateY(0);}40%{opacity:1;transform:translateY(-2px);}}\",r?\"\":\"@keyframes qna-fadein{from{opacity:0;}to{opacity:1;}}\",\"\"+a+\".qna-footer{float:left;width:100%;margin:15px 0 0 0;border-top:solid 1px #\"+e.btnDivider+\";}\",\"\"+a+\".qna-spacer{float:left;width:100%;height:0;}\",\"\"+a+\".qna-footer p{text-align:center;}\",\"\"+a+\".qna-error-list{margin:0;padding:0;font-family:Verdana,Geneva,sans-serif;font-size:13px;}\"].join(`\n`)},u.injectCss=function(t,r,e){e=e||c.document;var n=r?\"qna-style-\"+r.replace(/[^a-z0-9_-]/gi,\"\"):\"qna-style\",i=e.getElementById(n);
2return i||(i=e.createElement(\"style\"),i.id=n,(e.head||e.getElementsByTagName(\"head\")[0]||e.body).appendChild(i)),i.textContent=u.css(t,r),i};function wt(t){for(var r=\"\",e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=+$/,\"\")}function St(t){for(t=t.replace(/-/g,\"+\").replace(/_/g,\"/\");t.length%4;)t+=\"=\";for(var r=atob(t),e=new Uint8Array(r.length),n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return e}function Xe(t,r){var e=r.writable.getWriter();return e.write(t).catch(function(){}),e.close().catch(function(){}),new Response(r.readable).arrayBuffer().then(function(n){return new Uint8Array(n)})}var Ke=typeof c.CompressionStream==\"function\"&&typeof c.DecompressionStream==\"function\";u.encodeHash=function(t){var r=JSON.stringify(t);if(!Ke)return Promise.resolve(\"j=\"+encodeURIComponent(r));var e=new TextEncoder().encode(r);return Xe(e,new c.CompressionStream(\"deflate-raw\")).then(function(n){return\"z=\"+wt(n)})},u.decodeHash=function(t){if(t=String(t||\"\").replace(/^[#?]/,\"\"),!t)return Promise.resolve(null);if(!/^[A-Za-z_][A-Za-z0-9_]*=/.test(t)){var r;try{r=decodeURIComponent(t.replace(/\\+/g,\" \"))}catch(a){r=t}return Promise.resolve({markup:r})}var e={};if(t.split(\"&\").forEach(function(a){var s=a.indexOf(\"=\");if(!(s<0)){var o=decodeURIComponent(a.slice(0,s)),l=a.slice(s+1);e[o]=o===\"z\"?l:decodeURIComponent(l.replace(/\\+/g,\" \"))}}),e.z)return Ke?Xe(St(e.z),new c.DecompressionStream(\"deflate-raw\")).then(function(a){return JSON.parse(new TextDecoder().decode(a))}):Promise.reject(new Error(\"This browser cannot decompress the link.\"));if(e.j)return Promise.resolve(JSON.parse(e.j));if(e.markup!==void 0||e.m!==void 0||e.q!==void 0){var n={markup:e.markup!==void 0?e.markup:e.m!==void 0?e.m:e.q};for(var i in U)e[i]!==void 0&&(n[U[i]]=e[i]);return e.sharing===\"2\"&&(n.footer=!1),Promise.resolve(n)}return Promise.resolve(null)};var Ye=[];u.current=null,u._styleKey=null,u._scopeSeq=0;var Te=[],ke=!1;function Je(){for(var t=c.document;!ke&&Te.length;){var r=Te.shift();if(!(!r.parentNode||!t.documentElement.contains(r))){for(var e=t.createElement(\"script\"),n=0;n<r.attributes.length;n++)e.setAttribute(r.attributes[n].name,r.attributes[n].value);r.nonce&&(e.nonce=r.nonce),e.text=r.text,e.src&&(ke=!0,e.async=!1,e.onload=e.onerror=function(i){return function(a){i.onload=i.onerror=null,a&&a.type===\"error\"&&c.console&&console.error(\"QnA: could not load script \"+i.src),ke=!1,Je()}}(e)),r.parentNode.replaceChild(e,r)}}}function Ze(t){for(var r=0;r<t.length;r++){var e=t[r];if(!(!e||e.nodeType!==1))for(var n=e.tagName===\"SCRIPT\"?[e]:e.querySelectorAll(\"script\"),i=0;i<n.length;i++)De.test(w(n[i].getAttribute(\"type\")||\"\"))&&Te.push(n[i])}Je()}function et(t){return String(t).replace(/<(script|style)\\b[^>]*>[\\s\\S]*?<\\/\\1\\s*>/gi,\"\")}function f(t,r,e){this.container=t,t.qna=this,u.current=this,this.result=r,this.options=e,this.rebuildTables(),this.history=[],this.pre={jumps:[]},this.jumpQueue=[],this.presenting=!1,this.scriptStep=null,this.checkpoint=null,this.timer=null,this.pendingToken=0,this.typingEl=null,this.pendingWrap=null,this.lastAnchor=null,this.build(),this.start(e.start)}f.prototype.build=function(){var t=this.result,r=this.options,e=this.container,n='<form name=\"FORM\" id=\"FORM\" class=\"qna-form\" onsubmit=\"return false;\"><div id=\"conversation\" class=\"qna-conversation\" style=\"margin:'+r.framePad+\"px auto 0 auto;padding:0 \"+r.framePad+\"px;max-width:\"+r.colWidth+'px\">'+t.header.before+'<div id=\"QandA\" class=\"QandA\"></div><div id=\"Choices\" class=\"choices\"></div><div class=\"qna-vars\" style=\"display:none\"></div><div class=\"qna-footer\"></div><div class=\"qna-spacer\"></div></div></form>'+t.header.after;e.innerHTML=n,this.form=e.querySelector(\"form.qna-form\"),this.qanda=e.querySelector(\"#QandA\"),this.choices=e.querySelector(\"#Choices\"),this.varsEl=e.querySelector(\".qna-vars\"),this.footer=e.querySelector(\".qna-footer\"),this.spacer=e.querySelector(\".qna-spacer\");var i=this,a=function(s){i.onFieldChange(s)};this.qanda.addEventListener(\"input\",a),this.qanda.addEventListener(\"change\",a),r.footer?this.buildFooter():this.footer.style.display=\"none\",Ze([e])},f.prototype.buildFooter=function(){var t=this.result.header,r=this,e=\"\",n=t.title||t.author||t.description;n&&(e+='<div id=\"credits\" class=\"credits\" style=\"display:none;\"><div class=\"credit_text\">',t.title&&(e+=\"<p><b>\"+t.title+\"</b></p>\"),t.author&&(e+=\"<p>By \"+t.author+\"</p>\"),t.description&&(e+=\"<p>\"+t.description+\"</p>\"),e+=\"</div></div>\"),e+=\"<p>\",n&&(e+=`<a href=\"javascript:void('');\" class=\"qna-credits-link\">`+k(this.options.labelCredits)+\"</a>
2 | \"),e+='<span class=\"qna-edit-wrap\"><a href=\"'+k(this.options.editorUrl)+'\" class=\"qna-edit-link\" target=\"_top\">'+k(this.options.labelEdit)+\"</a> | </span>\",e+='<a href=\"'+k(this.options.editorUrl)+'\" class=\"qna-code-link\" target=\"_top\">'+k(this.options.labelCode)+\"</a></p>\",this.footer.innerHTML=e;var i=this.footer.querySelector(\".qna-credits-link\");i&&i.addEventListener(\"click\",function(){var o=r.footer.querySelector(\"#credits\");o.style.display=o.style.display===\"none\"?\"block\":\"none\"});var a=this.footer.querySelector(\".qna-edit-link\"),s={markup:this.result.markup};qe.forEach(function(o){o!==\"footer\"&&r.options[o]!==u.defaults[o]&&(s[o]=r.options[o])}),u.encodeHash(s).then(function(o){var l=r.options.editorUrl+\"#\"+o;if(l.length>u.LINK_MAX.z){var d=a.parentNode;d&&d.parentNode.removeChild(d);return}a.href=l}).catch(function(){}),a.addEventListener(\"click\",function(){alert(r.options.labelEditWarn)})};function tt(t){var r=/^(L\\d+)\\./.exec(String(t));return r?r[1]:\"\"}var E=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};f.prototype.rebuildTables=function(){this.byLabel={},this.byName={},this.answersByQ={},this.answerByLabel={},this.allQuestions=[],this.units={},this.loadCount=0,this.addUnit({id:\"\",prefix:\"\",url:null,result:this.result,redirect:null})},f.prototype.addUnit=function(t){var r=this,e=t.prefix?t.prefix+\".\":\"\",n=this.options.qShare;if(t.byName={},this.units[t.id]=t,t.result.questions.forEach(function(s){var o={label:e+s.label,name:e&&(Me(s.name)||!n)?e+s.name:s.name,text:s.text,display:s.display,doc:s.doc,jumps:s.jumps,fields:s.fields||[],goto:s.goto===null?null:e+s.goto,gotoName:s.gotoName,unit:t.id,redirect:null};r.byLabel[o.label]=o,E(r.byName,o.name)||(r.byName[o.name]=o),t.byName[s.name]=o,r.allQuestions.push(o)}),t.result.answers.forEach(function(s){var o={};for(var l in s)E(s,l)&&(o[l]=s[l]);o.label=e+s.label,o.parent=e+s.parent,o.unit=t.id,r.answerByLabel[o.label]=o,(r.answersByQ[o.parent]=r.answersByQ[o.parent]||[]).push(o)}),t.redirect){for(var i in t.redirect)if(E(t.redirect,i)){var a=t.byName[i]||r.byLabel[e+i];a?a.redirect=t.redirect[i]:c.console&&console.error('QnA: loadQnA(): the loaded QnA has no question \"'+i+'\" to replace.')}}return t},f.prototype.installUnit=function(t,r,e){var n=u.parse(t);if(!n.ok)throw new Error(\"the QnA has errors (\"+String(n.errors[0].message).replace(/<[^>]*>/g,\"\")+\")\");
2if(!n.questions.length)throw new Error(\"no questions found\");var i=\"L\"+ ++this.loadCount;return this.addUnit({id:i,prefix:i,url:r,result:n,redirect:e||null})},f.prototype.currentUnit=function(){return this.scriptStep?tt(this.scriptStep.label):this.presenting&&this.presentingUnit||\"\"},f.prototype.resolveLabel=function(t,r){var e=w(t==null?\"\":t);if(r&&this.units[r]){if(E(this.units[r].byName,e))return this.units[r].byName[e].label;if(E(this.byLabel,r+\".\"+e))return r+\".\"+e}return E(this.byName,e)?this.byName[e].label:e};var ie=null;function Ee(t){var r=String(t==null?\"\":t).replace(/<[^>]*>/g,\"\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/"/g,'\"').replace(/ /g,\" \").replace(/&/g,\"&\").toLowerCase();if(ie===null)try{ie=new RegExp(\"[^\\\\p{L}\\\\p{N}\\\\p{Extended_Pictographic}\\\\p{Emoji_Modifier}\\\\u200d\\\\ufe0f]\",\"gu\")}catch(e){ie=/[^a-z0-9]/g}return r.replace(ie,\"\")}u.normalizeValue=Ee,f.prototype.reset=function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.pendingToken=(this.pendingToken||0)+1,this.typingEl=null,this.pendingWrap=null,this.choices.style.display=\"\",this.qanda.innerHTML=\"\",this.choices.innerHTML=\"\",this.varsEl.innerHTML=\"\",this.convo=[],this.docs=[],this.vars={},this.varUnit={},this.autoDone={},this.pending={},this.fieldSeen={},this.loading=!1,this.current=null,this.qnum=0,this.loadCount&&this.rebuildTables()},f.prototype.setVar=function(t,r,e){this.vars[t]=r,this.varUnit[t]=e||\"\";for(var n=this.varsEl.querySelectorAll(\"textarea\"),i=0;i<n.length;i++)n[i].name===t&&n[i].parentNode.removeChild(n[i]);var a=c.document.createElement(\"textarea\");a.id=t,a.name=t,a.setAttribute(\"data-var\",t),a.textContent=ae(r),this.varsEl.appendChild(a)};function ae(t){return Array.isArray(t)?t.join(\", \"):String(t)}f.prototype.swapvar=function(t,r){var e=String(t),n,i=r?r+\".\":\"\";if(i)for(n in this.vars)E(this.vars,n)&&n.indexOf(i)===0&&(e=e.replace(new RegExp(\"<x>\"+K(n.slice(i.length))+\"<\\\\/x>\",\"gi\"),ae(this.vars[n])));for(n in this.vars)E(this.vars,n)&&(e=e.replace(new RegExp(\"<x>\"+K(n)+\"<\\\\/x>\",\"gi\"),ae(this.vars[n])));return e},f.prototype.appendHtml=function(t){var r=c.document.createElement(\"div\");r.innerHTML=t;for(var e=[],n=this.pendingWrap||this.qanda;r.firstChild;)e.push(r.firstChild),n.appendChild(r.firstChild);return Ze(e),e};function se(t){return/^(\\s| |<br\\s*\\/?>)*$/i.test(String(t))}f.prototype.questionBubbles=function(t,r){for(var e=t.split(/<br\\s*\\/?><br\\s*\\/?>/i),n=\"\",i=0;i<e.length;i++){var a=this.swapvar(e[i],r);se(a)||(n+=\"<div class='frame' data-exchange='\"+this.qnum+\"'><div class='full'><div class='question_text'>\"+a+\"</div></div><div class='question_arrow'></div></div>\",this.convo.push(\"BOT: \"+et(a)+`\n`))}this.appendHtml(n)},f.prototype.answerBubble=function(t){t=t.replace(/(<br\\s*\\/?>){2}/gi,\"<br> <br>\"),this.appendHtml(\"<div class='frame'><div class='full'><div class='ans_text'>\"+t+\"</div></div><div class='ans_arrow'></div></div>\")};function rt(t){return!t||!t.name?!1:t.tagName===\"INPUT\"?!/^(button|submit|reset|image|file)$/i.test(t.type):t.tagName===\"SELECT\"||t.tagName===\"TEXTAREA\"}f.prototype.exchangeControls=function(t){var r=[\"input\",\"select\",\"textarea\"].map(function(e){return\".frame[data-exchange='\"+t+\"'] \"+e+\"[name]\"}).join(\",\");return Array.prototype.filter.call(this.qanda.querySelectorAll(r),rt)};function qt(t){var r={},e=[],n={},i=function(a){return String(a).replace(/</g,\"<\").replace(/>/g,\">\")};return t.forEach(function(a){r[a.name]||(r[a.name]=[],e.push(a.name)),r[a.name].push(a)}),e.forEach(function(a){var s=r[a],o=s[0];if(o.tagName===\"INPUT\"&&o.type===\"checkbox\"){var l=s.filter(function(h){return h.checked}).map(function(h){return i(h.value)});n[a]=s.length>1?l:l.length?l[0]:\"\"}else if(o.tagName===\"INPUT\"&&o.type===\"radio\"){var d=s.filter(function(h){return h.checked});n[a]=d.length?i(d[0].value):\"\"}else o.tagName===\"SELECT\"&&o.multiple?n[a]=Array.prototype.filter.call(o.options,function(h){return h.selected}).map(function(h){return i(h.value)}):n[a]=i(s[s.length-1].value)}),n}function nt(t,r){var e=function(n){return String(n).replace(/</g,\"<\").replace(/>/g,\">\")};t.forEach(function(n){if(E(r,n.name)){var i=r[n.name],a=Array.isArray(i)?i.map(e):[e(i)];n.tagName===\"INPUT\"&&(n.type===\"checkbox\"||n.type===\"radio\")?n.checked=a.indexOf(n.value)>=0:n.tagName===\"SELECT\"&&n.multiple?Array.prototype.forEach.call(n.options,function(s){s.selected=a.indexOf(s.value)>=0}):n.value=a.length?a[a.length-1]:\"\"}})}function Tt(t){return Object.keys(t).map(function(r){return r+\"=\"+ae(t[r])}).join(\"; \")}f.prototype.captureFields=function(t){var r=this.exchangeControls(t);if(!r.length)return this.pending={},null;var e=qt(r),n=this.current!==null?this.byLabel[this.current]:null,i=this;return Object.keys(e).forEach(function(a){i.setVar(a,e[a],n?n.unit:\"\"),i.fieldSeen[a]=!0}),this.pending=e,e},f.prototype.freezeFields=function(t){var r=\".frame[data-exchange='\"+t+\"'] input,.frame[data-exchange='\"+t+\"'] select,.frame[data-exchange='\"+t+\"'] textarea\";Array.prototype.forEach.call(this.qanda.querySelectorAll(r),function(e){e.disabled=!0,e.setAttribute(\"data-qna-frozen\",\"1\")})},f.prototype.onFieldChange=function(t){var r=t.target;if(!(!rt(r)||r.disabled)){var e=r.closest?r.closest(\".frame[data-exchange]\"):null;!e||e.getAttribute(\"data-exchange\")!==String(this.qnum-1)||(this.captureFields(this.qnum-1),this.saveProgress())}},f.prototype.showQuestion=function(t){for(var r=0;t!==null&&r++<500;){var e=this.byLabel[t];if(!e)return this.appendHtml(\"<div class='frame'><div class='full'><div class='question_text'>[QnA: missing question \"+k(t)+\"]</div></div><div class='question_arrow'></div></div>\"),null;if(e.redirect!==null){t=e.redirect;continue}if(e.doc!==null&&this.docs.push({text:e.doc,unit:e.unit}),this.presentingUnit=e.unit,e.goto!==null){se(e.display)||this.questionBubbles(e.display,e.unit),t=e.goto;continue}if(e.goto===null&&e.gotoName!==null)return se(e.display)||this.questionBubbles(e.display,e.unit),null;se(e.display)||this.questionBubbles(e.display,e.unit);var n=this.priorAnswer(e);if(n){t=n.next;continue}return t}return null},f.prototype.priorAnswer=function(t){if(this.replaying||!this.options.qShare||this.autoDone[t.label]||!E(this.vars,t.name)||this.varUnit[t.name]===t.unit)return null;var r=this.vars[t.name],e=this.answersByQ[t.label]||[],n=null,i,a=String(r).replace(/</g,\"<\").replace(/>/g,\">\");for(i=0;i<e.length&&!n;i++)!e[i].isVar&&(e[i].value===r||e[i].value===a)&&(n=e[i]);for(i=0;i<e.length&&!n;i++)e[i].isVar&&(n=e[i]);if(!n){var s=Ee(r),o=[];for(i=0;i<e.length;i++)!e[i].isVar&&Ee(e[i].value)===s&&o.push(e[i]);if(s!==\"\"&&o.length===1){var l=w(String(o[0].text).replace(/<[^>]*>/g,\"\"));c.confirm(this.options.labelConfirm.replace(/<x>answer<\\/x>/gi,l))&&(n=o[0])}}if(!n)return null;var d={label:n.label,value:n.isVar?r:null,auto:!0};this.history.push(d),this.applyAnswer(d);var h=n.label,v=n.isVar?n.script:/^javascript:/i.test(n.href)&&n.href!==\"javascript:void('');\"?n.href.replace(/^javascript:/i,\"\"):\"\";if(v){var m=this.jumpQueue.length;this.scriptStep=d;try{(0,eval)(v)}catch(y){c.console&&console.error(\"QnA: error in answer script:\",y)}this.scriptStep=null,this.jumpQueue.length>m?(d.skip=!0,h=this.jumpQueue.splice(m,1)[0]):d.skip&&(h=null)}return this.saveProgress(),{next:h}},f.prototype.renderChoices=function(){var t=this,r=\"\",e=null,n=this.current!==null?this.answersByQ[this.current]||[]:[];
2n.forEach(function(l){if(l.isVar){e=\"Xi-\"+l.label;var d=l.script?' data-script=\"'+k(l.script)+'\"':\"\",h=l.inputType===\"number\"?'number\" step=\"any\" inputmode=\"decimal':\"text\";r+='<div class=\"xdiv\"><input type=\"'+h+'\" id=\"'+e+'\" name=\"'+e+'\" class=\"xinput\" data-answer=\"'+l.label+'\"'+d+` autocomplete=\"off\"/><a href=\"javascript:void('');\" class=\"xbutton\" data-answer=\"`+l.label+'\"'+d+'><span class=\"qpad\">'+k(t.options.labelSave)+\"</span></a></div>\"}else{var v=l.text.replace(/(<br\\s*\\/?>){2}/gi,\"<br> <br>\"),m=l.href,y=\"\";/^javascript:/i.test(m)&&m!==\"javascript:void('');\"&&(y=m.replace(/^javascript:/i,\"\"),m=\"javascript:void('');\"),r+='<a href=\"'+k(m)+'\" class=\"qabutton\" data-answer=\"'+l.label+'\"'+(y?' data-script=\"'+k(y)+'\"':\"\")+(l.target?' target=\"'+l.target+'\"':\"\")+'><span class=\"qpad\">'+v+\"</span></a>\"}}),(this.history.length>0||this.qnum>1)&&(r+=`<div class=\"standard_buttons\"><a href=\"javascript:void('');\" class=\"sbutton qna-back\">`+k(this.options.labelBack)+`</a><a href=\"javascript:void('');\" class=\"sbutton qna-restart\" style=\"float:right\">`+k(this.options.labelRestart)+\"</a></div>\"),this.choices.innerHTML=r;for(var i=this.choices.querySelectorAll(\"[data-answer]\"),a=0;a<i.length;a++)(function(l){var d=function(){if(t.answer(l.getAttribute(\"data-answer\"))){var h=l.getAttribute(\"data-script\");if(h){t.scriptStep=t.history[t.history.length-1];try{(0,eval)(h)}catch(v){c.console&&console.error(\"QnA: error in answer script:\",v)}t.scriptStep=null}}};l.tagName===\"INPUT\"?l.addEventListener(\"keydown\",function(h){(h.keyCode===13||h.key===\"Enter\")&&(h.preventDefault(),d())}):l.addEventListener(\"click\",d)})(i[a]);var s=this.choices.querySelector(\".qna-back\");s&&s.addEventListener(\"click\",function(){t.goBack()});var o=this.choices.querySelector(\".qna-restart\");o&&o.addEventListener(\"click\",function(){t.clearProgress(),t.start(t.options.start,!1)}),e&&this.prefill!==void 0&&this.prefill!==null&&(c.document.getElementById(e).value=this.prefill),this.prefill=null},f.prototype.presentQuestion=function(t,r){var e=null;if(this.qnum>0){var n=this.appendHtml('<div class=\"qna-jump\"> </div>');e=n[0]}var i=[].concat(t),a=null,s=0;this.presenting=!0,this.jumpQueue=[];for(var o=0;o<i.length;o++)if(i[o]&&typeof i[o]==\"object\"){var l=this.installUnit(i[o].text,i[o].url,i[o].redirect);a=this.showQuestion(l.prefix+\".1\")}else a=this.showQuestion(String(i[o]));for(;this.jumpQueue.length&&s++<500;)a=this.showQuestion(this.jumpQueue.shift());if(this.jumpQueue=[],this.presenting=!1,this.pendingLoad){var d=this.pendingLoad;this.pendingLoad=null,setTimeout(d,0)}this.current=a,this.renderChoices(),this.captureFields(this.qnum),this.qnum++,this.lastAnchor=e,!this.pendingWrap&&!this.replaying&&this.revealScroll(r)},f.prototype.revealScroll=function(t){this.lastAnchor&&this.options.scroll&&this.scrollToAnchor(t),this.focusInput()},f.prototype.focusInput=function(){var t=this.choices.querySelector(\"input.xinput\");if(t&&!(c.self!==c.top&&!(c.document.hasFocus&&c.document.hasFocus()))){var r=c.document.activeElement;if(!(r&&!this.container.contains(r)&&(/^(INPUT|TEXTAREA|SELECT)$/.test(r.tagName)||r.isContentEditable)))try{t.focus({preventScroll:!0})}catch(e){try{t.focus()}catch(n){}}}},f.prototype.scroller=function(){for(var t=this.container.parentNode,r=c.document;t&&t!==r.body&&t!==r.documentElement;){var e=getComputedStyle(t),n=e.overflowY;if((n===\"auto\"||n===\"scroll\"||n===\"overlay\")&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return null},f.prototype.scrollToAnchor=function(t){var r=this.lastAnchor,e=c.document;if(!(!r||!r.parentNode)){var n=this.scroller(),i=n?n.clientHeight:c.innerHeight||e.documentElement.clientHeight,a=r.getBoundingClientRect().top,s=this.spacer.getBoundingClientRect().top,o=Math.max(0,Math.ceil(i-(s-a))),l=parseFloat(this.spacer.style.height)||0;o>l&&(this.spacer.style.height=o+\"px\");var d=n?n.getBoundingClientRect().top:0,h=r.getBoundingClientRect().top-d,v=t?\"smooth\":\"auto\";try{n?n.scrollTo({top:n.scrollTop+h,behavior:v}):c.scrollTo({top:(c.pageYOffset||e.documentElement.scrollTop)+h,behavior:v})}catch(m){n?n.scrollTop+=h:c.scrollTo(0,(c.pageYOffset||0)+h)}}},f.prototype.applyAnswer=function(t){var r=this.answerByLabel[t.label];if(r){var e=this.byLabel[r.parent],n=e?e.name:r.parent,i=r.isVar?t.value:w(r.text),a=r.isVar?t.value:r.value;t.auto?(i=k(this.options.labelEarlier)+\" \"+i,this.autoDone[r.parent]=!0):this.setVar(n,a,r.unit);var s=t.auto?this.qnum:this.qnum-1,o=this,l=\"\";t.fields&&(nt(this.exchangeControls(s),t.fields),Object.keys(t.fields).forEac
2h(function(d){o.setVar(d,t.fields[d],r.unit),o.fieldSeen[d]=!0}),l=\" (\"+Tt(t.fields)+\")\"),this.freezeFields(s),this.pending={},this.answerBubble(i),this.convo.push(\"USER: \"+et(i)+l+`\n`)}},f.prototype.waitForImages=function(t){var r=Array.prototype.slice.call(t.querySelectorAll(\"img\"));if(!r.length)return Promise.resolve(!1);var e=this.options.loadTimeout;return new Promise(function(n){var i=r.length,a=!1,s=function(){a||(a=!0,n(!0))},o=function(){--i<=0&&s()};r.forEach(function(l){var d=function(){l.decode?l.decode().then(o,o):o()};l.complete?d():(l.addEventListener(\"load\",d),l.addEventListener(\"error\",o))}),setTimeout(s,e)})},f.prototype.hideTyping=function(){this.typingEl&&this.typingEl.parentNode&&this.typingEl.parentNode.removeChild(this.typingEl),this.typingEl=null},f.prototype.presentSoon=function(t,r){var e=this,n=++this.pendingToken,i=c.document,a=i.createElement(\"div\");a.className=\"qna-pending\";var s=i.createElement(\"div\");s.className=\"qna-pending-body\",a.appendChild(s),this.qanda.appendChild(a),this.pendingWrap=s,this.presentQuestion(t,!0),this.pendingWrap=null;var o=s.querySelector(\"img\")!==null,l=function(){if(n===e.pendingToken){e.hideTyping(),s.classList.add(\"qna-revealed\"),e.choices.style.display=\"\";var v=function(){if(n===e.pendingToken){for(;s.firstChild;)a.parentNode.insertBefore(s.firstChild,a);a.parentNode&&a.parentNode.removeChild(a),e.focusInput()}};e.timer=setTimeout(function(){e.timer=null,v()},180)}};if(!o&&!r){for(s.classList.add(\"qna-revealed\"),e.choices.style.display=\"\";s.firstChild;)a.parentNode.insertBefore(s.firstChild,a);a.parentNode.removeChild(a),this.revealScroll(!0);return}this.choices.style.display=\"none\";var d=i.createElement(\"div\");d.className=\"frame qna-typing\",d.innerHTML=\"<div class='full'><div class='question_text'><span class='qna-dots'><i></i><i></i><i></i></span></div></div><div class='question_arrow'></div>\",a.insertBefore(d,s),this.typingEl=d,this.options.scroll&&this.qnum>1&&this.scrollToAnchor(!0);var h=Date.now();this.waitForImages(s).then(function(){if(n===e.pendingToken){var v=Math.max(0,r-(Date.now()-h));if(e.options.scroll&&e.qnum>1&&e.lastAnchor){var m=e.scroller(),y=m?m.getBoundingClientRect().top:0,S=e.lastAnchor.getBoundingClientRect().top-y;(S>4||S<-4)&&(e.scrollToAnchor(!0),v=Math.max(v,350))}e.timer=setTimeout(function(){e.timer=null,l()},v)}})},f.prototype.progressKey=function(){for(var t=5381,r=this.result.markup,e=0;e<r.length;e++)t=(t<<5)+t+r.charCodeAt(e)|0;return\"qna-progress-\"+(t>>>0).toString(36)+\"-\"+r.length},f.prototype.saveProgress=function(){if(this.options.saveProgress)try{var t=Object.keys(this.pending||{}).length?this.pending:null;this.history.length||t?c.localStorage.setItem(this.progressKey(),JSON.stringify({history:this.history,pre:this.pre.jumps,pending:t||void 0,ts:Date.now()})):c.localStorage.removeItem(this.progressKey())}catch(r){}},f.prototype.loadProgress=function(){if(!this.options.saveProgress)return null;try{var t=c.localStorage.getItem(this.progressKey()),r=t?JSON.parse(t):null;if(r&&Array.isArray(r.history)&&(r.history.length||r.pending&&Object.keys(r.pen
2ding).length))return r}catch(e){}return null},f.prototype.clearProgress=function(){try{c.localStorage.removeItem(this.progressKey())}catch(t){}},f.prototype.start=function(t,r){u.current=this,this.history=[],this.pre={jumps:[]},this.checkpoint=null,this.reset(),this.spacer&&(this.spacer.style.height=\"0px\");var e=r===!1?null:this.loadProgress();if(e){var n=this,i=function(o){return typeof o==\"string\"||o&&typeof o==\"object\"&&typeof o.url==\"string\"&&typeof o.text==\"string\"},a=function(o){return o===void 0||Array.isArray(o)&&o.every(i)},s=e.history.every(function(o){return o&&typeof o.label==\"string\"&&(tt(o.label)||n.answerByLabel[o.label])&&a(o.jumps)})&&a(e.pre);if(s){this.history=e.history,this.pre={jumps:e.pre||[]},this.pendingFill=e.pending&&typeof e.pending==\"object\"?e.pending:null;try{this.replay(this.options.animate);return}catch(o){c.console&&console.error(\"QnA: saved progress could not be restored:\",o),this.history=[],this.pre={jumps:[]},this.replaying=!1,this.pendingFill=null,this.reset()}}this.clearProgress()}this.options.animate?this.presentSoon(String(t||\"1\"),0):this.presentQuestion(String(t||\"1\"),!1),this.options.scroll&&this.qnum>1&&c.scrollTo(0,0)},f.prototype.answer=function(t){u.current=this;var r=this.answerByLabel[t];if(!r)return!1;var e={label:t,value:null};if(r.isVar){var n=c.document.getElementById(\"Xi-\"+t),i=n?w(n.value):\"\";if(i===\"\")return alert(this.options.labelEmpty),n&&n.focus(),!1;e.value=i.replace(/</g,\"<\").replace(/>/g,\">\")}for(var a=this.exchangeControls(this.qnum-1),s=0;s<a.length;s++){var o=a[s];if(!o.disabled&&o.checkValidity&&!o.checkValidity())return o.reportValidity?o.reportValidity():alert(o.validationMessage||this.options.labelEmpty),!1}if(a.length){var l=this.captureFields(this.qnum-1);l&&Object.keys(l).length&&(e.fields=l)}return this.history.push(e),this.applyAnswer(e),this.saveProgress(),this.choices.innerHTML=\"\",this.checkpoint={entry:e,convo:this.convo.length,docs:this.docs.length,qnum:this.qnum,last:this.qanda.lastChild},this.options.animate?this.presentSoon(t,300):this.presentQuestion(t,!1),!0};function kt(t){return(t.skip?[]:[t.label]).concat(t.jumps||[])}f.prototype.flushPending=function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.pendingToken++,this.hideTyping(),this.pendingWrap=null;for(var t=this.qanda.querySelectorAll(\".qna-pending\"),r=0;r<t.length;r++){for(var e=t[r],n=e.querySelector(\".qna-pending-body\");n&&n.firstChild;)e.parentNode.insertBefore(n.firstChild,e);e.parentNode.removeChild(e)}this.choices.style.display=\"\"},f.prototype.goto=function(t){if(u.current=this,this.replaying)return!1;var r=this.resolveLabel(t,this.currentUnit());!this.byLabel[r]&&c.console&&console.error(\"QnA: goto(\"+JSON.stringify(String(t))+\"): there is no such question.\");var e=this.history.length?this.history[this.history.length-1]:this.pre;return this.presenting?((e.jumps=e.jumps||[]).push(r),this.jumpQueue.push(r),this.saveProgress(),!0):(this.claimSlot(e),(e.jumps=e.jumps||[]).push(r),this.saveProgress(),this.options.animate?this.presentSoon(r,300):this.presentQuestion(r,!1),!0)},f.prototype.claimSlot=function(t){var r=this.checkpoint;if(this.scriptStep&&this.scriptStep===t&&r&&r.entry===t){for(this.timer&&(clearTimeout(this.timer),this.timer=null),this.pendingToken++,this.typingEl=null,this.pendingWrap=null;this.qanda.lastChild&&this.qanda.lastChild!==r.last;)this.qanda.removeChild(this.qanda.lastChild);this.convo.length=r.convo,this.docs.length=r.docs,this.qnum=r.qnum,this.choices.innerHTML=\"\",this.choices.style.display=\"\",t.skip=!0,t.jumps=[]}else this.flushPending()},f.prototype.getvar=function(t){t=w(t==null?\"\":t);var r=this.currentUnit();return r&&E(this.vars,r+\".\"+t)?this.vars[r+\".\"+t]:E(this.vars,t)?this.vars[t]:void 0},f.prototype.loadQnA=function(t,r,e){if(u.current=this,this.replaying||this.loading)return null;var n=this,i=this.currentUnit(),a=this.units[i]&&this.units[i].url||c.document.baseURI||c.location.href,s;try{s=new c.URL(String(t),a).href}catch(S){s=String(t)}var o={},l;if(r&&typeof r==\"object\")for(l in r)E(r,l)&&(o[l]=this.resolveLabel(r[l],i));
2else r!=null&&String(r)!==\"\"&&(o[String(r)]=this.resolveLabel(e,i));for(l in o)!this.byLabel[o[l]]&&c.console&&console.error('QnA: loadQnA(): there is no question \"'+l+'\" to go to.');if(this.presenting){this.scriptStep&&(this.scriptStep.skip=!0);var d=[t,r,e];return this.pendingLoad=function(){n.loadQnA.apply(n,d)},null}var h=this.history.length?this.history[this.history.length-1]:this.pre;this.claimSlot(h),this.loading=!0;var v=c.document,m=v.createElement(\"div\");m.className=\"frame qna-typing\",m.innerHTML=\"<div class='full'><div class='question_text'><span class='qna-dots'><i></i><i></i><i></i></span></div></div><div class='question_arrow'></div>\",this.qanda.appendChild(m),this.typingEl=m,this.choices.innerHTML=\"\";var y=++this.pendingToken;return u.fetchMarkup(s).then(function(S){if(y!==n.pendingToken)return null;n.loading=!1,n.hideTyping();var A=n.installUnit(S,s,o);return(h.jumps=h.jumps||[]).push({url:s,text:S,redirect:o}),n.saveProgress(),n.options.animate?n.presentSoon(A.prefix+\".1\",300):n.presentQuestion(A.prefix+\".1\",!1),A.prefix}).catch(function(S){return y!==n.pendingToken||(n.loading=!1,n.hideTyping(),c.console&&console.error(\"QnA: loadQnA(\"+JSON.stringify(s)+\") failed:\",S),n.appendHtml(\"<div class='frame'><div class='full'><div class='question_text'>[QnA: could not load \"+k(s)+\": \"+k(S&&S.message?S.message:S)+\"]</div></div><div class='question_arrow'></div></div>\"),n.current=null,n.renderChoices(),n.revealScroll(!0)),null})},u.unpackText=function(t){var r=w(String(t==null?\"\":t)),e=Promise.resolve({markup:String(t==null?\"\":t)});if(!r||/[\\r\\n]/.test(r))return e;var n;if(n=/^https?:\\/\\/\\S+$/i.exec(r)){var i;try{i=new c.URL(r)}catch(s){return e}var a=i.hash.replace(/^#/,\"\");return/^(z|j|markup|m|q)=/.test(a)?u.decodeHash(a).then(function(s){return s&&s.markup!==void 0?s:{markup:t}},function(){return{markup:t}}):i.searchParams.has(\"markup\")||i.searchParams.has(\"m\")||i.searchParams.has(\"q\")?u.decodeHash(i.search).then(function(s){return s&&s.markup!==void 0?s:{markup:t}},function(){return{markup:t}}):e}return/^#?(z|j)=\\S+$/.test(r)?u.decodeHash(r).then(function(s){return s&&s.markup!==void 0?s:{markup:t}},function(){return{markup:t}}):/^[A-Za-z0-9_-]{16,}$/.test(r)?u.decodeHash(\"z=\"+r).then(function(s){return s&&s.markup!==void 0?s:{markup:t}},function(){return{markup:t}}):e},u.fetchMarkup=function(t){var r;try{r=new c.URL(String(t),c.location.href)}catch(i){return Promise.reject(new Error(\"not a valid URL\"))}var e=r.hash.replace(/^#/,\"\"),n=r.searchParams;return n.has(\"source\")?u.fetchMarkup(new c.URL(n.get(\"source\"),r.href).href):/^(z|j|markup)=/.test(e)?u.decodeHash(e).then(function(i){return i.markup}):n.has(\"markup\")||n.has(\"m\")||n.has(\"q\")?u.decodeHash(r.search).then(function(i){return i.markup}):c.fetch(r.href).then(function(i){if(!i.ok)throw new Error(\"HTTP \"+i.status);return i.text()}).then(function(i){var a=/<script\\b[^>]*\\btype\\s*=\\s*[\"']?text\\/qna[\"']?[^>]*>([\\s\\S]*?)<\\/script\\s*>/i.exec(i);if(a)return a[1].replace(/<\\\\\\/script/gi,\"<\\/script\");if(/^\\s*(<!doctype\\s+html|<html)/i.test(i))throw new Error('the page has no <script type=\"text/qna\">');return u.unpackText(i).then(function(s){return s.markup})})},f.prototype.replay=function(t,r){var e=this.history.slice();this.reset(),this.history=e,this.replaying=!0;var n=this,i=this.pendingToken,a=c.document,s=null,o=null;t&&(s=a.createElement(\"div\"),s.className=\"qna-pending\",o=a.createElement(\"div\"),o.className=\"qna-pending-body\",s.appendChild(o),this.qanda.appendChild(s),this.pendingWrap=o);var l=this.prefill;this.prefill=e.length?null:l,this.presentQuestion([String(this.options.start)].concat(this.pre.jumps),!1);for(var d=0;d<e.length;d++){if(!this.answerByLabel[e[d].label])throw new Error(\"no answer \"+e[d].label);this.applyAnswer(e[d]),d===e.length-1&&(this.prefill=l),this.presentQuestion(kt(e[d]),!1)}if(this.pendingFill&&(nt(this.exchangeControls(this.qnum-1),this.pendingFill),this.pendingFill=null,this.captureFields(this.qnum-1)),this.replaying=!1,!t){r?this.focusInput():this.revealScroll(!1);return}this.pendingWrap=null;
2var h=function(){i===n.pendingToken&&(n.hideTyping(),o.classList.add(\"qna-revealed\"),n.choices.style.display=\"\",n.timer=setTimeout(function(){if(n.timer=null,i===n.pendingToken){for(;o.firstChild;)s.parentNode.insertBefore(o.firstChild,s);s.parentNode&&s.parentNode.removeChild(s),n.revealScroll(!1)}},180))};if(!o.querySelector(\"img\")){for(o.classList.add(\"qna-revealed\");o.firstChild;)s.parentNode.insertBefore(o.firstChild,s);s.parentNode.removeChild(s),this.revealScroll(!1);return}this.choices.style.display=\"none\";var v=a.createElement(\"div\");v.className=\"frame qna-typing\",v.innerHTML=\"<div class='full'><div class='question_text'><span class='qna-dots'><i></i><i></i><i></i></span></div></div><div class='question_arrow'></div>\",s.insertBefore(v,o),this.typingEl=v,this.waitForImages(o).then(h)},f.prototype.goBack=function(){if(u.current=this,!this.history.length){this.start(this.options.start);return}var t=this.history.pop(),r=this.answerByLabel[t.label];this.prefill=r&&r.isVar?t.value.replace(/</g,\"<\").replace(/>/g,\">\"):null,this.pendingFill=t.fields||null,this.checkpoint=null,this.replay(!1,!0),this.spacer&&(this.spacer.style.height=\"15px\"),this.saveProgress()},f.prototype.transcript=function(t){var r=this.convo.join(\"\");return String(t)===\"1\"?r:r.replace(/<[^>]*>/g,\"\")},f.prototype.doc=function(){var t=this;return this.docs.map(function(r){return t.swapvar(r.text,r.unit)}).join(\"\")},f.prototype.json=function(){var t={},r=this,e=function(n){t[n]=r.vars.hasOwnProperty(n)?r.vars[n]:\"\"};return this.allQuestions.forEach(function(n){n.gotoName===null&&e(n.name)}),this.allQuestions.forEach(function(n){(n.fields||[]).forEach(function(i){E(t,i)||e(i)})}),Object.keys(this.fieldSeen).forEach(function(n){E(t,n)||e(n)}),t},f.prototype.json_str=function(){return JSON.stringify(this.json())},f.prototype.submit2=function(t,r,e,n,i,a,s){var o=this.form,l=c.document;o.action=t,o.method=r||\"POST\",o.target=s||\"_self\",o.removeAttribute(\"onsubmit\"),o.onsubmit=null;function d(v,m){var y=l.createElement(\"textarea\");y.style.display=\"none\",y.name=v,y.value=m,o.appendChild(y)}e&&(d(e,this.doc()),n&&d(\"i\",n)),i&&d(i,this.transcript()),a&&d(a,this.json_str()),this.qnum&&this.captureFields(this.qnum-1);var h=this.exchangeControls(this.qnum-1).filter(function(v){return!v.disabled});h.forEach(function(v){v.disabled=!0});try{o.submit()}finally{h.forEach(function(v){v.disabled=!1})}};function L(){if(!u.current)throw new Error(\"QnA: no active QnA instance\");return u.current}u.transcript=function(t){return L().transcript(t)},u.doc=function(){return L().doc()},u.json_str=function(){return L().json_str()},u.mail2=function(t,r,e){c.location.href=\"mailto:\"+encodeURIComponent(t)+\"?subject=\"+encodeURIComponent(r)+\"&body=\"+encodeURIComponent(e)},u.save2=function(t,r){var e=new Blob([String(r)],{type:\"text/plain;charset=utf-8\"}),n=c.URL.createObjectURL(e),i=c.document.createElement(\"a\");if(\"download\"in i)i.download=t,i.href=n,i.style.display=\"none\",c.document.body.appendChild(i),i.click(),setTimeout(function(){c.URL.revokeObjectURL(n),i.parentNode&&i.parentNode.removeChild(i)},1e3);else{var a=c.open(n,\"_blank\");a||(c.location.href=n)}},u.submit2=function(t,r,e,n,i,a,s){return L().submit2(t,r,e,n,i,a,s)},u.showdoc=function(t,r){var e=c.document,n=r!==void 0?r:L().doc(),i=e.getElementById(\"qna-docview\");i&&i.parentNode.removeChild(i);var a=e.createElement(\"div\");a.id=\"qna-docview\",a.innerHTML='<style>#qna-docview{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;overflow:auto;padding:30px 10px;box-sizing:border-box;font-family:Verdana,Geneva,sans-serif;font-size:14px;}#qna-docview .qna-docbox{background:#fff;max-width:820px;margin:0 auto;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.4);}#qna-docview .qna-docbar{padding:10px 15px;border-bottom:1px solid #ddd;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}#qna-docview .qna-docbar button{font:inherit;padding:6px 12px;border:1px solid #888;border-radius:6px;background:#eee;cursor:pointer;}#qna-docview .qna-docbar button:hover{background:#ddd;}#qna-docview .qna-docbar .qna-spacer{flex:1;}#qna-docview .qna-docinstr{background:#ddffdd;padding:12px 15px;}#qna-docview .qna-doctext{padding:25px 30px;min-height:300px;outline:none;line-height:1.5;}@media print{body>*:not(#qna-docview){display:none!important;}#qna-docview{position:static;background:none;padding:0;}#qna-docview .qna-docbox{box-shadow:none;max-width:none;}#qna-docview .qna-docbar,#qna-docview .qna-docinstr{display:none;}}</style><div class=\"qna-docbox\"><div class=\"qna-docbar\"><button type=\"button\" data-act=\"print\">Print</button><button type=\"button\" data-act=\"save\">Save as HTML</button><button type=\"button\" data-act=\"copy\">Copy text</button><span class=\"qna-spacer\"></span><button type=\"button\" data-act=\"close\">Close</button></div>'+(t?'<div class=\"qna-docinstr\">'+t+\"</div>\":\"\")+'<div class=\"qna-doctext\" contenteditable=\"true\"></div></div>',e.body.appendChild(a);var s=a.querySelector(\".qna-doctext\");return s.innerHTML=n,a.addEventListener(\"click\",function(o){var l=o.target.getAttribute&&o.target.getAttribute(\"data-act\");if(!l&&o.target===a&&(l=\"close\"),l===\"close\")a.parentNode.removeChild(a);else if(l===\"print\")c.print();else if(l===\"save\")u.save2(\"QnA_document.html\",'<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>QnA document</title></head><body>'+s.innerHTML+\"</body></html>\");else if(l===\"copy\"){var d=s.innerText||s.textContent;c.navigator.clipboard&&c.navigator.clipboard.writeText(d)}}),a},u.startAT=function(t){return L().start(t)},u.answerQ=function(t){return L().answer(t)},u.goback=function(){return L().goBack()},u.goto=function(t){return L().goto(t)},u.getvar=function(t){return L().getvar(t)},u.loadQnA=function(t,r,e){return L().loadQnA(t,r,e)},u.shoh=function(t){var r=c.document.getElementById(t);r&&(r.style.display=r.style.display===\"none\"?\"block\":\"none\")},u.exposeGlobals=function(t){t=t||c,[\"transcript\",\"doc\",\"json_str\",\"mail2\",\"save2\",\"submit2\",\"showdoc\",\"startAT\",\"answerQ\",\"goback\",\"goto\",\"getvar\",\"loadQnA\",\"shoh\"].forEach(function(r){u[r]._qna=!0,(typeof t[r]==\"undefined\"||t[r]&&t[r]._qna)&&(t[r]=u[r])})},u.render=function(t,r,e){var n=c.document,i=typeof t==\"string\"?n.querySelector(t):t;if(!i)throw new Error(\"QnA.render: target not found\");var a=u.parse(r),s={},o;if(a.settings)for(o in a.settings)s[o]=a.settings[o];if(e)for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&e[o]!==void 0&&e[o]!==null&&e[o
2]!==\"\"&&(s[U[o]||o]=e[o]);var l=ne(s),d=JSON.stringify(u.css(l));if(l.injectCss)if(!u._styleKey||u._styleKey===d||i.qnaStyleScope===\"global\"){u.injectCss(l),u._styleKey=d,i.qnaStyleScope=\"global\";var h=c.document.body;if(h&&h.classList.contains(\"qna-page\")){var v=c.document.querySelector('meta[name=\"theme-color\"]');v||(v=c.document.createElement(\"meta\"),v.setAttribute(\"name\",\"theme-color\"),c.document.head.appendChild(v)),v.setAttribute(\"content\",\"#\"+l.bodyBg)}i.classList.remove.apply(i.classList,Array.prototype.filter.call(i.classList,function(S){return/^qna-s\\d+$/.test(S)}))}else{var m=i.qnaStyleScope&&i.qnaStyleScope!==\"global\"?i.qnaStyleScope:\"qna-s\"+ ++u._scopeSeq;i.qnaStyleScope=m,i.classList.add(m),u.injectCss(l,\".\"+m)}if(u.exposeGlobals(),!a.ok)return i.innerHTML='<ul class=\"qna-error-list\">'+u.errorsHtml(a)+\"</ul>\",i.qna=null,null;var y=new f(i,a,l);return i.qna=y,Ye.push(y),y};function Et(t){var r={},e=t.dataset||{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=U[n]||n,a=e[n];a===\"true\"?a=!0:a===\"false\"&&(a=!1),r[i]=a}return r}function At(t){return t.textContent.replace(/<\\\\\\/script/gi,\"<\\/script\")}if(u.init=function(t){var r=c.document;t=t||r;for(var e=t.querySelectorAll('script[type=\"text/qna\"]'),n=[],i=0;i<e.length;i++){var a=e[i];if(!a.getAttribute(\"data-qna-done\")){a.setAttribute(\"data-qna-done\",\"1\");var s=At(a),o=Et(a),l=a.getAttribute(\"data-target\"),d=l?r.querySelector(l):null;d||(d=r.createElement(\"div\"),d.className=\"qna\",a.parentNode.insertBefore(d,a.nextSibling)),n.push(u.render(d,s,o))}}return n},u.instances=Ye,c.document&&c.document.addEventListener){var it=c.document.currentScript,at=function(){c.QNA_NO_AUTOINIT||it&&it.getAttribute(\"data-auto\")===\"false\"||u.init()};c.document.readyState===\"loading\"?c.document.addEventListener(\"DOMContentLoaded\",at):setTimeout(at,0)}return u});\n";
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.