(function(){var l,m=this;function n(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]?c=c[d]:c=c[d]={}:c[d]=b} function q(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 aa(a){return null!=a}function ba(a){var b=q(a);return"array"==b||"object"==b&&"number"==typeof a.length}function r(a){return"string"==typeof a}function ca(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function da(a){return a[ea]||(a[ea]=++fa)}var ea="closure_uid_"+(1E9*Math.random()>>>0),fa=0;function ga(a,b,c){return a.call.apply(a.bind,arguments)} function ha(a,b,c){if(!a)throw Error();if(2b||b>=a.count())throw Error("Index out of bounds");return a.a[b]};function B(){this.b=new z}B.prototype.choices=function(){return this.b};var ka=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function la(a){if(!ma.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(na,"&"));-1!=a.indexOf("<")&&(a=a.replace(oa,"<"));-1!=a.indexOf(">")&&(a=a.replace(pa,">"));-1!=a.indexOf('"')&&(a=a.replace(qa,"""));-1!=a.indexOf("'")&&(a=a.replace(ra,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(sa,"�"));return a}var na=/&/g,oa=//g,qa=/"/g,ra=/'/g,sa=/\x00/g,ma=/[\x00&<>"']/; function ta(a,b){return ab?1:0};function C(a){a=ka(a);return a=a.replace(/[^\w-]/g,"_")}function D(a,b){a=(null!=b?b:1)?a:35-a;return"0123456789abcdefghijklmnopqrstuvwxyz"[a%36]};function ua(a,b,c,d){for(var e=d?",":"[,]",f=d?".":"[.]",g=[],h=0;hc?Math.max(0,a.length+c):c;if(r(a))return r(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:r(a)?a.charAt(c):a[c]}function Ha(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Ia(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)} function Ma(a){for(var b={},c=0,d=0;dh;++h){var k=d.getChoiceState(h);if(k.selected()){g=k.choice().id()==c?e:f;break}}a.f=g;a.h=[e]}};function pb(a,b){var c="1.2"==b||"aicc"==b;switch(a){case "essayQuestion":return new ib;case "likertScaleQuestion":return new nb;case "hotspotQuestion":return new fb(c);case "fillInTheBlankQuestion":return new eb;case "wordBankQuestion":return new Na(c);case "typeInQuestion":return new cb;case "fillInTheBlankSurveyQuestion":return new Ca;case "shortAnswerQuestion":return new Za;case "whichWordQuestion":return new kb(c);case "numericQuestion":return new Ba;case "multipleChoiceQuestion":return new N(c); case "multipleResponseQuestion":return new Xa(c);case "numericSurveyQuestion":return new Ra;case "multipleChoiceTextQuestion":return new Ya(c);case "sequenceQuestion":return new K(c);case "multipleChoiceTextSurveyQuestion":return new db(c);case "rankingQuestion":return new F(c);case "pickManyQuestion":return new Ta(c);case "matchingQuestion":return new jb(c);case "matchingSurveyQuestion":return new Wa(c);case "pickOneQuestion":return new $a(c);case "trueFalseQuestion":return new ob(c);case "yesNoQuestion":return new bb}return null} ;var qb={jb:"prompt",ya:"always",bb:"never"};n("ispring.presenter.presentation.settings.PresentationResumeMode",qb,void 0);n("PROMPT_TO_RESUME","prompt",qb);n("ALWAYS_RESUME","always",qb);n("NEVER_RESUME","never",qb);var O;a:{var rb=m.navigator;if(rb){var sb=rb.userAgent;if(sb){O=sb;break a}}O=""};function tb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function ub(a){var b=0,c;for(c in a)b++;return b}function vb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function wb(a,b,c){return null!==a&&b in a?a[b]:c}var xb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function yb(a,b){for(var c,d,e=1;eparseFloat(Fb)){Eb=String(Hb);break a}}Eb=Fb}var Ib={}; function Q(a){var b;if(!(b=Ib[a])){b=0;for(var c=ka(String(Eb)).split("."),d=ka(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f");f=f.join("")}f=e.createElement(f);g&&(r(g)?f.className=g:"array"==q(g)?f.className=g.join(" "):Nb(f,g));2","

k){var k=g.substr(k,y.a-k),x=Pb("DIV");x.innerHTML=k;p+=(x.textContent||x.innerText||Ub(x))+h;k=y.a}if(x=nc(g,["

","

"],k)){var y=x.a+x.b.length-k,Wc=g.substr(k,y),x=Pb("DIV");x.innerHTML=Wc;p+=(x.textContent||x.innerText||Ub(x))+h;k+=y}else{x=Pb("DIV"); x.innerHTML=g.substr(k,v-k);g=p+(x.textContent||x.innerText||Ub(x));break a}}while(k>1,h;h=c[g];h=b>h?1:bd&&Ka(c,-(d+1),0,b)}this.a[b].push(a)};tc.prototype.remove=function(a,b){if(b in this.a){var c=this.a[b],d=Da(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}};function uc(a,b){return b in a.a?a.a[b]:[]} function vc(a){var b=[],c=a.a;a=a.b;for(var d=0;d=this.a,a&&this.b||(this.D=!0,this.O=ia(),a||(this.P=setTimeout(t(this.wa,this),this.a-this.F))))};l.wa=function(){this.b&&(xc(this),this.R=this.a);this.c.ka()};function xc(a){a.D&&(a.D=!1,0b;++b){if(a.API)return a.API;var e=a.parent;if(!e||a==e)break;a=e}}catch(f){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function Cc(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60);a=Math.floor(a%60);return(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)+":"+(10>a?"0"+a:a)}function Dc(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Ec(){}l=Ec.prototype;l.na=null;l.ma=null;l.W=null;l.oa=null;l.duration=null;function Fc(a,b,c,d){this.b=a;this.a=b;this.i=c;this.c=d}Fc.prototype.message=function(){return this.c};function Gc(a,b,c,d){this.c=a;this.b=void 0!==b?b:null;this.i=void 0!==c?c:null;this.a=void 0!==d?d:null};function W(){this.b=[];this.a={}}W.prototype.c=-1;W.prototype.o=0;W.prototype.i=null;W.prototype.duration=function(){return this.o};function X(a,b,c){try{this.X=b;this.b=new W;this.G={};this.i=new mc(c.slidesToView,c.slidesWeight,c.quizzes||{},c.scenarios||{},c.totalScore,c.passingScore);this.c=new Fc(1E3*c.timeLimit,c.exitOnTimeout,c.showMessageOnTimeout,c.timeoutMessage);this.o=new wc(this.c.b,this.c.a);var d=new yc(c.flags);this.w="never"!=c.resumeMode;this.a=Ac(b,new zc(d,this.w))}catch(e){kc()&&alert(e)}}l=X.prototype;l.$=!1;l.H=null;l.M=!1;l.j=null;l.C=null;l.ha=!1;l.B=null;l.A=null;var Hc=l.I=null; n("iSpring.LMS.create",function(a,b,c){return Hc=new X(0,b,c)},void 0);n("iSpring.LMS.instance",function(){return Hc},void 0);X.prototype.J=function(a){this.H=a;null!=this.a?this.a.J(t(this.sa,this),t(this.pa,this)):this.pa()};X.prototype.initialize=X.prototype.J; X.prototype.sa=function(){var a=null,b;b=Ic(this.a.u,"cmi.suspend_data");var c;if(b)a:{b=LZString.decompressFromBase64(b);try{c=Xb(b);break a}catch(f){}c=null}else c=null;b=c;if(this.w&&b){a=new W;a.o=wb(b,"d",0);a.c=wb(b,"l",-1);a.b=wb(b,"v",[]);a.i=wb(b,"p",null);c={};b=wb(b,"q",{});for(var d in b){var e=b[d];c[d]=new Gc(e.p,e.m,e.r,e.s)}a.a=c;this.C=a;d=this.C.duration();if(this.c.a&&d>=this.c.b){alert("You have already exceeded available time for viewing this content.");Dc();fc();return}a=this.C.i}this.$= !0;this.H&&this.H(a)};X.prototype.pa=function(){this.H&&this.H()};X.prototype.start=function(a){this.$&&(this.j=a,this.M=!0,this.a.start(a),a.startupEvent().addHandler(this.qa,this),a.startupCompletedEvent().addHandler(this.ra,this),a.closeWindowEvent().addHandler(this.aa,this))};X.prototype.start=X.prototype.start; X.prototype.qa=function(a){this.j.startupEvent().removeHandler(this.qa,this);var b=this.w&&this.C?this.C.c:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.j.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))}; X.prototype.ra=function(a,b){this.j.startupCompletedEvent().removeHandler(this.ra,this);this.ha=!0;"resumePlayback"==a&&this.C&&(this.b=this.C);var c=this.b.duration();this.o.D||(this.o.c.addHandler(this.va,this),this.o.start(c));c=this.j.view().playbackController();c.slideChangeEvent().addHandler(this.T,this);c=c.currentSlideIndex();c==b&&this.T(c);this.w&&this.j.stateChangedEvent().addHandler(this.da,this)};X.prototype.ja=function(){this.M&&Jc(this,this.w)};X.prototype.closeLms=X.prototype.ja; function Jc(a,b){a.M&&(a.M=!1,a.ha&&(xc(a.o),Kc(a),a.j.view().playbackController().slideChangeEvent().removeHandler(a.T,a)),a.j.closeWindowEvent().removeHandler(a.aa,a),a.j.stateChangedEvent().removeHandler(a.da,a),b?Lc(a.a,!0):Lc(a.a,!1))}l=X.prototype; l.T=function(a){if(this.B){var b=this.B;b.currentSessionChangedEvent().removeHandler(this.ba,this);(b=b.currentSession())&&Mc(this,b);this.B=null}this.A&&(this.A.currentSessionChangedEvent().removeHandler(this.ca,this),null!=this.I&&Nc(this),this.A=null);b=this.j.view().playbackController();if(a in this.i.a){var c=this.B=b.quizPlayer(),d=da(c)+"";d in this.G||(this.G[d]=!0,d=this.a.u,d=new Oc(Ic(d,"cmi.core.student_id"),Ic(d,"cmi.core.student_name"),""),c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.a})); c.currentSessionChangedEvent().addHandler(this.ba,this);(c=c.currentSession())&&Pc(this,c)}a in this.i.c&&(b=this.A=b.scenarioPlayer(),c=da(b)+"",c in this.G||(this.G[c]=!0),c=b.currentSession(),null!=c&&Qc(this,c),b.currentSessionChangedEvent().addHandler(this.ca,this));b=this.b.b;0<=Da(b,a)||b.push(a);this.b.c=a;Rc(this)}; function Kc(a){var b;b=a.o;b=b.D?ia()-b.O+b.F:b.R;var c;c=a.o;c=c.D?ia()-c.O:c.S;a.b.o=b;Y(a.a.u,"cmi.core.session_time",Cc(c/1E3));if(a.w){b=a.j.persistState();a.b.i=b;c=a.b;b={};b.d=c.o;b.l=c.c;b.v=c.b;b.p=c.i;var d={},e;for(e in c.a){var f=c.a[e],g={};g.p=f.c;g.m=f.b;g.r=f.i;g.s=f.a;d[e]=g}b.q=d;a=a.a;e=[];Zb(new Yb,b,e);e=LZString.compressToBase64(e.join(""));Y(a.u,"cmi.suspend_data",e)}} function Rc(a){var b=a.i;if(0=e.G:null;c=a.i;b=0=b&&c;e=null===e?b:e;b="unknown";null===e||(b=d.xa.a&(e?2:1)?e?"passed":"failed":e?"completed":"incomplete");Y(d.u,"cmi.core.lesson_status",b);Kc(a);Tc(a.a.u)} function Sc(a){var b=a.i;if(!(0=a.scenario().evaluationSettings().passingScore(),100,b,b/100)):b=new Gc(!0);var c=this.j.view().playbackController().currentSlideIndex();this.b.a[c+""]=b;b=new Ec;b.duration=a.duration();b.na=0;b.ma=100;b.W=a.currentSceneState().scene().score(); a.scenario().evaluationSettings().enabled()&&(b.oa=b.W>=a.scenario().evaluationSettings().passingScore());a.scenario().id();a.scenario().title();Rc(this)};l.U=function(a){var b=this.A.currentSession(),c=b.currentSceneState().scene();null!=c&&(a=qc(new pc(c,"1.2"==this.X,a)),M(a,function(a){if("tincan"==this.X||"choice"==a.type())b.scenario().id(),a.id(),a.type(),Uc(a,this.a.u)},this))}; function Pc(a,b){b.quizStateChangeEvent().addHandler(a.fa,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Aa(d)&&b.submitEvent().addHandler(a.ea,a)});b.quiz().id();b.quiz().title()}function Mc(a,b){b.quizStateChangeEvent().removeHandler(a.fa,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Aa(d)&&b.submitEvent().removeHandler(a.ea,a)})}l.ba=function(a,b){b&&Mc(this,b);Pc(this,a)}; l.fa=function(a){if("inProgress"==a){a=this.B.currentSession();var b;b="graded"==a.quiz().type()?new Gc(a.quizPassed(),a.maxScore(),a.awardedScore(),a.awardedPercent()):new Gc(!0);var c=this.j.view().playbackController().currentSlideIndex();this.b.a[c+""]=b;b=new Ec;b.duration=a.testDuration();"graded"==a.quiz().type()&&(b.na=0,b.ma=a.maxScore(),b.W=a.awardedScore(),b.oa=a.quizPassed());a.quiz().id();a.quiz().title();Rc(this)}}; l.ea=function(a){var b=this.B.currentSession();if(a.initiated()){var c=pb(a.slide().type(),this.X);if(a.submitted()){var d=a.slide().id(),d=new wa(C(d));c.a(d,a);a=d}else a=null;a&&(b.quiz().id(),a.id(),Uc(a,this.a.u))}};l.aa=function(a){a.preventAction();this.ja()};l.va=function(){this.c.i&&alert(this.c.message());this.c.a&&Jc(this,!1)};l.da=function(a){a.actionPrevented()||(a.preventAction(),Kc(this))};function Oc(a,b,c){this.c=a;this.b=b;this.a=c}Oc.prototype.id=function(){return this.c};Oc.prototype.name=function(){return this.b};var Z={id:"id",type:"type",score:"weighting",ta:"correct_responses.%INDEX%.pattern",Y:"student_response",result:"result",duration:"latency",Z:"time"},Vc={}; function Uc(a,b){var c=a.id(),d=-1;a.id()in Vc?d=Vc[c]:(d=parseInt(Ic(b,"cmi.interactions._count"),10),d=250<=d?-1:d,Vc[c]=d);if(!(0>d)){c="cmi.interactions."+d+".";Y(b,c+Z.id,a.id());Y(b,c+Z.type,a.type());Y(b,c+Z.score,a.score());for(var d=a.h||[],e=0;e>8;r=e.charCodeAt(f/2)&255;if(f/2+1>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((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>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>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>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>1}}else{n=1;for(t=0;t>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t>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>1}}else{n=1;for(t=0;t>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t>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}