(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 da(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})}}da("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}});
function ea(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}da("Array.prototype.values",function(a){return a?a:function(){return ea(this,function(b,c){return c})}});var l=this||self;
function p(a,b,c){a=a.split(".");c=c||l;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 fa(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 ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function ia(a){return Object.prototype.hasOwnProperty.call(a,ja)&&a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(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 na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(null,arguments)}function q(a,b){function c(){}c.prototype=b.prototype;a.bd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Zc=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 r(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}q(r,Error);r.prototype.name="CustomError";function oa(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");r.call(this,c+a[d])}q(oa,r);oa.prototype.name="AssertionError";function pa(a){throw a;}function qa(a,b){pa(new oa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};const u=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},v=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){const d=a.length,e="string"===typeof a?a.split(""):a;for(let f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function ra(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 sa(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 ta(a,b){for(let c=1;c<arguments.length;c++){const d=arguments[c];if(fa(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 ua(a,b,c,d){Array.prototype.splice.apply(a,va(arguments,1))}function va(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};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,Aa=/"/g,Ba=/'/g,Ca=/\x00/g,Da=/[\x00&<>"']/;function Ea(a,b){return a<b?-1:a>b?1:0};function w(){var a=l.navigator;return a&&(a=a.userAgent)?a:""}function x(a){return-1!=w().indexOf(a)};var Fa=x("Opera"),Ga=x("Trident")||x("MSIE"),Ha=x("Gecko")&&!(-1!=w().toLowerCase().indexOf("webkit")&&!x("Edge"))&&!(x("Trident")||x("MSIE"))&&!x("Edge"),Ia=-1!=w().toLowerCase().indexOf("webkit")&&!x("Edge");function Ka(a,b){for(const c in a)b.call(void 0,a[c],c,a)}function La(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b}function y(a,b,c){return null!==a&&b in a?a[b]:c};let Ma=()=>!1;function Na(a,b){Ma()&&(b?l.console.error(a):l.console.warn(a))}function Oa(a,b){const c=a.stack||a.toString();0>String(c).indexOf(a.message)&&Na(a.message,b);Na(c,b)}window.onerror=function(...a){const [b,,,,c]=a;c?Oa(c,!0):Na(b,!0);return!0};pa=a=>{try{throw Error(a.message);}catch(b){Oa(b,!1)}};l.console||(window._log="",l.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});class Pa{};function z(a,b){return 0==b?a.ea:a.X[b]}function Qa(a,b){return 0==b?a.ea||[]:b in a.X?z(a,b):[]}function Ra(a){if(!a.X)return a.ea?a.ea.slice():[];const b=[],c=a.za;for(let d=0;d<c.length;++d){const e=z(a,c[d]);e&&ta(b,e)}return b}
class Sa{constructor(){this.ea=this.X=this.za=null}push(a,b){if(0==b)this.ea=this.ea||[];else if(this.za=this.za||[0],this.X=this.X||{},!(b in this.X)){this.X[b]=[];var c=this.za;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&&ua(c,-(d+1),0,b)}z(this,b).push(a)}remove(a,b){if(b=z(this,b))a=u(b,a),0<=a&&Array.prototype.splice.call(b,a,1)}};class A extends Pa{constructor(){super();this.Ub=this.Ab=this.J=null}fc(){return this.Ub}addHandler(a,b,c){this.J=this.J||new Sa;this.J.push({kb:a,context:b},c||0)}removeHandler(a,b,c){c=c||0;if(this.J){var d=Qa(this.J,c),e=d.length;for(let f=0;f<e;++f){const g=d[f];if(g.kb==a&&g.context==b){(a=z(this.J,c))&&Array.prototype.splice.call(a,f,1);break}}}else qa("EventDispatcher has no handlers!")}ic(a,b,c){if(!this.J)return!1;c=Qa(this.J,c||0);const d=c.length;for(let e=0;e<d;++e){const f=c[e];if(f.kb==
a&&f.context==b)return!0}return!1}Ga(...a){if(this.J){const b=Ra(this.J),c=b.length;for(let d=0;d<c;++d){const e=b[d];if(-1!=u(Ra(this.J),e))try{e.kb.apply(e.context,arguments)}catch(f){Oa(f,!0)}}}this.Ab&&this.Ab.forEach(b=>{b.Ga(...a)})}}A.prototype.dispatch=A.prototype.Ga;A.prototype.hasHandler=A.prototype.ic;A.prototype.removeHandler=A.prototype.removeHandler;A.prototype.addHandler=A.prototype.addHandler;A.prototype.eventOwner=A.prototype.fc;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 Ta(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};function D(a){this.ua=a;this.D=this.ua.length/4;this.Y=this.D+6;this.H=[[],[],[],[]];this.ia=[[],[],[],[]];this.B=Array(E*(this.Y+1));for(a=0;a<this.D;a++)this.B[a]=[this.ua[4*a],this.ua[4*a+1],this.ua[4*a+2],this.ua[4*a+3]];var b=Array(4);for(a=this.D;a<E*(this.Y+1);a++){b[0]=this.B[a-1][0];b[1]=this.B[a-1][1];b[2]=this.B[a-1][2];b[3]=this.B[a-1][3];if(0==a%this.D){var c=b,d=c[0];c[0]=c[1];c[1]=c[2];c[2]=c[3];c[3]=d;Ua(b);b[0]^=Va[a/this.D][0];b[1]^=Va[a/this.D][1];b[2]^=Va[a/this.D][2];b[3]^=Va[a/
this.D][3]}else 6<this.D&&4==a%this.D&&Ua(b);this.B[a]=Array(4);this.B[a][0]=this.B[a-this.D][0]^b[0];this.B[a][1]=this.B[a-this.D][1]^b[1];this.B[a][2]=this.B[a-this.D][2]^b[2];this.B[a][3]=this.B[a-this.D][3]^b[3]}}D.prototype.ja=16;var E=D.prototype.ja/4;
D.prototype.encrypt=function(a){Wa(this,a);F(this,0);for(a=1;a<this.Y;++a){Xa(this,G);Ya(this);for(var b=this.H,c=this.ia[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]=Za[c[0]]^$a[c[1]]^c[2]^c[3],b[1][d]=c[0]^Za[c[1]]^$a[c[2]]^c[3],b[2][d]=c[0]^c[1]^Za[c[2]]^$a[c[3]],b[3][d]=$a[c[0]]^c[1]^c[2]^Za[c[3]];F(this,a)}Xa(this,G);Ya(this);F(this,this.Y);return ab(this)};
D.prototype.decrypt=function(a){Wa(this,a);F(this,this.Y);for(a=1;a<this.Y;++a){bb(this);Xa(this,cb);F(this,this.Y-a);for(var b=this.H,c=this.ia[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]=db[c[0]]^eb[c[1]]^fb[c[2]]^gb[c[3]],b[1][d]=gb[c[0]]^db[c[1]]^eb[c[2]]^fb[c[3]],b[2][d]=fb[c[0]]^gb[c[1]]^db[c[2]]^eb[c[3]],b[3][d]=eb[c[0]]^fb[c[1]]^gb[c[2]]^db[c[3]]}bb(this);Xa(this,cb);F(this,0);return ab(this)};
function Wa(a,b){for(var c,d=0;d<E;d++)for(var e=0;4>e;e++)c=4*e+d,c=b[c],a.H[d][e]=c}function ab(a){for(var b=[],c=0;c<E;c++)for(var d=0;4>d;d++)b[4*d+c]=a.H[c][d];return b}function F(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.H[c][d]^=a.B[4*b+d][c]}function Xa(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.H[c][d]=b[a.H[c][d]]}function Ya(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ia[b][c]=a.H[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.H[b][c]=a.ia[b][(c+b)%E]}
function bb(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ia[b][(c+b)%E]=a.H[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.H[b][c]=a.ia[b][c]}function Ua(a){a[0]=G[a[0]];a[1]=G[a[1]];a[2]=G[a[2]];a[3]=G[a[3]]}
var G=[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],cb=[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],Va=[[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]],Za=[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],$a=[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],gb=[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],eb=[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],fb=[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],db=[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];function hb(a){this.fa=a}hb.prototype.encrypt=function(a,b){var c=[],d=b;for(b=0;b<a.length;b+=this.fa.ja)d=Ta(Array.prototype.slice.call(a,b,b+this.fa.ja),d),d=this.fa.encrypt(d),ta(c,d);return c};hb.prototype.decrypt=function(a,b){for(var c=[],d=0,e=b;d<a.length;){b=Array.prototype.slice.call(a,d,d+this.fa.ja);var f=this.fa.decrypt(b);e=Ta(e,f);ta(c,e);e=b;d+=this.fa.ja}return c};var ib=B("343ebcf014a7e244ba703229647cf607"),jb=B("429ab6bc5b161fb66503db4b4b7e310b"),kb=B("410f951a7436c2bcae986399fe12d772"),lb=B("b3ee0a61544dc2e8b07cfc41277893ac");function mb(a,b,c){const [d,e]=a.split(":");var f=B(e);a=parseInt(d,10);b=new D(b);c=(new hb(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 nb{constructor(a){this.Tb=a}};function ob(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}function pb(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};class qb{constructor(a){this.Xa=a}hc(a,b,c){c=this.Xa.hasOwnProperty(a)?this.Xa[a]:c;if(void 0!==c){if(void 0!==b){a=this.Nb;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}qa("unknown message id: "+a);return a}messages(){return this.Xa}Nb(a){return"%"+a.toUpperCase()+"%"}}qb.prototype.getMessage=qb.prototype.hc;function rb(a,b,c,d){this.eb=b;this.Ob=new qb(c);this.K=d}rb.prototype.i18n=function(){return this.Ob};class sb{constructor(){this.bc=new A}};var H={Tc:"slidePool",qc:"authorizationForm",vc:"informationSlide",wc:"introSlide",Oc:"resultSlide",uc:"hotspotQuestion",xc:"likertScaleQuestion",Xc:"wordBankQuestion",rc:"essayQuestion",Vc:"typeInQuestion",Sc:"shortAnswerQuestion",sc:"fillInTheBlankQuestion",tc:"fillInTheBlankSurveyQuestion",Hc:"numericQuestion",Ic:"numericSurveyQuestion",Rc:"sequenceQuestion",Nc:"rankingQuestion",Wc:"whichWordQuestion",Dc:"multipleChoiceTextQuestion",Ec:"multipleChoiceTextSurveyQuestion",Cc:"multipleChoiceQuestion",
Fc:"multipleResponseQuestion",Lc:"pickOneQuestion",Kc:"pickManyQuestion",Uc:"trueFalseQuestion",Yc:"yesNoQuestion",Ac:"matchingQuestion",Bc:"matchingSurveyQuestion"};p("ispring.quiz.slides.SlideType",H);p("SLIDE_POOL","slidePool",H);p("INFORMATION_SLIDE","informationSlide",H);p("INTRO_SLIDE","introSlide",H);p("HOTSPOT_QUESTION","hotspotQuestion",H);p("LIKERT_SCALE_QUESTION","likertScaleQuestion",H);p("WORD_BANK_QUESTION","wordBankQuestion",H);p("RESULT_SLIDE","resultSlide",H);
p("ESSAY_QUESTION","essayQuestion",H);p("TYPE_IN_QUESTION","typeInQuestion",H);p("SHORT_ANSWER_QUESTION","shortAnswerQuestion",H);p("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",H);p("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",H);p("NUMERIC_QUESTION","numericQuestion",H);p("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",H);p("SEQUENCE_QUESTION","sequenceQuestion",H);p("RANKING_QUESTION","rankingQuestion",H);p("WHICH_WORD_QUESTION","whichWordQuestion",H);
p("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",H);p("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",H);p("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",H);p("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",H);p("PICK_ONE_QUESTION","pickOneQuestion",H);p("PICK_MANY_QUESTION","pickManyQuestion",H);p("TRUE_FALSE_QUESTION","trueFalseQuestion",H);p("YES_NO_QUESTION","yesNoQuestion",H);p("MATCHING_QUESTION","matchingQuestion",H);
p("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",H);function I(a,b,c,d,e,f){this.type=b;this.Kb=a;this.kc=c;this.maxScore=void 0!==d?d:null;this.lc=void 0!==e?e:null;this.mb=void 0!==f?f:null}I.prototype.lb=function(){const a={};a[tb]=this.Kb;a[ub]=this.kc;a[vb]=this.maxScore;a[wb]=this.lc;a[xb]=this.mb;a[yb]=this.type;return a};var tb="e",ub="p",vb="m",wb="r",xb="s",yb="t";function zb(a){this.Ea=a;this.da=[];this.Da=[];this.O={}}k=zb.prototype;k.xa=-1;k.S=0;k.ya=null;k.duration=function(){return this.S};k.Ka=function(a){this.S=a};k.lb=function(){const a={};a[Ab]=this.S;a[Bb]=this.xa;a[Cb]=this.da;a[Db]=this.Da;a[Eb]=this.Ea;a[Fb]=this.ya;const b={};for(const c in this.O)b[c]=this.O[c].lb();a[Gb]=b;return a};var Bb="l",Cb="v",Db="vh",Eb="V",Ab="d",Fb="p",Gb="q";function Hb(a){let b=0;for(let c=0;c<a.length;++c)b+=a[c];return b};function Ib(a,b,c,d,e,f){this.V=a;this.$b=b;this.dc=e;this.Vb=f;this.M={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.M[b[0]]=e,0<e&&++this.la;this.ca={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.ca[c[0]]=b,0<b&&++this.la}k=Ib.prototype;k.la=0;k.slidesWeight=function(){return 0<this.V?this.$b:0};k.slidesToView=function(){return this.V};k.totalScore=function(){return this.dc};k.passingScore=function(){return this.Vb};function Jb(a,b,c,d){this.cc=a;this.Ra=b;this.Zb=c;this.Qb=d}Jb.prototype.timeLimit=function(){return this.cc};Jb.prototype.message=function(){return this.Qb};function Kb(a,b){this.ib=a;this.Fb=b;this.Gb=new A}k=Kb.prototype;k.hb=!1;k.ba=0;k.Aa=0;k.Ba=-1;k.Ca=0;k.Qa=0;k.started=function(){return this.hb};k.start=function(a){this.started()||(this.Ca=this.ba=a||0,a=this.ba>=this.ib,a&&this.Fb||(this.hb=!0,this.Aa=Date.now(),a||(this.Ba=setTimeout(this.ab.bind(this),this.ib-this.ba))))};k.ab=function(){this.Fb&&(this.stop(),this.Ca=this.ib);this.Gb.Ga()};
k.stop=function(){this.started()&&(this.hb=!1,0<this.Ba&&(clearTimeout(this.Ba),this.Ba=-1),this.Qa=Date.now()-this.Aa,this.Ca=this.Qa+this.ba)};function Lb(a){return a.started()?Date.now()-a.Aa+a.ba:a.Ca};function Mb(a,b,c){const 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 Nb(a,b){this.pa=a;this.Rb=b;this.Mb=""}Nb.prototype.id=function(){return this.pa};Nb.prototype.name=function(){return this.Rb};Nb.prototype.email=function(){return this.Mb};function Ob(a){this.pa=a}k=Ob.prototype;k.R="";k.A=null;k.C=null;k.ra="unanticipated";k.Bb=0;k.Na=null;k.S=null;k.jb=null;k.I=null;k.id=function(){return this.pa};k.type=function(){return this.m};k.description=function(){return this.R};k.nb=function(){return this.A};function Pb(a,b){a.C=b}k.result=function(){return this.ra};k.score=function(){return this.Bb};k.ha=function(a){this.Bb=a};k.awardedScore=function(){return this.Na};k.duration=function(){return this.S};k.Ka=function(a){this.S=a};k.ob=function(){return this.jb};
k.details=function(){return this.I};function Qb(a,b){a.I=b};function J(a){a=wa(a);return a=a.replace(/[^\w-]/g,"_")}function K(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};class Rb{constructor(a,b){this.u=a;this.gb=b}};function L(a,b,c){return b.textWithEquations(a.l||!c?"Equation":"")}function M(a,b){return b.join(a.l?",":"[,]")}function N(a,b,c){return a.l?K(b):J(`${b}_${c}`)}
class O{constructor({mc:a,oc:b,slideIndex:c}){this.l=a;this.Hb=b;this.s=!1;this.Db=c}create(a){if(!a.submitted())return null;var b=(void 0!==this.Db?"Slide"+this.Db+"_":"")+"Q_"+a.slide().id();b=new Ob(J(b));this.g(b,a);return b}g(a,b){var c=b.slide();c=L(this,c.description(),!0);a.R=c;b.hasBeenVisited()&&(a.Ka(b.visitDuration()),c=b.firstVisitTime(),a.jb=c);if(c=b.slide().settings().evaluation()){if(a.ha(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Na=d;d="unanticipated";switch(b.status()){case "correct":d=
"correct";break;case "incorrect":case "partially":d="incorrect"}a.ra=d}}else a.ra="neutral";this.s=!!c}};function P(a,b){this.pa=a;this.R=b}P.prototype.id=function(){return this.pa};P.prototype.description=function(){return this.R};function Q(){this.i=[]}Q.prototype.count=function(){return this.i.length};function R(a,b){a.i.push(b)}Q.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.i[a]};function Sb(){this.ac=new Q;this.ta=new Q}Sb.prototype.sources=function(){return this.ac};class Tb extends O{g(a,b){super.g(a,b);a.m="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f,jc:g}=this.cb(b);c=this.Ua(c.chainsStates(),e,f,g);a.A=c;this.s&&(c=[this.s?this.Va(b.chains(),e,f,g):c],a.C=c);a.I=d}cb(a){const b=new Sb,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(J(c.indexOf(f)+"_"+g),g))}a&&0>d.indexOf(a)&&(d.push(a),
f=a.name(),R(b.ta,new P(J(d.indexOf(a)+"_"+f),f)))}e=this.l?K(d.length,!1):`${d.length}_${"None"}`;R(b.ta,new P(e,"None"));return{details:b,premises:c,responses:d,jc:e}}Ua(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.$(a,g,b,c,d);e.push(g);f.splice(f.indexOf(a),1)}for(const h of f)f=this.$(h,null,b,c,d),e.push(f);return this.ma(e)}Va(a,b,c,d){const e=[];for(const f of a){a=f.object().slideObject();const g=f.destination().slideObject();
a&&(a=this.$(a,g,b,c,d),e.push(a))}return this.ma(e)}oa(a,b,c){this.l?b=K(b,c):(a=a.name(),a=J(a),b=`${b}_${a}`);return b}$(a,b,c,d,e){a=this.oa(a,c.indexOf(a),!0);b=b?this.oa(b,d.indexOf(b),!1):e;d=this.l?".":"[.]";return J(a)+d+J(b)}ma(a){return a.join(this.l?",":"[,]")}};class Ub extends O{g(a,b){super.g(a,b);a.m="long-fill-in";b=b.contentState().response();a.A=b}};class Vb extends O{g(a,b){super.g(a,b);a.m=this.l?"other":"fill-in";var c=b.contentState();b=[];const d=[];for(var e of c.placeholders())b.push(e.response()),(c=e.correctAnswers())&&(this.Hb?d.push(c[0]):d.push(c.join("[,]")));a.A=b.join("[,]");if(this.s){e=d;if(this.l||this.Hb)e=[e.join(this.l?"[.]":"[,]")];a.C=e}}};function S(){this.i=new Q};class Wb extends O{g(a,b){super.g(a,b);a.m="choice";const c=[],d=[],e=new S;this.Sa(b.contentState(),e,d,c);a.A=M(this,c);this.s&&(a.C=[M(this,d)]);a.I=e}Sa(a,b,c,d){a.areas().forEach((f,g)=>{const h=f.area(),n=h.label().text();g=N(this,g,n);h.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);R(b.i,new P(g,n))});const e=a.areas().length;for(let f=e;f<e+a.freePointsCount();++f){const g=N(this,f,"Untitled_Spot");d.push(g)}}};class Xb extends O{g(a,b){super.g(a,b);a.m="choice";const c=[],d=new S;b.contentState().statementsStates().forEach((e,f)=>{var g=e.statement().text();R(d.i,new P(N(this,f,g),g));if(g=e.selectedScale())e=c.push,f=f+"_"+g.text(),f=J(f),e.call(c,f)});a.A=M(this,c);a.I=d}};class Yb extends O{g(a,b){super.g(a,b);a.m="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f}=this.cb(b);c=this.Ua(c.matches(),e,f,this.l);a.A=c;this.s&&(c=[this.Va(b.matches(),this.l)],a.C=c);a.I=d}cb(a){const b=new Sb,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=L(this,g.premise().textRange(),!1);g=L(this,g.response().textRange(),!1);R(b.sources(),new P(J(f+"_"+h),h));
R(b.ta,new P(J(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=L(this,f.textRange(),!1),R(b.ta,new P(J(e+"_"+f),f));return{details:b,premises:c,responses:d}}Ua(a,b,c,d){const e=[];for(const f of a){a=f.premise();const g=f.response();a=this.$(a,u(b,a),g,u(c,g),d);e.push(a)}return this.ma(e,d)}Va(a,b){const c=[];for(let e=0;e<a.count();++e){var d=a.getChoice(e);d=this.$(d.premise(),e,d.response(),e,b);c.push(d)}return this.ma(c,b)}oa(a,b,c,d){return c?K(b,d):`${b}_${L(this,
a.textRange(),!1)}`}$(a,b,c,d,e){a=this.oa(a,b,e,!0);c=this.oa(c,d,e,!1);e=e?".":"[.]";return J(a)+e+J(c)}ma(a,b){return a.join(b?",":"[,]")}};function Zb(){this.i=new Q;this.pb=[]}q(Zb,S);class $b extends O{g(a,b){super.g(a,b);a.m="choice";var c=b.slide();b=b.contentState();const d=c.content();c=this.Wa(c.content(),b);a.A=c;if(this.s){a:{for(c=0;c<d.count();++c){const e=d.getChoice(c);if(e.correct()){c=N(this,c,L(this,e.textRange(),!1));break a}}c=""}a.C=[c]}b=this.na(d,b);a.I=b}na(a,b){let c=new S;if(this.qb()){c=new Zb;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.pb[g]=e)}}for(b=0;b<a.count();++b)d=
a.getChoice(b),d=L(this,d.textRange(),!1),R(c.i,new P(J(`${b}_${d}`),d));return c}qb(){return!this.s}Wa(a,b){for(let c=0;c<b.count();++c){const d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),N(this,a,L(this,d.choice().textRange(),!1))}return""}};function ac(a){const b=new Sb;let c=0;v(a.placeholders(),(d,e)=>{e+="";R(b.sources(),new P(e,e));d.values.forEach(f=>{f=f.text();var g=`${c++}_${f}`;g=J(g);R(b.ta,new P(g,f))})});return b}
class bc extends O{g(a,b){super.g(a,b);a.m=this.l?"other":"matching";const c=[],d=[],e=new S;b.contentState().placeholders().forEach((f,g)=>{const h=f.response(),n=f.correctAnswer();f.answers().forEach(m=>{var t=e.i.count();t=`${g}[.]${J(t+"_"+m)}`;m==n&&d.push(t);m==h&&c.push(t);R(e.i,new P(t,m))})});a.A=c.join("[,]");this.s&&Pb(a,[d.join("[,]")]);Qb(a,ac(b.slide().content()))}};class cc extends O{g(a,b){super.g(a,b);a.m="choice";const c=b.slide().content();var d=this.Wa(c,b.contentState());a.A=d;this.s&&(d=[this.Ta(c)],a.C=d);b=this.na(c,b.contentState());a.I=b}na(a,b){let c=new S;if(!this.s){c=new Zb;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.pb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=L(this,d.textRange(),!1),R(c.i,new P(J(b+"_"+d),d));return c}Wa(a,b){const c=[];for(let f=
0;f<b.count();++f){var d=b.getChoiceState(f);const g=d.choice();var e=L(this,g.textRange(),!1);d.selected()&&(d=a.getChoiceIndex(g),e=N(this,d,e),c.push(e))}return M(this,c)}Ta(a){const b=[];for(let d=0;d<a.count();++d){var c=a.getChoice(d);c.correct()&&(c=N(this,d,L(this,c.textRange(),!1)),b.push(c))}return M(this,b)}};class dc extends O{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.m=this.l||d?"fill-in":"numeric";a.A=b;if(this.s){d=(b=this.l||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.C=[h.join(d)]}}};function ec(a,b,c,d){const e=d?",":"[,]",f=[];c.forEach(g=>{const h=L(a,g.textRange(),!1);g=b.getChoiceIndex(g);f.push(J(d?K(g,!0):g+"_"+h))});return f.join(e)}class fc extends O{g(a,b){super.g(a,b);a.m="sequencing";var c=b.slide().content();b=ec(this,c,b.contentState().studentResponse(),this.l);a.A=b;this.s&&(b=[ec(this,c,c,this.l)],a.C=b);c=this.na(c);a.I=c}na(a){const b=new S;for(let c=0;c<a.count();++c){const d=a.getChoice(c).textRange().text();R(b.i,new P(J(c+"_"+d),d))}return b}};class gc extends $b{g(a,b){super.g(a,b);if(this.l&&this.s){a.m="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.A=f;a.C=[d]}}qb(){return!1}};class hc extends O{g(a,b){super.g(a,b);a.m="fill-in";var c=b.slide();b=b.contentState().response().text();a.A=b;this.s&&(c=this.Ta(c.content()),a.C=c)}Ta(a){const b=[];for(let c=0;c<a.count();++c){const d=a.getChoice(c);b.push(d.textRange().text())}return b}};function ic(a,b){this.length=b;for(let c=0;c<b;++c)this[c]=a(c)};function jc(a,b,c){for(const d of a){const e=d.response();null!=e&&(a=new ic(f=>b.i.getChoice(f),b.i.count()),a=ra(a,f=>wa(f.description())==e),c.push(a.id()))}}
class kc extends O{g(a,b){super.g(a,b);a.m=this.l?"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.i.count();g=J(`${g}_${c}`);R(e.i,new P(g,c))}b=b.contentState().placeholders();this.s&&(f=[],this.Sa(b,e,f),a.C=[f.join("[,]")]);jc(b,e,d);a.A=d.join("[,]");a.I=e}Sa(a,b,c){for(const e of a){a=e.placeholder().value||"";var d=b.i.count();d=J(`${d}_${a}`);c.push(d);R(b.i,new P(d,a))}}};const lc={FillInTheBlank:Vb,WordBank:kc,TypeIn:hc,Numeric:dc,MultipleChoice:$b,MultipleResponse:cc,MultipleChoiceText:bc,Sequence:fc,Matching:Yb,TrueFalse:gc,Essay:Ub,Hotspot:Wb,LikertScale:Xb,DND:Tb};function mc(a,b){Ka(b,function(c,d){c&&"object"==typeof c&&c.ad&&(c=c.$c());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:nc.hasOwnProperty(d)?a.setAttribute(nc[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}
var nc={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 oc(a,b,c){var d=arguments,e=document,f=d[1],g=pc(e,String(d[0]));f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):mc(g,f));2<d.length&&qc(e,g,d);return g}
function qc(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(!fa(f)||ha(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(ha(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}v(g?sa(f):f,d)}}}function pc(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}
var rc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},sc={IMG:" ",BR:"\n"};function tc(a){var b=[];uc(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 uc(a,b,c){if(!(a.nodeName in rc))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 sc)b.push(sc[a.nodeName]);else for(a=a.firstChild;a;)uc(a,b,c),a=a.nextSibling};function vc(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=na(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||l.setTimeout(a,b||0)};var wc=x("Firefox")||x("FxiOS");var xc={},yc=null,zc=Ha||Ia||"function"==typeof l.btoa;function Ac(a){this.Ia=a}Ac.prototype.serialize=function(a){const b=[];Bc(this,a,b);return b.join("")};
function Bc(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],Bc(a,a.Ia?a.Ia.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),Cc(d,c),c.push(":"),Bc(a,a.Ia?a.Ia.call(b,d,e):e,c),f=","));c.push("}");
return}}switch(typeof b){case "string":Cc(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 Dc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ec=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function Cc(a,b){b.push('"',a.replace(Ec,function(c){let d=Dc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Dc[c]=d);return d}),'"')};function Fc(a){var b={width:"1px",height:"1px",border:"0"};if("string"===typeof b)(b=Gc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Gc(d,c);f&&(d.style[f]=e)}}var Hc={};function Gc(a,b){var c=Hc[b];if(!c){var d=ob(b);c=d;void 0===a.style[d]&&(d=(Ia?"Webkit":Ha?"Moz":Ga?"ms":null)+pb(d),void 0!==a.style[d]&&(c=d));Hc[b]=c}return c};function Ic(a,b){this.m=a;this.Lb=b||[]}p("iSpring.ios.mobile.MobileAppCommand",Ic);Ic.prototype.id=function(){return ia(this)};function Jc(a){try{const b=pc(document,"iframe");Fc(b);b.src=a;document.body.appendChild(b);vc(()=>{b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(b){}};function T(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}T.prototype.BYTES_PER_ELEMENT=4;T.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};T.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(T.BYTES_PER_ELEMENT=4,T.prototype.BYTES_PER_ELEMENT=T.prototype.BYTES_PER_ELEMENT,T.prototype.set=T.prototype.set,T.prototype.toString=T.prototype.toString,p("Float32Array",T));function U(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}U.prototype.BYTES_PER_ELEMENT=8;U.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};U.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{U.BYTES_PER_ELEMENT=8}catch(a){}U.prototype.BYTES_PER_ELEMENT=U.prototype.BYTES_PER_ELEMENT;U.prototype.set=U.prototype.set;U.prototype.toString=U.prototype.toString;p("Float64Array",U)};new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function V(){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 W(a){var b="\r";if(0==a.length)return"";null==b&&(b="");var c=0;let d="";const e=a.length;do{var f=Kc(a,["<p>","<p "],c);if(f&&f.Ha>c){c=a.substr(c,f.Ha-c);var g=oc("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||tc(g))+b;c=f.Ha}if(g=Kc(a,["</p>","</p >"],c)){f=g.Ha+g.nc.length-c;const h=a.substr(c,f);g=oc("DIV");g.innerHTML=h;d+=(g.textContent||g.innerText||tc(g))+b;c+=f}else return g=oc("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||tc(g))}while(c<e);return d}
function Kc(a,b,c){Array.isArray(b)||(b=[b]);let d=void 0,e=void 0;v(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 Lc(e,d):null}function Lc(a,b){this.nc=a;this.Ha=b};function Mc(a,b,c,d){this.gb=a;this.Xb=b;this.Yb=c;this.Wb=d;this.fb=void 0}function Nc(a){a=W(a.text());Da.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(Aa,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(Ba,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Ca,"&#0;")));if(!a)return"";const b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
Mc.prototype.create=function(){var a=0;const b=[];var c=this.Xb,d=this.Wb;const e=new Ob(c.id()+"_"+a);a+=1;e.m="choice";if(c.message()){var f=c.message().text();f=W(f);e.R=f;f=c.message().replies();null!=c.speech()&&0<W(c.speech())&&(a=new Ob(c.id()+"_"+a),a.m="other",c=W(c.speech()),a.R=c,a.ra="neutral",Oc(this,a),b.push(a))}else f=W(c.speech()),e.R=f,f=c.replies();0==f.count()&&(e.m="other");c=null;let g=a=0;var h=-1;const n=[];for(var m=0;m<f.count();m++){const t=f.getReply(m);null!=d&&t==d&&
(h=m);a=Math.max(a,t.score());n.push(Pc(this,m,Nc(t)))}null!=d&&(c=Pc(this,h,Nc(d)),g=Math.max(g,d.score()));d=f;f=new S;for(h=0;h<d.count();++h)m=Nc(d.getReply(h)),R(f.i,new P(J(h+"_"+m),m));e.I=f;e.A=c;e.C=n;this.gb.scenario().settings().evaluationSettings().enabled()&&(e.ha(a),e.Na=g);e.ra="neutral";Oc(this,e);b.push(e);return b};function Pc(a,b,c){c=J(b+"_"+c);b=K(b);return a.Yb?b:c}function Oc(a,b){null!=a.fb&&(b.jb=new Date(a.fb),b.Ka(Date.now()-a.fb))};La({yc:"\u202a",Pc:"\u202b",Jc:"\u202c",zc:"\u200e",Qc:"\u200f"});function Qc(){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 Rc(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 Sc(){if(Tc)if(Tc){var a=new Ic("closeWindow");if(Tc){var b=a.m,c=a.Lb;a=a.id();var d=(new Ac(null)).serialize(c);if(zc)c=l.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}d=void 0;void 0===d&&(d=0);if(!yc)for(yc={},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],g=0;5>g;g++){var h=e.concat(f[g].split(""));xc[g]=h;for(var n=0;n<h.length;n++){var m=h[n];void 0===yc[m]&&
(yc[m]=n)}}d=xc[d];e=Array(Math.floor(c.length/3));f=d[64]||"";for(g=h=0;h<c.length-2;h+=3){var t=c[h],C=c[h+1];m=c[h+2];n=d[t>>2];t=d[(t&3)<<4|C>>4];C=d[(C&15)<<2|m>>6];m=d[m&63];e[g++]=""+n+t+C+m}n=0;m=f;switch(c.length-h){case 2:n=c[h+1],m=d[(n&15)<<2]||f;case 1:c=c[h],e[g]=""+d[c>>2]+d[(c&3)<<4|n>>4]+m+f}c=e.join("")}Jc("isplayer://"+b+"/"+a+"/"+c)}}else try{Uc||(window.open("","_self",""),window.close())}catch(pd){}else try{Uc||(window.Ja=window,b=Vc(),b==window.top?(window.open("","_self",""),
window.close()):Wc(b))}catch(pd){Wc(window.top)}}function Wc(a){if(a&&a.Ja){var b=document.createElement("a");b.href="data/goodbye.html";a.Ja.location.replace(b.href)}}function Vc(){let a=window;if(a.Ja)return a;let b=0;for(;a!=window.top&&100>b++;){if(a.Ja)return a;a=a.parent}console.log("Unable to locate content root");return null}function Xc(){try{const a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(a){}};var Yc={Mc:"prompt",pc:"always",Gc:"never"};p("ispring.presenter.presentation.settings.PresentationResumeMode",Yc);p("PROMPT_TO_RESUME","prompt",Yc);p("ALWAYS_RESUME","always",Yc);p("NEVER_RESUME","never",Yc);(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 X;const Zc=V().user_agent;X=Zc?Zc:w()||"";V();V();var $c=-1!=X.toLowerCase().indexOf("chrome"),Uc=-1==X.toLowerCase().indexOf("windows phone")&&-1!=X.toLowerCase().indexOf("android")&&!$c&&!wc&&!Fa,Tc=-1!=X.indexOf("ismobile");const ad=document.createElement("audio"),bd=ad.play&&ad.play();bd&&bd.then(()=>{ad.pause()},()=>{});V();V();
function cd(){return 1==window._ispringDebug||"1"==V().isdebug}
if(x("Windows")){const a=w();let b="",c;if(x("Windows")){c=/Windows (?:NT|Phone) ([0-9.]+)/;const h=c.exec(a);b=h?h[1]:"0.0"}else if(x("iPhone")&&!x("iPod")&&!x("iPad")||x("iPad")||x("iPod")){c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/;const h=c.exec(a);b=h&&h[1].replace(/_/g,".")}else if(x("Macintosh")){c=/Mac OS X ([0-9_.]+)/;const h=c.exec(a);b=h?h[1].replace(/_/g,"."):"10"}else if(-1!=w().toLowerCase().indexOf("kaios")){c=/(?:KaiOS)\/(\S+)/i;const h=c.exec(a);b=h&&h[1]}else if(x("Android")){c=/Android\s+([^\);]+)(\)|;)/;
const h=c.exec(a);b=h&&h[1]}else if(x("CrOS")){c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/;const h=c.exec(a);b=h&&h[1]}let d=0;const e=wa(String(b||"")).split("."),f=wa("6").split("."),g=Math.max(e.length,f.length);for(let h=0;0==d&&h<g;h++){let n=e[h]||"",m=f[h]||"";do{const t=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],C=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==t[0].length&&0==C[0].length)break;d=Ea(0==t[1].length?0:parseInt(t[1],10),0==C[1].length?0:parseInt(C[1],10))||Ea(0==t[2].length,0==C[2].length)||
Ea(t[2],C[2]);n=t[3];m=C[3]}while(0==d)}}setTimeout(function(){Ma=cd},0);function Y(a,b){try{this.Ma=a;this.wa={};this.Pa=null;this.T=new Ib(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.P=new Jb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.W=new Kb(this.P.timeLimit(),this.P.Ra);const e=new nb(b.flags),f=b.tincan.auth;var c=f.login;c&&mb(c,lb,jb);var d=f.password;d&&mb(d,kb,ib);this.K="never"!=b.resumeMode;const g=new rb("ispring://presentations/"+encodeURIComponent(b.presentationId),e,b.tincan.i18n,
this.K);this.Cb=new sb;this.u=Mb(a,g,this.Cb)}catch(e){cd()&&alert(e)}}k=Y.prototype;k.L=!1;k.qa=null;k.va=!1;k.v=null;k.U=null;k.Eb=!1;k.G=null;k.N=null;var dd=k.sa=null;p("iSpring.LMS.create",function(a,b,c){return dd=new Y(b,c)});p("iSpring.LMS.instance",function(){return dd});Y.prototype.initialize=function(a){this.qa=a;null==this.u?this.ub():this.u.initialize(this.Sb.bind(this),this.ub.bind(this))};Y.prototype.initialize=Y.prototype.initialize;
Y.prototype.Sb=function(){this.aa="normal";var a=null;var b=this.u.j.ga("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.aa){case "browse":a=null;break;case "review":c&&(a=ed(this,c));break;case "normal":this.K&&c&&(a=ed(this,c))}window.launchMode=this.aa;void 0!==a&&(this.L=!0,this.qa&&this.qa(a))};
function ed(a,b){var c=new zb(y(b,Eb,[]));c.S=y(b,Ab,0);c.xa=y(b,Bb,-1);c.da=y(b,Cb,[]);c.Da=y(b,Db,[]);c.ya=y(b,Fb,null);const d={};b=y(b,Gb,{});for(const f in b){var e=b[f];d[f]=new I(e[tb],e[yb],e[ub],e[vb],e[wb],e[xb])}c.O=d;a.U=c;c=a.U.duration();if(a.P.Ra&&c>=a.P.timeLimit())alert("You have already exceeded available time for viewing this content."),Xc(),Sc();else return a.U.ya}Y.prototype.ub=function(){this.qa&&this.qa()};
Y.prototype.start=function(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 zb(c);this.v=a;this.va=!0;this.Cb.bc.Ga(a.presentation().title());a.startupEvent().addHandler(this.vb,this);a.startupCompletedEvent().addHandler(this.wb,this);a.closeWindowEvent().addHandler(this.rb,this)}};Y.prototype.start=Y.prototype.start;
Y.prototype.vb=function(a){this.v.startupEvent().removeHandler(this.vb,this);var b=(this.K||"review"==this.aa)&&this.U?this.U.xa:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.v.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.wb=function(a,b){this.v.startupCompletedEvent().removeHandler(this.wb,this);this.Eb=!0;"resumePlayback"==a&&this.U&&(this.o=this.U);a=this.o.duration();this.W.started()||(this.W.Gb.addHandler(this.ab,this),this.W.start(a));a=this.v.view().playbackController();a.slideChangeEvent().addHandler(this.Ya,this);a=a.currentSlideIndex();a==b&&this.Ya(a);this.v.stateChangedEvent().addHandler(this.xb,this)};Y.prototype.Ib=function(){this.va&&fd(this,this.K)};Y.prototype.closeLms=Y.prototype.Ib;
function fd(a,b){a.va&&(a.va=!1,a.Eb&&(a.W.stop(),gd(a),a.v.view().playbackController().slideChangeEvent().removeHandler(a.Ya,a)),a.v.closeWindowEvent().removeHandler(a.rb,a),a.v.stateChangedEvent().removeHandler(a.xb,a),b?a.u.suspend():a.u.terminate())}k=Y.prototype;
k.Ya=function(a){if(this.G){var b=this.G;b.currentSessionChangedEvent().removeHandler(this.sb,this);(b=b.currentSession())&&hd(this,b);this.G=null}this.N&&(this.N.currentSessionChangedEvent().removeHandler(this.tb,this),this.sa&&id(this),this.N=null);b=this.v.view().playbackController();if(a in this.T.M){var c=this.G=b.quizPlayer(),d=ia(c)+"";d in this.wa||(this.wa[d]=!0,(d=jd(this.u.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.sb,
this);(c=c.currentSession())&&kd(this,c)}a in this.T.ca&&(b=this.N=b.scenarioPlayer(),c=ia(b)+"",c in this.wa||(this.wa[c]=!0,c=jd(this.u.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&ld(this,c),b.currentSessionChangedEvent().addHandler(this.tb,this));b=this.v.presentation().slides().getSlide(a);"normal"==this.aa&&b.title()&&b.title();b=this.o;0<=b.Ea.indexOf(a)?(b=b.da,0<=u(b,a)||b.push(a)):(b=b.Da,0<=u(b,a)||b.push(a));
this.o.xa=a;md(this)};function gd(a){var b=Lb(a.W);var c=a.W;c=c.started()?Date.now()-c.Aa:c.Qa;a.o.Ka(b);a.u.j.h("cmi.core.session_time",Rc(c/1E3));b=a.v.persistState();a.o.ya=b;b=a.o.lb();a=a.u.j;b=(new Ac).serialize(b);b=LZString.compressToBase64(b);a.h("cmi.suspend_data",b)}
function md(a){var b=a.T;if(0<b.V||0<b.la){var c=nd(a),d=b.totalScore()*c;a.u.ha(c,0,b.totalScore(),d)}b=a.u;c=b.Z;a:if(d=a.T,0<d.V||0<d.la){if(a.K){var e=a.P.timeLimit(),f=Lb(a.W);b:{var g=a.o;g=g.da.concat(g.Da);if(0<a.T.V&&0<g.length)var h=!0;else{var n=a.o.O;for(h in n){var m=parseInt(h,10);if(n[h].Kb&&-1!=u(g,m)){h=!0;break b}}h=!1}}if(!h&&e>f){h=null;break a}}h=nd(a)*d.totalScore()>=d.passingScore()}else h=null;a:{d=a.T;e=a.o.da;f=a.o.Ea;g=a.o.O;n=a.v.presentation().slides();for(m=0;m<n.count();++m)if(f.includes(m)&&
!e.includes(m)||(m in d.M||m in d.ca)&&!g[m+""]){d=!1;break a}d=!0}c.call(b,h,d);gd(a);a.u.commit()}function nd(a){var b=a.T;if(!(0<b.V||0<b.la))return 0;let c=0;var d=a.o.O;for(var e in d){const f=d[e],g=parseInt(e,10);c+=(null!=f.mb?f.mb:1)*(null!=(g in b.M?b.M[g]:null)?g in b.M?b.M[g]:0:g in b.ca?b.ca[g]:0)}d=0;0<b.V&&(d=a.o.da.length/a.o.Ea.length*b.slidesWeight());a=La(b.M);a=Hb(a);e=La(b.ca);b=a+Hb(e)+b.slidesWeight();return(c+d)/b}
k.tb=function(){this.sa&&id(this);const a=this.N.currentSession();ld(this,a)};function ld(a,b){"normal"==a.aa&&(a.sa=b,b.showTerminalSceneEvent().addHandler(a.$a,a),b.onReplySelectedEvent().addHandler(a.Za,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.$a())}function id(a){const b=a.sa;a.sa=null;b.showTerminalSceneEvent().removeHandler(a.$a,a);b.onReplySelectedEvent().removeHandler(a.Za,a)}
k.$a=function(){const a=this.N.currentSession();var b=a.currentSceneState().scene();null!=b&&(b.speech()&&0<b.speech().length||b.message()&&0<b.message().text().length)&&this.Za();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());var c=Math.max(0,a.userScore());const d=0<b-0?c/(b-0):1;b=new I(!0,"scenario",a.scenarioPassed(),b,c,d)}else b=new I(!1,"scenario",!0);c=this.v.view().playbackController().currentSlideIndex();this.o.O[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();md(this)};k.Za=function(a){const b=this.N.currentSession(),c=b.currentSceneState().scene();null!=c&&(a=(new Mc(b,c,"1.2"==this.Ma,a)).create(),v(a,function(d){if("tincan"==this.Ma||"choice"==d.type()){var e="/scenarios/"+b.scenario().id();d.id();d.type();this.u.Fa(e,d)}},this))};
function kd(a,b){if("normal"==a.aa){b.sessionModeChangedEvent().addHandler(a.zb,a);var c=b.slidePoolState();for(const d of c.questions())d.submittedEvent().addHandler(a.yb,a);a.G.id();b.quiz().title()}}function hd(a,b){b.sessionModeChangedEvent().removeHandler(a.zb,a);b=b.slidePoolState();for(const c of b.questions())c.submittedEvent().removeHandler(a.yb,a)}k.sb=function(){const a=this.G.currentSession();this.Pa&&hd(this,this.Pa);(this.Pa=a)&&kd(this,a)};
k.zb=function(a){if("testing"==a){a=this.G.currentSession();var b;if(b=a.evaluation()){var c=b.maxScore();const d=b.awardedScore(),e=b.awardedPercent()/100;b=new I(!0,"quiz",b.quizPassed(),c,d,e)}else b=new I(!1,"quiz",!0);c=this.v.view().playbackController().currentSlideIndex();this.o.O[c+""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.G.currentSession(),(new Rb(this.u,b)).gb.settings();this.G.id();a.quiz().title();md(this)}};
k.yb=function(a){this.G.currentSession();if(a.initiated()){const d=this.v.view().playbackController().currentSlideIndex()+1;var b=a.slide().type(),c=this.Ma;if(a=(new lc[b]({mc:"1.2"==c||"aicc"==c,oc:"tincan"==c,slideIndex:d})).create(a))b="/quizzes/"+this.G.id(),a.id(),this.u.Fa(b,a)}};k.rb=function(a){a.preventAction();this.Ib()};k.ab=function(){md(this);this.P.Zb&&alert(this.P.message());this.P.Ra&&fd(this,!1)};k.xb=function(a){a.actionPrevented()||(a.preventAction(),gd(this))};class od{constructor(a,b){this.ka=a;this.bb=!1;this.Oa=0;this.K=b}initialize(){try{return"true"==this.ka.LMSInitialize("").toString()}catch(a){}return!1}terminate(a){this.h("cmi.core.exit",a?this.bb?"":"suspend":"");this.commit();try{return"true"==this.ka.LMSFinish("").toString()}catch(b){}return!1}commit(){0==this.Oa&&this.h("cmi.core.exit",this.K?this.bb?"":"suspend":"");try{const a="true"==this.ka.LMSCommit("").toString();this.Oa+=1;return a}catch(a){}return!1}La(a){this.bb=a}ga(a){try{return this.ka.LMSGetValue(a)}catch(b){}return""}h(a,
b){"number"===typeof b&&(b=parseFloat(b.toFixed(2))+"");try{return"true"==this.ka.LMSSetValue(a,b).toString()}catch(c){}return!1}};var Z={id:"id",type:"type",score:"weighting",ec:"correct_responses.%INDEX%.pattern",nb:"student_response",result:"result",duration:"latency",ob:"time"},qd={};p("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){const d=null.Pb[a];if(null==d)return"";delete null.Pb[a];vc(()=>{if(b)d.onload(c);else d.onerror()},10);return"ok"});function jd(a){return new Nb(a.ga("cmi.core.student_id"),a.ga("cmi.core.student_name"))};class rd{constructor(a){const b=Qc();this.F=b?new od(b,a):null;this.L=!1}initialize(){return this.L?!0:this.L=null!=this.F?this.F.initialize():!1}terminate(a){return null!=this.F?this.F.terminate(a):!1}commit(){return null!=this.F?this.F.commit():!1}ga(a){return null!=this.F?this.F.ga(a):""}h(a,b){return null!=this.F?this.F.h(a,b):!1}ha(a,b,c){this.h("cmi.core.score.raw",a);this.h("cmi.core.score.min",b);this.h("cmi.core.score.max",c)}Z(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")}La(a){this.F.La(a)}Fa(a){var b=a.id();if(a.id()in qd)var c=qd[b];else c=parseInt(this.ga("cmi.interactions._count"),10),qd[b]=c;if(!(0>c)){b="cmi.interactions."+c+".";c=a.id()+"_"+a.description();c=J(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.C||[];for(var d=0;d<c.length;++d){var e=Z.ec.replace("%INDEX%",d);this.h(b+e,c[d])}c=a.nb();null!=
c&&this.h(b+Z.nb,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,Rc(c/1E3));a=a.ob();null!==a&&this.h(b+Z.ob,Rc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds()))}}};function sd(){}k=sd.prototype;k.j=null;k.Jb=function(){throw Error("unimplemented abstract method");};k.initialize=function(a,b){if(this.j=this.Jb()){var c=this.j;c.L?a():null!=c.F?(c.L=c.F.initialize(),c.L?a():b()):(c.L=!1,b())}else b()};k.commit=function(){this.j.commit()};k.suspend=function(){this.j.terminate(!0);Xc();Sc()};k.terminate=function(){this.j.terminate(!1);Xc();Sc()};k.Z=function(a,b){this.j.La(a);this.j.Z(a,b)};k.ha=function(a,b,c,d){this.j.ha(d,b,c,a)};k.Fa=function(a,b){this.j.Fa(b)};function td(a){this.eb=a.eb;this.K=a.K}q(td,sd);p("iSpring.LMSAPI.Scorm12Api",td);td.prototype.Jb=function(){return new rd(this.K)};td.prototype.Z=function(a,b){const c=null===a;b=c?b:a;this.j.La(a);null!==b?!c&&this.eb.Tb&(b?2:1)?this.j.Z(b,null):this.j.Z(null,b):this.j.Z(null,null)};})();
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}
