(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function m(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}m("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});m("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push([d,b[d]]);return c}});
function da(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}m("Array.prototype.values",function(a){return a?a:function(){return da(this,function(b,c){return c})}});
m("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});var p=this||self;
function q(a,b,c){a=a.split(".");c=c||p;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b}function ea(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length}function fa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function ha(a){return Object.prototype.hasOwnProperty.call(a,ia)&&a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+(1E9*Math.random()>>>0),ja=0;function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function ma(a,b,c){ma=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return ma.apply(null,arguments)}function t(a,b){function c(){}c.prototype=b.prototype;a.Qc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Lc=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function na(a){if(p.Yb)return p.Yb(a);try{const b=new XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(b){return null}}function oa(a){return a&&a.includes("file:///")?a.substr(8):a}p.Cc=function(a,b){a=oa(a);b?eval(b):(b=na(a),eval(b));return!0};function u(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}t(u,Error);u.prototype.name="CustomError";function pa(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");u.call(this,c+a[d])}t(pa,u);pa.prototype.name="AssertionError";function qa(a){throw a;}function ra(a,b){qa(new pa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function v(a){this.za=a;this.F=this.za.length/4;this.ba=this.F+6;this.I=[[],[],[],[]];this.ma=[[],[],[],[]];this.C=Array(w*(this.ba+1));for(a=0;a<this.F;a++)this.C[a]=[this.za[4*a],this.za[4*a+1],this.za[4*a+2],this.za[4*a+3]];var b=Array(4);for(a=this.F;a<w*(this.ba+1);a++){b[0]=this.C[a-1][0];b[1]=this.C[a-1][1];b[2]=this.C[a-1][2];b[3]=this.C[a-1][3];if(0==a%this.F){var c=b,d=c[0];c[0]=c[1];c[1]=c[2];c[2]=c[3];c[3]=d;sa(b);b[0]^=x[a/this.F][0];b[1]^=x[a/this.F][1];b[2]^=x[a/this.F][2];b[3]^=x[a/
this.F][3]}else 6<this.F&&4==a%this.F&&sa(b);this.C[a]=Array(4);this.C[a][0]=this.C[a-this.F][0]^b[0];this.C[a][1]=this.C[a-this.F][1]^b[1];this.C[a][2]=this.C[a-this.F][2]^b[2];this.C[a][3]=this.C[a-this.F][3]^b[3]}}v.prototype.na=16;var w=v.prototype.na/4;
v.prototype.encrypt=function(a){ta(this,a);y(this,0);for(a=1;a<this.ba;++a){ua(this,z);va(this);for(var b=this.I,c=this.ma[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=wa[c[0]]^xa[c[1]]^c[2]^c[3],b[1][d]=c[0]^wa[c[1]]^xa[c[2]]^c[3],b[2][d]=c[0]^c[1]^wa[c[2]]^xa[c[3]],b[3][d]=xa[c[0]]^c[1]^c[2]^wa[c[3]];y(this,a)}ua(this,z);va(this);y(this,this.ba);return ya(this)};
v.prototype.decrypt=function(a){ta(this,a);y(this,this.ba);for(a=1;a<this.ba;++a){za(this);ua(this,Aa);y(this,this.ba-a);for(var b=this.I,c=this.ma[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=Ba[c[0]]^Ca[c[1]]^Da[c[2]]^Ea[c[3]],b[1][d]=Ea[c[0]]^Ba[c[1]]^Ca[c[2]]^Da[c[3]],b[2][d]=Da[c[0]]^Ea[c[1]]^Ba[c[2]]^Ca[c[3]],b[3][d]=Ca[c[0]]^Da[c[1]]^Ea[c[2]]^Ba[c[3]]}za(this);ua(this,Aa);y(this,0);return ya(this)};
function ta(a,b){for(var c,d=0;d<w;d++)for(var e=0;4>e;e++)c=4*e+d,c=b[c],a.I[d][e]=c}function ya(a){for(var b=[],c=0;c<w;c++)for(var d=0;4>d;d++)b[4*d+c]=a.I[c][d];return b}function y(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.I[c][d]^=a.C[4*b+d][c]}function ua(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.I[c][d]=b[a.I[c][d]]}function va(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ma[b][c]=a.I[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.I[b][c]=a.ma[b][(c+b)%w]}
function za(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ma[b][(c+b)%w]=a.I[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.I[b][c]=a.ma[b][c]}function sa(a){a[0]=z[a[0]];a[1]=z[a[1]];a[2]=z[a[2]];a[3]=z[a[3]]}
var z=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,
61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Aa=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,
255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,
26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],x=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],wa=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,
32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,
37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],xa=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,
126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,
239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Ea=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,
206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,
210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Ca=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,
80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,
113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],Da=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,
169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,
174,163,128,141,154,151],Ba=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,
119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];const A=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Fa=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){const c=a.length,d="string"===typeof a?a.split(""):a;for(let e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Ga=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
b,void 0)}:function(a,b){const c=a.length,d=[];let e=0;const f="string"===typeof a?a.split(""):a;for(let g=0;g<c;g++)if(g in f){const h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d};function Ha(a,b){a:{const c=a.length,d="string"===typeof a?a.split(""):a;for(let 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:"string"===typeof a?a.charAt(b):a[b]}function Ia(a,b){b=A(a,b);let c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}
function Ja(a){const b=a.length;if(0<b){const c=Array(b);for(let d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ka(a,b){for(let c=1;c<arguments.length;c++){const d=arguments[c];if(ea(d)){const e=a.length||0,f=d.length||0;a.length=e+f;for(let g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function La(a,b,c,d){Array.prototype.splice.apply(a,Ma(arguments,1))}function Ma(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function B(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b}function Na(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};function Oa(a){this.ja=a}Oa.prototype.encrypt=function(a,b){var c=[],d=b;for(b=0;b<a.length;b+=this.ja.na)d=Na(Array.prototype.slice.call(a,b,b+this.ja.na),d),d=this.ja.encrypt(d),Ka(c,d);return c};Oa.prototype.decrypt=function(a,b){for(var c=[],d=0,e=b;d<a.length;){b=Array.prototype.slice.call(a,d,d+this.ja.na);var f=this.ja.decrypt(b);e=Na(e,f);Ka(c,e);e=b;d+=this.ja.na}return c};var Pa=B("343ebcf014a7e244ba703229647cf607"),Qa=B("429ab6bc5b161fb66503db4b4b7e310b"),Ra=B("410f951a7436c2bcae986399fe12d772"),Sa=B("b3ee0a61544dc2e8b07cfc41277893ac");function Ua(a,b,c){const [d,e]=a.split(":");var f=B(e);a=parseInt(d,10);b=new v(b);c=(new Oa(b)).decrypt(f,c);c=a?c.slice(0,-a):c;for(b=a=0;a<c.length;)f=c[a++],128>f||(191<f&&224>f?a++:239<f&&365>f?(a++,a++,a++,b++):(a++,a++)),b++};class Va{constructor(a){this.hc=a}};var Wa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Xa=/&/g,Ya=/</g,Za=/>/g,$a=/"/g,ab=/'/g,bb=/\x00/g,cb=/[\x00&<>"']/;function db(a,b){for(const c in a)b.call(void 0,a[c],c,a)}function eb(a,b){const c={};for(const d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function fb(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b}function gb(a,b){for(const c in a)if(b.call(void 0,a[c],c,a))return c}function C(a,b,c){return null!==a&&b in a?a[b]:c};function hb(){var a=p.navigator;return a&&(a=a.userAgent)?a:""}function D(a){return-1!=hb().indexOf(a)};function ib(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}function jb(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};class kb{constructor(a){this.lb=a}sc(a,b,c){c=this.lb.hasOwnProperty(a)?this.lb[a]:c;if(void 0!==c){if(void 0!==b){a=this.ac;for(let d in b)if(b.hasOwnProperty(d)){const e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}ra("unknown message id: "+a);return a}messages(){return this.lb}ac(a){return"%"+a.toUpperCase()+"%"}}kb.prototype.getMessage=kb.prototype.sc;function lb(a,b,c,d){this.pb=b;this.bc=new kb(c);this.M=d}lb.prototype.i18n=function(){return this.bc};var mb=D("Opera"),nb=D("Trident")||D("MSIE"),ob=D("Gecko")&&!(-1!=hb().toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),pb=-1!=hb().toLowerCase().indexOf("webkit")&&!D("Edge");var qb="closure_listenable_"+(1E6*Math.random()|0);function rb(a){a.xc=!0;a.listener=null;a.proxy=null;a.src=null;a.Oc=null};var sb={},tb=0;let ub=0;function vb(a,b){if(Array.isArray(b)){var c=!1;for(var d of b)c=vb(a,d)||c;return c}Ia(a.kb,b);if("number"===typeof b||!b||b.xc)b=!1;else if((a=b.src)&&a[qb])if(a=a.Mc,c=b.type,c in a.wb){if(d=Ia(a.wb[c],b))rb(b),0==a.wb[c].length&&(delete a.wb[c],a.Rc--);b=d}else b=!1;else c=b.type,d=b.proxy,a.removeEventListener?a.removeEventListener(c,d,b.capture):a.detachEvent?a.detachEvent(c in sb?sb[c]:sb[c]="on"+c,d):a.addListener&&a.removeListener&&a.removeListener(d),tb--,rb(b),b=!0;return b}
function E(a,b,c,d){a.N=a.N||{};b.addHandler(c,d,void 0);const e=++ub;a.N[e]={vb:b,ka:c,context:d,priority:void 0}}function wb(a,b){if(a.N&&a.N[b]){var {vb:c,ka:d,context:e,priority:f}=a.N[b];c.removeHandler(d,e,f);delete a.N[b]}else ra("unknown handler key")}function F(a,b,c,d){const e=gb(a.N,f=>{a:{var g={vb:b,ka:c,context:d,priority:void 0};for(const h in f)if(!(h in g)||f[h]!==g[h]){f=!1;break a}for(const h in g)if(!(h in f)){f=!1;break a}f=!0}return f});e&&wb(a,e)}
function xb(a){return void 0!==a.displayObject?a.displayObject():a}function yb(a,b){if(b){if(a.N){var c=eb(a.N,d=>d.vb.Mb==b);for(const d of Object.keys(c))wb(a,d)}if(a.kb){const d=xb(b);c=Ga(a.kb,e=>e.src==d);for(const e of c)vb(a,e)}}}class zb{constructor(){this.N=this.kb=null}};function G(a,b){return 0==b?a.ia:a.aa[b]}function Ab(a,b){return 0==b?a.ia||[]:b in a.aa?G(a,b):[]}function Bb(a){if(!a.aa)return a.ia?a.ia.slice():[];const b=[],c=a.Ha;for(let d=0;d<c.length;++d){const e=G(a,c[d]);e&&Ka(b,e)}return b}
class Cb{constructor(){this.ia=this.aa=this.Ha=null}push(a,b){if(0==b)this.ia=this.ia||[];else if(this.Ha=this.Ha||[0],this.aa=this.aa||{},!(b in this.aa)){this.aa[b]=[];var c=this.Ha;var d=0;let f=c.length,g;for(;d<f;){const h=d+(f-d>>>1);var e=void 0;e=c[h];e=b>e?1:b<e?-1:0;0<e?d=h+1:(f=h,g=!e)}d=g?d:-d-1;0>d&&La(c,-(d+1),0,b)}G(this,b).push(a)}remove(a,b){(b=G(this,b))&&Ia(b,a)}};class H extends zb{constructor(){super();this.Mb=this.Nb=this.K=null}rc(){return this.Mb}addHandler(a,b,c){this.K=this.K||new Cb;this.K.push({ka:a,context:b},c||0)}removeHandler(a,b,c){c=c||0;if(this.K){var d=Ab(this.K,c),e=d.length;for(let f=0;f<e;++f){const g=d[f];if(g.ka==a&&g.context==b){(a=G(this.K,c))&&Array.prototype.splice.call(a,f,1);break}}}else ra("EventDispatcher has no handlers!")}tc(a,b,c){if(!this.K)return!1;c=Ab(this.K,c||0);const d=c.length;for(let e=0;e<d;++e){const f=c[e];if(f.ka==
a&&f.context==b)return!0}return!1}Qa(...a){if(this.K){const b=Bb(this.K),c=b.length;for(let d=0;d<c;++d){const e=b[d];if(-1!=A(Bb(this.K),e))try{e.ka.apply(e.context,arguments)}catch(f){Db(f,!0)}}}this.Nb&&this.Nb.forEach(b=>{b.Qa(...a)})}}H.prototype.dispatch=H.prototype.Qa;H.prototype.hasHandler=H.prototype.tc;H.prototype.removeHandler=H.prototype.removeHandler;H.prototype.addHandler=H.prototype.addHandler;H.prototype.eventOwner=H.prototype.rc;class Eb{constructor(){this.pc=new H}};function Fb(a){this.ta=a}k=Fb.prototype;k.S="";k.B=null;k.D=null;k.xa="unanticipated";k.Ob=0;k.Ya=null;k.T=null;k.ub=null;k.J=null;k.id=function(){return this.ta};k.type=function(){return this.l};k.description=function(){return this.S};k.zb=function(){return this.B};function Gb(a,b){a.D=b}k.result=function(){return this.xa};k.score=function(){return this.Ob};k.la=function(a){this.Ob=a};k.awardedScore=function(){return this.Ya};k.duration=function(){return this.T};k.Ua=function(a){this.T=a};k.Ab=function(){return this.ub};
k.details=function(){return this.J};function Hb(a,b){a.J=b};function Ib(a,b){this.ta=a;this.ec=b;this.$b=""}Ib.prototype.id=function(){return this.ta};Ib.prototype.name=function(){return this.ec};Ib.prototype.email=function(){return this.$b};function I(a){a=Wa(a);return a=a.replace(/[^\w-]/g,"_")}function J(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};class Jb{constructor(a,b){this.v=a;this.rb=b}};function Kb(a,b){db(b,function(c,d){c&&"object"==typeof c&&c.Pc&&(c=c.Nc());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Lb.hasOwnProperty(d)?a.setAttribute(Lb[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}
var Lb={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 Mb(a,b,c){var d=arguments,e=document,f=d[1],g=Nb(e,String(d[0]));f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):Kb(g,f));2<d.length&&Ob(e,g,d);return g}
function Ob(a,b,c){function d(h){h&&b.appendChild("string"===typeof h?a.createTextNode(h):h)}for(var e=2;e<c.length;e++){var f=c[e];if(!ea(f)||fa(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(fa(f)){var g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g=!1}Fa(g?Ja(f):f,d)}}}function Nb(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}
var Pb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Qb={IMG:" ",BR:"\n"};function Rb(a){var b=[];Sb(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");" "!=a&&(a=a.replace(/^\s*/,""));return a}function Sb(a,b,c){if(!(a.nodeName in Pb))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 Qb)b.push(Qb[a.nodeName]);else for(a=a.firstChild;a;)Sb(a,b,c),a=a.nextSibling};function Tb(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=ma(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||p.setTimeout(a,b||0)};var Ub=D("Firefox")||D("FxiOS");var Vb={},Wb=null,Xb=ob||pb||"function"==typeof p.btoa;function Zb(a){this.Sa=a}function $b(a,b){const c=[];ac(a,b,c);return c.join("")}
function ac(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");var e="";for(var f=0;f<b;f++)c.push(e),e=d[f],ac(a,a.Sa?a.Sa.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),bc(d,c),c.push(":"),ac(a,a.Sa?a.Sa.call(b,d,e):e,c),f=","));c.push("}");
return}}switch(typeof b){case "string":bc(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 cc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},dc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function bc(a,b){b.push('"',a.replace(dc,function(c){let d=cc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),cc[c]=d);return d}),'"')};function ec(a){var b={width:"1px",height:"1px",border:"0"};if("string"===typeof b)(b=fc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=fc(d,c);f&&(d.style[f]=e)}}var gc={};function fc(a,b){var c=gc[b];if(!c){var d=ib(b);c=d;void 0===a.style[d]&&(d=(pb?"Webkit":ob?"Moz":nb?"ms":null)+jb(d),void 0!==a.style[d]&&(c=d));gc[b]=c}return c};function K(){var a=window.location.search.substr(1);if(a){var b={};a=a.split("&");for(let e=0;e<a.length;++e){const f=a[e].split("=");if(2==f.length){try{var c=decodeURIComponent(f[0].replace(/\+/g," "))}catch(g){c=f[0]}try{var d=decodeURIComponent(f[1].replace(/\+/g," "))}catch(g){d=f[1]}c=c.toLowerCase();b[c]=d}}}else b={};return b};(function(){function a(b){try{return b.ISPlayer&&(window.ISPlayer=b.ISPlayer),b.ISPVideoPlayer&&(window.ISPVideoPlayer=b.ISPVideoPlayer),b.ISPQuizPlayer&&(window.ISPQuizPlayer=b.ISPQuizPlayer),b.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=b.ISPInteractionPlayerCore),b.ISPBookPlayer&&(window.ISPBookPlayer=b.ISPBookPlayer),b.ISPScenarioPlayer&&(window.ISPScenarioPlayer=b.ISPScenarioPlayer),b.ISPFlipPlayer&&(window.ISPFlipPlayer=b.ISPFlipPlayer),!0}catch(c){return!1}}if(function(){let b;
try{b=window.frameElement}catch(c){}return null!=b}()){let b=window,c=7;for(;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent}})();var L;const hc=K().user_agent;L=hc?hc:hb()||"";K();K();var ic=-1!=L.toLowerCase().indexOf("chrome"),jc=-1==L.toLowerCase().indexOf("windows phone")&&-1!=L.toLowerCase().indexOf("android")&&!ic&&!Ub&&!mb,kc=-1!=L.indexOf("ismobile");const lc=document.createElement("audio"),mc=lc.play&&lc.play();mc&&mc.then(()=>{lc.pause()},()=>{});K();K();
function nc(){return 1==window._ispringDebug||"1"==K().isdebug}setTimeout(function(){oc=nc},0);function pc(a){try{const b=Nb(document,"iframe");ec(b);b.src=a;document.body.appendChild(b);Tb(()=>{b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(b){}}class qc{constructor(a,b){this.l=a;this.Zb=b||[]}id(){return ha(this)}}q("iSpring.ios.mobile.MobileAppCommand",qc);function M(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}M.prototype.BYTES_PER_ELEMENT=4;M.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};M.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(M.BYTES_PER_ELEMENT=4,M.prototype.BYTES_PER_ELEMENT=M.prototype.BYTES_PER_ELEMENT,M.prototype.set=M.prototype.set,M.prototype.toString=M.prototype.toString,q("Float32Array",M));function N(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}N.prototype.BYTES_PER_ELEMENT=8;N.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};N.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{N.BYTES_PER_ELEMENT=8}catch(a){}N.prototype.BYTES_PER_ELEMENT=N.prototype.BYTES_PER_ELEMENT;N.prototype.set=N.prototype.set;N.prototype.toString=N.prototype.toString;q("Float64Array",N)};new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);var rc=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||setTimeout;class sc extends zb{};let tc;const uc=[];if(window.MutationObserver){tc=new MutationObserver(b=>{b&&b.forEach(c=>{for(const d of c.removedNodes)for(const e of uc)"function"===typeof d.contains&&d.contains(e.displayObject())&&e.Kc()})});const a={subtree:!0,childList:!0};rc(()=>{tc.observe(document.body,a)})};Nb(document,"CANVAS").getContext("2d");
function O(a){var b="\r";if(0==a.length)return"";null==b&&(b="");var c=0;let d="";const e=a.length;do{var f=vc(a,["<p>","<p "],c);if(f&&f.Ra>c){c=a.substr(c,f.Ra-c);var g=Mb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Rb(g))+b;c=f.Ra}if(g=vc(a,["</p>","</p >"],c)){f=g.Ra+g.zc.length-c;const h=a.substr(c,f);g=Mb("DIV");g.innerHTML=h;d+=(g.textContent||g.innerText||Rb(g))+b;c+=f}else return g=Mb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Rb(g))}while(c<e);return d}
function vc(a,b,c){Array.isArray(b)||(b=[b]);let d=void 0,e=void 0;Fa(b,f=>{const g=a.indexOf(f,c);0<=g&&(void 0===d||g<d)&&(d=g,e=f)});return void 0!==e&&void 0!==d?new wc(e,d):null}function wc(a,b){this.zc=a;this.Ra=b};function P(a,b){this.ta=a;this.S=b}P.prototype.id=function(){return this.ta};P.prototype.description=function(){return this.S};function Q(){this.da=[]}Q.prototype.count=function(){return this.da.length};function R(a,b){a.da.push(b)}Q.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.da[a]};function S(){this.da=new Q}S.prototype.choices=function(){return this.da};function xc(a,b,c,d){this.rb=a;this.kc=b;this.lc=c;this.jc=d;this.qb=void 0}function yc(a){a=O(a.text());cb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(Xa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(Ya,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(Za,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace($a,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(ab,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(bb,"&#0;")));if(!a)return"";const b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
xc.prototype.create=function(){var a=0;const b=[];var c=this.kc,d=this.jc;const e=new Fb(c.id()+"_"+a);a+=1;e.l="choice";if(c.message()){var f=c.message().text();f=O(f);e.S=f;f=c.message().replies();null!=c.speech()&&0<O(c.speech())&&(a=new Fb(c.id()+"_"+a),a.l="other",c=O(c.speech()),a.S=c,a.xa="neutral",zc(this,a),b.push(a))}else f=O(c.speech()),e.S=f,f=c.replies();0==f.count()&&(e.l="other");c=null;let g=a=0;var h=-1;const n=[];for(var l=0;l<f.count();l++){const r=f.getReply(l);null!=d&&r==d&&
(h=l);a=Math.max(a,r.score());n.push(Ac(this,l,yc(r)))}null!=d&&(c=Ac(this,h,yc(d)),g=Math.max(g,d.score()));d=f;f=new S;for(h=0;h<d.count();++h)l=yc(d.getReply(h)),R(f.choices(),new P(I(h+"_"+l),l));e.J=f;e.B=c;e.D=n;this.rb.scenario().settings().evaluationSettings().enabled()&&(e.la(a),e.Ya=g);e.xa="neutral";zc(this,e);b.push(e);return b};function Ac(a,b,c){c=I(b+"_"+c);b=J(b);return a.lc?b:c}function zc(a,b){null!=a.qb&&(b.ub=new Date(a.qb),b.Ua(Date.now()-a.qb))};fb({Dc:"\u202a",Ic:"\u202b",Gc:"\u202c",Ec:"\u200e",Jc:"\u200f"});function Bc(){function a(c){try{for(let d=0;255>d;++d){if(c.API)return c.API;const e=c.parent;if(!e||c==e)break;c=e}}catch(d){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function Dc(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 Ec(){if(kc)if(kc){var a=new qc("closeWindow");if(kc){var b=a.l,c=a.Zb;a=a.id();c=$b(new Zb(null),c);b="isplayer://"+b+"/"+a+"/";a=c;if(Xb)c=p.btoa(a);else{c=[];for(var d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=void 0;void 0===a&&(a=0);if(!Wb)for(Wb={},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;5>f;f++){var g=d.concat(e[f].split(""));Vb[f]=g;for(var h=0;h<g.length;h++){var n=g[h];
void 0===Wb[n]&&(Wb[n]=h)}}a=Vb[a];d=Array(Math.floor(c.length/3));e=a[64]||"";for(f=g=0;g<c.length-2;g+=3){var l=c[g],r=c[g+1];n=c[g+2];h=a[l>>2];l=a[(l&3)<<4|r>>4];r=a[(r&15)<<2|n>>6];n=a[n&63];d[f++]=""+h+l+r+n}h=0;n=e;switch(c.length-g){case 2:h=c[g+1],n=a[(h&15)<<2]||e;case 1:c=c[g],d[f]=""+a[c>>2]+a[(c&3)<<4|h>>4]+n+e}c=d.join("")}pc(b+c)}}else try{jc||(window.open("","_self",""),window.close())}catch(bd){}else try{jc||(window.Ta=window,b=Fc(),b==window.top?(window.open("","_self",""),window.close()):
Gc(b))}catch(bd){Gc(window.top)}}function Gc(a){if(a&&a.Ta){var b=document.createElement("a");b.href="data/goodbye.html";a.Ta.location.replace(b.href)}}function Fc(){let a=window;if(a.Ta)return a;let b=0;for(;a!=window.top&&100>b++;){if(a.Ta)return a;a=a.parent}console.log("Unable to locate content root");return null}function Hc(){try{const a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(a){}};function Ic(){this.oc=new Q;this.ya=new Q}Ic.prototype.sources=function(){return this.oc};function T(a,b,c){return b.textWithEquations(a.j||!c?"Equation":"")}function U(a,b){return b.join(a.j?",":"[,]")}function V(a,b,c){return a.j?J(b):I(`${b}_${c}`)}
class W{constructor({yc:a,Ac:b,slideIndex:c}){this.j=a;this.Ub=b;this.u=!1;this.Qb=c}create(a){if(!a.submitted())return null;var b=(void 0!==this.Qb?"Slide"+this.Qb+"_":"")+"Q_"+a.slide().id();b=new Fb(I(b));this.g(b,a);return b}g(a,b){var c=b.slide();c=T(this,c.description(),!0);a.S=c;b.hasBeenVisited()&&(a.Ua(b.visitDuration()),c=b.firstVisitTime(),a.ub=c);if(c=b.slide().settings().evaluation()){if(a.la(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Ya=d;d="unanticipated";switch(b.status()){case "correct":d=
"correct";break;case "incorrect":case "partially":d="incorrect"}a.xa=d}}else a.xa="neutral";this.u=!!c}};class Jc extends W{g(a,b){super.g(a,b);a.l="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f,uc:g}=this.ob(b);c=this.fb(c.chainsStates(),e,f,g);a.B=c;this.u&&(c=[this.u?this.gb(b.chains(),e,f,g):c],a.D=c);a.J=d}ob(a){const b=new Ic,c=[],d=[];a=a.chains();for(var e of a){var f=e.object().slideObject();a=e.destination().slideObject();if(f&&0>c.indexOf(f)){c.push(f);const g=f.name();R(b.sources(),new P(I(c.indexOf(f)+"_"+g),g))}a&&0>d.indexOf(a)&&(d.push(a),
f=a.name(),R(b.ya,new P(I(d.indexOf(a)+"_"+f),f)))}e=this.j?J(d.length,!1):`${d.length}_${"None"}`;R(b.ya,new P(e,"None"));return{details:b,premises:c,responses:d,uc:e}}fb(a,b,c,d){const e=[];var f=b.slice();for(const h of a){a=h.objectState().slideObject();var g=h.destinationState().slideObject();g=this.ea(a,g,b,c,d);e.push(g);f.splice(f.indexOf(a),1)}for(const h of f)f=this.ea(h,null,b,c,d),e.push(f);return this.qa(e)}gb(a,b,c,d){const e=[];for(const f of a){a=f.object().slideObject();const g=f.destination().slideObject();
a&&(a=this.ea(a,g,b,c,d),e.push(a))}return this.qa(e)}sa(a,b,c){this.j?b=J(b,c):(a=a.name(),a=I(a),b=`${b}_${a}`);return b}ea(a,b,c,d,e){a=this.sa(a,c.indexOf(a),!0);b=b?this.sa(b,d.indexOf(b),!1):e;d=this.j?".":"[.]";return I(a)+d+I(b)}qa(a){return a.join(this.j?",":"[,]")}};class Kc extends W{g(a,b){super.g(a,b);a.l="long-fill-in";b=b.contentState().response();a.B=b}};class Lc extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"fill-in";var c=b.contentState();b=[];const d=[];for(var e of c.placeholders())b.push(e.response()),(c=e.correctAnswers())&&(this.Ub?d.push(c[0]):d.push(c.join("[,]")));a.B=b.join("[,]");if(this.u){e=d;if(this.j||this.Ub)e=[e.join(this.j?"[.]":"[,]")];a.D=e}}};class Mc extends W{g(a,b){super.g(a,b);a.l="choice";const c=[],d=[],e=new S;this.cb(b.contentState(),e,d,c);a.B=U(this,c);this.u&&(a.D=[U(this,d)]);a.J=e}cb(a,b,c,d){a.areas().forEach((f,g)=>{const h=f.area(),n=h.label().text();g=V(this,g,n);h.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);R(b.choices(),new P(g,n))});const e=a.areas().length;for(let f=e;f<e+a.freePointsCount();++f){const g=V(this,f,"Untitled_Spot");d.push(g)}}};class Nc extends W{g(a,b){super.g(a,b);a.l="choice";const c=[],d=new S;b.contentState().statementsStates().forEach((e,f)=>{var g=e.statement().text();R(d.choices(),new P(V(this,f,g),g));if(g=e.selectedScale())e=c.push,f=f+"_"+g.text(),f=I(f),e.call(c,f)});a.B=U(this,c);a.J=d}};class Oc extends W{g(a,b){super.g(a,b);a.l="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f}=this.ob(b);c=this.fb(c.matches(),e,f,this.j);a.B=c;this.u&&(c=[this.gb(b.matches(),this.j)],a.D=c);a.J=d}ob(a){const b=new Ic,c=[],d=[];var e=a.matches();for(var f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());const h=T(this,g.premise().textRange(),!1);g=T(this,g.response().textRange(),!1);R(b.sources(),new P(I(f+"_"+h),h));
R(b.ya,new P(I(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=T(this,f.textRange(),!1),R(b.ya,new P(I(e+"_"+f),f));return{details:b,premises:c,responses:d}}fb(a,b,c,d){const e=[];for(const f of a){a=f.premise();const g=f.response();a=this.ea(a,A(b,a),g,A(c,g),d);e.push(a)}return this.qa(e,d)}gb(a,b){const c=[];for(let e=0;e<a.count();++e){var d=a.getChoice(e);d=this.ea(d.premise(),e,d.response(),e,b);c.push(d)}return this.qa(c,b)}sa(a,b,c,d){return c?J(b,d):`${b}_${T(this,
a.textRange(),!1)}`}ea(a,b,c,d,e){a=this.sa(a,b,e,!0);c=this.sa(c,d,e,!1);e=e?".":"[.]";return I(a)+e+I(c)}qa(a,b){return a.join(b?",":"[,]")}};function Pc(){this.da=new Q;this.Bb=[]}t(Pc,S);class Qc extends W{g(a,b){super.g(a,b);a.l="choice";var c=b.slide();b=b.contentState();const d=c.content();c=this.hb(c.content(),b);a.B=c;if(this.u){a:{for(c=0;c<d.count();++c){const e=d.getChoice(c);if(e.correct()){c=V(this,c,T(this,e.textRange(),!1));break a}}c=""}a.D=[c]}b=this.ra(d,b);a.J=b}ra(a,b){let c=new S;if(this.Cb()){c=new Pc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Bb[g]=e)}}for(b=0;b<a.count();++b)d=
a.getChoice(b),d=T(this,d.textRange(),!1),R(c.choices(),new P(I(`${b}_${d}`),d));return c}Cb(){return!this.u}hb(a,b){for(let c=0;c<b.count();++c){const d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),V(this,a,T(this,d.choice().textRange(),!1))}return""}};function Rc(a){const b=new Ic;let c=0;Fa(a.placeholders(),(d,e)=>{e+="";R(b.sources(),new P(e,e));d.values.forEach(f=>{f=f.text();var g=`${c++}_${f}`;g=I(g);R(b.ya,new P(g,f))})});return b}
class Sc extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"matching";const c=[],d=[],e=new S;b.contentState().placeholders().forEach((f,g)=>{const h=f.response(),n=f.correctAnswer();f.answers().forEach(l=>{var r=e.choices().count();r=`${g}[.]${I(r+"_"+l)}`;l==n&&d.push(r);l==h&&c.push(r);R(e.choices(),new P(r,l))})});a.B=c.join("[,]");this.u&&Gb(a,[d.join("[,]")]);Hb(a,Rc(b.slide().content()))}};class Tc extends W{g(a,b){super.g(a,b);a.l="choice";const c=b.slide().content();var d=this.hb(c,b.contentState());a.B=d;this.u&&(d=[this.eb(c)],a.D=d);b=this.ra(c,b.contentState());a.J=b}ra(a,b){let c=new S;if(!this.u){c=new Pc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Bb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=T(this,d.textRange(),!1),R(c.choices(),new P(I(b+"_"+d),d));return c}hb(a,b){const c=[];for(let f=
0;f<b.count();++f){var d=b.getChoiceState(f);const g=d.choice();var e=T(this,g.textRange(),!1);d.selected()&&(d=a.getChoiceIndex(g),e=V(this,d,e),c.push(e))}return U(this,c)}eb(a){const b=[];for(let d=0;d<a.count();++d){var c=a.getChoice(d);c.correct()&&(c=V(this,d,T(this,c.textRange(),!1)),b.push(c))}return U(this,b)}};class Uc extends W{g(a,b){super.g(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.l=this.j||d?"fill-in":"numeric";a.B=b;if(this.u){d=(b=this.j||d)?"[,]":"[.]";const h=[];for(let n=0;n<c.count();++n){var e="",f=c.getAnswer(n),g=f.comparisonOperation();if("between"==g)g=f,e=g.leftOperand(),g=g.rightOperand(),e=b?"between "+e+" and "+g:e+"[:]"+g;else switch(f=f.operand(),g){case "notEqual":b&&
(e="not equal to "+f);break;case "equal":e=b?"equal to "+f:f+"[:]"+f;break;case "greaterThan":e=b?"greater than "+f:f+"[:]";break;case "greaterThanOrEqual":e=b?"greater than or equal to "+f:f+"[:]";break;case "lessThan":e=b?"less than "+f:"[:]"+f;break;case "lessThanOrEqual":e=b?"less than or equal to "+f:"[:]"+f}h.push(e)}a.D=[h.join(d)]}}};function Vc(a,b,c,d){const e=d?",":"[,]",f=[];c.forEach(g=>{const h=T(a,g.textRange(),!1);g=b.getChoiceIndex(g);f.push(I(d?J(g,!0):g+"_"+h))});return f.join(e)}class Wc extends W{g(a,b){super.g(a,b);a.l="sequencing";var c=b.slide().content();b=Vc(this,c,b.contentState().studentResponse(),this.j);a.B=b;this.u&&(b=[Vc(this,c,c,this.j)],a.D=b);c=this.ra(c);a.J=c}ra(a){const b=new S;for(let c=0;c<a.count();++c){const d=a.getChoice(c).textRange().text();R(b.choices(),new P(I(c+"_"+d),d))}return b}};class Xc extends Qc{g(a,b){super.g(a,b);if(this.j&&this.u){a.l="true-false";var c=b.slide().content();b=b.contentState();const 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();let f=null;for(let g=0;2>g;++g){const h=b.getChoiceState(g);if(h.selected()){f=h.choice().id()==c?d:e;break}}a.B=f;a.D=[d]}}Cb(){return!1}};class Yc extends W{g(a,b){super.g(a,b);a.l="fill-in";var c=b.slide();b=b.contentState().response().text();a.B=b;this.u&&(c=this.eb(c.content()),a.D=c)}eb(a){const b=[];for(let c=0;c<a.count();++c){const d=a.getChoice(c);b.push(d.textRange().text())}return b}};function Zc(a,b){this.length=b;for(let c=0;c<b;++c)this[c]=a(c)};function $c(a,b,c){for(const d of a){const e=d.response();null!=e&&(a=new Zc(f=>b.choices().getChoice(f),b.choices().count()),a=Ha(a,f=>Wa(f.description())==e),c.push(a.id()))}}
class ad extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"choice";var c=b.slide().content();const d=[],e=new S;c=c.extraWords();for(var f of c){c=f.text();var g=e.choices().count();g=I(`${g}_${c}`);R(e.choices(),new P(g,c))}b=b.contentState().placeholders();this.u&&(f=[],this.cb(b,e,f),a.D=[f.join("[,]")]);$c(b,e,d);a.B=d.join("[,]");a.J=e}cb(a,b,c){for(const e of a){a=e.placeholder().value||"";var d=b.choices().count();d=I(`${d}_${a}`);c.push(d);R(b.choices(),new P(d,a))}}};const cd={FillInTheBlank:Lc,WordBank:ad,TypeIn:Yc,Numeric:Uc,MultipleChoice:Qc,MultipleResponse:Tc,MultipleChoiceText:Sc,Sequence:Wc,Matching:Oc,TrueFalse:Xc,Essay:Kc,Hotspot:Mc,LikertScale:Nc,DND:Jc};class X{constructor(a,b,c,d,e,f){this.type=b;this.Xb=a;this.vc=c;this.maxScore=void 0!==d?d:null;this.wc=void 0!==e?e:null;this.yb=void 0!==f?f:null}xb(){const a={};a.e=this.Xb;a.p=this.vc;a.m=this.maxScore;a.r=this.wc;a.s=this.yb;a.t=this.type;return a}};function dd(a){return a.ha.concat(a.Na)}function ed(a){return{d:a.T,l:a.Da,v:a.ha,vh:a.Na,V:a.Oa,p:a.Ga,q:Object.fromEntries(Object.entries(a.Y).map(([b,c])=>[b,c.xb()]))}}class fd{constructor(a){this.Ga=null;this.T=0;this.Da=-1;this.Y={};this.Na=[];this.ha=[];this.Oa=a}duration(){return this.T}Ua(a){this.T=a}xb(){return ed(this)}};const gd={Hc:"prompt",Bc:"always",Fc:"never"};q("PresentationResumeMode$$module$C_$dev$worker$base$release_9$build$flashspring$flashspring$htmlprojects$src$ispring$presenter$presentation$settings$PresentationResumeMode",gd);q("PROMPT_TO_RESUME","prompt",gd);q("ALWAYS_RESUME","always",gd);q("NEVER_RESUME","never",gd);function hd(a){let b=0;for(let c=0;c<a.length;++c)b+=a[c];return b};class id{constructor(a,b,c,d,e,f){this.pa=0;this.ic=f;this.Ma=e;this.ga={};this.P={};this.nc=b;this.Z=a;for(a=0;a<c.length;++a)b=c[a],e=b[1],this.P[b[0]]=e,0<e&&++this.pa;for(c=0;c<d.length;++c)a=d[c],b=a[1],this.ga[a[0]]=b,0<b&&++this.pa}slidesWeight(){return 0<this.Z?this.nc:0}slidesToView(){return this.Z}totalScore(){return this.Ma}passingScore(){return this.ic}};class jd{constructor(a,b,c,d){this.dc=d;this.mc=c;this.bb=b;this.Ja=a}timeLimit(){return this.Ja}message(){return this.dc}};function kd(a){return a.started()?Date.now()-a.Ia+a.fa:a.La}
class ld{constructor(a,b){this.La=this.ab=0;this.Ka=-1;this.fa=this.Ia=0;this.sb=!1;this.Tb=new H;this.Sb=b;this.tb=a}started(){return this.sb}start(a){this.started()||(this.La=this.fa=a||0,a=this.fa>=this.tb,a&&this.Sb||(this.sb=!0,this.Ia=Date.now(),a||(this.Ka=setTimeout(this.wa.bind(this),this.tb-this.fa))))}wa(){this.Sb&&(this.stop(),this.La=this.tb);this.Tb.Qa()}stop(){this.started()&&(this.sb=!1,0<this.Ka&&(clearTimeout(this.Ka),this.Ka=-1),this.ab=Date.now()-this.Ia,this.La=this.ab+this.fa)}}
;function md(a,b){if(a.Wa){a.Wa=!1;if(a.Rb){a.$.stop();const c=a.A.view().playbackController();c.updateCurrentSlideState();nd(a);F(a,c.slideChangeEvent(),a.va,a)}F(a,a.A.closeWindowEvent(),a.Ea,a);F(a,a.A.stateChangedEvent(),a.Ib,a);b?a.v.suspend():a.v.terminate()}}function od(a,b){F(a,b.sessionModeChangedEvent(),a.Kb,a);b=b.slidePoolState();for(const c of b.questions())F(a,c.submittedEvent(),a.Jb,a)}
function pd(a){const b=dd(a.o);if(0<a.V.Z&&0<b.length)return!0;const c=a.o.Y;return Object.keys(c).some(d=>{const e=-1!=b.indexOf(+d);return c[d].Xb&&e})}function qd(a){const b=a.V;if(!(0<b.Z||0<b.pa))return 0;let c=0;var d=a.o.Y;for(var e in d){const f=d[e],g=parseInt(e,10);c+=(null!=f.yb?f.yb:1)*(null!=(g in b.P?b.P[g]:null)?g in b.P?b.P[g]:0:g in b.ga?b.ga[g]:0)}d=0;0<b.Z&&(d=a.o.ha.length/a.o.Oa.length*b.slidesWeight());a=fb(b.P);a=hd(a);e=fb(b.ga);return(c+d)/(a+hd(e)+b.slidesWeight())}
class Y extends sc{constructor(a){super();this.W=this.A=this.H=this.O=this.X=null;this.Rb=this.Wa=!1;this.M="never"!=a.resumeMode;this.$a=null;this.L=!1;this.R=new jd(1E3*a.timeLimit,a.exitOnTimeout,a.showMessageOnTimeout,a.timeoutMessage);this.$=new ld(this.R.Ja,this.R.bb);this.V=new id(a.slidesToView,a.slidesWeight,a.quizzes||{},a.scenarios||{},a.totalScore,a.passingScore)}start(a){if(this.L){const b=a.presentation().slides(),c=[];for(let d=0;d<b.visibleSlidesCount();++d){const e=b.getVisibleSlide(d).index();
c.push(e)}this.o=new fd(c);this.A=a;this.Wa=!0;E(this,a.startupCompletedEvent(),this.Hb,this);E(this,a.closeWindowEvent(),this.Ea,this)}}Vb(){md(this,this.M)}Hb(a,b){F(this,this.A.startupCompletedEvent(),this.Hb,this);this.Rb=!0;"resumePlayback"==a&&this.W&&(this.o=this.W);a=this.o.duration();this.$.started()||(E(this,this.$.Tb,this.wa,this),this.$.start(a));a=this.A.view().playbackController();E(this,a.slideChangeEvent(),this.va,this);a=a.currentSlideIndex();a==b&&this.va(a);E(this,this.A.stateChangedEvent(),
this.Ib,this)}Ea(){this.Vb()}wa(){this.R.mc&&alert(this.R.message());this.R.bb&&md(this,!1)}va(a){if(this.H){var b=this.H;F(this,b.currentSessionChangedEvent(),this.Db,this);(b=b.currentSession())&&od(this,b);this.H=null}if(this.O){F(this,this.O.currentSessionChangedEvent(),this.Eb,this);if(this.X){b=[this.X];for(var c of b)c&&yb(this,c);this.X=null}this.O=null}c=this.A.view().playbackController();a in this.V.P&&(this.H=c.quizPlayer(),this.ib(this.H));a in this.V.ga&&(this.O=c.scenarioPlayer(),this.jb(this.O));
c=this.o;0<=c.Oa.indexOf(a)?(c=c.ha,0<=A(c,a)||c.push(a)):(c=c.Na,0<=A(c,a)||c.push(a));this.o.Da=a}Aa(a){E(this,a.sessionModeChangedEvent(),this.Kb,this);a=a.slidePoolState();for(const b of a.questions())E(this,b.submittedEvent(),this.Jb,this)}Kb(a){nd(this);"testing"==a&&this.mb()}mb(){var a;if(a=this.H.currentSession().evaluation()){var b=a.maxScore();const c=a.awardedScore(),d=a.awardedPercent()/100;a=new X(!0,"quiz",a.quizPassed(),b,c,d)}else a=new X(!1,"quiz",!0);b=this.A.view().playbackController().currentSlideIndex();
this.o.Y[`${b}`]=a}Ba(a){this.X=a;E(this,a.showTerminalSceneEvent(),this.Fa,this);E(this,a.onReplySelectedEvent(),this.Lb,this);a.completed()&&this.Fa()}Fa(){var a=this.O.currentSession(),b=a.currentSceneState().scene();null!=b&&(b.speech()&&0<b.speech().length||b.message()&&0<b.message().text().length)&&this.Lb();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());const c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1;a=new X(!0,"scenario",a.scenarioPassed(),b,c,d)}else a=
new X(!1,"scenario",!0);b=this.A.view().playbackController().currentSlideIndex();this.o.Y[`${b}`]=a}ib(a){E(this,a.currentSessionChangedEvent(),this.Db,this);(a=a.currentSession())&&this.Aa(a)}jb(a){const b=a.currentSession();null!=b&&this.Ba(b);E(this,a.currentSessionChangedEvent(),this.Eb,this)}Db(){const a=this.H.currentSession();this.$a&&od(this,this.$a);(this.$a=a)&&this.Aa(a)}Eb(){if(this.X){var a=[this.X];for(const b of a)b&&yb(this,b);this.X=null}a=this.O.currentSession();this.Ba(a)}}
Y.prototype.closeLms=Y.prototype.Vb;Y.prototype.start=Y.prototype.start;function nd(a){var b=kd(a.$);var c=a.$;c=c.started()?Date.now()-c.Ia:c.ab;a.o.Ua(b);a.v.i.h("cmi.core.session_time",Dc(c/1E3));b=a.A.persistState();a.o.Ga=b;b=a.o.xb();a=a.v.i;b=$b(new Zb,b);b=LZString.compressToBase64(b);a.h("cmi.suspend_data",b)}
function rd(a,b){var c=new fd(C(b,"V",[]));c.T=C(b,"d",0);c.Da=C(b,"l",-1);c.ha=C(b,"v",[]);c.Na=C(b,"vh",[]);c.Ga=C(b,"p",null);const d={};b=C(b,"q",{});for(const f in b){var e=b[f];d[f]=new X(e.e,e.t,e.p,e.m,e.r,e.s)}c.Y=d;a.W=c;c=a.W.duration();if(a.R.bb&&c>=a.R.Ja)alert("You have already exceeded available time for viewing this content."),Hc(),Ec();else return a.W.Ga}
function sd(a){var b=a.V;if(0<b.Z||0<b.pa){var c=qd(a);a.v.la(c,0,b.Ma,b.Ma*c)}b=a.v;c=b.ca;a:{var d=a.V;if(0<d.Z||0<d.pa){if(a.M){var e=a.R.Ja,f=kd(a.$);if(!pd(a)&&e>f){d=null;break a}}d=qd(a)*d.Ma>=d.passingScore()}else d=null}a:{e=a.V;f=a.o.ha;const g=a.o.Oa,h=a.o.Y,n=a.A.presentation().slides();for(let l=0;l<n.count();++l)if(g.includes(l)&&!f.includes(l)||(l in e.P||l in e.ga)&&!h[l+""]){e=!1;break a}e=!0}c.call(b,d,e);nd(a);a.v.commit()}
class td extends Y{constructor(a,b){super(b);this.Ca={};this.ua=null;this.Pb=new Eb;this.Xa=a;this.U="";const c=new Va(b.flags);var d=b.tincan.auth,e=d.login;e&&Ua(e,Sa,Qa);(d=d.password)&&Ua(d,Ra,Pa);b=new lb("ispring://presentations/"+encodeURIComponent(b.presentationId),c,b.tincan.i18n,this.M);try{a:{var f=this.Pb;const h=window.iSpring.LMSAPI;switch(a){case "1.2":var g=new h.Scorm12Api(b);break a;case "2004":g=new h.Scorm2004Api(b);break a;case "aicc":g=new h.AiccApi(b);break a;case "tincan":g=
new h.TinCanApi(b,f);break a;case "cmi-5":g=new h.Cmi5Api(b,f);break a;default:throw Error("unknown api");}}this.v=g}catch(h){nc()&&alert(h)}}initialize(a){this.ua=a;null==this.v?this.Fb():this.v.initialize(this.fc.bind(this),this.Fb.bind(this))}fc(){this.U="normal";var a=null;var b=this.v.i.getValue("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{const d=JSON.parse(b);var c="object"==typeof d?d:null;break a}catch(d){}c=null}else c=null;switch(this.U){case "browse":a=null;break;
case "review":c&&(a=rd(this,c));break;case "normal":this.M&&c&&(a=rd(this,c))}window.launchMode=this.U;void 0!==a&&(this.L=!0,this.ua&&this.ua(a))}Fb(){this.ua&&this.ua()}start(a){super.start(a);this.L&&(a.startupEvent().addHandler(this.Gb,this),this.Pb.pc.Qa(a.presentation().title()))}Gb(a){this.A.startupEvent().removeHandler(this.Gb,this);var b=(this.M||"review"==this.U)&&this.W?this.W.Da:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.A.view().playbackController().firstSlideIndex(),
a.setSlideIndex(b),a.setAction("gotoSlide"))}va(a){super.va(a);a=this.A.presentation().slides().getSlide(a);"normal"==this.U&&a.title()&&a.title();sd(this)}ib(a){var b=ha(a)+"";b in this.Ca||(this.Ca[b]=!0,(b=ud(this.v.i))&&a.setUserInfo(b.id(),{USER_NAME:b.name(),USER_EMAIL:b.email()}));super.ib(a)}jb(a){var b=ha(a)+"";if(!(b in this.Ca)){this.Ca[b]=!0;b=ud(this.v.i);const c=!a.userInfoIsLoaded();b&&c&&a.setUserInfo(b.id(),{USER_NAME:b.name(),USER_EMAIL:b.email()})}super.jb(a)}Ba(a){"normal"==this.U&&
(a.scenario().id(),a.scenario().title(),super.Ba(a))}Fa(){super.Fa();const a=this.O.currentSession();a.duration();a.scenario().settings().evaluationSettings().enabled()&&(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();sd(this)}Lb(a){const b=this.O.currentSession(),c=b.currentSceneState().scene();null!=c&&(new xc(b,c,"1.2"==this.Xa,a)).create().forEach(d=>{if("tincan"==this.Xa||"choice"==d.type()){var e="/scenarios/"+b.scenario().id();d.id();d.type();this.v.Pa(e,
d)}})}Aa(a){"normal"==this.U&&(super.Aa(a),this.H.id(),a.quiz().title())}mb(){super.mb();const a=this.H.currentSession();a.quizDuration();var b=a.evaluation();b&&(b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.H.currentSession(),(new Jb(this.v,b)).rb.settings());this.H.id();a.quiz().title();sd(this)}Jb(a){this.H.currentSession();if(a.initiated()){const d=this.A.view().playbackController().currentSlideIndex()+1;var b=a.slide().type(),c=this.Xa;if(a=(new cd[b]({yc:"1.2"==c||"aicc"==c,Ac:"tincan"==
c,slideIndex:d})).create(a))b="/quizzes/"+this.H.id(),a.id(),this.v.Pa(b,a)}}wa(){sd(this);super.wa()}Ea(a){a.preventAction();super.Ea(a)}Ib(a){a.actionPrevented()||(a.preventAction(),nd(this))}}td.prototype.initialize=td.prototype.initialize;var vd=null;q("iSpring.LMS.create",function(a,b,c){return vd=new td(b,c)});q("iSpring.LMS.instance",function(){return vd});function wd(){}k=wd.prototype;k.i=null;k.Wb=function(){throw Error("unimplemented abstract method");};k.initialize=function(a,b){if(this.i=this.Wb()){var c=this.i;c.L?a():null!=c.G?(c.L=c.G.initialize(),c.L?a():b()):(c.L=!1,b())}else b()};k.commit=function(){this.i.commit()};k.suspend=function(){this.i.terminate(!0);Hc();Ec()};k.terminate=function(){this.i.terminate(!1);Hc();Ec()};k.ca=function(a,b){this.i.Va(a);this.i.ca(a,b)};k.la=function(a,b,c,d){this.i.la(d,b,c,a)};k.Pa=function(a,b){this.i.Pa(b)};class xd{constructor(a,b){this.oa=a;this.nb=!1;this.Za=0;this.M=b}initialize(){try{return"true"==this.oa.LMSInitialize("").toString()}catch(a){}return!1}terminate(a){this.h("cmi.core.exit",a?this.nb?"":"suspend":"");this.commit();try{return"true"==this.oa.LMSFinish("").toString()}catch(b){}return!1}commit(){0==this.Za&&this.h("cmi.core.exit",this.M?this.nb?"":"suspend":"");try{const a="true"==this.oa.LMSCommit("").toString();this.Za+=1;return a}catch(a){}return!1}Va(a){this.nb=a}getValue(a){try{return this.oa.LMSGetValue(a)}catch(b){}return""}h(a,
b){"number"===typeof b&&(b=parseFloat(b.toFixed(2))+"");try{return"true"==this.oa.LMSSetValue(a,b).toString()}catch(c){}return!1}};var Z={id:"id",type:"type",score:"weighting",qc:"correct_responses.%INDEX%.pattern",zb:"student_response",result:"result",duration:"latency",Ab:"time"},yd={};q("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){const d=null.cc[a];if(null==d)return"";delete null.cc[a];Tb(()=>{if(b)d.onload(c);else d.onerror()},10);return"ok"});function ud(a){return new Ib(a.getValue("cmi.core.student_id"),a.getValue("cmi.core.student_name"))};class zd{constructor(a){const b=Bc();this.G=b?new xd(b,a):null;this.L=!1}initialize(){return this.L?!0:this.L=null!=this.G?this.G.initialize():!1}terminate(a){return null!=this.G?this.G.terminate(a):!1}commit(){return null!=this.G?this.G.commit():!1}getValue(a){return null!=this.G?this.G.getValue(a):""}h(a,b){return null!=this.G?this.G.h(a,b):!1}la(a,b,c){this.h("cmi.core.score.raw",a);this.h("cmi.core.score.min",b);this.h("cmi.core.score.max",c)}ca(a,b){null!==a?this.h("cmi.core.lesson_status",a?
"passed":"failed"):null!==b?this.h("cmi.core.lesson_status",b?"completed":"incomplete"):this.h("cmi.core.lesson_status","unknown")}Va(a){this.G.Va(a)}Pa(a){var b=a.id();if(a.id()in yd)var c=yd[b];else c=parseInt(this.getValue("cmi.interactions._count"),10),yd[b]=c;if(!(0>c)){b="cmi.interactions."+c+".";c=a.id()+"_"+a.description();c=I(c.substr(0,255));this.h(b+Z.id,c);this.h(b+Z.type,a.type());this.h(b+Z.score,a.score());c=a.D||[];for(var d=0;d<c.length;++d){var e=Z.qc.replace("%INDEX%",d);this.h(b+
e,c[d])}c=a.zb();null!=c&&this.h(b+Z.zb,c);c=this.h;d=b+Z.result;e=a.result();c.call(this,d,"incorrect"==e?"wrong":e);c=a.duration();null!==c&&this.h(b+Z.duration,Dc(c/1E3));a=a.Ab();null!==a&&this.h(b+Z.Ab,Dc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds()))}}};function Ad(a){this.pb=a.pb;this.M=a.M}t(Ad,wd);q("iSpring.LMSAPI.Scorm12Api",Ad);Ad.prototype.Wb=function(){return new zd(this.M)};Ad.prototype.ca=function(a,b){const c=null===a;b=c?b:a;this.i.Va(a);null!==b?!c&&this.pb.hc&(b?2:1)?this.i.ca(b,null):this.i.ca(null,b):this.i.ca(null,null)};let oc=()=>!1;function Bd(a,b){oc()&&(b?p.console.error(a):p.console.warn(a))}function Db(a,b){const c=a.stack||a.toString();0>String(c).indexOf(a.message)&&Bd(a.message,b);Bd(c,b)}window.onerror=function(...a){const [b,,,,c]=a;c?Db(c,!0):Bd(b,!0);return!0};qa=a=>{try{throw Error(a.message);}catch(b){Db(b,!1)}};p.console||(window._log="",p.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+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}
