(function(){var h;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function l(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ba(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da;
if("function"==typeof Object.setPrototypeOf)da=Object.setPrototypeOf;else{var ea;a:{var fa={Dc:!0},ha={};try{ha.__proto__=fa;ea=ha.Dc;break a}catch(a){}ea=!1}da=ea?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=da;
function m(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Oc=b.prototype}var ja="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ka="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
function la(a,b){if(b){var c=ka;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ja(c,a,{configurable:!0,writable:!0,value:b})}}la("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});
la("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});var n=this;function p(a){return void 0!==a}function q(a){return"string"==typeof a}function ma(a){return"number"==typeof a}
function t(a,b,c){a=a.split(".");c=c||n;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}}
function u(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function na(a){var b=u(a);return"array"==b||"object"==b&&"number"==typeof a.length}function oa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var v="closure_uid_"+(1E9*Math.random()>>>0),pa=0;function qa(a,b,c){return a.call.apply(a.bind,arguments)}
function ra(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function w(a,b,c){w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qa:ra;return w.apply(null,arguments)}var x=Date.now||function(){return+new Date};
function sa(a,b){function c(){}c.prototype=b.prototype;a.Oc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.vd=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function ta(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}sa(ta,Error);ta.prototype.name="CustomError";function ua(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");ta.call(this,c+a[d])}sa(ua,ta);ua.prototype.name="AssertionError";function va(a){throw a;}function y(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}d=new ua(""+d,e||[]);va(d)}return a}function wa(a,b){va(new ua("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function xa(){return!1}function ya(a,b){xa()&&(b?n.console.error(a):n.console.warn(a))}function za(a,b){var c=a.stack||a.toString();0>String(c).indexOf(a.message)&&ya(a.message,b);ya(c,b)}window.onerror=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=l(b);b=c.next().value;c.next();c.next();c.next();(c=c.next().value)?za(c,!0):ya(b,!0);return!0};va=function(a){try{throw Error(a.message);}catch(b){za(b,!1)}};
n.console||(window._log="",n.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});var z=Array.prototype.indexOf?function(a,b){y(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(q(a))return q(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Aa=Array.prototype.forEach?function(a,b,c){y(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ba=Array.prototype.map?function(a,b){y(null!=a.length);return Array.prototype.map.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=q(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d};function Ca(a,b){a:{for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:q(a)?a.charAt(b):a[b]}function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function Ea(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function Fa(a,b,c,d){y(null!=a.length);Array.prototype.splice.apply(a,Ga(arguments,1))}function Ga(a,b,c){y(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var A=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function Ha(a){if(!Ia.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ja,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ka,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(La,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ma,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Na,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Oa,"&#0;"));return a}
var Ja=/&/g,Ka=/</g,La=/>/g,Ma=/"/g,Na=/'/g,Oa=/\x00/g,Ia=/[\x00&<>"']/,Pa={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Ra={"'":"\\'"};
function Sa(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0),f=c+1,g;if(!(g=Pa[d])){if(!(31<e&&127>e))if(d in Ra)d=Ra[d];else if(d in Pa)d=Ra[d]=Pa[d];else{g=d.charCodeAt(0);if(31<g&&127>g)e=d;else{if(256>g){if(e="\\x",16>g||256<g)e+="0"}else e="\\u",4096>g&&(e+="0");e+=g.toString(16).toUpperCase()}d=Ra[d]=e}g=d}b[f]=g}b.push('"');return b.join("")}function Ta(a,b){return a<b?-1:a>b?1:0}
function Ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Va(a){var b=q(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var B;a:{var Wa=n.navigator;if(Wa){var Xa=Wa.userAgent;if(Xa){B=Xa;break a}}B=""}function C(a){return-1!=B.indexOf(a)};function Ya(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Za(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function D(a,b,c){return null!==a&&b in a?a[b]:c}var $a="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ab(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<$a.length;f++)c=$a[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function bb(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var cb=C("Opera"),F=C("Trident")||C("MSIE"),db=C("Edge"),eb=C("Gecko")&&!(-1!=B.toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),fb=-1!=B.toLowerCase().indexOf("webkit")&&!C("Edge");function gb(){var a=n.document;return a?a.documentMode:void 0}var hb;
a:{var ib="",jb=function(){var a=B;if(eb)return/rv:([^\);]+)(\)|;)/.exec(a);if(db)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fb)return/WebKit\/(\S+)/.exec(a);if(cb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();jb&&(ib=jb?jb[1]:"");if(F){var kb=gb();if(null!=kb&&kb>parseFloat(ib)){hb=String(kb);break a}}hb=ib}var lb={},mb;var nb=n.document;mb=nb&&F?gb()||("CSS1Compat"==nb.compatMode?parseInt(hb,10):5):void 0;function ob(){};function pb(){this.ka=this.W=this.Ea=null}pb.prototype.push=function(a,b){if(0==b)this.ka=this.ka||[];else if(this.Ea=this.Ea||[0],this.W=this.W||{},!(b in this.W)){this.W[b]=[];var c=this.Ea;var d=0;for(var e=c.length,f;d<e;){var g=d+e>>1;var k=c[g];k=b>k?1:b<k?-1:0;0<k?d=g+1:(e=g,f=!k)}d=f?d:~d;0>d&&Fa(c,-(d+1),0,b)}b=qb(this,b);y(b).push(a)};pb.prototype.remove=function(a,b){if(b=qb(this,b))a=z(b,a),0<=a&&(y(null!=b.length),Array.prototype.splice.call(b,a,1))};
function rb(a,b){return 0==b?a.ka||[]:b in y(a.W)?y(qb(a,b)):[]}function sb(a){if(!a.W)return a.ka?a.ka.slice():[];for(var b=[],c=y(a.Ea),d=0;d<c.length;++d){var e=qb(a,c[d]);e&&Ea(b,e)}return b}function qb(a,b){return 0==b?a.ka:y(a.W)[b]};function G(a){this.Sb=this.D=null;this.tc=void 0===a?null:a}m(G,ob);h=G.prototype;h.Fc=function(){return this.tc};h.addHandler=function(a,b,c){this.D=this.D||new pb;this.D.push({yb:a,context:b},c||0)};h.removeHandler=function(a,b,c){c=c||0;if(this.D)for(var d=rb(this.D,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.yb==a&&g.context==b){a=f;if(c=qb(this.D,c))y(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else wa("EventDispatcher has no handlers!")};
h.Hc=function(a,b,c){if(!this.D)return!1;c=rb(this.D,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.yb==a&&f.context==b)return!0}return!1};h.Ma=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.D){c=sb(this.D);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=z(sb(this.D),f))try{f.yb.apply(f.context,arguments)}catch(g){za(g,!0)}}}this.Sb&&this.Sb.forEach(function(a){a.Ma.apply(a,b instanceof Array?b:ba(l(b)))})};G.prototype.dispatch=G.prototype.Ma;
G.prototype.hasHandler=G.prototype.Hc;G.prototype.removeHandler=G.prototype.removeHandler;G.prototype.addHandler=G.prototype.addHandler;G.prototype.eventOwner=G.prototype.Fc;function tb(a){this.sc=a};function ub(a){this.ib=a}ub.prototype.Gc=function(a,b,c){c=this.ib.hasOwnProperty(a)?this.ib[a]:c;if(p(c)){if(p(b)){a=this.lc;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}wa("unknown message id: "+a);return a};ub.prototype.messages=function(){return this.ib};ub.prototype.lc=function(a){return"%"+a.toUpperCase()+"%"};ub.prototype.getMessage=ub.prototype.Gc;function vb(a,b,c,d){this.pb=b;this.mc=new ub(c);this.F=d}vb.prototype.i18n=function(){return this.mc};function wb(){this.Ac=new G};var H={pd:"slidePool",Rc:"authorizationForm",Wc:"informationSlide",Xc:"introSlide",md:"resultSlide",Vc:"hotspotQuestion",Yc:"likertScaleQuestion",td:"wordBankQuestion",Sc:"essayQuestion",rd:"typeInQuestion",od:"shortAnswerQuestion",Tc:"fillInTheBlankQuestion",Uc:"fillInTheBlankSurveyQuestion",fd:"numericQuestion",gd:"numericSurveyQuestion",nd:"sequenceQuestion",ld:"rankingQuestion",sd:"whichWordQuestion",bd:"multipleChoiceTextQuestion",cd:"multipleChoiceTextSurveyQuestion",ad:"multipleChoiceQuestion",
dd:"multipleResponseQuestion",jd:"pickOneQuestion",hd:"pickManyQuestion",qd:"trueFalseQuestion",ud:"yesNoQuestion",Zc:"matchingQuestion",$c:"matchingSurveyQuestion"};t("ispring.quiz.slides.SlideType",H,void 0);t("SLIDE_POOL","slidePool",H);t("INFORMATION_SLIDE","informationSlide",H);t("INTRO_SLIDE","introSlide",H);t("HOTSPOT_QUESTION","hotspotQuestion",H);t("LIKERT_SCALE_QUESTION","likertScaleQuestion",H);t("WORD_BANK_QUESTION","wordBankQuestion",H);t("RESULT_SLIDE","resultSlide",H);
t("ESSAY_QUESTION","essayQuestion",H);t("TYPE_IN_QUESTION","typeInQuestion",H);t("SHORT_ANSWER_QUESTION","shortAnswerQuestion",H);t("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",H);t("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",H);t("NUMERIC_QUESTION","numericQuestion",H);t("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",H);t("SEQUENCE_QUESTION","sequenceQuestion",H);t("RANKING_QUESTION","rankingQuestion",H);t("WHICH_WORD_QUESTION","whichWordQuestion",H);
t("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",H);t("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",H);t("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",H);t("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",H);t("PICK_ONE_QUESTION","pickOneQuestion",H);t("PICK_MANY_QUESTION","pickManyQuestion",H);t("TRUE_FALSE_QUESTION","trueFalseQuestion",H);t("YES_NO_QUESTION","yesNoQuestion",H);t("MATCHING_QUESTION","matchingQuestion",H);
t("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",H);function xb(a,b,c,d,e,f){this.type=b;this.fc=a;this.Lc=c;this.maxScore=p(d)?d:null;this.wa=p(e)?e:null;this.Bb=p(f)?f:null}xb.prototype.Ab=function(){var a={};a[yb]=this.fc;a[zb]=this.Lc;a[Ab]=this.maxScore;a[Bb]=this.wa;a[Cb]=this.Bb;a[Db]=this.type;return a};var yb="e",zb="p",Ab="m",Bb="r",Cb="s",Db="t";function Eb(a){this.Ka=a;this.ja=[];this.Ja=[];this.K={}}h=Eb.prototype;h.Ba=-1;h.P=0;h.Da=null;h.duration=function(){return this.P};h.Ra=function(a){this.P=a};h.Ab=function(){var a={};a[Fb]=this.P;a[Gb]=this.Ba;a[Hb]=this.ja;a[Ib]=this.Ja;a[Jb]=this.Ka;a[Kb]=this.Da;var b={},c;for(c in this.K)b[c]=this.K[c].Ab();a[Lb]=b;return a};var Gb="l",Hb="v",Ib="vh",Jb="V",Fb="d",Kb="p",Lb="q";function Mb(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Nb(a,b,c,d,e,f){this.U=a;this.zc=b;this.Cc=e;this.uc=f;this.I={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.I[b[0]]=e,0<e&&++this.na;this.ga={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.ga[c[0]]=b,0<b&&++this.na}h=Nb.prototype;h.na=0;h.slidesWeight=function(){return 0<this.U?this.zc:0};h.slidesToView=function(){return this.U};h.totalScore=function(){return this.Cc};h.passingScore=function(){return this.uc};function Ob(a,b,c,d){this.Bc=a;this.$a=b;this.yc=c;this.oc=d}Ob.prototype.timeLimit=function(){return this.Bc};Ob.prototype.message=function(){return this.oc};function Pb(a,b){this.ub=a;this.Yb=b;this.Zb=new G}h=Pb.prototype;h.tb=!1;h.fa=0;h.Fa=0;h.Ha=-1;h.Ia=0;h.Za=0;h.started=function(){return this.tb};h.start=function(a){this.started()||(this.Ia=this.fa=a||0,a=this.fa>=this.ub,a&&this.Yb||(this.tb=!0,this.Fa=x(),a||(this.Ha=setTimeout(w(this.mb,this),this.ub-this.fa))))};h.mb=function(){this.Yb&&(this.stop(),this.Ia=this.ub);this.Zb.Ma()};
h.stop=function(){this.started()&&(this.tb=!1,0<this.Ha&&(clearTimeout(this.Ha),this.Ha=-1),this.Za=x()-this.Fa,this.Ia=this.Za+this.fa)};function Qb(a,b,c){var d=window.iSpring.LMSAPI;switch(a){case "1.2":return new d.Scorm12Api(b);case "2004":return new d.Scorm2004Api(b);case "aicc":return new d.AiccApi(b);case "tincan":return new d.TinCanApi(b,c);case "cmi-5":return new d.Cmi5Api(b,c);default:throw Error("unknown api");}};function Rb(a,b){this.ra=a;this.pc=b;this.kc=""}Rb.prototype.id=function(){return this.ra};Rb.prototype.name=function(){return this.pc};Rb.prototype.email=function(){return this.kc};function Sb(a){this.ra=a}h=Sb.prototype;h.O="";h.s=null;h.u=null;h.ta="unanticipated";h.Ub=0;h.Wa=null;h.P=null;h.vb=null;h.C=null;h.id=function(){return this.ra};h.type=function(){return this.h};h.description=function(){return this.O};h.Ta=function(){return this.s};function Tb(a,b){a.u=b}h.result=function(){return this.ta};h.score=function(){return this.Ub};h.$=function(a){this.Ub=a};h.awardedScore=function(){return this.Wa};h.duration=function(){return this.P};h.Ra=function(a){this.P=a};h.Ua=function(){return this.vb};
h.La=function(){return this.C};function Ub(a,b){a.C=b};function I(a){a=A(a);return a=a.replace(/[^\w-]/g,"_")}function Vb(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function Wb(a,b){this.m=a;this.rb=b};function J(a){var b=a.Pc,c=a.slideIndex;this.g=a.Mc;this.$b=b;this.l=!1;this.Wb=c}J.prototype.create=function(a){if(!a.submitted())return null;var b=(p(this.Wb)?"Slide"+this.Wb+"_":"")+"Q_"+a.slide().id();b=new Sb(I(b));this.a(b,a);return b};
J.prototype.a=function(a,b){var c=b.slide();c=K(this,c.description(),!0);a.O=c;b.hasBeenVisited()&&(a.Ra(b.visitDuration()),c=b.firstVisitTime(),a.vb=c);if(c=b.slide().settings().evaluation()){if(a.$(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Wa=d;d="unanticipated";switch(b.status()){case "correct":d="correct";break;case "incorrect":case "partially":d="incorrect"}a.ta=d}}else a.ta="neutral";this.l=!!c};function Xb(a,b){return b.join(a.g?",":"[,]")}
function L(a,b,c){return a.g?Vb(b):I(b+"_"+c)}function K(a,b,c){return b.textWithEquations(a.g||!c?"Equation":"")};function M(a,b){this.ra=a;this.O=b}M.prototype.id=function(){return this.ra};M.prototype.description=function(){return this.O};function Yb(){this.f=[]}Yb.prototype.count=function(){return this.f.length};function N(a,b){a.f.push(b)}Yb.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.f[a]};function Zb(){this.sb=new Yb;this.va=new Yb};function $b(a){J.apply(this,arguments)}m($b,J);h=$b.prototype;h.a=function(a,b){J.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.ob(d);b=e.La;var f=e.premises,g=e.responses;e=e.Kc;c=this.cb(c.chainsStates(),f,g,e);a.s=c;this.l&&(c=[this.l?this.eb(d.chains(),f,g,e):c],a.u=c);a.C=b};
h.ob=function(a){var b=new Zb,c=[],d=[];a=a.chains();a=l(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e=f.object().slideObject();f=f.destination().slideObject();if(e&&0>c.indexOf(e)){c.push(e);var g=e.name();N(b.sb,new M(I(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),N(b.va,new M(I(d.indexOf(f)+"_"+e),e)))}a=this.g?Vb(d.length,!1):d.length+"_None";N(b.va,new M(a,"None"));return{La:b,premises:c,responses:d,Kc:a}};
h.cb=function(a,b,c,d){var e=[],f=b.slice();a=l(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.objectState().slideObject();k=k.destinationState().slideObject();k=this.ba(g,k,b,c,d);e.push(k);f.splice(f.indexOf(g),1)}f=l(f);for(a=f.next();!a.done;a=f.next())a=this.ba(a.value,null,b,c,d),e.push(a);return this.oa(e)};
h.eb=function(a,b,c,d){var e=[];a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.object().slideObject();g=g.destination().slideObject();f&&(f=this.ba(f,g,b,c,d),e.push(f))}return this.oa(e)};h.qa=function(a,b,c){this.g?b=Vb(b,c):(a=a.name(),a=I(a),b=b+"_"+a);return b};h.ba=function(a,b,c,d,e){a=this.qa(a,c.indexOf(a),!0);b=b?this.qa(b,d.indexOf(b),!1):e;d=this.g?".":"[.]";return I(a)+d+I(b)};h.oa=function(a){return a.join(this.g?",":"[,]")};function ac(a){J.apply(this,arguments)}m(ac,J);ac.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="long-fill-in";b=b.contentState().response();a.s=b};function bc(a){J.apply(this,arguments)}m(bc,J);bc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h=this.g?"other":"fill-in";var c=b.contentState();b=[];var d=[];c=l(c.placeholders());for(var e=c.next();!e.done;e=c.next())e=e.value,b.push(e.response()),(e=e.correctAnswers())&&(this.$b?d.push(e[0]):d.push(e.join("[,]")));a.s=b.join("[,]");if(this.l){b=d;if(this.g||this.$b)b=[b.join(this.g?"[.]":"[,]")];a.u=b}};function O(){this.f=new Yb};function cc(a){J.apply(this,arguments)}m(cc,J);cc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="choice";var c=[],d=[],e=new O;this.ab(b.contentState(),e,d,c);a.s=Xb(this,c);this.l&&(a.u=[Xb(this,d)]);a.C=e};
cc.prototype.ab=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),r=k.label().text();g=L(e,g,r);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);N(b.f,new M(g,r))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=L(this,g,"Untitled_Spot");d.push(k)}};function dc(a){J.apply(this,arguments)}m(dc,J);dc.prototype.a=function(a,b){var c=this;J.prototype.a.call(this,a,b);a.h="choice";var d=[],e=new O;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();N(e.f,new M(L(c,b,f),f));(a=a.selectedScale())&&d.push(I(b+"_"+a.text()))});a.s=Xb(this,d);a.C=e};function ec(a){J.apply(this,arguments)}m(ec,J);h=ec.prototype;h.a=function(a,b){J.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.ob(d);b=e.La;var f=e.premises;e=e.responses;c=this.cb(c.matches(),f,e,this.g);a.s=c;this.l&&(c=[this.eb(d.matches(),this.g)],a.u=c);a.C=b};
h.ob=function(a){for(var b=new Zb,c=[],d=[],e=a.matches(),f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());var k=K(this,g.premise().textRange(),!1);g=K(this,g.response().textRange(),!1);N(b.sb,new M(I(f+"_"+k),k));N(b.va,new M(I(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=K(this,f.textRange(),!1),N(b.va,new M(I(e+"_"+f),f));return{La:b,premises:c,responses:d}};
h.cb=function(a,b,c,d){var e=[];a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.premise();g=g.response();var k=z(b,f),r=z(c,g);f=this.ba(f,k,g,r,d);e.push(f)}return this.oa(e,d)};h.eb=function(a,b){for(var c=[],d=0;d<a.count();++d){var e=a.getChoice(d);e=this.ba(e.premise(),d,e.response(),d,b);c.push(e)}return this.oa(c,b)};h.qa=function(a,b,c,d){return c?Vb(b,d):b+"_"+K(this,a.textRange(),!1)};
h.ba=function(a,b,c,d,e){a=this.qa(a,b,e,!0);c=this.qa(c,d,e,!1);e=e?".":"[.]";return I(a)+e+I(c)};h.oa=function(a,b){return a.join(b?",":"[,]")};function fc(){this.f=new Yb;this.Fb=[]}sa(fc,O);function P(a){J.apply(this,arguments)}m(P,J);P.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="choice";var c=b.slide();b=b.contentState();var d=c.content();c=this.fb(c.content(),b);a.s=c;if(this.l){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=L(this,c,K(this,e.textRange(),!1));break a}}c=""}a.u=[c]}b=this.pa(d,b);a.C=b};
P.prototype.pa=function(a,b){var c=new O;if(this.Hb()){c=new fc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Fb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=K(this,d.textRange(),!1),N(c.f,new M(I(b+"_"+d),d));return c};P.prototype.Hb=function(){return!this.l};
P.prototype.fb=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),L(this,a,K(this,d.choice().textRange(),!1))}return""};function gc(a){J.apply(this,arguments)}m(gc,J);gc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h=this.g?"other":"matching";var c=[],d=[],e=new O;b.contentState().placeholders().forEach(function(a,b){var f=a.response(),g=a.correctAnswer();a.answers().forEach(function(a){var k=e.f.count();k=b+"[.]"+I(k+"_"+a);a==g&&d.push(k);a==f&&c.push(k);N(e.f,new M(k,a))})});a.s=c.join("[,]");this.l&&Tb(a,[d.join("[,]")]);Ub(a,hc(b.slide().content()))};
function hc(a){var b=new Zb,c=0;Aa(a.placeholders(),function(a,e){e+="";N(b.sb,new M(e,e));a.values.forEach(function(a){a=a.text();var d=c++ +"_"+a;d=I(d);N(b.va,new M(d,a))})});return b};function ic(a){J.apply(this,arguments)}m(ic,J);ic.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="choice";var c=b.slide().content(),d=this.fb(c,b.contentState());a.s=d;this.l&&(d=[this.bb(c)],a.u=d);b=this.pa(c,b.contentState());a.C=b};
ic.prototype.pa=function(a,b){var c=new O;if(!this.l){c=new fc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Fb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=K(this,d.textRange(),!1),N(c.f,new M(I(b+"_"+d),d));return c};
ic.prototype.fb=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=K(this,f.textRange(),!1);e.selected()&&(e=a.getChoiceIndex(f),g=L(this,e,g),c.push(g))}return Xb(this,c)};ic.prototype.bb=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=L(this,c,K(this,d.textRange(),!1)),b.push(d))}return Xb(this,b)};function jc(a){J.apply(this,arguments)}m(jc,J);
jc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);var c=b.slide();b=b.contentState().response();c=c.content();var d;a:{for(d=0;d<c.count();++d)if("notEqual"==c.getAnswer(d).comparisonOperation()){d=!0;break a}d=!1}a.h=this.g||d?"fill-in":"numeric";a.s=b;if(this.l){d=(b=this.g||d)?"[,]":"[.]";for(var e=[],f=0;f<c.count();++f){var g="",k=c.getAnswer(f),r=k.comparisonOperation();if("between"==r)r=k,g=r.leftOperand(),r=r.rightOperand(),g=b?"between "+g+" and "+r:g+"[:]"+r;else switch(k=k.operand(),
r){case "notEqual":b&&(g="not equal to "+k);break;case "equal":g=b?"equal to "+k:k+"[:]"+k;break;case "greaterThan":g=b?"greater than "+k:k+"[:]";break;case "greaterThanOrEqual":g=b?"greater than or equal to "+k:k+"[:]";break;case "lessThan":g=b?"less than "+k:"[:]"+k;break;case "lessThanOrEqual":g=b?"less than or equal to "+k:"[:]"+k}e.push(g)}a.u=[e.join(d)]}};function kc(a){J.apply(this,arguments)}m(kc,J);kc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="sequencing";var c=b.slide().content();b=lc(this,c,b.contentState().studentResponse(),this.g);a.s=b;this.l&&(b=[lc(this,c,c,this.g)],a.u=b);c=this.pa(c);a.C=c};kc.prototype.pa=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.f,new M(I(c+"_"+d),d))}return b};
function lc(a,b,c,d){var e=d?",":"[,]",f=[];c.forEach(function(c){var e=K(a,c.textRange(),!1);c=b.getChoiceIndex(c);f.push(I(d?Vb(c,!0):c+"_"+e))});return f.join(e)};function mc(a){P.apply(this,arguments)}m(mc,P);mc.prototype.a=function(a,b){P.prototype.a.call(this,a,b);if(this.g&&this.l){a.h="true-false";var c=b.slide().content();b=b.contentState();var d=c.getChoice(0).correct()?"t":"f",e="t"==d?"f":"t";c=c.getChoice(0).correct()?c.getChoice(0).id():c.getChoice(1).id();for(var f=null,g=0;2>g;++g){var k=b.getChoiceState(g);if(k.selected()){f=k.choice().id()==c?d:e;break}}a.s=f;a.u=[d]}};mc.prototype.Hb=function(){return!1};function nc(a){J.apply(this,arguments)}m(nc,J);nc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h="fill-in";var c=b.slide();b=b.contentState().response().text();a.s=b;this.l&&(c=this.bb(c.content()),a.u=c)};nc.prototype.bb=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);b.push(d.textRange().text())}return b};function oc(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function pc(a){J.apply(this,arguments)}m(pc,J);pc.prototype.a=function(a,b){J.prototype.a.call(this,a,b);a.h=this.g?"other":"choice";var c=b.slide().content(),d=[],e=new O;c=c.extraWords();c=l(c);for(var f=c.next();!f.done;f=c.next()){f=f.value.text();var g=e.f.count();g=I(g+"_"+f);N(e.f,new M(g,f))}b=b.contentState().placeholders();this.l&&(c=[],this.ab(b,e,c),a.u=[c.join("[,]")]);qc(b,e,d);a.s=d.join("[,]");a.C=e};
pc.prototype.ab=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value.placeholder().value||"";var e=b.f.count();e=I(e+"_"+d);c.push(e);N(b.f,new M(e,d))}};function qc(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;d={ya:d.ya},e=a.next())d.ya=e.value.response(),null!=d.ya&&(e=new oc(function(a){return b.f.getChoice(a)},b.f.count()),e=Ca(e,function(a){return function(b){return A(b.description())==a.ya}}(d)),y(null!=e),c.push(e.id()))};var R={},rc=(R.FillInTheBlank=bc,R.WordBank=pc,R.TypeIn=nc,R.Numeric=jc,R.MultipleChoice=P,R.MultipleResponse=ic,R.MultipleChoiceText=gc,R.Sequence=kc,R.Matching=ec,R.TrueFalse=mc,R.Essay=ac,R.Hotspot=cc,R.LikertScale=dc,R.DND=$b,R);function S(){this.Oa="";this.ic=sc;this.xb=null}S.prototype.Ic=!0;S.prototype.dc=!0;function tc(a){if(a instanceof S&&a.constructor===S&&a.ic===sc)return a.Oa;wa("expected object of type SafeHtml, got '"+a+"' of type "+u(a));return"type_error:SafeHtml"}
function uc(a){function b(a){if("array"==u(a))Aa(a,b);else{if(!(a instanceof S)){var e="object"==typeof a,g=null;e&&a.Ic&&(g=a.xb);a=vc(Ha(e&&a.dc?a.Oa:String(a)),g)}d+=tc(a);a=a.xb;0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";Aa(arguments,b);return vc(d,c)}var sc={};function vc(a,b){return(new S).Jc(a,b)}S.prototype.Jc=function(a,b){this.Oa=a;this.xb=b;return this};vc("<!DOCTYPE html>",0);vc("",0);var wc=vc("<br>",0);var xc=!F||9<=Number(mb),yc;
if(yc=F){var zc;if(Object.prototype.hasOwnProperty.call(lb,"9"))zc=lb["9"];else{for(var Ac=0,Bc=A(String(hb)).split("."),Cc=A("9").split("."),Dc=Math.max(Bc.length,Cc.length),Ec=0;0==Ac&&Ec<Dc;Ec++){var Fc=Bc[Ec]||"",Gc=Cc[Ec]||"";do{var Hc=/(\d*)(\D*)(.*)/.exec(Fc)||["","","",""],Ic=/(\d*)(\D*)(.*)/.exec(Gc)||["","","",""];if(0==Hc[0].length&&0==Ic[0].length)break;Ac=Ta(0==Hc[1].length?0:parseInt(Hc[1],10),0==Ic[1].length?0:parseInt(Ic[1],10))||Ta(0==Hc[2].length,0==Ic[2].length)||Ta(Hc[2],Ic[2]);
Fc=Hc[3];Gc=Ic[3]}while(0==Ac)}zc=lb["9"]=0<=Ac}yc=!zc}var Jc=yc;var Kc={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Lc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div");a.innerHTML="<div><div></div></div>";var b=a.firstChild.firstChild;a.innerHTML="";return!b.parentElement});function Mc(a,b){if(Kc[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");b=tc(b);if(Lc())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=b};function Nc(a,b){Ya(b,function(b,d){b&&"object"==typeof b&&b.dc&&(b=b.Oa);"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Oc.hasOwnProperty(d)?a.setAttribute(Oc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var Oc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Pc(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!xc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Ha(g.name),'"');if(g.type){f.push(' type="',Ha(g.type),'"');var k={};ab(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(q(g)?f.className=g:"array"==u(g)?f.className=g.join(" "):Nc(f,g));2<d.length&&Qc(e,f,d);return f}
function Qc(a,b,c){function d(c){c&&b.appendChild(q(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!na(f)||oa(f)&&0<f.nodeType?d(f):Aa(Rc(f)?Da(f):f,d)}}function Sc(a,b){y(null!=a&&null!=b,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)}var Tc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Uc={IMG:" ",BR:"\n"};
function Vc(a){if(Jc&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Wc(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Jc||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function Wc(a,b,c){if(!(a.nodeName in Tc))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Uc)b.push(Uc[a.nodeName]);else for(a=a.firstChild;a;)Wc(a,b,c),a=a.nextSibling}function Rc(a){if(a&&"number"==typeof a.length){if(oa(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==u(a))return"function"==typeof a.item}return!1};function Xc(a,b){if("function"!=u(a))if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||n.setTimeout(a,b||0)};var Yc=C("Firefox"),Zc=C("Safari")&&!((C("Chrome")||C("CriOS"))&&!C("Edge")||C("Coast")||C("Opera")||C("Edge")||C("Silk")||C("Android"))&&!(bb()||C("iPad")||C("iPod"));var $c=null,ad=eb||fb&&!Zc||cb||"function"==typeof n.btoa;function bd(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function cd(a){a=String(a);if(bd(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function dd(a){this.Pa=a}dd.prototype.serialize=function(a){var b=[];ed(this,a,b);return b.join("")};
function ed(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==u(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ed(a,a.Pa?a.Pa.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),fd(d,c),c.push(":"),ed(a,a.Pa?a.Pa.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":fd(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var gd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},hd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function fd(a,b){b.push('"',a.replace(hd,function(a){var b=gd[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),gd[a]=b);return b}),'"')};function id(a,b){if(q(b))(b=jd(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=jd(d,c);f&&(d.style[f]=e)}}var kd={};function jd(a,b){var c=kd[b];if(!c){var d=Ua(b);c=d;void 0===a.style[d]&&(d=(fb?"Webkit":eb?"Moz":F?"ms":cb?"O":null)+Va(d),void 0!==a.style[d]&&(c=d));kd[b]=c}return c};function ld(a,b){this.h=a;this.jc=b||[]}t("iSpring.ios.mobile.MobileAppCommand",ld,void 0);ld.prototype.id=function(){return this[v]||(this[v]=++pa)};function md(a){try{var b=document.createElement("iframe");id(b,{width:"1px",height:"1px",border:"0"});b.src=a;Sc(document.body,b);Xc(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function T(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}T.prototype.BYTES_PER_ELEMENT=4;T.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};T.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(T.BYTES_PER_ELEMENT=4,T.prototype.BYTES_PER_ELEMENT=T.prototype.BYTES_PER_ELEMENT,T.prototype.set=T.prototype.set,T.prototype.toString=T.prototype.toString,t("Float32Array",T,void 0));function U(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}U.prototype.BYTES_PER_ELEMENT=8;U.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};U.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{U.BYTES_PER_ELEMENT=8}catch(a){}U.prototype.BYTES_PER_ELEMENT=U.prototype.BYTES_PER_ELEMENT;U.prototype.set=U.prototype.set;U.prototype.toString=U.prototype.toString;t("Float64Array",U,void 0)};function V(){var a=window.location.search.substr(1);if(!a)return{};var b={};a=a.split("&");for(var c=0;c<a.length;++c){var d=a[c].split("=");if(2==d.length){try{var e=decodeURIComponent(d[0].replace(/\+/g," "))}catch(g){e=d[0]}try{var f=decodeURIComponent(d[1].replace(/\+/g," "))}catch(g){f=d[1]}e=e.toLowerCase();b[e]=f}}return b};function nd(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=od(a,["<p>","<p "],c);if(f&&f.Na>c){c=a.substr(c,f.Na-c);var g=Pc("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Vc(g))+b;c=f.Na}if(g=od(a,["</p>","</p >"],c)){f=g.Na+g.Nc.length-c;var k=a.substr(c,f);g=Pc("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||Vc(g))+b;c+=f}else return g=Pc("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Vc(g))}while(c<e);return d}
function od(a,b,c){"array"==u(b)||(b=[b]);var d=void 0,e=void 0;Aa(b,function(b){var f=a.indexOf(b,c);0<=f&&(!p(d)||f<d)&&(d=f,e=b)});return p(e)&&p(d)?new pd(e,d):null}function pd(a,b){this.Nc=a;this.Na=b};function qd(a,b,c,d){this.rb=a;this.wc=b;this.xc=c;this.vc=d;this.qb=void 0}function rd(a){a=nd(a.text());a=Ha(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
qd.prototype.create=function(){var a=0,b=[],c=this.wc,d=this.vc,e=new Sb(c.id()+"_"+a);a+=1;e.h="choice";if(null!=c.message()){var f=c.message().text();f=nd(f);e.O=f;f=c.message().replies();null!=c.speech()&&0<nd(c.speech())&&(a=new Sb(c.id()+"_"+a),a.h="other",c=nd(c.speech()),a.O=c,a.ta="neutral",sd(this,a),b.push(a))}else f=nd(c.speech()),e.O=f,f=c.replies();0==f.count()&&(e.h="other");c=null;for(var g=a=0,k=-1,r=[],E=0;E<f.count();E++){var Q=f.getReply(E);null!=d&&Q==d&&(k=E);a=Math.max(a,Q.score());
r.push(td(this,E,rd(Q)))}null!=d&&(c=td(this,k,rd(d)),g=Math.max(g,d.score()));d=f;f=new O;for(k=0;k<d.count();++k)E=rd(d.getReply(k)),N(f.f,new M(I(k+"_"+E),E));e.C=f;e.s=c;e.u=r;this.rb.scenario().settings().evaluationSettings().enabled()&&(e.$(a),e.Wa=g);e.ta="neutral";sd(this,e);b.push(e);return b};function td(a,b,c){c=I(b+"_"+c);b=Vb(b);return a.xc?b:c}function sd(a,b){null!=a.qb&&(b.vb=new Date(a.qb),b.Ra(x()-a.qb))};function ud(){function a(a){try{for(var b=0;255>b;++b){if(a.API)return a.API;var c=a.parent;if(!c||a==c)break;a=c}}catch(f){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function vd(a){return W(Math.floor(a/3600))+":"+W(Math.floor(a%3600/60))+":"+W(Math.floor(a%60))}function wd(a){ma(a)&&(a=new Date(a));return a.getUTCFullYear()+"/"+W(a.getUTCMonth()+1)+"/"+W(a.getUTCDate())}
function xd(a){ma(a)&&(a=new Date(a));return W(a.getUTCHours())+":"+W(a.getUTCMinutes())+":"+W(a.getUTCSeconds())}function W(a){return 10>a?"0"+a:a}var yd=null;function zd(){yd||(yd=Ad(),Sc(document.body,yd));for(var a=yd.contentDocument,b=x();100>x()-b;){a.open();for(var c=0;300>c;++c)a.write("sleep");a.close()}}function Ad(){var a=document.createElement("iframe");id(a,{width:"1px",height:"1px",border:"0"});return a}
function Bd(){var a=null;if(F&&11>parseFloat(hb))try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}a||"undefined"==typeof XMLHttpRequest||(a=new XMLHttpRequest);return a}
function Cd(){if(Dd)if(Dd){var a=new ld("closeWindow");if(Dd){var b=a.h,c=a.jc;a=a.id();var d=(new dd(null)).serialize(c);if(ad)c=n.btoa(d);else{c=[];for(var e=0,f=0;f<d.length;f++){var g=d.charCodeAt(f);255<g&&(c[e++]=g&255,g>>=8);c[e++]=g}y(na(c),"encodeByteArray takes an array as a parameter");if(!$c)for($c={},d=0;65>d;d++)$c[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=$c;e=[];for(f=0;f<c.length;f+=3){var k=c[f],r=(g=f+1<c.length)?c[f+1]:0,E=f+2<c.length,
Q=E?c[f+2]:0,$d=k>>2;k=(k&3)<<4|r>>4;r=(r&15)<<2|Q>>6;Q&=63;E||(Q=64,g||(r=64));e.push(d[$d],d[k],d[r],d[Q])}c=e.join("")}md("isplayer://"+b+"/"+a+"/"+c)}}else try{Ed||(window.open("","_self",""),window.close())}catch(xe){}else try{Ed||(window.Qa=window,b=Fd(),b==window.top?(window.open("","_self",""),window.close()):Gd(b))}catch(xe){Gd(window.top)}}function Gd(a){if(a&&a.Qa){var b=document.createElement("a");b.href="data/goodbye.html";a.Qa.location.replace(b.href)}}
function Fd(){var a=window;if(a.Qa)return a;for(var b=0;a!=window.top&&100>b++;){if(a.Qa)return a;a=a.parent}console.log("Unable to locate content root");return null}function Hd(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};var Id={kd:"prompt",Qc:"always",ed:"never"};t("ispring.presenter.presentation.settings.PresentationResumeMode",Id,void 0);t("PROMPT_TO_RESUME","prompt",Id);t("ALWAYS_RESUME","always",Id);t("NEVER_RESUME","never",Id);(function(){function a(a){try{return a.ISPlayer&&(window.ISPlayer=a.ISPlayer),a.ISPVideoPlayer&&(window.ISPVideoPlayer=a.ISPVideoPlayer),a.ISPQuizPlayer&&(window.ISPQuizPlayer=a.ISPQuizPlayer),a.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=a.ISPInteractionPlayerCore),a.ISPBookPlayer&&(window.ISPBookPlayer=a.ISPBookPlayer),a.ISPScenarioPlayer&&(window.ISPScenarioPlayer=a.ISPScenarioPlayer),a.ISPFlipPlayer&&(window.ISPFlipPlayer=a.ISPFlipPlayer),!0}catch(e){return!1}}if(function(){try{var a=
window.frameElement}catch(e){}return null!=a}())for(var b=window,c=7;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent})();var Jd,Kd=V().user_agent;Jd=Kd?Kd:B||"";V();V();var Ld=-1!=Jd.toLowerCase().indexOf("chrome"),Ed=-1==Jd.toLowerCase().indexOf("windows phone")&&-1!=Jd.toLowerCase().indexOf("android")&&!Ld&&!Yc&&!cb,Dd=-1!=Jd.indexOf("ismobile"),Md=document.createElement("audio"),Nd=Md.play&&Md.play();Nd&&Nd.then(function(){Md.pause()},function(){});V();V();
function Od(){return 1==window._ispringDebug||"1"==V().isdebug}if(C("Windows")){var Pd=B,X;if(C("Windows")){X=/Windows (?:NT|Phone) ([0-9.]+)/;var Qd=X.exec(Pd)}else bb()||C("iPad")||C("iPod")?(X=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,(Qd=X.exec(Pd))&&Qd[1].replace(/_/g,".")):C("Macintosh")?(X=/Mac OS X ([0-9_.]+)/,(Qd=X.exec(Pd))&&Qd[1].replace(/_/g,".")):C("Android")?(X=/Android\s+([^\);]+)(\)|;)/,Qd=X.exec(Pd)):C("CrOS")&&(X=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Qd=X.exec(Pd))}
setTimeout(function(){xa=Od},0);function Y(a,b){try{this.Va=a;this.Aa={};this.Ya=null;this.S=new Nb(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.V=new Ob(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.ia=new Pb(this.V.timeLimit(),this.V.$a);var c=new tb(b.flags);this.F="never"!=b.resumeMode;var d=new vb("ispring://presentations/"+encodeURIComponent(b.presentationId),c,b.tincan.i18n,this.F);this.Vb=new wb;this.m=Qb(a,d,this.Vb)}catch(e){Od()&&alert(e)}}
h=Y.prototype;h.v=!1;h.sa=null;h.M=!1;h.o=null;h.T=null;h.Xb=!1;h.B=null;h.J=null;var Rd=h.ua=null;t("iSpring.LMS.create",function(a,b,c){y(!Rd);return Rd=new Y(b,c)},void 0);t("iSpring.LMS.instance",function(){return y(Rd)},void 0);Y.prototype.A=function(a){this.sa=a;null!=this.m?this.m.A(w(this.qc,this),w(this.Mb,this)):this.Mb()};Y.prototype.initialize=Y.prototype.A;
Y.prototype.qc=function(){this.ea="normal";var a=null;var b=this.m.xa();switch(this.ea){case "browse":a=null;break;case "review":b&&(a=Sd(this,b));break;case "normal":this.F&&b&&(a=Sd(this,b))}window.launchMode=this.ea;p(a)&&(this.v=!0,this.sa&&this.sa(a))};
function Sd(a,b){var c=new Eb(D(b,Jb,[]));c.P=D(b,Fb,0);c.Ba=D(b,Gb,-1);c.ja=D(b,Hb,[]);c.Ja=D(b,Ib,[]);c.Da=D(b,Kb,null);var d={};b=D(b,Lb,{});for(var e in b){var f=b[e];d[e]=new xb(f[yb],f[Db],f[zb],f[Ab],f[Bb],f[Cb])}c.K=d;a.T=c;c=a.T.duration();if(a.V.$a&&c>=a.V.timeLimit())alert("You have already exceeded available time for viewing this content."),Hd(),Cd();else return a.T.Da}Y.prototype.Mb=function(){this.sa&&this.sa()};
Y.prototype.start=function(a){if(this.v){for(var b=a.presentation().slides(),c=[],d=0;d<b.visibleSlidesCount();++d){var e=b.getVisibleSlide(d).index();c.push(e)}this.j=new Eb(c);this.o=a;this.M=!0;this.Vb.Ac.Ma(a.presentation().title());a.startupEvent().addHandler(this.Nb,this);a.startupCompletedEvent().addHandler(this.Ob,this);a.closeWindowEvent().addHandler(this.Jb,this)}};Y.prototype.start=Y.prototype.start;
Y.prototype.Nb=function(a){this.o.startupEvent().removeHandler(this.Nb,this);var b=(this.F||"review"==this.ea)&&this.T?this.T.Ba:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.o.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.Ob=function(a,b){this.o.startupCompletedEvent().removeHandler(this.Ob,this);this.Xb=!0;"resumePlayback"==a&&this.T&&(this.j=this.T);a=this.j.duration();this.ia.started()||(this.ia.Zb.addHandler(this.mb,this),this.ia.start(a));a=this.o.view().playbackController();a.slideChangeEvent().addHandler(this.jb,this);a=a.currentSlideIndex();a==b&&this.jb(a);this.o.stateChangedEvent().addHandler(this.Pb,this)};Y.prototype.ac=function(){this.M&&Td(this,this.F)};Y.prototype.closeLms=Y.prototype.ac;
function Td(a,b){a.M&&(a.M=!1,a.Xb&&(a.ia.stop(),Ud(a),a.o.view().playbackController().slideChangeEvent().removeHandler(a.jb,a)),a.o.closeWindowEvent().removeHandler(a.Jb,a),a.o.stateChangedEvent().removeHandler(a.Pb,a),b?a.m.suspend():a.m.terminate())}h=Y.prototype;
h.jb=function(a){if(this.B){var b=this.B;b.currentSessionChangedEvent().removeHandler(this.Kb,this);(b=b.currentSession())&&Vd(this,b);this.B=null}this.J&&(this.J.currentSessionChangedEvent().removeHandler(this.Lb,this),null!=this.ua&&Wd(this),this.J=null);b=this.o.view().playbackController();if(a in this.S.I){var c=this.B=b.quizPlayer(),d=(c[v]||(c[v]=++pa))+"";d in this.Aa||(this.Aa[d]=!0,(d=this.m.i.zb())&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.Kb,
this);(c=c.currentSession())&&Xd(this,c)}a in this.S.ga&&(b=this.J=b.scenarioPlayer(),c=(b[v]||(b[v]=++pa))+"",c in this.Aa||(this.Aa[c]=!0,c=this.m.i.zb(),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Yd(this,c),b.currentSessionChangedEvent().addHandler(this.Lb,this));b=this.o.presentation().slides().getSlide(a);"normal"==this.ea&&b.title()&&b.title();b=this.j;0<=b.Ka.indexOf(a)?(b=b.ja,0<=z(b,a)||b.push(a)):(b=b.Ja,0<=
z(b,a)||b.push(a));this.j.Ba=a;Zd(this)};function Ud(a){var b=a.ia;b=b.started()?x()-b.Fa+b.fa:b.Ia;var c=a.ia;c=c.started()?x()-c.Fa:c.Za;a.j.Ra(b);a.m.Cb(c);b=a.o.persistState();a.j.Da=b;a.m.Db(a.j.Ab())}function Zd(a){var b=a.S;if(0<b.U||0<b.na){var c=ae(a),d=b.totalScore()*c;a.m.$(c,0,b.totalScore(),d)}a.m.L(be(a),ce(a));Ud(a);a.m.Y()}
function be(a){var b=a.S,c;if(!(c=!(0<b.U||0<b.na))&&(c=a.F)){a:if(c=a.j,c=c.ja.concat(c.Ja),0<a.S.U&&0<c.length)var d=!0;else{var e=a.j.K;for(d in e){var f=parseInt(d,10);if(e[d].fc&&-1!=z(c,f)){d=!0;break a}}d=!1}c=!d}return c?null:ae(a)*b.totalScore()>=b.passingScore()}function ce(a){var b=a.S,c=a.j.ja,d=a.j.Ka,e=a.j.K;a=a.o.presentation().slides();for(var f=0;f<a.count();++f)if(d.includes(f)&&!c.includes(f)||(f in b.I||f in b.ga)&&!e[f+""])return!1;return!0}
function ae(a){var b=a.S;if(!(0<b.U||0<b.na))return 0;var c=0,d=a.j.K,e;for(e in d){var f=d[e],g=parseInt(e,10);c+=(null!=f.Bb?f.Bb:1)*(null!=(g in b.I?b.I[g]:null)?g in b.I?b.I[g]:0:g in b.ga?b.ga[g]:0)}d=0;0<b.U&&(d=a.j.ja.length/a.j.Ka.length*b.slidesWeight());a=Mb(Za(b.I))+Mb(Za(b.ga))+b.slidesWeight();return(c+d)/a}h.Lb=function(){null!=this.ua&&Wd(this);var a=this.J.currentSession();Yd(this,a)};
function Yd(a,b){"normal"==a.ea&&(a.ua=b,b.showTerminalSceneEvent().addHandler(a.lb,a),b.onReplySelectedEvent().addHandler(a.kb,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.lb())}function Wd(a){var b=a.ua;a.ua=null;b.showTerminalSceneEvent().removeHandler(a.lb,a);b.onReplySelectedEvent().removeHandler(a.kb,a)}
h.lb=function(){var a=this.J.currentSession();y(a);var b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.kb();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());var c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1;b=new xb(!0,"scenario",a.scenarioPassed(),b,c,d)}else b=new xb(!1,"scenario",!0);c=this.o.view().playbackController().currentSlideIndex();this.j.K[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();Zd(this)};h.kb=function(a){var b=this.J.currentSession();y(b);var c=b.currentSceneState().scene();null!=c&&(a=(new qd(b,c,"1.2"==this.Va,a)).create(),Aa(a,function(a){if("tincan"==this.Va||"choice"==a.type()){var c="/scenarios/"+b.scenario().id();a.id();a.type();this.m.X(c,a)}},this))};
function Xd(a,b){if("normal"==a.ea){b.sessionModeChangedEvent().addHandler(a.Rb,a);var c=b.slidePoolState();c=l(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.Qb,a);a.B.id();b.quiz().title()}}function Vd(a,b){b.sessionModeChangedEvent().removeHandler(a.Rb,a);b=b.slidePoolState();b=l(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.Qb,a)}
h.Kb=function(){var a=this.B.currentSession();this.Ya&&Vd(this,this.Ya);(this.Ya=a)&&Xd(this,a)};
h.Rb=function(a){if("testing"==a){a=this.B.currentSession();y(a);var b;if(b=a.evaluation()){var c=b.maxScore(),d=b.awardedScore(),e=b.awardedPercent()/100;b=new xb(!0,"quiz",b.quizPassed(),c,d,e)}else b=new xb(!1,"quiz",!0);c=this.o.view().playbackController().currentSlideIndex();this.j.K[c+""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.B.currentSession(),y(b),(new Wb(this.m,b)).rb.settings();this.B.id();a.quiz().title();Zd(this)}};
h.Qb=function(a){var b=this.B.currentSession();y(b);if(a.initiated()){b=this.o.view().playbackController().currentSlideIndex()+1;var c=a.slide().type(),d=this.Va;if(a=(new rc[c]({Mc:"1.2"==d||"aicc"==d,Pc:"tincan"==d,slideIndex:b})).create(a))b="/quizzes/"+this.B.id(),a.id(),this.m.X(b,a)}};h.Jb=function(a){y(this.M);a.preventAction();this.ac()};h.mb=function(){y(this.M);this.V.yc&&alert(this.V.message());this.V.$a&&Td(this,!1)};h.Pb=function(a){y(this.M);a.actionPrevented()||(a.preventAction(),Ud(this))};function de(a,b){this.Gb=a;this.Ga=b}function ee(a,b){return b in a.Gb?a.Gb[b]:null}de.prototype.xa=function(){return this.Ga};function fe(){this.ca=[]}fe.prototype.X=function(a){this.ca.push(a)};function ge(){this.hb="unknown";this.Ga=this.gb=this.Ib=this.Ca=this.Tb=null}h=ge.prototype;h.wa=function(){return this.Tb};h.maxScore=function(){return this.Ib};h.Cb=function(a){this.gb=a};h.xa=function(){return this.Ga};h.Db=function(a){this.Ga=a};var he=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ie(a){var b=window.location.toString();a=a.match(he);b=b.match(he);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};function je(){this.aa=this.R=this.ha=null}
je.prototype.A=function(a,b){if(!ie(a))return!1;var c=document.body;this.ha=Ad();id(this.ha,{position:"absolute"});Nc(this.ha,{id:"hacpFormTarget",name:"hacpFormTarget"});this.ha.onload=w(this.rc,this);Sc(c,this.ha);var d=vc('<form method="POST">'+('<input type="hidden" name="session_id" value="'+b+'">')+'<input type="hidden" name="command" value=""><input type="hidden" name="version" value="4"><input type="hidden" name="aicc_data" value=""></form>',null),e=document;b=e.createElement("DIV");F?(Mc(b,
uc(wc,d)),b.removeChild(y(b.firstChild))):Mc(b,d);if(1==b.childNodes.length)b=b.removeChild(y(b.firstChild));else{for(d=e.createDocumentFragment();b.firstChild;)d.appendChild(b.firstChild);b=d}this.R=b;this.R.target="hacpFormTarget";this.R.action=a;Sc(c,this.R);return!0};je.prototype.Eb=function(a,b){this.aa=null;ke(this,a,b);zd()};je.prototype.wb=function(a,b,c){this.aa=null;ke(this,a,b);c&&(this.aa=c)};function ke(a,b,c){a.R.command.value=b;a.R.aicc_data.value=c||"";a.R.submit()}
je.prototype.rc=function(){if(this.aa){a:{try{var a=this.ha.contentWindow.document.body.innerHTML;break a}catch(b){}a=""}this.aa(a);this.aa=null}};function le(){this.la=this.N=""}le.prototype.A=function(a,b){if(null==me())return!1;this.N=a;this.la=b;return!0};le.prototype.Eb=function(a,b){var c=me();y(c);var d=!1,e=!1;c.onload=function(){e=d=!0};c.onerror=function(){d=!0};ne(this,c,a,b);for(a=x();!d&&1E3>x()-a;)zd();if(!e)throw 0;};le.prototype.wb=function(a,b,c,d){var e=me();y(e);e.onload=function(){c&&c(e.responseText)};e.onerror=function(){d&&d("")};e.onprogress=function(){};ne(this,e,a,b)};
function ne(a,b,c,d){var e=a.N;var f=window.location.toString().match(he)[1]||null;if("file"!=f){var g=e.match(he)[1]||null;e=f+e.substr(g.length)}a="session_id="+encodeURIComponent(a.la)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));try{b.open("POST",e),b.send(a)}catch(k){b.onerror&&b.onerror()}}function me(){return window.XDomainRequest?new XDomainRequest:null};function oe(){this.la=this.N=""}oe.prototype.A=function(a,b){if(F&&11>parseFloat(hb)&&!ie(this.N)||!Bd())return!1;this.N=a;this.la=b;return!0};oe.prototype.Eb=function(a,b){var c=Bd();y(c);c.open("POST",this.N,!1);pe(this,c,a,b)};
oe.prototype.wb=function(a,b,c,d){var e=Bd();y(e);c&&(e.onreadystatechange=function(){if(4==e.readyState){delete e.onreadystatechange;a:switch(e.status){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break a;default:a=!1}a?c&&c(e.responseText):d&&d(e.responseText)}});e.open("POST",this.N,!0);pe(this,e,a,b)};
function pe(a,b,c,d){b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a="session_id="+encodeURIComponent(a.la)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));b.send(a)};function qe(a,b){this.G=[];for(var c=[new oe,new le,new je],d=0;d<c.length;++d){var e=c[d];e.A(a,b)&&this.G.push(e)}if(0===this.G.length)throw alert("No available transports, progress can't be reported"),Error("No available transports, progress can't be reported");}
function re(a,b,c){return se(a,"GETPARAM",null,function(a){if(a){if(b){var d={},f=null;a=a.split("\n");for(var g=0;g<a.length-1;++g){var k=A(a[g]);0<k.indexOf("=")?(k=k.split("="),d[A(k[0])]=A(k[1])):"[core_lesson]"==k.toLowerCase()&&(k=A(a[g+1]),k.match(/^\[\w+\]$/)||(f=k))}b(new de(d,f))}}else c&&c("response is empty")},c)}function te(a,b,c){return se(a,"PUTPARAM",ue(b),function(a){a&&c&&c()},void 0)}
function ve(a,b,c){0<b.ca.length?se(a,"PUTINTERACTIONS",we(b),function(a){a&&c&&c()},void 0):c&&c()}function ye(a,b,c,d){var e=!0;b&&(e=te(a,b,function(){c&&ve(a,c,function(){d&&d()})}));return e}function ze(a,b,c){for(var d=0<a.G.length?a.G[0]:null;d;)try{d.Eb(b,c);break}catch(e){console.log(e),d=Ae(a)}}function se(a,b,c,d,e){for(var f=0<a.G.length?a.G[0]:null;f;)try{return f.wb(b,c,d,e),!0}catch(g){f=Ae(a)}return!1}function Ae(a){a.G.shift();return 0<a.G.length?a.G[0]:null}
function ue(a){var b=["[core]","lesson_status="+a.hb];if(null!==a.wa()){var c="score="+a.wa();null===a.Ca||null===a.maxScore()||(c+=","+a.maxScore()+","+a.Ca);b.push(c)}c=a.gb;null===c||b.push("time="+vd(c));a=a.xa();null!==a&&(b.push("[core_lesson]"),b.push(a));return b.join("\r\n")}
function we(a){function b(a){return"incorrect"==a?"wrong":a}for(var c=[],d=0;d<a.ca.length;++d){if(0>d||d>=a.ca.length)throw Error("index is out of bounds");var e=a.ca[d],f=e.Ua(),g=e.u,k=e.awardedScore(),r=e.duration();c.push(["","","","",f?wd(f):"",f?xd(f):"",e.id(),e.type(),g?g.join("[,]"):"",e.Ta()||"",ma(k)?k+"":b(e.result()),e.score()+"",null===r?"":vd(r/1E3)])}a=["course_id student_id lesson_id objective_id date time interaction_id type_interaction correct_response student_response result weighting latency".split(" ")].concat(c);
a=Ba(a,function(a){return Ba(a,Sa).join(",")});return a.join("\r\n")};t("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.nc[a];if(null==d)return"";delete null.nc[a];Xc(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function Be(){a:{try{var a=V();if("aicc_url"in a&&"aicc_sid"in a){var b=new qe(a.aicc_url,a.aicc_sid);break a}}catch(c){}b=null}this.b=b;this.w=new ge;this.v=!1;this.za=null;this.H=!1;this.da=null}h=Be.prototype;h.A=function(){throw Error("not supported");};h.ec=function(a,b){var c=this;if(this.v)a();else if(null!=this.b){var d=this;re(this.b,function(b){d.za=b;c.v=!0;a()},function(){b()})||b()}else b()};
h.terminate=function(){if(null!=this.b){var a=this.b,b=this.H?this.w:null,c=this.da;b&&ze(a,"PUTPARAM",ue(b));c&&0<c.ca.length&&ze(a,"PUTINTERACTIONS",we(c));ze(this.b,"EXITAU");return!0}return!1};h.Y=function(){var a=this;return null!=this.b?ye(this.b,this.H?this.w:null,this.da,function(){a.H=!1;a.da=null}):!1};h.Z=function(){throw Error("not supported");};h.c=function(){throw Error("not supported");};
h.$=function(a,b,c){var d=!1;this.w.Ca!=b&&(this.w.Ca=b,d=!0);this.w.maxScore()!=c&&(this.w.Ib=c,d=!0);this.w.wa()!=a&&(this.w.Tb=a,d=!0);this.H=this.H||d};h.Sa=function(){};h.gc=function(a){a/=1E3;this.w.gb!=a&&(this.w.Cb(a),this.H=!0)};h.cc=function(){var a=this.za.xa();if(a)try{return cd(a)}catch(b){}return null};h.hc=function(a){a=(new dd(void 0)).serialize(a);this.w.Db(a);this.H=!0};
h.L=function(a,b){a=null===a?null===b?"unknown":b?"completed":"incomplete":a?"passed":"failed";this.w.hb!=a&&(this.w.hb=a,this.H=!0)};h.X=function(a){this.da||(this.da=new fe);this.da.X(a)};h.zb=function(){y(this.za);var a=this.za;return new Rb(ee(a,"student_id")||"",ee(a,"student_name")||"")};function Ce(a,b){this.ma=a;this.nb=!1;this.Xa=0;this.F=b}h=Ce.prototype;h.A=function(){try{return"true"==this.ma.LMSInitialize("").toString()}catch(a){}return!1};h.terminate=function(a){this.c("cmi.core.exit",a?this.nb?"":"suspend":"");this.Y();try{return"true"==this.ma.LMSFinish("").toString()}catch(b){}return!1};h.Y=function(){0==this.Xa&&this.c("cmi.core.exit",this.F?this.nb?"":"suspend":"");try{var a="true"==this.ma.LMSCommit("").toString();this.Xa+=1;return a}catch(b){}return!1};
h.Sa=function(a){this.nb=a};h.Z=function(a){try{return this.ma.LMSGetValue(a)}catch(b){}return""};h.c=function(a,b){if(ma(b)){var c;(c=p(c)?c:!0)?b=parseFloat(b.toFixed(2))+"":(c=Math.pow(10,2),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.ma.LMSSetValue(a,b).toString()}catch(d){}return!1};var Z={id:"id",type:"type",score:"weighting",Ec:"correct_responses.%INDEX%.pattern",Ta:"student_response",result:"result",duration:"latency",Ua:"time"},De={};function Ee(a,b,c){var d=a.id()+"_"+a.description();d=I(d.substr(0,255));c.c(b+Z.id,d);c.c(b+Z.type,a.type());c.c(b+Z.score,a.score());d=a.u||[];for(var e=0;e<d.length;++e){var f=Z.Ec.replace("%INDEX%",e);c.c(b+f,d[e])}d=a.Ta();null!=d&&c.c(b+Z.Ta,d);c.c(b+Z.result,function(a){return"incorrect"==a?"wrong":a}(a.result()))};function Fe(a){var b=ud();this.b=b?new Ce(b,a):null;this.v=!1}h=Fe.prototype;h.A=function(){return this.v?!0:this.v=null!=this.b?this.b.A():!1};h.ec=function(a,b){this.v?a():null!=this.b?(this.v=this.b.A())?a():b():(this.v=!1,b())};h.terminate=function(a){return null!=this.b?this.b.terminate(a):!1};h.Y=function(){return null!=this.b?this.b.Y():!1};h.Z=function(a){return null!=this.b?this.b.Z(a):""};h.c=function(a,b){return null!=this.b?this.b.c(a,b):!1};
h.$=function(a,b,c){this.c("cmi.core.score.raw",a);this.c("cmi.core.score.min",b);this.c("cmi.core.score.max",c)};h.gc=function(a){this.c("cmi.core.session_time",vd(a/1E3))};h.cc=function(){var a=this.Z("cmi.suspend_data");if(a)a:{a=LZString.decompressFromBase64(a);try{var b=cd(a);break a}catch(c){}b=null}else b=null;return b};h.hc=function(a){a=(new dd(void 0)).serialize(a);a=LZString.compressToBase64(a);this.c("cmi.suspend_data",a)};
h.L=function(a,b){null===a?null===b?this.c("cmi.core.lesson_status","unknown"):this.c("cmi.core.lesson_status",b?"completed":"incomplete"):this.c("cmi.core.lesson_status",a?"passed":"failed")};h.Sa=function(a){this.b.Sa(a)};
h.X=function(a){var b=a.id();if(a.id()in De)var c=De[b];else c=parseInt(this.Z("cmi.interactions._count"),10),De[b]=c;0>c||(b="cmi.interactions."+c+".",Ee(a,b,this),c=a.duration(),null===c||this.c(b+Z.duration,vd(c/1E3)),a=a.Ua(),null===a||this.c(b+Z.Ua,vd(3600*a.getHours()+60*a.getMinutes()+a.getSeconds())))};h.zb=function(){return new Rb(this.Z("cmi.core.student_id"),this.Z("cmi.core.student_name"))};function Ge(){}h=Ge.prototype;h.i=null;h.bc=function(){throw Error("unimplemented abstract method");};h.A=function(a,b){(this.i=this.bc())?this.i.ec(a,b):b()};h.Y=function(){this.i.Y()};h.suspend=function(){this.i.terminate(!0);Hd();Cd()};h.terminate=function(){this.i.terminate(!1);Hd();Cd()};h.Db=function(a){this.i.hc(a)};h.xa=function(){return this.i.cc()};h.L=function(a,b){this.i.Sa(a);this.i.L(a,b)};h.$=function(a,b,c,d){this.i.$(d,b,c,a)};h.Cb=function(a){this.i.gc(a)};h.X=function(a,b){this.i.X(b)};function He(a){this.pb=a.pb;this.F=a.F}sa(He,Ge);t("iSpring.LMSAPI.AiccApi",He,void 0);He.prototype.bc=function(){var a=new Fe(this.F);a.A()||(a=new Be);return a};He.prototype.L=function(a,b){var c=null===a;a=c?b:a;null===a?this.i.L(null,null):!c&&this.pb.sc&(a?2:1)?this.i.L(a,null):this.i.L(null,a)};})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
