(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={Wb:!0},ha={};try{ha.__proto__=fa;ea=ha.Wb;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.fc=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 r(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 ma(a){var b=u(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var v="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}
function qa(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")?pa:qa;return w.apply(null,arguments)}var ra=Date.now||function(){return+new Date};
function sa(a,b){function c(){}c.prototype=b.prototype;a.fc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Pc=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 x(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 Aa(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)?Aa(c,!0):ya(b,!0);return!0};va=function(a){try{throw Error(a.message);}catch(b){Aa(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 y=Array.prototype.indexOf?function(a,b){x(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},Ba=Array.prototype.forEach?function(a,b,c){x(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)};
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(ma(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){x(null!=a.length);Array.prototype.splice.apply(a,Ga(arguments,1))}function Ga(a,b,c){x(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Ha=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function Ia(a){if(!Ja.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ka,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(La,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ma,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Na,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Oa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Pa,"&#0;"));return a}
var Ka=/&/g,La=/</g,Ma=/>/g,Na=/"/g,Oa=/'/g,Pa=/\x00/g,Ja=/[\x00&<>"']/;function Qa(a,b){return a<b?-1:a>b?1:0}function Ra(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Sa(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 z;a:{var Ta=n.navigator;if(Ta){var Ua=Ta.userAgent;if(Ua){z=Ua;break a}}z=""}function A(a){return-1!=z.indexOf(a)};function Va(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Wa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function B(a,b,c){return null!==a&&b in a?a[b]:c}var Xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ya(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<Xa.length;f++)c=Xa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Za(){return A("iPhone")&&!A("iPod")&&!A("iPad")};var $a=A("Opera"),C=A("Trident")||A("MSIE"),ab=A("Edge"),bb=A("Gecko")&&!(-1!=z.toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),cb=-1!=z.toLowerCase().indexOf("webkit")&&!A("Edge");function db(){var a=n.document;return a?a.documentMode:void 0}var eb;
a:{var fb="",gb=function(){var a=z;if(bb)return/rv:([^\);]+)(\)|;)/.exec(a);if(ab)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(cb)return/WebKit\/(\S+)/.exec(a);if($a)return/(?:Version)[ \/]?(\S+)/.exec(a)}();gb&&(fb=gb?gb[1]:"");if(C){var hb=db();if(null!=hb&&hb>parseFloat(fb)){eb=String(hb);break a}}eb=fb}var ib={},jb;var kb=n.document;jb=kb&&C?db()||("CSS1Compat"==kb.compatMode?parseInt(eb,10):5):void 0;function lb(){};function D(){}r("ispring.events.IEventDispatcher",D,void 0);D.prototype.addHandler=function(){};D.prototype.addHandler=D.prototype.addHandler;D.prototype.removeHandler=function(){};D.prototype.removeHandler=D.prototype.removeHandler;function mb(){this.Y=this.P=this.pa=null}mb.prototype.push=function(a,b){if(0==b)this.Y=this.Y||[];else if(this.pa=this.pa||[0],this.P=this.P||{},!(b in this.P)){this.P[b]=[];var c=this.pa;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=nb(this,b);x(b).push(a)};mb.prototype.remove=function(a,b){if(b=nb(this,b))a=y(b,a),0<=a&&(x(null!=b.length),Array.prototype.splice.call(b,a,1))};
function ob(a,b){return 0==b?a.Y||[]:b in x(a.P)?x(nb(a,b)):[]}function pb(a){if(!a.P)return a.Y?a.Y.slice():[];for(var b=[],c=x(a.pa),d=0;d<c.length;++d){var e=nb(a,c[d]);e&&Ea(b,e)}return b}function nb(a,b){return 0==b?a.Y:x(a.P)[b]};function F(a){this.tb=this.A=null;this.Mb=void 0===a?null:a}m(F,lb);h=F.prototype;h.Yb=function(){return this.Mb};h.addHandler=function(a,b,c){this.A=this.A||new mb;this.A.push({$a:a,context:b},c||0)};h.removeHandler=function(a,b,c){c=c||0;if(this.A)for(var d=ob(this.A,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.$a==a&&g.context==b){a=f;if(c=nb(this.A,c))x(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else wa("EventDispatcher has no handlers!")};
h.$b=function(a,b,c){if(!this.A)return!1;c=ob(this.A,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.$a==a&&f.context==b)return!0}return!1};h.va=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.A){c=pb(this.A);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=y(pb(this.A),f))try{f.$a.apply(f.context,arguments)}catch(g){Aa(g,!0)}}}this.tb&&this.tb.forEach(function(a){a.va.apply(a,b instanceof Array?b:ba(l(b)))})};F.prototype.dispatch=F.prototype.va;
F.prototype.hasHandler=F.prototype.$b;F.prototype.removeHandler=F.prototype.removeHandler;F.prototype.addHandler=F.prototype.addHandler;F.prototype.eventOwner=F.prototype.Yb;function G(a){this.Na=a}G.prototype.Zb=function(a,b,c){c=this.Na.hasOwnProperty(a)?this.Na[a]:c;if(p(c)){if(p(b)){a=this.Gb;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};G.prototype.messages=function(){return this.Na};G.prototype.Gb=function(a){return"%"+a.toUpperCase()+"%"};G.prototype.getMessage=G.prototype.Zb;function qb(a,b,c,d){this.Hb=new G(b);this.Db=c;this.B=d}qb.prototype.i18n=function(){return this.Hb};function rb(){this.Tb=new F};var H={Jc:"slidePool",ic:"authorizationForm",pc:"informationSlide",qc:"introSlide",Fc:"resultSlide",oc:"hotspotQuestion",rc:"likertScaleQuestion",Nc:"wordBankQuestion",kc:"essayQuestion",Lc:"typeInQuestion",Ic:"shortAnswerQuestion",lc:"fillInTheBlankQuestion",mc:"fillInTheBlankSurveyQuestion",zc:"numericQuestion",Ac:"numericSurveyQuestion",Hc:"sequenceQuestion",Ec:"rankingQuestion",Mc:"whichWordQuestion",vc:"multipleChoiceTextQuestion",wc:"multipleChoiceTextSurveyQuestion",uc:"multipleChoiceQuestion",
xc:"multipleResponseQuestion",Cc:"pickOneQuestion",Bc:"pickManyQuestion",Kc:"trueFalseQuestion",Oc:"yesNoQuestion",sc:"matchingQuestion",tc:"matchingSurveyQuestion"};r("ispring.quiz.slides.SlideType",H,void 0);r("SLIDE_POOL","slidePool",H);r("INFORMATION_SLIDE","informationSlide",H);r("INTRO_SLIDE","introSlide",H);r("HOTSPOT_QUESTION","hotspotQuestion",H);r("LIKERT_SCALE_QUESTION","likertScaleQuestion",H);r("WORD_BANK_QUESTION","wordBankQuestion",H);r("RESULT_SLIDE","resultSlide",H);
r("ESSAY_QUESTION","essayQuestion",H);r("TYPE_IN_QUESTION","typeInQuestion",H);r("SHORT_ANSWER_QUESTION","shortAnswerQuestion",H);r("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",H);r("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",H);r("NUMERIC_QUESTION","numericQuestion",H);r("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",H);r("SEQUENCE_QUESTION","sequenceQuestion",H);r("RANKING_QUESTION","rankingQuestion",H);r("WHICH_WORD_QUESTION","whichWordQuestion",H);
r("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",H);r("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",H);r("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",H);r("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",H);r("PICK_ONE_QUESTION","pickOneQuestion",H);r("PICK_MANY_QUESTION","pickManyQuestion",H);r("TRUE_FALSE_QUESTION","trueFalseQuestion",H);r("YES_NO_QUESTION","yesNoQuestion",H);r("MATCHING_QUESTION","matchingQuestion",H);
r("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",H);function I(a,b,c,d,e){this.type=a;this.bc=b;this.maxScore=p(c)?c:null;this.cc=p(d)?d:null;this.bb=p(e)?e:null}I.prototype.ab=function(){var a={};a[sb]=this.bc;a[tb]=this.maxScore;a[ub]=this.cc;a[vb]=this.bb;a[wb]=this.type;return a};var sb="p",tb="m",ub="r",vb="s",wb="t";function xb(a){this.ka=a;this.H=[];this.G={}}h=xb.prototype;h.na=-1;h.K=0;h.oa=null;h.duration=function(){return this.K};h.Aa=function(a){this.K=a};h.ab=function(){var a={};a[yb]=this.K;a[zb]=this.na;a[Ab]=this.H;a[Bb]=this.ka;a[Cb]=this.oa;var b={},c;for(c in this.G)b[c]=this.G[c].ab();a[Db]=b;return a};var zb="l",Ab="v",Bb="V",yb="d",Cb="p",Db="q";function Eb(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Fb(a,b,c,d,e,f){this.N=a;this.Sb=b;this.Vb=e;this.Nb=f;this.D={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.D[b[0]]=e,0<e&&++this.ba;this.W={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.W[c[0]]=b,0<b&&++this.ba}h=Fb.prototype;h.ba=0;h.slidesWeight=function(){return 0<this.N?this.Sb:0};h.slidesToView=function(){return this.N};h.totalScore=function(){return this.Vb};h.passingScore=function(){return this.Nb};function Gb(a,b,c,d){this.Ub=a;this.Ha=b;this.Rb=c;this.Jb=d}Gb.prototype.timeLimit=function(){return this.Ub};Gb.prototype.message=function(){return this.Jb};function Hb(a,b){this.Ya=a;this.yb=b;this.zb=new F}h=Hb.prototype;h.Xa=!1;h.V=0;h.qa=0;h.ra=-1;h.sa=0;h.Fa=0;h.started=function(){return this.Xa};h.start=function(a){this.started()||(this.sa=this.V=a||0,a=this.V>=this.Ya,a&&this.yb||(this.Xa=!0,this.qa=ra(),a||(this.ra=setTimeout(w(this.Ra,this),this.Ya-this.V))))};h.Ra=function(){this.yb&&(this.stop(),this.sa=this.Ya);this.zb.va()};
h.stop=function(){this.started()&&(this.Xa=!1,0<this.ra&&(clearTimeout(this.ra),this.ra=-1),this.Fa=ra()-this.qa,this.sa=this.Fa+this.V)};function Ib(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 Jb(a,b){this.fa=a;this.Kb=b;this.Fb=""}Jb.prototype.id=function(){return this.fa};Jb.prototype.name=function(){return this.Kb};Jb.prototype.email=function(){return this.Fb};function Kb(a){this.fa=a}h=Kb.prototype;h.J="";h.s=null;h.u=null;h.ha="unanticipated";h.ub=0;h.Ca=null;h.K=null;h.Za=null;h.w=null;h.id=function(){return this.fa};h.type=function(){return this.h};h.description=function(){return this.J};h.gb=function(){return this.s};function Lb(a,b){a.u=b}h.result=function(){return this.ha};h.score=function(){return this.ub};h.$=function(a){this.ub=a};h.awardedScore=function(){return this.Ca};h.duration=function(){return this.K};h.Aa=function(a){this.K=a};h.hb=function(){return this.Za};
h.ua=function(){return this.w};function Mb(a,b){a.w=b};function J(a){a=Ha(a);return a=a.replace(/[^\w-]/g,"_")}function K(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function Nb(a,b){this.i=a;this.Va=b};function L(a){var b=a.gc,c=a.slideIndex;this.g=a.dc;this.Ab=b;this.m=!1;this.wb=c}L.prototype.create=function(a){if(!a.submitted())return null;var b=(p(this.wb)?"Slide"+this.wb+"_":"")+"Q_"+a.slide().id();b=new Kb(J(b));this.a(b,a);return b};
L.prototype.a=function(a,b){var c=b.slide();c=M(this,c.description(),!0);a.J=c;b.hasBeenVisited()&&(a.Aa(b.visitDuration()),c=b.firstVisitTime(),a.Za=c);if(c=b.slide().settings().evaluation()){if(a.$(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Ca=d;d="unanticipated";switch(b.status()){case "correct":d="correct";break;case "incorrect":case "partially":d="incorrect"}a.ha=d}}else a.ha="neutral";this.m=!!c};function Ob(a,b){return b.join(a.g?",":"[,]")}
function O(a,b,c){return a.g?K(b):J(b+"_"+c)}function M(a,b,c){return b.textWithEquations(a.g||!c?"Equation":"")};function P(a,b){this.fa=a;this.J=b}P.prototype.id=function(){return this.fa};P.prototype.description=function(){return this.J};function Q(){this.f=[]}Q.prototype.count=function(){return this.f.length};function R(a,b){a.f.push(b)}Q.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.f[a]};function Pb(){this.Wa=new Q;this.ja=new Q};function Qb(a){L.apply(this,arguments)}m(Qb,L);h=Qb.prototype;h.a=function(a,b){L.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ta(d);b=e.ua;var f=e.premises,g=e.responses;e=e.ac;c=this.Ka(c.chainsStates(),f,g,e);a.s=c;this.m&&(c=[this.m?this.La(d.chains(),f,g,e):c],a.u=c);a.w=b};
h.Ta=function(a){var b=new Pb,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();R(b.Wa,new P(J(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),R(b.ja,new P(J(d.indexOf(f)+"_"+e),e)))}a=this.g?K(d.length,!1):d.length+"_None";R(b.ja,new P(a,"None"));return{ua:b,premises:c,responses:d,ac:a}};
h.Ka=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.T(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.T(a.value,null,b,c,d),e.push(a);return this.ca(e)};
h.La=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.T(f,g,b,c,d),e.push(f))}return this.ca(e)};h.ea=function(a,b,c){this.g?b=K(b,c):(a=a.name(),a=J(a),b=b+"_"+a);return b};h.T=function(a,b,c,d,e){a=this.ea(a,c.indexOf(a),!0);b=b?this.ea(b,d.indexOf(b),!1):e;d=this.g?".":"[.]";return J(a)+d+J(b)};h.ca=function(a){return a.join(this.g?",":"[,]")};function Rb(a){L.apply(this,arguments)}m(Rb,L);Rb.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="long-fill-in";b=b.contentState().response();a.s=b};function Sb(a){L.apply(this,arguments)}m(Sb,L);Sb.prototype.a=function(a,b){L.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.Ab?d.push(e[0]):d.push(e.join("[,]")));a.s=b.join("[,]");if(this.m){b=d;if(this.g||this.Ab)b=[b.join(this.g?"[.]":"[,]")];a.u=b}};function S(){this.f=new Q};function Tb(a){L.apply(this,arguments)}m(Tb,L);Tb.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="choice";var c=[],d=[],e=new S;this.Ia(b.contentState(),e,d,c);a.s=Ob(this,c);this.m&&(a.u=[Ob(this,d)]);a.w=e};
Tb.prototype.Ia=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),t=k.label().text();g=O(e,g,t);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);R(b.f,new P(g,t))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=O(this,g,"Untitled_Spot");d.push(k)}};function Ub(a){L.apply(this,arguments)}m(Ub,L);Ub.prototype.a=function(a,b){var c=this;L.prototype.a.call(this,a,b);a.h="choice";var d=[],e=new S;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();R(e.f,new P(O(c,b,f),f));(a=a.selectedScale())&&d.push(J(b+"_"+a.text()))});a.s=Ob(this,d);a.w=e};function Vb(a){L.apply(this,arguments)}m(Vb,L);h=Vb.prototype;h.a=function(a,b){L.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ta(d);b=e.ua;var f=e.premises;e=e.responses;c=this.Ka(c.matches(),f,e,this.g);a.s=c;this.m&&(c=[this.La(d.matches(),this.g)],a.u=c);a.w=b};
h.Ta=function(a){for(var b=new Pb,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=M(this,g.premise().textRange(),!1);g=M(this,g.response().textRange(),!1);R(b.Wa,new P(J(f+"_"+k),k));R(b.ja,new P(J(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=M(this,f.textRange(),!1),R(b.ja,new P(J(e+"_"+f),f));return{ua:b,premises:c,responses:d}};
h.Ka=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=y(b,f),t=y(c,g);f=this.T(f,k,g,t,d);e.push(f)}return this.ca(e,d)};h.La=function(a,b){for(var c=[],d=0;d<a.count();++d){var e=a.getChoice(d);e=this.T(e.premise(),d,e.response(),d,b);c.push(e)}return this.ca(c,b)};h.ea=function(a,b,c,d){return c?K(b,d):b+"_"+M(this,a.textRange(),!1)};
h.T=function(a,b,c,d,e){a=this.ea(a,b,e,!0);c=this.ea(c,d,e,!1);e=e?".":"[.]";return J(a)+e+J(c)};h.ca=function(a,b){return a.join(b?",":"[,]")};function Wb(){this.f=new Q;this.ib=[]}sa(Wb,S);function T(a){L.apply(this,arguments)}m(T,L);T.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="choice";var c=b.slide();b=b.contentState();var d=c.content();c=this.Ma(c.content(),b);a.s=c;if(this.m){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=O(this,c,M(this,e.textRange(),!1));break a}}c=""}a.u=[c]}b=this.da(d,b);a.w=b};
T.prototype.da=function(a,b){var c=new S;if(this.jb()){c=new Wb;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.ib[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=M(this,d.textRange(),!1),R(c.f,new P(J(b+"_"+d),d));return c};T.prototype.jb=function(){return!this.m};
T.prototype.Ma=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()),O(this,a,M(this,d.choice().textRange(),!1))}return""};function Xb(a){L.apply(this,arguments)}m(Xb,L);Xb.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h=this.g?"other":"matching";var c=[],d=[],e=new S;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+"[.]"+J(k+"_"+a);a==g&&d.push(k);a==f&&c.push(k);R(e.f,new P(k,a))})});a.s=c.join("[,]");this.m&&Lb(a,[d.join("[,]")]);Mb(a,Yb(b.slide().content()))};
function Yb(a){var b=new Pb,c=0;Ba(a.placeholders(),function(a,e){e+="";R(b.Wa,new P(e,e));a.values.forEach(function(a){a=a.text();var d=c++ +"_"+a;d=J(d);R(b.ja,new P(d,a))})});return b};function Zb(a){L.apply(this,arguments)}m(Zb,L);Zb.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="choice";var c=b.slide().content(),d=this.Ma(c,b.contentState());a.s=d;this.m&&(d=[this.Ja(c)],a.u=d);b=this.da(c,b.contentState());a.w=b};
Zb.prototype.da=function(a,b){var c=new S;if(!this.m){c=new Wb;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.ib[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=M(this,d.textRange(),!1),R(c.f,new P(J(b+"_"+d),d));return c};
Zb.prototype.Ma=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=M(this,f.textRange(),!1);e.selected()&&(e=a.getChoiceIndex(f),g=O(this,e,g),c.push(g))}return Ob(this,c)};Zb.prototype.Ja=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=O(this,c,M(this,d.textRange(),!1)),b.push(d))}return Ob(this,b)};function $b(a){L.apply(this,arguments)}m($b,L);
$b.prototype.a=function(a,b){L.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.m){d=(b=this.g||d)?"[,]":"[.]";for(var e=[],f=0;f<c.count();++f){var g="",k=c.getAnswer(f),t=k.comparisonOperation();if("between"==t)t=k,g=t.leftOperand(),t=t.rightOperand(),g=b?"between "+g+" and "+t:g+"[:]"+t;else switch(k=k.operand(),
t){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 ac(a){L.apply(this,arguments)}m(ac,L);ac.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="sequencing";var c=b.slide().content();b=bc(this,c,b.contentState().studentResponse(),this.g);a.s=b;this.m&&(b=[bc(this,c,c,this.g)],a.u=b);c=this.da(c);a.w=c};ac.prototype.da=function(a){for(var b=new S,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();R(b.f,new P(J(c+"_"+d),d))}return b};
function bc(a,b,c,d){var e=d?",":"[,]",f=[];c.forEach(function(c){var e=M(a,c.textRange(),!1);c=b.getChoiceIndex(c);f.push(J(d?K(c,!0):c+"_"+e))});return f.join(e)};function cc(a){T.apply(this,arguments)}m(cc,T);cc.prototype.a=function(a,b){T.prototype.a.call(this,a,b);if(this.g&&this.m){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]}};cc.prototype.jb=function(){return!1};function dc(a){L.apply(this,arguments)}m(dc,L);dc.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h="fill-in";var c=b.slide();b=b.contentState().response().text();a.s=b;this.m&&(c=this.Ja(c.content()),a.u=c)};dc.prototype.Ja=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);b.push(d.textRange().text())}return b};function ec(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function fc(a){L.apply(this,arguments)}m(fc,L);fc.prototype.a=function(a,b){L.prototype.a.call(this,a,b);a.h=this.g?"other":"choice";var c=b.slide().content(),d=[],e=new S;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=J(g+"_"+f);R(e.f,new P(g,f))}b=b.contentState().placeholders();this.m&&(c=[],this.Ia(b,e,c),a.u=[c.join("[,]")]);gc(b,e,d);a.s=d.join("[,]");a.w=e};
fc.prototype.Ia=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=J(e+"_"+d);c.push(e);R(b.f,new P(e,d))}};function gc(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;d={la:d.la},e=a.next())d.la=e.value.response(),null!=d.la&&(e=new ec(function(a){return b.f.getChoice(a)},b.f.count()),e=Ca(e,function(a){return function(b){return Ha(b.description())==a.la}}(d)),x(null!=e),c.push(e.id()))};var U={},hc=(U.FillInTheBlank=Sb,U.WordBank=fc,U.TypeIn=dc,U.Numeric=$b,U.MultipleChoice=T,U.MultipleResponse=Zb,U.MultipleChoiceText=Xb,U.Sequence=ac,U.Matching=Vb,U.TrueFalse=cc,U.Essay=Rb,U.Hotspot=Tb,U.LikertScale=Ub,U.DND=Qb,U);var ic=!C||9<=Number(jb),jc;
if(jc=C){var kc;if(Object.prototype.hasOwnProperty.call(ib,"9"))kc=ib["9"];else{for(var lc=0,mc=Ha(String(eb)).split("."),nc=Ha("9").split("."),oc=Math.max(mc.length,nc.length),pc=0;0==lc&&pc<oc;pc++){var qc=mc[pc]||"",rc=nc[pc]||"";do{var sc=/(\d*)(\D*)(.*)/.exec(qc)||["","","",""],tc=/(\d*)(\D*)(.*)/.exec(rc)||["","","",""];if(0==sc[0].length&&0==tc[0].length)break;lc=Qa(0==sc[1].length?0:parseInt(sc[1],10),0==tc[1].length?0:parseInt(tc[1],10))||Qa(0==sc[2].length,0==tc[2].length)||Qa(sc[2],tc[2]);
qc=sc[3];rc=tc[3]}while(0==lc)}kc=ib["9"]=0<=lc}jc=!kc}var uc=jc;function vc(a,b){Va(b,function(b,d){b&&"object"==typeof b&&b.Rc&&(b=b.Qc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:wc.hasOwnProperty(d)?a.setAttribute(wc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var wc={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 xc(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!ic&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Ia(g.name),'"');if(g.type){f.push(' type="',Ia(g.type),'"');var k={};Ya(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(" "):vc(f,g));2<d.length&&yc(e,f,d);return f}
function yc(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];!ma(f)||na(f)&&0<f.nodeType?d(f):Ba(zc(f)?Da(f):f,d)}}function Ac(a){var b=document.body;x(null!=b&&null!=a,"goog.dom.appendChild expects non-null arguments");b.appendChild(a)}var Bc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Cc={IMG:" ",BR:"\n"};
function Dc(a){if(uc&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ec(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");uc||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function Ec(a,b,c){if(!(a.nodeName in Bc))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 Cc)b.push(Cc[a.nodeName]);else for(a=a.firstChild;a;)Ec(a,b,c),a=a.nextSibling}function zc(a){if(a&&"number"==typeof a.length){if(na(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==u(a))return"function"==typeof a.item}return!1};function Fc(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 Gc=A("Firefox"),Hc=A("Safari")&&!((A("Chrome")||A("CriOS"))&&!A("Edge")||A("Coast")||A("Opera")||A("Edge")||A("Silk")||A("Android"))&&!(Za()||A("iPad")||A("iPod"));var Ic=null,Jc=bb||cb&&!Hc||$a||"function"==typeof n.btoa;function Kc(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 Lc(a){a=String(a);if(Kc(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Mc(a){this.ya=a}Mc.prototype.serialize=function(a){var b=[];Nc(this,a,b);return b.join("")};
function Nc(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],Nc(a,a.ya?a.ya.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),Oc(d,c),c.push(":"),Nc(a,a.ya?a.ya.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Oc(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 Pc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Qc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function Oc(a,b){b.push('"',a.replace(Qc,function(a){var b=Pc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Pc[a]=b);return b}),'"')};function Rc(a){var b={width:"1px",height:"1px",border:"0"};if(q(b))(b=Sc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Sc(d,c);f&&(d.style[f]=e)}}var Tc={};function Sc(a,b){var c=Tc[b];if(!c){var d=Ra(b);c=d;void 0===a.style[d]&&(d=(cb?"Webkit":bb?"Moz":C?"ms":$a?"O":null)+Sa(d),void 0!==a.style[d]&&(c=d));Tc[b]=c}return c};function Uc(a,b){this.h=a;this.Eb=b||[]}r("iSpring.ios.mobile.MobileAppCommand",Uc,void 0);Uc.prototype.id=function(){return this[v]||(this[v]=++oa)};function Vc(a){try{var b=document.createElement("iframe");Rc(b);b.src=a;Ac(b);Fc(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function V(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}V.prototype.BYTES_PER_ELEMENT=4;V.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]};V.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(V.BYTES_PER_ELEMENT=4,V.prototype.BYTES_PER_ELEMENT=V.prototype.BYTES_PER_ELEMENT,V.prototype.set=V.prototype.set,V.prototype.toString=V.prototype.toString,r("Float32Array",V,void 0));function W(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}W.prototype.BYTES_PER_ELEMENT=8;W.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]};W.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{W.BYTES_PER_ELEMENT=8}catch(a){}W.prototype.BYTES_PER_ELEMENT=W.prototype.BYTES_PER_ELEMENT;W.prototype.set=W.prototype.set;W.prototype.toString=W.prototype.toString;r("Float64Array",W,void 0)};function Wc(){var a=window.location.search.substr(1);if(a){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}}}else b={};return b};function Xc(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=Yc(a,["<p>","<p "],c);if(f&&f.xa>c){c=a.substr(c,f.xa-c);var g=xc("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Dc(g))+b;c=f.xa}if(g=Yc(a,["</p>","</p >"],c)){f=g.xa+g.ec.length-c;var k=a.substr(c,f);g=xc("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||Dc(g))+b;c+=f}else return g=xc("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Dc(g))}while(c<e);return d}
function Yc(a,b,c){"array"==u(b)||(b=[b]);var d=void 0,e=void 0;Ba(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 Zc(e,d):null}function Zc(a,b){this.ec=a;this.xa=b};function $c(a,b,c,d){this.Va=a;this.Pb=b;this.Qb=c;this.Ob=d;this.Ua=void 0}function ad(a){a=Xc(a.text());a=Ia(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
$c.prototype.create=function(){var a=0,b=[],c=this.Pb,d=this.Ob,e=new Kb(c.id()+"_"+a);a+=1;e.h="choice";if(null!=c.message()){var f=c.message().text();f=Xc(f);e.J=f;f=c.message().replies();null!=c.speech()&&0<Xc(c.speech())&&(a=new Kb(c.id()+"_"+a),a.h="other",c=Xc(c.speech()),a.J=c,a.ha="neutral",bd(this,a),b.push(a))}else f=Xc(c.speech()),e.J=f,f=c.replies();0==f.count()&&(e.h="other");c=null;for(var g=a=0,k=-1,t=[],E=0;E<f.count();E++){var N=f.getReply(E);null!=d&&N==d&&(k=E);a=Math.max(a,N.score());
t.push(cd(this,E,ad(N)))}null!=d&&(c=cd(this,k,ad(d)),g=Math.max(g,d.score()));d=f;f=new S;for(k=0;k<d.count();++k)E=ad(d.getReply(k)),R(f.f,new P(J(k+"_"+E),E));e.w=f;e.s=c;e.u=t;this.Va.scenario().settings().evaluationSettings().enabled()&&(e.$(a),e.Ca=g);e.ha="neutral";bd(this,e);b.push(e);return b};function cd(a,b,c){c=J(b+"_"+c);b=K(b);return a.Qb?b:c}function bd(a,b){null!=a.Ua&&(b.Za=new Date(a.Ua),b.Aa(ra()-a.Ua))};function dd(){function a(a){try{for(var b=0;255>b;++b){if(a.API_1484_11)return a.API_1484_11;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 ed(a){return"PT"+Math.floor(a/3600)+"H"+Math.floor(a%3600/60)+"M"+Math.floor(a%60)+"S"}function fd(a){return 10>a?"0"+a:a}
function gd(){if(hd)if(hd){var a=new Uc("closeWindow");if(hd){var b=a.h,c=a.Eb;a=a.id();var d=(new Mc(null)).serialize(c);if(Jc)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}x(ma(c),"encodeByteArray takes an array as a parameter");if(!Ic)for(Ic={},d=0;65>d;d++)Ic[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=Ic;e=[];for(f=0;f<c.length;f+=3){var k=c[f],t=(g=f+1<c.length)?c[f+1]:0,E=f+2<c.length,
N=E?c[f+2]:0,od=k>>2;k=(k&3)<<4|t>>4;t=(t&15)<<2|N>>6;N&=63;E||(N=64,g||(t=64));e.push(d[od],d[k],d[t],d[N])}c=e.join("")}Vc("isplayer://"+b+"/"+a+"/"+c)}}else try{id||(window.open("","_self",""),window.close())}catch(Kd){}else try{id||(window.za=window,b=jd(),b==window.top?(window.open("","_self",""),window.close()):kd(b))}catch(Kd){kd(window.top)}}function kd(a){if(a&&a.za){var b=document.createElement("a");b.href="data/goodbye.html";a.za.location.replace(b.href)}}
function jd(){var a=window;if(a.za)return a;for(var b=0;a!=window.top&&100>b++;){if(a.za)return a;a=a.parent}console.log("Unable to locate content root");return null}function ld(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};var md={Gc:"resumePlayback",nc:"gotoSlide",jc:"delayStartup"};r("ispring.presenter.player.startup.PresentationStartup.Action",md,void 0);r("RESUME_PLAYBACK","resumePlayback",md);r("GOTO_SLIDE","gotoSlide",md);r("DELAY_STARTUP","delayStartup",md);var nd={Dc:"prompt",hc:"always",yc:"never"};r("ispring.presenter.presentation.settings.PresentationResumeMode",nd,void 0);r("PROMPT_TO_RESUME","prompt",nd);r("ALWAYS_RESUME","always",nd);r("NEVER_RESUME","never",nd);(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 pd,qd=Wc().user_agent;pd=qd?qd:z||"";Wc();Wc();var rd=-1!=pd.toLowerCase().indexOf("chrome"),id=-1==pd.toLowerCase().indexOf("windows phone")&&-1!=pd.toLowerCase().indexOf("android")&&!rd&&!Gc&&!$a,hd=-1!=pd.indexOf("ismobile"),sd=document.createElement("audio"),td=sd.play&&sd.play();td&&td.then(function(){sd.pause()},function(){});Wc();Wc();
function ud(){return 1==window._ispringDebug||"1"==Wc().isdebug}if(A("Windows")){var vd=z,X;if(A("Windows")){X=/Windows (?:NT|Phone) ([0-9.]+)/;var wd=X.exec(vd)}else Za()||A("iPad")||A("iPod")?(X=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,(wd=X.exec(vd))&&wd[1].replace(/_/g,".")):A("Macintosh")?(X=/Mac OS X ([0-9_.]+)/,(wd=X.exec(vd))&&wd[1].replace(/_/g,".")):A("Android")?(X=/Android\s+([^\);]+)(\)|;)/,wd=X.exec(vd)):A("CrOS")&&(X=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,wd=X.exec(vd))}
setTimeout(function(){xa=ud},0);function Y(a,b){try{this.Ba=a;this.ma={};this.Ea=null;this.L=new Fb(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.O=new Gb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.X=new Hb(this.O.timeLimit(),this.O.Ha);this.B="never"!=b.resumeMode;var c=new qb("ispring://presentations/"+encodeURIComponent(b.presentationId),b.tincan.i18n,b.scorm2004?b.scorm2004.edition:"",this.B);this.vb=new rb;this.i=Ib(a,c,this.vb)}catch(d){ud()&&
alert(d)}}h=Y.prototype;h.C=!1;h.ga=null;h.I=!1;h.o=null;h.M=null;h.xb=!1;h.v=null;h.F=null;var xd=h.ia=null;r("iSpring.LMS.create",function(a,b,c){x(!xd);return xd=new Y(b,c)},void 0);r("iSpring.LMS.instance",function(){return x(xd)},void 0);Y.prototype.S=function(a){this.ga=a;null!=this.i?this.i.S(w(this.Lb,this),w(this.nb,this)):this.nb()};Y.prototype.initialize=Y.prototype.S;
Y.prototype.Lb=function(){this.U=this.i.wa();var a=null;var b=this.i.j.R("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{var c=Lc(b);break a}catch(d){}c=null}else c=null;switch(this.U){case "browse":a=null;break;case "review":c&&(a=yd(this,c));break;case "normal":this.B&&c&&(a=yd(this,c))}window.launchMode=this.U;p(a)&&(this.C=!0,this.ga&&this.ga(a))};
function yd(a,b){var c=new xb(B(b,Bb,[]));c.K=B(b,yb,0);c.na=B(b,zb,-1);c.H=B(b,Ab,[]);c.oa=B(b,Cb,null);var d={};b=B(b,Db,{});for(var e in b){var f=b[e];d[e]=new I(f[wb],f[sb],f[tb],f[ub],f[vb])}c.G=d;a.M=c;c=a.M.duration();if(a.O.Ha&&c>=a.O.timeLimit())alert("You have already exceeded available time for viewing this content."),ld(),gd();else return a.M.oa}Y.prototype.nb=function(){this.ga&&this.ga()};
Y.prototype.start=function(a){if(this.C){for(var b=a.presentation().slides(),c=[],d=0;d<b.visibleSlidesCount();++d){var e=b.getVisibleSlide(d).index();c.push(e)}this.c=new xb(c);this.o=a;this.I=!0;this.vb.Tb.va(a.presentation().title());a.startupEvent().addHandler(this.ob,this);a.startupCompletedEvent().addHandler(this.pb,this);a.closeWindowEvent().addHandler(this.kb,this)}};Y.prototype.start=Y.prototype.start;
Y.prototype.ob=function(a){this.o.startupEvent().removeHandler(this.ob,this);var b=(this.B||"review"==this.U)&&this.M?this.M.na:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.o.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.pb=function(a,b){this.o.startupCompletedEvent().removeHandler(this.pb,this);this.xb=!0;"resumePlayback"==a&&this.M&&(this.c=this.M);a=this.c.duration();this.X.started()||(this.X.zb.addHandler(this.Ra,this),this.X.start(a));a=this.o.view().playbackController();a.slideChangeEvent().addHandler(this.Oa,this);a=a.currentSlideIndex();a==b&&this.Oa(a);this.o.stateChangedEvent().addHandler(this.qb,this)};Y.prototype.Bb=function(){this.I&&zd(this,this.B)};Y.prototype.closeLms=Y.prototype.Bb;
function zd(a,b){a.I&&(a.I=!1,a.xb&&(a.X.stop(),Ad(a),a.o.view().playbackController().slideChangeEvent().removeHandler(a.Oa,a)),a.o.closeWindowEvent().removeHandler(a.kb,a),a.o.stateChangedEvent().removeHandler(a.qb,a),b?a.i.suspend():a.i.terminate())}h=Y.prototype;
h.Oa=function(a){if(this.v){var b=this.v;b.currentSessionChangedEvent().removeHandler(this.lb,this);(b=b.currentSession())&&Bd(this,b);this.v=null}this.F&&(this.F.currentSessionChangedEvent().removeHandler(this.mb,this),null!=this.ia&&Cd(this),this.F=null);b=this.o.view().playbackController();if(a in this.L.D){var c=this.v=b.quizPlayer(),d=(c[v]||(c[v]=++oa))+"";d in this.ma||(this.ma[d]=!0,(d=Dd(this.i.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.lb,
this);(c=c.currentSession())&&Ed(this,c)}a in this.L.W&&(b=this.F=b.scenarioPlayer(),c=(b[v]||(b[v]=++oa))+"",c in this.ma||(this.ma[c]=!0,c=Dd(this.i.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Fd(this,c),b.currentSessionChangedEvent().addHandler(this.mb,this));b=this.o.presentation().slides().getSlide(a);"normal"==this.U&&b.title()&&b.title();b=this.c;0<=b.ka.indexOf(a)&&(b=b.H,0<=y(b,a)||b.push(a));this.c.na=a;
Gd(this)};function Ad(a){var b=a.X;b=b.started()?ra()-b.qa+b.V:b.sa;var c=a.X;c=c.started()?ra()-c.qa:c.Fa;a.c.Aa(b);a.i.j.b("cmi.session_time",ed(c/1E3));b=a.o.persistState();a.c.oa=b;b=a.i.j;a=(new Mc(void 0)).serialize(a.c.ab());a=LZString.compressToBase64(a);a.length<=("2"==b.l.Ga?4E3:64E3)&&b.b("cmi.suspend_data",a)}function Gd(a){var b=a.L;if(0<b.N||0<b.ba){var c=Hd(a),d=b.totalScore()*c;a.i.$(c,0,b.totalScore(),d)}a.i.eb(a.c.H.length/a.c.ka.length);a.i.fb(Id(a),Jd(a));Ad(a);a.i.Z()}
function Id(a){var b=a.L,c;if(!(c=!(0<b.N||0<b.ba))&&(c=a.B)){a:if(0<a.L.N&&0<a.c.H.length)var d=!0;else{c=a.c.G;for(d in c)if(-1!=y(a.c.H,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:Hd(a)*b.totalScore()>=b.passingScore()}function Jd(a){var b=a.L,c=a.c.H,d=a.c.ka,e=a.c.G;a=a.o.presentation().slides();for(var f=0;f<a.count();++f)if(d.includes(f)&&!c.includes(f)||(f in b.D||f in b.W)&&!e[f+""])return!1;return!0}
function Hd(a){var b=a.L;if(!(0<b.N||0<b.ba))return 0;var c=0,d=a.c.G,e;for(e in d){var f=d[e],g=parseInt(e,10);c+=(null!=f.bb?f.bb:1)*(null!=(g in b.D?b.D[g]:null)?g in b.D?b.D[g]:0:g in b.W?b.W[g]:0)}d=0;0<b.N&&(d=a.c.H.length/a.c.ka.length*b.slidesWeight());a=Eb(Wa(b.D))+Eb(Wa(b.W))+b.slidesWeight();return(c+d)/a}h.mb=function(){null!=this.ia&&Cd(this);var a=this.F.currentSession();Fd(this,a)};
function Fd(a,b){"normal"==a.U&&(a.ia=b,b.showTerminalSceneEvent().addHandler(a.Qa,a),b.onReplySelectedEvent().addHandler(a.Pa,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.Qa())}function Cd(a){var b=a.ia;a.ia=null;b.showTerminalSceneEvent().removeHandler(a.Qa,a);b.onReplySelectedEvent().removeHandler(a.Pa,a)}
h.Qa=function(){var a=this.F.currentSession();x(a);var b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.Pa();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 I("scenario",a.scenarioPassed(),b,c,d)}else b=new I("scenario",!0);c=this.o.view().playbackController().currentSlideIndex();this.c.G[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();Gd(this)};h.Pa=function(a){var b=this.F.currentSession();x(b);var c=b.currentSceneState().scene();null!=c&&(a=(new $c(b,c,"1.2"==this.Ba,a)).create(),Ba(a,function(a){if("tincan"==this.Ba||"choice"==a.type()){var c="/scenarios/"+b.scenario().id();a.id();a.type();this.i.ta(c,a)}},this))};
function Ed(a,b){if("normal"==a.U){b.sessionModeChangedEvent().addHandler(a.sb,a);var c=b.slidePoolState();c=l(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.rb,a);a.v.id();b.quiz().title()}}function Bd(a,b){b.sessionModeChangedEvent().removeHandler(a.sb,a);b=b.slidePoolState();b=l(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.rb,a)}
h.lb=function(){var a=this.v.currentSession();this.Ea&&Bd(this,this.Ea);(this.Ea=a)&&Ed(this,a)};
h.sb=function(a){if("testing"==a){a=this.v.currentSession();x(a);var b;if(b=a.evaluation()){var c=b.maxScore(),d=b.awardedScore(),e=b.awardedPercent()/100;b=new I("quiz",b.quizPassed(),c,d,e)}else b=new I("quiz",!0);c=this.o.view().playbackController().currentSlideIndex();this.c.G[c+""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.v.currentSession(),x(b),(new Nb(this.i,b)).Va.settings();this.v.id();a.quiz().title();Gd(this)}};
h.rb=function(a){var b=this.v.currentSession();x(b);if(a.initiated()){b=this.o.view().playbackController().currentSlideIndex()+1;var c=a.slide().type(),d=this.Ba;if(a=(new hc[c]({dc:"1.2"==d||"aicc"==d,gc:"tincan"==d,slideIndex:b})).create(a))b="/quizzes/"+this.v.id(),a.id(),this.i.ta(b,a)}};h.kb=function(a){x(this.I);a.preventAction();this.Bb()};h.Ra=function(){x(this.I);this.O.Rb&&alert(this.O.message());this.O.Ha&&zd(this,!1)};
h.qb=function(a){x(this.I);a.actionPrevented()||(a.preventAction(),Ad(this))};function Ld(a,b,c){this.aa=a;this.Ga=b;this.Sa=!1;this.Da=0;this.B=c}h=Ld.prototype;h.S=function(){try{return"true"==this.aa.Initialize("")}catch(a){}return!1};h.terminate=function(a){this.b("cmi.exit",a?this.Sa?"":"suspend":"normal");this.b("adl.nav.request","exitAll");this.Z();try{return"true"==this.aa.Terminate("")}catch(b){}return!1};h.Z=function(){0==this.Da&&this.b("cmi.exit",this.B?this.Sa?"":"suspend":"normal");try{var a="true"==this.aa.Commit("");this.Da+=1;return a}catch(b){}return!1};
h.R=function(a){try{return this.aa.GetValue(a)}catch(b){}return""};h.b=function(a,b){if("number"==typeof b){var c;(c=p(c)?c:!0)?b=parseFloat(b.toFixed(7))+"":(c=Math.pow(10,7),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.aa.SetValue(a,b)}catch(d){}return!1};h.cb=function(a){this.Sa=a};var Z={id:"id",type:"type",score:"weighting",Xb:"correct_responses.%INDEX%.pattern",gb:"learner_response",description:"description",result:"result",duration:"latency",hb:"timestamp"};r("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.Ib[a];if(null==d)return"";delete null.Ib[a];Fc(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function Dd(a){return new Jb(a.R("cmi.learner_id"),a.R("cmi.learner_name"))};function Md(a,b){var c=dd();this.l=c?new Ld(c,a,b):null;this.C=!1}h=Md.prototype;h.S=function(){return this.C?!0:this.C=null!=this.l?this.l.S():!1};h.terminate=function(a){return null!=this.l?this.l.terminate(a):!1};h.Z=function(){return null!=this.l?this.l.Z():!1};h.R=function(a){return null!=this.l?this.l.R(a):""};h.b=function(a,b){return null!=this.l?this.l.b(a,b):!1};
h.$=function(a,b,c,d){null!=d||(d=0);this.b("cmi.score.raw",a);this.b("cmi.score.min",b);this.b("cmi.score.max",c);this.b("cmi.score.scaled",d)};h.eb=function(a){this.b("cmi.progress_measure",a)};h.wa=function(){return null!=this.l?this.l.R("cmi.mode"):"normal"};h.fb=function(a,b){this.b("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.b("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")};h.cb=function(a){this.l.cb(a)};
h.ta=function(a){var b=parseInt(this.R("cmi.interactions._count"),10);if(!(0>b)){b="cmi.interactions."+b+".";this.b(b+Z.id,a.id());this.b(b+Z.type,a.type());this.b(b+Z.score,a.score());for(var c=a.u||[],d=0;d<c.length;++d){var e=Z.Xb.replace("%INDEX%",d);this.b(b+e,c[d])}c=a.gb();null!=c&&this.b(b+Z.gb,c);this.b(b+Z.result,a.result());this.b(b+Z.description,a.description());c=a.duration();null===c||this.b(b+Z.duration,ed(c/1E3));a=a.hb();null!==a&&("number"==typeof a&&(a=new Date(a)),this.b(b+Z.hb,
a.getUTCFullYear()+"-"+fd(a.getUTCMonth()+1)+"-"+fd(a.getUTCDate())+"T"+fd(a.getUTCHours())+":"+fd(a.getUTCMinutes())+":"+fd(a.getUTCSeconds())+".0Z"))}};function Nd(){}h=Nd.prototype;h.j=null;h.Cb=function(){throw Error("unimplemented abstract method");};h.eb=function(a){this.j.eb(a)};h.S=function(a,b){if(this.j=this.Cb()){var c=this.j;c.C?a():null!=c.l?(c.C=c.l.S(),c.C?a():b()):(c.C=!1,b())}else b()};h.Z=function(){this.j.Z()};h.suspend=function(){this.j.terminate(!0);ld();gd()};h.terminate=function(){this.j.terminate(!1);ld();gd()};h.wa=function(){return"normal"};h.fb=function(a,b){this.j.cb(a);this.j.fb(a,b)};
h.$=function(a,b,c,d){this.j.$(d,b,c,a)};h.ta=function(a,b){this.j.ta(b)};function Od(a){this.Ga=a.Db||"2";this.B=a.B}sa(Od,Nd);r("iSpring.LMSAPI.Scorm2004Api",Od,void 0);Od.prototype.Cb=function(){return new Md(this.Ga,this.B)};Od.prototype.wa=function(){return this.j.wa()};})();
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}
