Sindbad~EG File Manager

Current Path : /var/www/moodledata/distripycapacita/filedir/08/ac/
Upload File :
Current File : /var/www/moodledata/distripycapacita/filedir/08/ac/08ac356a5cacb1bc4ffb61d71183b8e42092f13e

/*! ds-bootstrap - v1.0.0.__BUILD_NUMBER__ - 2021-02-9 7:38pm UTC
* Copyright (c) 2021 ; Not Licensed */!function(a){function t(t){for(var e,n,i=t[0],r=t[1],o=0,s=[];o<i.length;o++)n=i[o],Object.prototype.hasOwnProperty.call(l,n)&&l[n]&&s.push(l[n][0]),l[n]=0;for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(a[e]=r[e]);for(u&&u(t);s.length;)s.shift()()}var n={},l={0:0};function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.e=function(){return Promise.resolve()},r.m=a,r.c=n,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r.oe=function(t){throw console.error(t),t};var e=window.webpackJsonp=window.webpackJsonp||[],i=e.push.bind(e);e.push=t,e=e.slice();for(var o=0;o<e.length;o++)t(e[o]);var u=i;r(r.s=58)}([function(t,b,w){(function(m,y){var A;
/**
 * @license
 * lodash 3.10.1 (Custom Build) <https://lodash.com/>
 * Build: `lodash modern -o ./lodash.js`
 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 * Available under MIT license <https://lodash.com/license>
 */(function(){var gr,t,e,mr="3.10.1",yr=1,Ar=2,br=4,wr=8,Sr=16,Tr=32,Er=64,xr=128,_r=256,Cr=30,kr="...",Or=150,Mr=16,Rr=200,Ir=1,Lr=2,Pr="Expected a function",Dr="__lodash_placeholder__",Nr="[object Arguments]",Vr="[object Array]",Fr="[object Boolean]",Hr="[object Date]",jr="[object Error]",Br="[object Function]",n="[object Map]",Ur="[object Number]",Wr="[object Object]",zr="[object RegExp]",i="[object Set]",qr="[object String]",r="[object WeakMap]",Gr="[object ArrayBuffer]",Xr="[object Float32Array]",Yr="[object Float64Array]",Jr="[object Int8Array]",Kr="[object Int16Array]",$r="[object Int32Array]",Zr="[object Uint8Array]",Qr="[object Uint8ClampedArray]",to="[object Uint16Array]",eo="[object Uint32Array]",no=/\b__p \+= '';/g,io=/\b(__p \+=) '' \+/g,ro=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oo=/&(?:amp|lt|gt|quot|#39|#96);/g,so=/[&<>"'`]/g,ao=RegExp(oo.source),lo=RegExp(so.source),uo=/<%-([\s\S]+?)%>/g,co=/<%([\s\S]+?)%>/g,ho=/<%=([\s\S]+?)%>/g,fo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,po=/^\w*$/,vo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,go=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,mo=RegExp(go.source),yo=/[\u0300-\u036f\ufe20-\ufe23]/g,Ao=/\\(\\)?/g,bo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wo=/\w*$/,So=/^0[xX]/,To=/^\[object .+?Constructor\]$/,Eo=/^\d+$/,xo=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,_o=/($^)/,Co=/['\n\r\u2028\u2029\\]/g,ko=(t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")),Oo=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Mo=-1,Ro={};Ro[Xr]=Ro[Yr]=Ro[Jr]=Ro[Kr]=Ro[$r]=Ro[Zr]=Ro[Qr]=Ro[to]=Ro[eo]=!0,Ro[Nr]=Ro[Vr]=Ro[Gr]=Ro[Fr]=Ro[Hr]=Ro[jr]=Ro[Br]=Ro[n]=Ro[Ur]=Ro[Wr]=Ro[zr]=Ro[i]=Ro[qr]=Ro[r]=!1;var Io={};Io[Nr]=Io[Vr]=Io[Gr]=Io[Fr]=Io[Hr]=Io[Xr]=Io[Yr]=Io[Jr]=Io[Kr]=Io[$r]=Io[Ur]=Io[Wr]=Io[zr]=Io[qr]=Io[Zr]=Io[Qr]=Io[to]=Io[eo]=!0,Io[jr]=Io[Br]=Io[n]=Io[i]=Io[r]=!1;var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},a={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},l={function:!0,object:!0},u={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},c={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h=l[typeof b]&&b&&!b.nodeType&&b,d=l[typeof m]&&m&&!m.nodeType&&m,f=h&&d&&"object"==typeof y&&y&&y.Object&&y,p=l[typeof self]&&self&&self.Object&&self,v=l[typeof window]&&window&&window.Object&&window,Lo=(d&&d.exports,f||v!==(this&&this.window)&&v||p||this);function Po(t,e){if(t!==e){var n=null===t,i=t===gr,r=t==t,o=null===e,s=e===gr,a=e==e;if(e<t&&!o||!r||n&&!s&&a||i&&a)return 1;if(t<e&&!n||!a||o&&!i&&r||s&&r)return-1}return 0}function Do(t,e,n){for(var i=t.length,r=n?i:-1;n?r--:++r<i;)if(e(t[r],r,t))return r;return-1}function No(t,e,n){if(e!=e)return Go(t,n);for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}function Vo(t){return"function"==typeof t||!1}function Fo(t){return null==t?"":t+""}function Ho(t,e){for(var n=-1,i=t.length;++n<i&&-1<e.indexOf(t.charAt(n)););return n}function jo(t,e){for(var n=t.length;n--&&-1<e.indexOf(t.charAt(n)););return n}function Bo(t,e){return Po(t.criteria,e.criteria)||t.index-e.index}function Uo(t){return o[t]}function Wo(t){return s[t]}function zo(t,e,n){return e?t=u[t]:n&&(t=c[t]),"\\"+t}function qo(t){return"\\"+c[t]}function Go(t,e,n){for(var i=t.length,r=e+(n?0:-1);n?r--:++r<i;){var o=t[r];if(o!=o)return r}return-1}function Xo(t){return!!t&&"object"==typeof t}function g(t){return t<=160&&9<=t&&t<=13||32==t||160==t||5760==t||6158==t||8192<=t&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function Yo(t,e){for(var n=-1,i=t.length,r=-1,o=[];++n<i;)t[n]===e&&(t[n]=Dr,o[++r]=n);return o}function Jo(t){for(var e=-1,n=t.length;++e<n&&g(t.charCodeAt(e)););return e}function Ko(t){for(var e=t.length;e--&&g(t.charCodeAt(e)););return e}function $o(t){return a[t]}var Zo=function t(e){var O=(e=e?Zo.defaults(Lo.Object(),e,Zo.pick(Lo,Oo)):Lo).Array,n=e.Date,i=e.Error,g=e.Function,r=e.Math,o=e.Number,d=e.Object,m=e.RegExp,s=e.String,y=e.TypeError,a=O.prototype,l=d.prototype,u=s.prototype,c=g.prototype.toString,A=l.hasOwnProperty,h=0,b=l.toString,f=Lo._,p=m("^"+c.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=e.ArrayBuffer,w=e.clearTimeout,S=e.parseFloat,T=r.pow,E=l.propertyIsEnumerable,x=Ve(e,"Set"),_=e.setTimeout,C=a.splice,k=e.Uint8Array,M=Ve(e,"WeakMap"),R=r.ceil,I=Ve(d,"create"),L=r.floor,P=Ve(O,"isArray"),D=e.isFinite,N=Ve(d,"keys"),V=r.max,F=r.min,H=Ve(n,"now"),j=e.parseInt,B=r.random,U=o.NEGATIVE_INFINITY,W=o.POSITIVE_INFINITY,z=4294967295,q=z-1,G=z>>>1,X=9007199254740991,Y=M&&new M,J={};function K(t){if(Xo(t)&&!di(t)&&!(t instanceof Q)){if(t instanceof Z)return t;if(A.call(t,"__chain__")&&A.call(t,"__wrapped__"))return en(t)}return new Z(t)}function $(){}function Z(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}K.support={};function Q(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function tt(){this.__data__={}}function et(t){var e=t?t.length:0;for(this.data={hash:I(null),set:new x};e--;)this.push(t[e])}function nt(t,e){var n=t.data;return("string"==typeof e||gi(e)?n.set.has(e):n.hash[e])?0:-1}function it(t,e){var n=-1,i=t.length;for(e=e||O(i);++n<i;)e[n]=t[n];return e}function rt(t,e){for(var n=-1,i=t.length;++n<i&&!1!==e(t[n],n,t););return t}function ot(t,e){for(var n=-1,i=t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function st(t,e){for(var n=-1,i=t.length,r=-1,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[++r]=s)}return o}function at(t,e){for(var n=-1,i=t.length,r=O(i);++n<i;)r[n]=e(t[n],n,t);return r}function lt(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function ut(t,e,n,i){var r=-1,o=t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function ct(t,e){for(var n=-1,i=t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function ht(t,e,n,i){return t!==gr&&A.call(i,n)?t:e}function dt(t,e,n){for(var i=-1,r=Vi(e),o=r.length;++i<o;){var s=r[i],a=t[s],l=n(a,e[s],s,t,e);(l==l?l===a:a!=a)&&(a!==gr||s in t)||(t[s]=l)}return t}function ft(t,e){return null==e?t:vt(e,Vi(e),t)}function pt(t,e){for(var n=-1,i=null==t,r=!i&&He(t),o=r?t.length:0,s=e.length,a=O(s);++n<s;){var l=e[n];a[n]=r?je(l,o)?t[l]:gr:i?gr:t[l]}return a}function vt(t,e,n){n=n||{};for(var i=-1,r=e.length;++i<r;){var o=e[i];n[o]=t[o]}return n}function gt(t,e,n){var i=typeof t;return"function"==i?e===gr?t:te(t,e,n):null==t?ir:"object"==i?Ft(t):e===gr?ur(t):Ht(t,e)}function mt(n,i,r,t,e,o,s){var a;if(r&&(a=e?r(n,t,e):r(n)),a!==gr)return a;if(!gi(n))return n;var l=di(n);if(l){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&A.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(n),!i)return it(n,a)}else{var u=b.call(n),c=u==Br;if(u!=Wr&&u!=Nr&&(!c||e))return Io[u]?function(t,e,n){var i=t.constructor;switch(e){case Gr:return ee(t);case Fr:case Hr:return new i(+t);case Xr:case Yr:case Jr:case Kr:case $r:case Zr:case Qr:case to:case eo:var r=t.buffer;return new i(n?ee(r):r,t.byteOffset,t.length);case Ur:case qr:return new i(t);case zr:var o=new i(t.source,wo.exec(t));o.lastIndex=t.lastIndex}return o}(n,u,i):e?n:{};if(a=function(t){var e=t.constructor;return"function"==typeof e&&e instanceof e||(e=d),new e}(c?{}:n),!i)return ft(a,n)}s=s||[];for(var h=(o=o||[]).length;h--;)if(o[h]==n)return s[h];return o.push(n),s.push(a),(l?rt:Rt)(n,function(t,e){a[e]=mt(t,i,r,e,n,o,s)}),a}K.templateSettings={escape:uo,evaluate:co,interpolate:ho,variable:"",imports:{_:K}};var yt=function(t){if(gi(t)){At.prototype=t;var e=new At;At.prototype=gr}return e||{}};function At(){}function bt(t,e,n){if("function"!=typeof t)throw new y(Pr);return _(function(){t.apply(gr,n)},e)}function wt(t,e){var n=t?t.length:0,i=[];if(!n)return i;var r=-1,o=Pe(),s=o===No,a=s&&e.length>=Rr?le(e):null,l=e.length;a&&(o=nt,s=!1,e=a);t:for(;++r<n;){var u=t[r];if(s&&u==u){for(var c=l;c--;)if(e[c]===u)continue t;i.push(u)}else o(e,u,0)<0&&i.push(u)}return i}var St=se(Rt),Tt=se(It,!0);function Et(t,i){var r=!0;return St(t,function(t,e,n){return r=!!i(t,e,n)}),r}function xt(t,i){var r=[];return St(t,function(t,e,n){i(t,e,n)&&r.push(t)}),r}function _t(t,i,e,r){var o;return e(t,function(t,e,n){if(i(t,e,n))return o=r?e:t,!1}),o}function Ct(t,e,n,i){i=i||[];for(var r=-1,o=t.length;++r<o;){var s=t[r];Xo(s)&&He(s)&&(n||di(s)||hi(s))?e?Ct(s,e,n,i):lt(i,s):n||(i[i.length]=s)}return i}var kt=ae(),Ot=ae(!0);function Mt(t,e){return kt(t,e,Fi)}function Rt(t,e){return kt(t,e,Vi)}function It(t,e){return Ot(t,e,Vi)}function Lt(t,e){for(var n=-1,i=e.length,r=-1,o=[];++n<i;){var s=e[n];vi(t[s])&&(o[++r]=s)}return o}function Pt(t,e,n){if(null!=t){n!==gr&&n in Qe(t)&&(e=[n]);for(var i=0,r=e.length;null!=t&&i<r;)t=t[e[i++]];return i&&i==r?t:gr}}function Dt(t,e,n,i,r,o){return t===e||(null==t||null==e||!gi(t)&&!Xo(e)?t!=t&&e!=e:function(t,e,n,i,r,o,s){var a=di(t),l=di(e),u=Vr,c=Vr;a||((u=b.call(t))==Nr?u=Wr:u!=Wr&&(a=Si(t))),l||((c=b.call(e))==Nr?c=Wr:c!=Wr&&(l=Si(e)));var h=u==Wr,d=c==Wr,f=u==c;if(f&&!a&&!h)return function(t,e,n){switch(n){case Fr:case Hr:return+t==+e;case jr:return t.name==e.name&&t.message==e.message;case Ur:return t!=+t?e!=+e:t==+e;case zr:case qr:return t==e+""}return!1}(t,e,u);if(!r){var p=h&&A.call(t,"__wrapped__"),v=d&&A.call(e,"__wrapped__");if(p||v)return n(p?t.value():t,v?e.value():e,i,r,o,s)}if(!f)return!1;s=s||[];for(var g=(o=o||[]).length;g--;)if(o[g]==t)return s[g]==e;o.push(t),s.push(e);var m=(a?function(t,e,n,i,r,o,s){var a=-1,l=t.length,u=e.length;if(l!=u&&!(r&&l<u))return!1;for(;++a<l;){var c=t[a],h=e[a],d=i?i(r?h:c,r?c:h,a):gr;if(d!==gr){if(d)continue;return!1}if(r){if(!ct(e,function(t){return c===t||n(c,t,i,r,o,s)}))return!1}else if(c!==h&&!n(c,h,i,r,o,s))return!1}return!0}:function(t,e,n,i,r,o,s){var a=Vi(t),l=a.length,u=Vi(e).length;if(l!=u&&!r)return!1;for(var c=l;c--;){var h=a[c];if(!(r?h in e:A.call(e,h)))return!1}for(var d=r;++c<l;){h=a[c];var f=t[h],p=e[h],v=i?i(r?p:f,r?f:p,h):gr;if(!(v===gr?n(f,p,i,r,o,s):v))return!1;d=d||"constructor"==h}if(!d){var g=t.constructor,m=e.constructor;if(g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m))return!1}return!0})(t,e,n,i,r,o,s);return o.pop(),s.pop(),m}(t,e,Dt,n,i,r,o))}function Nt(t,e,n){var i=e.length,r=i,o=!n;if(null==t)return!r;for(t=Qe(t);i--;){var s=e[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<r;){var a=(s=e[i])[0],l=t[a],u=s[1];if(o&&s[2]){if(l===gr&&!(a in t))return!1}else{var c=n?n(l,u,a):gr;if(!(c===gr?Dt(u,l,n,!0):c))return!1}}return!0}function Vt(t,i){var r=-1,o=He(t)?O(t.length):[];return St(t,function(t,e,n){o[++r]=i(t,e,n)}),o}function Ft(t){var e=Ne(t);if(1==e.length&&e[0][2]){var n=e[0][0],i=e[0][1];return function(t){return null!=t&&t[n]===i&&(i!==gr||n in Qe(t))}}return function(t){return Nt(t,e)}}function Ht(n,i){var r=di(n),o=Ue(n)&&qe(i),s=n+"";return n=tn(n),function(t){if(null==t)return!1;var e=s;if(t=Qe(t),(r||!o)&&!(e in t)){if(null==(t=1==n.length?t:Pt(t,zt(n,0,-1))))return!1;e=hn(n),t=Qe(t)}return t[e]===i?i!==gr||e in t:Dt(i,t[e],gr,!0)}}function jt(e){return function(t){return null==t?gr:t[e]}}function Bt(t,e){for(var n=t?e.length:0;n--;){var i=e[n];if(i!=r&&je(i)){var r=i;C.call(t,i,1)}}return t}function Ut(t,e){return t+L(B()*(e-t+1))}var Wt=Y?function(t,e){return Y.set(t,e),t}:ir;function zt(t,e,n){var i=-1,r=t.length;(e=null!=e&&+e||0)<0&&(e=r<-e?0:r+e),(n=n===gr||r<n?r:+n||0)<0&&(n+=r),r=n<e?0:n-e>>>0,e>>>=0;for(var o=O(r);++i<r;)o[i]=t[i+e];return o}function qt(t,i){var r;return St(t,function(t,e,n){return!(r=i(t,e,n))}),!!r}function Gt(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Xt(t,n,i){var e=Re(),r=-1;return n=at(n,function(t){return e(t)}),Gt(Vt(t,function(e){return{criteria:at(n,function(t){return t(e)}),index:++r,value:e}}),function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var l=Po(r[i],o[i]);if(l){if(a<=i)return l;var u=n[i];return l*("asc"===u||!0===u?1:-1)}}return t.index-e.index}(t,e,i)})}function Yt(t,e){var n=-1,i=Pe(),r=t.length,o=i===No,s=o&&Rr<=r,a=s?le():null,l=[];a?(i=nt,o=!1):(s=!1,a=e?[]:l);t:for(;++n<r;){var u=t[n],c=e?e(u,n,t):u;if(o&&u==u){for(var h=a.length;h--;)if(a[h]===c)continue t;e&&a.push(c),l.push(u)}else i(a,c,0)<0&&((e||s)&&a.push(c),l.push(u))}return l}function Jt(t,e){for(var n=-1,i=e.length,r=O(i);++n<i;)r[n]=t[e[n]];return r}function Kt(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?zt(t,i?0:o,i?o+1:r):zt(t,i?o+1:0,i?r:o)}function $t(t,e){var n=t;n instanceof Q&&(n=n.value());for(var i=-1,r=e.length;++i<r;){var o=e[i];n=o.func.apply(o.thisArg,lt([n],o.args))}return n}function Zt(t,e,n){var i=0,r=t?t.length:i;if("number"==typeof e&&e==e&&r<=G){for(;i<r;){var o=i+r>>>1,s=t[o];(n?s<=e:s<e)&&null!==s?i=1+o:r=o}return r}return Qt(t,e,ir,n)}function Qt(t,e,n,i){e=n(e);for(var r=0,o=t?t.length:0,s=e!=e,a=null===e,l=e===gr;r<o;){var u=L((r+o)/2),c=n(t[u]),h=c!==gr,d=c==c;if(s)var f=d||i;else f=a?d&&h&&(i||null!=c):l?d&&(i||h):null!=c&&(i?c<=e:c<e);f?r=u+1:o=u}return F(o,q)}function te(o,s,t){if("function"!=typeof o)return ir;if(s===gr)return o;switch(t){case 1:return function(t){return o.call(s,t)};case 3:return function(t,e,n){return o.call(s,t,e,n)};case 4:return function(t,e,n,i){return o.call(s,t,e,n,i)};case 5:return function(t,e,n,i,r){return o.call(s,t,e,n,i,r)}}return function(){return o.apply(s,arguments)}}function ee(t){var e=new v(t.byteLength);return new k(e).set(new k(t)),e}function ne(t,e,n){for(var i=n.length,r=-1,o=V(t.length-i,0),s=-1,a=e.length,l=O(a+o);++s<a;)l[s]=e[s];for(;++r<i;)l[n[r]]=t[r];for(;o--;)l[s++]=t[r++];return l}function ie(t,e,n){for(var i=-1,r=n.length,o=-1,s=V(t.length-r,0),a=-1,l=e.length,u=O(s+l);++o<s;)u[o]=t[o];for(var c=o;++a<l;)u[c+a]=e[a];for(;++i<r;)u[c+n[i]]=t[o++];return u}function re(a,l){return function(t,i,e){var r=l?l():{};if(i=Re(i,e,3),di(t))for(var n=-1,o=t.length;++n<o;){var s=t[n];a(r,s,i(s,n,t),t)}else St(t,function(t,e,n){a(r,t,i(t,e,n),n)});return r}}function oe(l){return ui(function(t,e){var n=-1,i=null==t?0:e.length,r=2<i?e[i-2]:gr,o=2<i?e[2]:gr,s=1<i?e[i-1]:gr;for("function"==typeof r?(r=te(r,s,5),i-=2):i-=(r="function"==typeof s?s:gr)?1:0,o&&Be(e[0],e[1],o)&&(r=i<3?gr:r,i=1);++n<i;){var a=e[n];a&&l(t,a,r)}return t})}function se(o,s){return function(t,e){var n=t?De(t):0;if(!ze(n))return o(t,e);for(var i=s?n:-1,r=Qe(t);(s?i--:++i<n)&&!1!==e(r[i],i,r););return t}}function ae(l){return function(t,e,n){for(var i=Qe(t),r=n(t),o=r.length,s=l?o:-1;l?s--:++s<o;){var a=r[s];if(!1===e(i[a],a,i))break}return t}}function le(t){return I&&x?new et(t):null}function ue(o){return function(t){for(var e=-1,n=tr(Gi(t)),i=n.length,r="";++e<i;)r=o(r,n[e],e);return r}}function ce(i){return function(){var t=arguments;switch(t.length){case 0:return new i;case 1:return new i(t[0]);case 2:return new i(t[0],t[1]);case 3:return new i(t[0],t[1],t[2]);case 4:return new i(t[0],t[1],t[2],t[3]);case 5:return new i(t[0],t[1],t[2],t[3],t[4]);case 6:return new i(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new i(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=yt(i.prototype),n=i.apply(e,t);return gi(n)?n:e}}function he(o){return function t(e,n,i){i&&Be(e,n,i)&&(n=gr);var r=Me(e,o,gr,gr,gr,gr,gr,n);return r.placeholder=t.placeholder,r}}function de(n,i){return ui(function(t){var e=t[0];return null==e?e:(t.push(i),n.apply(gr,t))})}function fe(u,c){return function(t,e,n){if(n&&Be(t,e,n)&&(e=gr),1==(e=Re(e,n,3)).length){var i=function(t,e,n,i){for(var r=-1,o=t.length,s=i,a=s;++r<o;){var l=t[r],u=+e(l);n(u,s)&&(s=u,a=l)}return a}(t=di(t)?t:Ze(t),e,u,c);if(!t.length||i!==c)return i}return r=e,o=u,l=a=s=c,St(t,function(t,e,n){var i=+r(t,e,n);(o(i,a)||i===s&&i===l)&&(a=i,l=t)}),l;var r,o,s,a,l}}function pe(r,o){return function(t,e,n){if(e=Re(e,n,3),di(t)){var i=Do(t,e,o);return-1<i?t[i]:gr}return _t(t,e,r)}}function ve(i){return function(t,e,n){return t&&t.length?Do(t,e=Re(e,n,3),i):-1}}function ge(i){return function(t,e,n){return _t(t,e=Re(e,n,3),i,!0)}}function me(l){return function(){for(var r,o=arguments.length,t=l?o:-1,e=0,s=O(o);l?t--:++t<o;){var n=s[e++]=arguments[t];if("function"!=typeof n)throw new y(Pr);!r&&Z.prototype.thru&&"wrapper"==Le(n)&&(r=new Z([],!0))}for(t=r?-1:o;++t<o;){var i=Le(n=s[t]),a="wrapper"==i?Ie(n):gr;r=a&&We(a[0])&&a[1]==(xr|wr|Tr|_r)&&!a[4].length&&1==a[9]?r[Le(a[0])].apply(r,a[3]):1==n.length&&We(n)?r[i]():r.thru(n)}return function(){var t=arguments,e=t[0];if(r&&1==t.length&&di(e)&&e.length>=Rr)return r.plant(e).value();for(var n=0,i=o?s[n].apply(this,t):e;++n<o;)i=s[n].call(this,i);return i}}}function ye(i,r){return function(t,e,n){return"function"==typeof e&&n===gr&&di(t)?i(t,e):r(t,te(e,n,3))}}function Ae(i){return function(t,e,n){return"function"==typeof e&&n===gr||(e=te(e,n,3)),i(t,e,Fi)}}function be(i){return function(t,e,n){return"function"==typeof e&&n===gr||(e=te(e,n,3)),i(t,e)}}function we(s){return function(t,r,e){var o={};return r=Re(r,e,3),Rt(t,function(t,e,n){var i=r(t,e,n);t=s?t:i,o[e=s?i:e]=t}),o}}function Se(i){return function(t,e,n){return t=Fo(t),(i?t:"")+_e(t,e,n)+(i?"":t)}}function Te(i){var r=ui(function(t,e){var n=Yo(e,r.placeholder);return Me(t,i,gr,e,n)});return r}function Ee(u,c){return function(t,e,n,i){var r,o,s,a,l=arguments.length<3;return"function"==typeof e&&i===gr&&di(t)?u(t,e,n,l):(r=t,o=Re(e,i,4),s=n,a=l,c(r,function(t,e,n){s=a?(a=!1,t):o(s,t,e,n)}),s)}}function xe(d,f,p,v,g,m,y,A,b,w){var S=f&xr,T=f&yr,E=f&Ar,x=f&wr,_=f&br,C=f&Sr,k=E?gr:ce(d);return function t(){for(var e=arguments.length,n=e,i=O(e);n--;)i[n]=arguments[n];if(v&&(i=ne(i,v,g)),m&&(i=ie(i,m,y)),x||C){var r=t.placeholder,o=Yo(i,r);if((e-=o.length)<w){var s=A?it(A):gr,a=V(w-e,0);f|=x?Tr:Er,f&=~(x?Er:Tr),_||(f&=~(yr|Ar));var l=[d,f,p,x?i:gr,x?o:gr,x?gr:i,x?gr:o,s,b,a],u=xe.apply(gr,l);return We(d)&&Ke(u,l),u.placeholder=r,u}}var c=T?p:this,h=E?c[d]:d;return A&&(i=function(t,e){for(var n=t.length,i=F(e.length,n),r=it(t);i--;){var o=e[i];t[i]=je(o,n)?r[o]:gr}return t}(i,A)),S&&b<i.length&&(i.length=b),this&&this!==Lo&&this instanceof t&&(h=k||ce(d)),h.apply(c,i)}}function _e(t,e,n){var i=t.length;if((e=+e)<=i||!D(e))return"";var r=e-i;return Ki(n=null==n?" ":n+"",R(r/n.length)).slice(0,r)}function Ce(s,t,a,l){var u=t&yr,c=ce(s);return function t(){for(var e=-1,n=arguments.length,i=-1,r=l.length,o=O(r+n);++i<r;)o[i]=l[i];for(;n--;)o[i++]=arguments[++e];return(this&&this!==Lo&&this instanceof t?c:s).apply(u?a:this,o)}}function ke(t){var n=r[t];return function(t,e){return(e=e!==gr&&+e||0)?(e=T(10,e),n(t*e)/e):n(t)}}function Oe(o){return function(t,e,n,i){var r=Re(n);return null==n&&r===gt?Zt(t,e,o):Qt(t,e,r(n,i,1),o)}}function Me(t,e,n,i,r,o,s,a){var l=e&Ar;if(!l&&"function"!=typeof t)throw new y(Pr);var u=i?i.length:0;if(u||(e&=~(Tr|Er),i=r=gr),u-=r?r.length:0,e&Er){var c=i,h=r;i=r=gr}var d,f,p,v=l?gr:Ie(t),g=[t,e,n,i,r,c,h,o,s,a];if(v&&(function(t,e){var n=t[1],i=e[1],r=n|i,o=r<xr,s=i==xr&&n==wr||i==xr&&n==_r&&t[7].length<=e[8]||i==(xr|_r)&&n==wr;if(o||s){i&yr&&(t[2]=e[2],r|=n&yr?0:br);var a=e[3];if(a){var l=t[3];t[3]=l?ne(l,a,e[4]):it(a),t[4]=l?Yo(t[3],Dr):it(e[4])}(a=e[5])&&(l=t[5],t[5]=l?ie(l,a,e[6]):it(a),t[6]=l?Yo(t[5],Dr):it(e[6])),(a=e[7])&&(t[7]=it(a)),i&xr&&(t[8]=null==t[8]?e[8]:F(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}}(g,v),e=g[1],a=g[9]),g[9]=null==a?l?0:t.length:V(a-u,0)||0,e==yr)var m=(d=g[0],f=g[2],p=ce(d),function t(){return(this&&this!==Lo&&this instanceof t?p:d).apply(f,arguments)});else m=e!=Tr&&e!=(yr|Tr)||g[4].length?xe.apply(gr,g):Ce.apply(gr,g);return(v?Wt:Ke)(m,g)}function Re(t,e,n){var i=K.callback||nr;return i=i===nr?gt:i,n?i(t,e,n):i}var Ie=Y?function(t){return Y.get(t)}:lr;function Le(t){for(var e=t.name+"",n=J[e],i=n?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Pe(t,e,n){var i=K.indexOf||un;return i=i===un?No:i,t?i(t,e,n):i}var De=jt("length");function Ne(t){for(var e=Ui(t),n=e.length;n--;)e[n][2]=qe(e[n][1]);return e}function Ve(t,e){var n=null==t?gr:t[e];return mi(n)?n:gr}function Fe(t,e,n){null==t||Ue(e,t)||(t=1==(e=tn(e)).length?t:Pt(t,zt(e,0,-1)),e=hn(e));var i=null==t?t:t[e];return null==i?gr:i.apply(t,n)}function He(t){return null!=t&&ze(De(t))}function je(t,e){return t="number"==typeof t||Eo.test(t)?+t:-1,e=null==e?X:e,-1<t&&t%1==0&&t<e}function Be(t,e,n){if(gi(n)){var i=typeof e;if("number"==i?He(n)&&je(e,n.length):"string"==i&&e in n){var r=n[e];return t==t?t===r:r!=r}}}function Ue(t,e){var n=typeof t;return!!("string"==n&&po.test(t)||"number"==n)||!di(t)&&(!fo.test(t)||null!=e&&t in Qe(e))}function We(t){var e=Le(t),n=K[e];if("function"==typeof n&&e in Q.prototype){if(t===n)return 1;var i=Ie(n);return i&&t===i[0]}}function ze(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=X}function qe(t){return t==t&&!gi(t)}function Ge(t,e){t=Qe(t);for(var n=-1,i=e.length,r={};++n<i;){var o=e[n];o in t&&(r[o]=t[o])}return r}function Xe(t,i){var r={};return Mt(t,function(t,e,n){i(t,e,n)&&(r[e]=t)}),r}var Ye,Je,Ke=(Je=Ye=0,function(t,e){var n=Gn(),i=Mr-(n-Je);if(Je=n,0<i){if(++Ye>=Or)return t}else Ye=0;return Wt(t,e)});function $e(t){for(var e=Fi(t),n=e.length,i=n&&t.length,r=!!i&&ze(i)&&(di(t)||hi(t)),o=-1,s=[];++o<n;){var a=e[o];(r&&je(a,i)||A.call(t,a))&&s.push(a)}return s}function Ze(t){return null==t?[]:He(t)?gi(t)?t:d(t):zi(t)}function Qe(t){return gi(t)?t:d(t)}function tn(t){if(di(t))return t;var r=[];return Fo(t).replace(vo,function(t,e,n,i){r.push(n?i.replace(Ao,"$1"):e||t)}),r}function en(t){return t instanceof Q?t.clone():new Z(t.__wrapped__,t.__chain__,it(t.__actions__))}var nn=ui(function(t,e){return Xo(t)&&He(t)?wt(t,Ct(e,!1,!0)):[]});function rn(t,e,n){return t&&t.length?((n?Be(t,e,n):null==e)&&(e=1),zt(t,e<0?0:e)):[]}function on(t,e,n){var i=t?t.length:0;return i?((n?Be(t,e,n):null==e)&&(e=1),zt(t,0,(e=i-(+e||0))<0?0:e)):[]}var sn=ve(),an=ve(!0);function ln(t){return t?t[0]:gr}function un(t,e,n){var i=t?t.length:0;if(!i)return-1;if("number"==typeof n)n=n<0?V(i+n,0):n;else if(n){var r=Zt(t,e);return r<i&&(e==e?e===t[r]:t[r]!=t[r])?r:-1}return No(t,e,n||0)}var cn=ui(function(t){for(var e=t.length,n=e,i=O(c),r=Pe(),o=r===No,s=[];n--;){var a=t[n]=He(a=t[n])?a:[];i[n]=o&&120<=a.length?le(n&&a):null}var l=t[0],u=-1,c=l?l.length:0,h=i[0];t:for(;++u<c;)if(a=l[u],(h?nt(h,a):r(s,a,0))<0){for(n=e;--n;){var d=i[n];if((d?nt(d,a):r(t[n],a,0))<0)continue t}h&&h.push(a),s.push(a)}return s});function hn(t){var e=t?t.length:0;return e?t[e-1]:gr}var dn=ui(function(t,e){var n=pt(t,e=Ct(e));return Bt(t,e.sort(Po)),n});function fn(t){return rn(t,1)}var pn=Oe(),vn=Oe(!0);var gn=ui(function(t){return Yt(Ct(t,!1,!0))});function mn(t,e,n,i){if(!t||!t.length)return[];null!=e&&"boolean"!=typeof e&&(n=Be(t,e,i=n)?gr:e,e=!1);var r=Re();return null==n&&r===gt||(n=r(n,i,3)),(e&&Pe()===No?function(t,e){for(var n,i=-1,r=t.length,o=-1,s=[];++i<r;){var a=t[i],l=e?e(a,i,t):a;i&&n===l||(n=l,s[++o]=a)}return s}:Yt)(t,n)}function yn(t){if(!t||!t.length)return[];var e=-1,n=0;t=st(t,function(t){return He(t)&&(n=V(t.length,n),1)});for(var i=O(n);++e<n;)i[e]=at(t,jt(e));return i}function An(t,e,n){if(!t||!t.length)return[];var i=yn(t);return null==e?i:(e=te(e,n,4),at(i,function(t){return ut(t,e,gr,!0)}))}var bn=ui(function(t,e){return He(t)?wt(t,e):[]});var wn=ui(yn);function Sn(t,e){var n=-1,i=t?t.length:0,r={};for(!i||e||di(t[0])||(e=[]);++n<i;){var o=t[n];e?r[o]=e[n]:o&&(r[o[0]]=o[1])}return r}var Tn=ui(function(t){var e=t.length,n=2<e?t[e-2]:gr,i=1<e?t[e-1]:gr;return 2<e&&"function"==typeof n?e-=2:(n=1<e&&"function"==typeof i?(--e,i):gr,i=gr),t.length=e,An(t,n,i)});function En(t){var e=K(t);return e.__chain__=!0,e}function xn(t,e,n){return e.call(n,t)}var _n=ui(function(e){return e=Ct(e),this.thru(function(t){return function(t,e){for(var n=-1,i=t.length,r=-1,o=e.length,s=O(i+o);++n<i;)s[n]=t[n];for(;++r<o;)s[n++]=e[r];return s}(di(t)?t:[Qe(t)],e)})});var Cn=ui(function(t,e){return pt(t,Ct(e))}),kn=re(function(t,e,n){A.call(t,n)?++t[n]:t[n]=1});function On(t,e,n){var i=di(t)?ot:Et;return n&&Be(t,e,n)&&(e=gr),"function"==typeof e&&n===gr||(e=Re(e,n,3)),i(t,e)}function Mn(t,e,n){return(di(t)?st:xt)(t,e=Re(e,n,3))}var Rn=pe(St),In=pe(Tt,!0);var Ln=ye(rt,St),Pn=ye(function(t,e){for(var n=t.length;n--&&!1!==e(t[n],n,t););return t},Tt),Dn=re(function(t,e,n){A.call(t,n)?t[n].push(e):t[n]=[e]});function Nn(t,e,n,i){var r=t?De(t):0;return ze(r)||(r=(t=zi(t)).length),n="number"!=typeof n||i&&Be(e,n,i)?0:n<0?V(r+n,0):n||0,"string"==typeof t||!di(t)&&wi(t)?n<=r&&-1<t.indexOf(e,n):!!r&&-1<Pe(t,e,n)}var Vn=re(function(t,e,n){t[n]=e}),Fn=ui(function(t,n,i){var r=-1,o="function"==typeof n,s=Ue(n),a=He(t)?O(t.length):[];return St(t,function(t){var e=o?n:s&&null!=t?t[n]:gr;a[++r]=e?e.apply(t,i):Fe(t,n,i)}),a});function Hn(t,e,n){return(di(t)?at:Vt)(t,e=Re(e,n,3))}var jn=re(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Bn=Ee(ut,St),Un=Ee(function(t,e,n,i){var r=t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n},Tt);function Wn(t,e,n){if(n?Be(t,e,n):null==e)return 0<(i=(t=Ze(t)).length)?t[Ut(0,i-1)]:gr;var i,r=-1,o=Ei(t),s=(i=o.length)-1;for(e=F(!(e<0)&&+e||0,i);++r<e;){var a=Ut(r,s),l=o[a];o[a]=o[r],o[r]=l}return o.length=e,o}function zn(t,e,n){var i=di(t)?ct:qt;return n&&Be(t,e,n)&&(e=gr),"function"==typeof e&&n===gr||(e=Re(e,n,3)),i(t,e)}var qn=ui(function(t,e){if(null==t)return[];var n=e[2];return n&&Be(e[0],e[1],n)&&(e.length=1),Xt(t,Ct(e),[])});var Gn=H||function(){return(new n).getTime()};function Xn(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new y(Pr);var i=t;t=e,e=i}return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=gr),n}}var Yn=ui(function(t,e,n){var i=yr;if(n.length){var r=Yo(n,Yn.placeholder);i|=Tr}return Me(t,i,e,n,r)}),Jn=ui(function(t,e){for(var n=-1,i=(e=e.length?Ct(e):Ni(t)).length;++n<i;){var r=e[n];t[r]=Me(t[r],yr,t)}return t}),Kn=ui(function(t,e,n){var i=yr|Ar;if(n.length){var r=Yo(n,Kn.placeholder);i|=Tr}return Me(e,i,t,n,r)}),$n=he(wr),Zn=he(Sr);function Qn(i,r,t){var o,s,a,l,u,c,h,d=0,f=!1,p=!0;if("function"!=typeof i)throw new y(Pr);if(r=!(r<0)&&+r||0,!0===t){var v=!0;p=!1}else gi(t)&&(v=!!t.leading,f="maxWait"in t&&V(+t.maxWait||0,r),p="trailing"in t?!!t.trailing:p);function e(t,e){e&&w(e),s=c=h=gr,t&&(d=Gn(),a=i.apply(u,o),c||s||(o=u=gr))}function g(){var t=r-(Gn()-l);t<=0||r<t?e(h,s):c=_(g,t)}function m(){e(p,c)}function n(){if(o=arguments,l=Gn(),u=this,h=p&&(c||!v),!1===f)var t=v&&!c;else{s||v||(d=l);var e=f-(l-d),n=e<=0||f<e;n?(s=s&&w(s),d=l,a=i.apply(u,o)):s=s||_(m,e)}return n&&c?c=w(c):c||r===f||(c=_(g,r)),t&&(n=!0,a=i.apply(u,o)),!n||c||s||(o=u=gr),a}return n.cancel=function(){c&&w(c),s&&w(s),d=0,s=c=h=gr},n}var ti=ui(function(t,e){return bt(t,1,e)}),ei=ui(function(t,e,n){return bt(t,e,n)}),ni=me(),ii=me(!0);function ri(r,o){if("function"!=typeof r||o&&"function"!=typeof o)throw new y(Pr);var s=function(){var t=arguments,e=o?o.apply(this,t):t[0],n=s.cache;if(n.has(e))return n.get(e);var i=r.apply(this,t);return s.cache=n.set(e,i),i};return s.cache=new ri.Cache,s}var oi=ui(function(n,i){if(i=Ct(i),"function"!=typeof n||!ot(i,Vo))throw new y(Pr);var r=i.length;return ui(function(t){for(var e=F(t.length,r);e--;)t[e]=i[e](t[e]);return n.apply(this,t)})});var si=Te(Tr),ai=Te(Er),li=ui(function(t,e){return Me(t,_r,gr,gr,gr,Ct(e))});function ui(o,s){if("function"!=typeof o)throw new y(Pr);return s=V(s===gr?o.length-1:+s||0,0),function(){for(var t=arguments,e=-1,n=V(t.length-s,0),i=O(n);++e<n;)i[e]=t[s+e];switch(s){case 0:return o.call(this,i);case 1:return o.call(this,t[0],i);case 2:return o.call(this,t[0],t[1],i)}var r=O(s+1);for(e=-1;++e<s;)r[e]=t[e];return r[s]=i,o.apply(this,r)}}function ci(t,e){return e<t}function hi(t){return Xo(t)&&He(t)&&A.call(t,"callee")&&!E.call(t,"callee")}var di=P||function(t){return Xo(t)&&ze(t.length)&&b.call(t)==Vr};function fi(t,e,n,i){var r=(n="function"==typeof n?te(n,i,3):gr)?n(t,e):gr;return r===gr?Dt(t,e,n):!!r}function pi(t){return Xo(t)&&"string"==typeof t.message&&b.call(t)==jr}function vi(t){return gi(t)&&b.call(t)==Br}function gi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function mi(t){return null!=t&&(vi(t)?p.test(c.call(t)):Xo(t)&&To.test(t))}function yi(t){return"number"==typeof t||Xo(t)&&b.call(t)==Ur}function Ai(t){var e,n;return!(!Xo(t)||b.call(t)!=Wr||hi(t)||!(A.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e))&&(Mt(t,function(t,e){n=e}),n===gr||A.call(t,n))}function bi(t){return gi(t)&&b.call(t)==zr}function wi(t){return"string"==typeof t||Xo(t)&&b.call(t)==qr}function Si(t){return Xo(t)&&ze(t.length)&&!!Ro[b.call(t)]}function Ti(t,e){return t<e}function Ei(t){var e=t?De(t):0;return ze(e)?e?it(t):[]:zi(t)}function xi(t){return vt(t,Fi(t))}var _i=oe(function o(s,a,l,u,c){if(!gi(s))return s;var h=He(a)&&(di(a)||Si(a)),d=h?gr:Vi(a);return rt(d||a,function(t,e){if(d&&(t=a[e=t]),Xo(t))!function(t,e,n,i,r,o,s){for(var a=o.length,l=e[n];a--;)if(o[a]==l)return t[n]=s[a];var u=t[n],c=r?r(u,l,n,t,e):gr,h=c===gr;h&&(He(c=l)&&(di(l)||Si(l))?c=di(u)?u:He(u)?it(u):[]:Ai(l)||hi(l)?c=hi(u)?xi(u):Ai(u)?u:{}:h=!1),o.push(l),s.push(c),h?t[n]=i(c,l,r,o,s):(c==c?c!==u:u==u)&&(t[n]=c)}(s,a,e,o,l,u=u||[],c=c||[]);else{var n=s[e],i=l?l(n,t,e,s,a):gr,r=i===gr;r&&(i=t),i===gr&&(!h||e in s)||!r&&(i==i?i===n:n!=n)||(s[e]=i)}}),s}),Ci=oe(function(t,e,n){return n?dt(t,e,n):ft(t,e)});var ki=de(Ci,function(t,e){return t===gr?e:t}),Oi=de(_i,function t(e,n){return e===gr?n:_i(e,n,t)}),Mi=ge(Rt),Ri=ge(It),Ii=Ae(kt),Li=Ae(Ot),Pi=be(Rt),Di=be(It);function Ni(t){return Lt(t,Fi(t))}var Vi=N?function(t){var e=null==t?gr:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&He(t)?$e(t):gi(t)?N(t):[]}:$e;function Fi(t){if(null==t)return[];gi(t)||(t=d(t));var e=t.length;e=e&&ze(e)&&(di(t)||hi(t))&&e||0;for(var n=t.constructor,i=-1,r="function"==typeof n&&n.prototype===t,o=O(e),s=0<e;++i<e;)o[i]=i+"";for(var a in t)s&&je(a,e)||"constructor"==a&&(r||!A.call(t,a))||o.push(a);return o}var Hi=we(!0),ji=we(),Bi=ui(function(t,e){if(null==t)return{};if("function"!=typeof e[0])return e=at(Ct(e),s),Ge(t,wt(Fi(t),e));var i=te(e[0],e[1],3);return Xe(t,function(t,e,n){return!i(t,e,n)})});function Ui(t){t=Qe(t);for(var e=-1,n=Vi(t),i=n.length,r=O(i);++e<i;){var o=n[e];r[e]=[o,t[o]]}return r}var Wi=ui(function(t,e){return null==t?{}:"function"==typeof e[0]?Xe(t,te(e[0],e[1],3)):Ge(t,Ct(e))});function zi(t){return Jt(t,Vi(t))}var qi=ue(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)});function Gi(t){return(t=Fo(t))&&t.replace(xo,Uo).replace(yo,"")}var Xi=ue(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});var Yi=Se(),Ji=Se(!0);function Ki(t,e){var n="";if(t=Fo(t),(e=+e)<1||!t||!D(e))return n;for(;e%2&&(n+=t),t+=t,e=L(e/2););return n}var $i=ue(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zi=ue(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))});function Qi(t,e,n){var i=t;return(t=Fo(t))?(n?Be(i,e,n):null==e)?t.slice(Jo(t),Ko(t)+1):(e+="",t.slice(Ho(t,e),jo(t,e)+1)):t}function tr(t,e,n){return n&&Be(t,e,n)&&(e=gr),(t=Fo(t)).match(e||ko)||[]}var er=ui(function(t,e){try{return t.apply(gr,e)}catch(t){return pi(t)?t:new i(t)}});function nr(t,e,n){return n&&Be(t,e,n)&&(e=gr),Xo(t)?rr(t):gt(t,e)}function ir(t){return t}function rr(t){return Ft(mt(t,!0))}var or=ui(function(e,n){return function(t){return Fe(t,e,n)}}),sr=ui(function(e,n){return function(t){return Fe(e,t,n)}});function ar(i,t,e){if(null==e){var n=gi(t),r=n?Vi(t):gr,o=r&&r.length?Lt(t,r):gr;(o?o.length:n)||(o=!1,e=t,t=i,i=this)}o=o||Lt(t,Vi(t));var s=!0,a=-1,l=vi(i),u=o.length;!1===e?s=!1:gi(e)&&"chain"in e&&(s=e.chain);for(;++a<u;){var c=o[a],h=t[c];i[c]=h,l&&(i.prototype[c]=function(n){return function(){var t=this.__chain__;if(s||t){var e=i(this.__wrapped__);return(e.__actions__=it(this.__actions__)).push({func:n,args:arguments,thisArg:i}),e.__chain__=t,e}return n.apply(i,lt([this.value()],arguments))}}(h))}return i}function lr(){}function ur(t){return Ue(t)?jt(t):(n=(e=t)+"",e=tn(e),function(t){return Pt(t,e,n)});var e,n}var cr,hr=ke("ceil"),dr=ke("floor"),fr=fe(ci,U),pr=fe(Ti,W),vr=ke("round");return K.prototype=$.prototype,(Z.prototype=yt($.prototype)).constructor=Z,(Q.prototype=yt($.prototype)).constructor=Q,tt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},tt.prototype.get=function(t){return"__proto__"==t?gr:this.__data__[t]},tt.prototype.has=function(t){return"__proto__"!=t&&A.call(this.__data__,t)},tt.prototype.set=function(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this},et.prototype.push=function(t){var e=this.data;"string"==typeof t||gi(t)?e.set.add(t):e.hash[t]=!0},ri.Cache=tt,K.after=function(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new y(Pr);var n=t;t=e,e=n}return t=D(t=+t)?t:0,function(){if(--t<1)return e.apply(this,arguments)}},K.ary=function(t,e,n){return n&&Be(t,e,n)&&(e=gr),e=t&&null==e?t.length:V(+e||0,0),Me(t,xr,gr,gr,gr,gr,e)},K.assign=Ci,K.at=Cn,K.before=Xn,K.bind=Yn,K.bindAll=Jn,K.bindKey=Kn,K.callback=nr,K.chain=En,K.chunk=function(t,e,n){e=(n?Be(t,e,n):null==e)?1:V(L(e)||1,1);for(var i=0,r=t?t.length:0,o=-1,s=O(R(r/e));i<r;)s[++o]=zt(t,i,i+=e);return s},K.compact=function(t){for(var e=-1,n=t?t.length:0,i=-1,r=[];++e<n;){var o=t[e];o&&(r[++i]=o)}return r},K.constant=function(t){return function(){return t}},K.countBy=kn,K.create=function(t,e,n){var i=yt(t);return n&&Be(t,e,n)&&(e=gr),e?ft(i,e):i},K.curry=$n,K.curryRight=Zn,K.debounce=Qn,K.defaults=ki,K.defaultsDeep=Oi,K.defer=ti,K.delay=ei,K.difference=nn,K.drop=rn,K.dropRight=on,K.dropRightWhile=function(t,e,n){return t&&t.length?Kt(t,Re(e,n,3),!0,!0):[]},K.dropWhile=function(t,e,n){return t&&t.length?Kt(t,Re(e,n,3),!0):[]},K.fill=function(t,e,n,i){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&Be(t,e,n)&&(n=0,i=r),function(t,e,n,i){var r=t.length;for((n=null!=n&&+n||0)<0&&(n=r<-n?0:r+n),(i=i===gr||r<i?r:+i||0)<0&&(i+=r),r=i<n?0:i>>>0,n>>>=0;n<r;)t[n++]=e;return t}(t,e,n,i)):[]},K.filter=Mn,K.flatten=function(t,e,n){var i=t?t.length:0;return n&&Be(t,e,n)&&(e=!1),i?Ct(t,e):[]},K.flattenDeep=function(t){return t&&t.length?Ct(t,!0):[]},K.flow=ni,K.flowRight=ii,K.forEach=Ln,K.forEachRight=Pn,K.forIn=Ii,K.forInRight=Li,K.forOwn=Pi,K.forOwnRight=Di,K.functions=Ni,K.groupBy=Dn,K.indexBy=Vn,K.initial=function(t){return on(t,1)},K.intersection=cn,K.invert=function(t,e,n){n&&Be(t,e,n)&&(e=gr);for(var i=-1,r=Vi(t),o=r.length,s={};++i<o;){var a=r[i],l=t[a];e?A.call(s,l)?s[l].push(a):s[l]=[a]:s[l]=a}return s},K.invoke=Fn,K.keys=Vi,K.keysIn=Fi,K.map=Hn,K.mapKeys=Hi,K.mapValues=ji,K.matches=rr,K.matchesProperty=function(t,e){return Ht(t,mt(e,!0))},K.memoize=ri,K.merge=_i,K.method=or,K.methodOf=sr,K.mixin=ar,K.modArgs=oi,K.negate=function(t){if("function"!=typeof t)throw new y(Pr);return function(){return!t.apply(this,arguments)}},K.omit=Bi,K.once=function(t){return Xn(2,t)},K.pairs=Ui,K.partial=si,K.partialRight=ai,K.partition=jn,K.pick=Wi,K.pluck=function(t,e){return Hn(t,ur(e))},K.property=ur,K.propertyOf=function(e){return function(t){return Pt(e,tn(t),t+"")}},K.pull=function(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var n=0,i=Pe(),r=t.length;++n<r;)for(var o=0,s=t[n];-1<(o=i(e,s,o));)C.call(e,o,1);return e},K.pullAt=dn,K.range=function(t,e,n){n&&Be(t,e,n)&&(e=n=gr),t=+t||0,null==e?(e=t,t=0):e=+e||0;for(var i=-1,r=V(R((e-t)/((n=null==n?1:+n||0)||1)),0),o=O(r);++i<r;)o[i]=t,t+=n;return o},K.rearg=li,K.reject=function(t,i,e){var n=di(t)?st:xt;return i=Re(i,e,3),n(t,function(t,e,n){return!i(t,e,n)})},K.remove=function(t,e,n){var i=[];if(!t||!t.length)return i;var r=-1,o=[],s=t.length;for(e=Re(e,n,3);++r<s;){var a=t[r];e(a,r,t)&&(i.push(a),o.push(r))}return Bt(t,o),i},K.rest=fn,K.restParam=ui,K.set=function(t,e,n){if(null==t)return t;for(var i=e+"",r=-1,o=(e=null!=t[i]||Ue(e,t)?[i]:tn(e)).length,s=o-1,a=t;null!=a&&++r<o;){var l=e[r];gi(a)&&(r==s?a[l]=n:null==a[l]&&(a[l]=je(e[r+1])?[]:{})),a=a[l]}return t},K.shuffle=function(t){return Wn(t,W)},K.slice=function(t,e,n){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Be(t,e,n)&&(e=0,n=i),zt(t,e,n)):[]},K.sortBy=function(t,i,e){if(null==t)return[];e&&Be(t,i,e)&&(i=gr);var r=-1;return i=Re(i,e,3),Gt(Vt(t,function(t,e,n){return{criteria:i(t,e,n),index:++r,value:t}}),Bo)},K.sortByAll=qn,K.sortByOrder=function(t,e,n,i){return null==t?[]:(i&&Be(e,n,i)&&(n=gr),di(e)||(e=null==e?[]:[e]),di(n)||(n=null==n?[]:[n]),Xt(t,e,n))},K.spread=function(e){if("function"!=typeof e)throw new y(Pr);return function(t){return e.apply(this,t)}},K.take=function(t,e,n){return t&&t.length?((n?Be(t,e,n):null==e)&&(e=1),zt(t,0,e<0?0:e)):[]},K.takeRight=function(t,e,n){var i=t?t.length:0;return i?((n?Be(t,e,n):null==e)&&(e=1),zt(t,(e=i-(+e||0))<0?0:e)):[]},K.takeRightWhile=function(t,e,n){return t&&t.length?Kt(t,Re(e,n,3),!1,!0):[]},K.takeWhile=function(t,e,n){return t&&t.length?Kt(t,Re(e,n,3)):[]},K.tap=function(t,e,n){return e.call(n,t),t},K.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new y(Pr);return!1===n?i=!1:gi(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Qn(t,e,{leading:i,maxWait:+e,trailing:r})},K.thru=xn,K.times=function(t,e,n){if((t=L(t))<1||!D(t))return[];var i=-1,r=O(F(t,z));for(e=te(e,n,1);++i<t;)i<z?r[i]=e(i):e(i);return r},K.toArray=Ei,K.toPlainObject=xi,K.transform=function(t,i,r,e){var n=di(t)||Si(t);if(i=Re(i,e,4),null==r)if(n||gi(t)){var o=t.constructor;r=n?di(t)?new o:[]:yt(vi(o)?o.prototype:gr)}else r={};return(n?rt:Rt)(t,function(t,e,n){return i(r,t,e,n)}),r},K.union=gn,K.uniq=mn,K.unzip=yn,K.unzipWith=An,K.values=zi,K.valuesIn=function(t){return Jt(t,Fi(t))},K.where=function(t,e){return Mn(t,Ft(e))},K.without=bn,K.wrap=function(t,e){return Me(e=null==e?ir:e,Tr,gr,[t],[])},K.xor=function(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(He(n))var i=i?lt(wt(i,n),wt(n,i)):n}return i?Yt(i):[]},K.zip=wn,K.zipObject=Sn,K.zipWith=Tn,K.backflow=ii,K.collect=Hn,K.compose=ii,K.each=Ln,K.eachRight=Pn,K.extend=Ci,K.iteratee=nr,K.methods=Ni,K.object=Sn,K.select=Mn,K.tail=fn,K.unique=mn,ar(K,K),K.add=function(t,e){return(+t||0)+(+e||0)},K.attempt=er,K.camelCase=qi,K.capitalize=function(t){return(t=Fo(t))&&t.charAt(0).toUpperCase()+t.slice(1)},K.ceil=hr,K.clone=function(t,e,n,i){return e&&"boolean"!=typeof e&&Be(t,e,n)?e=!1:"function"==typeof e&&(i=n,n=e,e=!1),"function"==typeof n?mt(t,e,te(n,i,3)):mt(t,e)},K.cloneDeep=function(t,e,n){return"function"==typeof e?mt(t,!0,te(e,n,3)):mt(t,!0)},K.deburr=Gi,K.endsWith=function(t,e,n){e+="";var i=(t=Fo(t)).length;return n=n===gr?i:F(!(n<0)&&+n||0,i),0<=(n-=e.length)&&t.indexOf(e,n)==n},K.escape=function(t){return(t=Fo(t))&&lo.test(t)?t.replace(so,Wo):t},K.escapeRegExp=function(t){return(t=Fo(t))&&mo.test(t)?t.replace(go,zo):t||"(?:)"},K.every=On,K.find=Rn,K.findIndex=sn,K.findKey=Mi,K.findLast=In,K.findLastIndex=an,K.findLastKey=Ri,K.findWhere=function(t,e){return Rn(t,Ft(e))},K.first=ln,K.floor=dr,K.get=function(t,e,n){var i=null==t?gr:Pt(t,tn(e),e+"");return i===gr?n:i},K.gt=ci,K.gte=function(t,e){return e<=t},K.has=function(t,e){if(null==t)return!1;var n=A.call(t,e);if(!n&&!Ue(e)){if(null==(t=1==(e=tn(e)).length?t:Pt(t,zt(e,0,-1))))return!1;e=hn(e),n=A.call(t,e)}return n||ze(t.length)&&je(e,t.length)&&(di(t)||hi(t))},K.identity=ir,K.includes=Nn,K.indexOf=un,K.inRange=function(t,e,n){return e=+e||0,n===gr?(n=e,e=0):n=+n||0,t>=F(e,n)&&t<V(e,n)},K.isArguments=hi,K.isArray=di,K.isBoolean=function(t){return!0===t||!1===t||Xo(t)&&b.call(t)==Fr},K.isDate=function(t){return Xo(t)&&b.call(t)==Hr},K.isElement=function(t){return!!t&&1===t.nodeType&&Xo(t)&&!Ai(t)},K.isEmpty=function(t){return null==t||(He(t)&&(di(t)||wi(t)||hi(t)||Xo(t)&&vi(t.splice))?!t.length:!Vi(t).length)},K.isEqual=fi,K.isError=pi,K.isFinite=function(t){return"number"==typeof t&&D(t)},K.isFunction=vi,K.isMatch=function(t,e,n,i){return n="function"==typeof n?te(n,i,3):gr,Nt(t,Ne(e),n)},K.isNaN=function(t){return yi(t)&&t!=+t},K.isNative=mi,K.isNull=function(t){return null===t},K.isNumber=yi,K.isObject=gi,K.isPlainObject=Ai,K.isRegExp=bi,K.isString=wi,K.isTypedArray=Si,K.isUndefined=function(t){return t===gr},K.kebabCase=Xi,K.last=hn,K.lastIndexOf=function(t,e,n){var i=t?t.length:0;if(!i)return-1;var r=i;if("number"==typeof n)r=(n<0?V(i+n,0):F(n||0,i-1))+1;else if(n){var o=t[r=Zt(t,e,!0)-1];return(e==e?e===o:o!=o)?r:-1}if(e!=e)return Go(t,r,!0);for(;r--;)if(t[r]===e)return r;return-1},K.lt=Ti,K.lte=function(t,e){return t<=e},K.max=fr,K.min=pr,K.noConflict=function(){return Lo._=f,this},K.noop=lr,K.now=Gn,K.pad=function(t,e,n){e=+e;var i=(t=Fo(t)).length;if(e<=i||!D(e))return t;var r=(e-i)/2,o=L(r);return(n=_e("",R(r),n)).slice(0,o)+t+n},K.padLeft=Yi,K.padRight=Ji,K.parseInt=function(t,e,n){return e=(n?Be(t,e,n):null==e)?0:e&&+e,t=Qi(t),j(t,e||(So.test(t)?16:10))},K.random=function(t,e,n){n&&Be(t,e,n)&&(e=n=gr);var i=null==t,r=null==e;if(null==n&&(r&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,r=!0)),i&&r&&(r=!(e=1)),t=+t||0,r?(e=t,t=0):e=+e||0,n||t%1||e%1){var o=B();return F(t+o*(e-t+S("1e-"+((o+"").length-1))),e)}return Ut(t,e)},K.reduce=Bn,K.reduceRight=Un,K.repeat=Ki,K.result=function(t,e,n){var i=null==t?gr:t[e];return i===gr&&(null==t||Ue(e,t)||(i=null==(t=1==(e=tn(e)).length?t:Pt(t,zt(e,0,-1)))?gr:t[hn(e)]),i=i===gr?n:i),vi(i)?i.call(t):i},K.round=vr,K.runInContext=t,K.size=function(t){var e=t?De(t):0;return ze(e)?e:Vi(t).length},K.snakeCase=$i,K.some=zn,K.sortedIndex=pn,K.sortedLastIndex=vn,K.startCase=Zi,K.startsWith=function(t,e,n){return t=Fo(t),n=null==n?0:F(!(n<0)&&+n||0,t.length),t.lastIndexOf(e,n)==n},K.sum=function(t,e,n){return n&&Be(t,e,n)&&(e=gr),1==(e=Re(e,n,3)).length?function(t,e){for(var n=t.length,i=0;n--;)i+=+e(t[n])||0;return i}(di(t)?t:Ze(t),e):(i=e,r=0,St(t,function(t,e,n){r+=+i(t,e,n)||0}),r);var i,r},K.template=function(s,t,e){var n=K.templateSettings;e&&Be(s,t,e)&&(t=e=gr),s=Fo(s),t=dt(ft({},e||t),n,ht);var a,l,i=dt(ft({},t.imports),n.imports,ht),r=Vi(i),o=Jt(i,r),u=0,c=t.interpolate||_o,h="__p += '",d=m((t.escape||_o).source+"|"+c.source+"|"+(c===ho?bo:_o).source+"|"+(t.evaluate||_o).source+"|$","g"),f="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Mo+"]")+"\n";s.replace(d,function(t,e,n,i,r,o){return n=n||i,h+=s.slice(u,o).replace(Co,qo),e&&(a=!0,h+="' +\n__e("+e+") +\n'"),r&&(l=!0,h+="';\n"+r+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=o+t.length,t}),h+="';\n";var p=t.variable;p||(h="with (obj) {\n"+h+"\n}\n"),h=(l?h.replace(no,""):h).replace(io,"$1").replace(ro,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=er(function(){return g(r,f+"return "+h).apply(gr,o)});if(v.source=h,pi(v))throw v;return v},K.trim=Qi,K.trimLeft=function(t,e,n){var i=t;return(t=Fo(t))?(n?Be(i,e,n):null==e)?t.slice(Jo(t)):t.slice(Ho(t,e+"")):t},K.trimRight=function(t,e,n){var i=t;return(t=Fo(t))?(n?Be(i,e,n):null==e)?t.slice(0,Ko(t)+1):t.slice(0,jo(t,e+"")+1):t},K.trunc=function(t,e,n){n&&Be(t,e,n)&&(e=gr);var i=Cr,r=kr;if(null!=e)if(gi(e)){var o="separator"in e?e.separator:o;i="length"in e?+e.length||0:i,r="omission"in e?Fo(e.omission):r}else i=+e||0;if(i>=(t=Fo(t)).length)return t;var s=i-r.length;if(s<1)return r;var a=t.slice(0,s);if(null==o)return a+r;if(bi(o)){if(t.slice(s).search(o)){var l,u,c=t.slice(0,s);for(o.global||(o=m(o.source,(wo.exec(o)||"")+"g")),o.lastIndex=0;l=o.exec(c);)u=l.index;a=a.slice(0,null==u?s:u)}}else if(t.indexOf(o,s)!=s){var h=a.lastIndexOf(o);-1<h&&(a=a.slice(0,h))}return a+r},K.unescape=function(t){return(t=Fo(t))&&ao.test(t)?t.replace(oo,$o):t},K.uniqueId=function(t){var e=++h;return Fo(t)+e},K.words=tr,K.all=On,K.any=zn,K.contains=Nn,K.eq=fi,K.detect=Rn,K.foldl=Bn,K.foldr=Un,K.head=ln,K.include=Nn,K.inject=Bn,ar(K,(cr={},Rt(K,function(t,e){K.prototype[e]||(cr[e]=t)}),cr),!1),K.sample=Wn,K.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return Wn(t,e)}):Wn(this.value())},K.VERSION=mr,rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){K[t].placeholder=K}),rt(["drop","take"],function(i,r){Q.prototype[i]=function(t){var e=this.__filtered__;if(e&&!r)return new Q(this);t=null==t?1:V(L(t)||0,0);var n=this.clone();return e?n.__takeCount__=F(n.__takeCount__,t):n.__views__.push({size:t,type:i+(n.__dir__<0?"Right":"")}),n},Q.prototype[i+"Right"]=function(t){return this.reverse()[i](t).reverse()}}),rt(["filter","map","takeWhile"],function(t,e){var i=e+1,r=i!=Lr;Q.prototype[t]=function(t,e){var n=this.clone();return n.__iteratees__.push({iteratee:Re(t,e,1),type:i}),n.__filtered__=n.__filtered__||r,n}}),rt(["first","last"],function(t,e){var n="take"+(e?"Right":"");Q.prototype[t]=function(){return this[n](1).value()[0]}}),rt(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");Q.prototype[t]=function(){return this.__filtered__?new Q(this):this[n](1)}}),rt(["pluck","where"],function(t,e){var n=e?"filter":"map",i=e?Ft:ur;Q.prototype[t]=function(t){return this[n](i(t))}}),Q.prototype.compact=function(){return this.filter(ir)},Q.prototype.reject=function(e,t){return e=Re(e,t,1),this.filter(function(t){return!e(t)})},Q.prototype.slice=function(t,e){t=null!=t&&+t||0;var n=this;return n.__filtered__&&(0<t||e<0)?new Q(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==gr&&(n=(e=+e||0)<0?n.dropRight(-e):n.take(e-t)),n)},Q.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},Q.prototype.toArray=function(){return this.take(W)},Rt(Q.prototype,function(h,t){var d=/^(?:filter|map|reject)|While$/.test(t),f=/^(?:first|last)$/.test(t),p=K[f?"take"+("last"==t?"Right":""):t];p&&(K.prototype[t]=function(){var e=f?[1]:arguments,n=this.__chain__,t=this.__wrapped__,i=!!this.__actions__.length,r=t instanceof Q,o=e[0],s=r||di(t);function a(t){return f&&n?p(t,1)[0]:p.apply(gr,lt([t],e))}s&&d&&"function"==typeof o&&1!=o.length&&(r=s=!1);var l={func:xn,args:[a],thisArg:gr},u=r&&!i;if(f&&!n)return u?((t=t.clone()).__actions__.push(l),h.call(t)):p.call(gr,this.value())[0];if(f||!s)return this.thru(a);t=u?t:new Q(this);var c=h.apply(t,e);return c.__actions__.push(l),new Z(c,n)})}),rt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var n=(/^(?:replace|split)$/.test(t)?u:a)[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(t);K.prototype[t]=function(){var e=arguments;return r&&!this.__chain__?n.apply(this.value(),e):this[i](function(t){return n.apply(t,e)})}}),Rt(Q.prototype,function(t,e){var n=K[e];if(n){var i=n.name+"";(J[i]||(J[i]=[])).push({name:e,func:n})}}),J[xe(gr,Ar).name]=[{name:"wrapper",func:gr}],Q.prototype.clone=function(){var t=new Q(this.__wrapped__);return t.__actions__=it(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=it(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=it(this.__views__),t},Q.prototype.reverse=function(){if(this.__filtered__){var t=new Q(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Q.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=di(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=F(e,t+s);break;case"takeRight":t=V(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,u=i?a:s-1,c=this.__iteratees__,h=c.length,d=0,f=F(l,this.__takeCount__);if(!n||r<Rr||r==l&&f==l)return $t(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var v=-1,g=t[u+=e];++v<h;){var m=c[v],y=m.iteratee,A=m.type,b=y(g);if(A==Lr)g=b;else if(!b){if(A==Ir)continue t;break t}}p[d++]=g}return p},K.prototype.chain=function(){return En(this)},K.prototype.commit=function(){return new Z(this.value(),this.__chain__)},K.prototype.concat=_n,K.prototype.plant=function(t){for(var e,n=this;n instanceof $;){var i=en(n);e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},K.prototype.reverse=function(){function t(t){return t.reverse()}var e=this.__wrapped__;if(e instanceof Q){var n=e;return this.__actions__.length&&(n=new Q(this)),(n=n.reverse()).__actions__.push({func:xn,args:[t],thisArg:gr}),new Z(n,this.__chain__)}return this.thru(t)},K.prototype.toString=function(){return this.value()+""},K.prototype.run=K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=function(){return $t(this.__wrapped__,this.__actions__)},K.prototype.collect=K.prototype.map,K.prototype.head=K.prototype.first,K.prototype.select=K.prototype.filter,K.prototype.tail=K.prototype.rest,K}();Lo._=Zo,(A=function(){return Zo}.call(b,w,b,m))===gr||(m.exports=A)}).call(this)}).call(this,w(38)(t),w(37))},function(t,e,n){"use strict";var i;void 0===(i=function(t){var e=n(11);return n(0).extend({},e.Events)}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var e={ds:{FRAME_DATA_LOADED:"ds:frameLoaded",PRESO_LOADED:"ds:presoLoaded",PRESO_READY:"ds:presoReady"},actionlink:{EVENT:"actionlink:event",VIEWED:"actionlink:viewed"},animation:{CREATED:"animation:created",DESTROYED:"animation:destroyed"},app:{COMPLETE:"app:complete",BRANDING_COLOR:"app:brandingColor",PRESENTATION_POSITION:"app:presentationPosition",SHOW_LOADER:"app:showLoader",HIDE_LOADER:"app:hideLoader"},audioClip:{ENDED:"audioClip:ended",TIME_UPDATE:"audioClip:timeUpdate"},captions:{SHOW_BUTTON:"captions:showbutton",HIDE_BUTTON:"captions:hidebutton",ENABLED:"captions:enabled",ENABLE:"captions:enable",ADD:"captions:add",REMOVE:"captions:remove"},controlLayout:{CHANGED:"controllayout:changed",UPDATE:"controlLayout:update"},controlOptions:{CHANGED:"controlOptions:changed",RESET:"controlOptions:reset"},course:{COMPLETED:"course:completed",VIEWED:"course:viewed",MANUALLY_COMPLETED:"course:manuallyCompleted"},customlink:{EVENT:"customlink:event"},currTimeline:{TICK:"currTimeline:tick"},data:{INITIALIZED:"data:initialized",UPDATED:"data:updated"},detection:{VISIBILITY_HIDDEN:"detection:visibilityhidden",VISIBILITY_SHOWN:"detection:visibilityshown",ORIENTATION_CHANGE:"detection:orientationChange"},draw:{RESET:"draw:reset",RESET_COMPLETE:"draw:resetcomplete",EXIT:"draw:exit"},error:{INTERFACE:"error:interface"},frame:{LAYOUT_READY:"frame:layoutReady",REFLOW:"frame:reflow",MODEL_READY:"frame:modelReady",SCALE:"frame:scale",FONT_SCALE:"font:scale"},frameModel:{LAYOUT_CHANGED:"frameData:layoutChanged",CHROMELESS_CHANGED:"frameData:chromelessChanged"},glossary:{UPDATE:"glossary:update",REFRESH_VIEW:"glossary:refreshView"},hamburger:{TOGGLE:"hamburger:toggle"},interaction:{EVALUATED:"interaction:evaluated",VIEWED:"interaction:viewed"},keyManager:{FRAME_CONTROL_KEY:"keyManager:frameControlKey"},layer:{HIDDEN:"hidden",HIDE_OTHER_LAYERS:"hideOtherLayers",ACTIVATED:"activated",TIMELINE_ACTIVATED:"layer:timelineActivated",PAUSE_TIMELINE:"layer:pauseTimeline",PLAYING:"layer:playing"},layout:{CHANGED:"layout:changed"},loader:{MUTE:"loader:mute",UNMUTE:"loader:unmute",HIDE:"loader:hide",SHOW:"loader:show",SILENCE:"loader:silence",REMOVE_TITLE:"loader:removeTitle"},main:{PREPARE_AUDIO:"main:prepareAudio"},media:{CURRENT_TIME:"media:currentTime"},menuLinksListItem:{ITEM_SELECTED:"menuLinksListItem:itemSelected",TOGGLE:"menuLinksListItem:toggle"},messageWindow:{SHOWN:"messageWindow:shown"},mobile:{PRESENTATION_VISIBLE:"mobileChromeKiller:presentationVisible",ENTER_THUMB_VIEW:"mobileStartOverlay:enterThumbView",EXIT_THUMB_VIEW:"mobileStartOverlay:exitThumbView",MENU_OPEN:"uiMobile:menuOpen",OUTLINE_SHOWN:"panelsMobile:outlineShown",NOTES_SHOWN:"panelsMobile:notesShown"},navcontrols:{CHANGED:"navcontrols:changed"},navData:{UPDATE:"navData:update",REFRESH_VIEW:"navData:refreshView",SELECT_FIRST_SLIDE_LINK:"navData:selectFirstSlideLink"},player:{RESET:"player:reset",CLOSING:"player:closing",ERROR:"player:error",MENU_OPTIONS:"player:menuOptions",ENABLE_KEYBOARD_SHORTCUTS:"player:enableKeyboardShortcuts",INITIALIZED:"player:initialized",ACCESSIBLE_TEXT_CHANGED:"player:accessibleTextChanged",TOGGLE_PLAYBACK:"player:togglePlayback",SEEK:"player:seek"},popup:{SHOW:"popup:show",HIDE:"popup:hide",TOGGLE:"popup:toggle",EMAIL:"popup:email"},presentation:{ENTER_FULLSCREEN:"presentation:enterFullscreen",EXIT_FULLSCREEN:"presentation:exitFullscreen",ON_OBJECT_EVENT:"presentation:onobjectevent"},preview:{NOTIFY:"preview:notify"},quiz:{INTERACTION_ANSWERED:"quiz:interactionAnswered",COMPLETED:"quiz:completed",RETRIED:"quiz:retried"},renderTree:{DESTROYED:"renderTree:destroyed"},request:{START:"start:requesting",NEXT_SLIDE:"nextSlide:requesting",PREV_SLIDE:"prevSlide:requesting",NEXT_DRAW_SLIDE:"nextDrawSlide:requesting",PREV_HISTORY_GROUP:"prevHistoryGroup:requesting"},resources:{LINK_CLICKED:"resources:linkClicked",UPDATE_DESCRIPTION:"resources:updateDescription",UPDATE:"resources:update",REFRESH_VIEW:"resources:refreshView"},resume:{SET_DATA:"resume:setdata",RESET:"resume:reset",APPLIED:"resume:applied",COMPLETE:"resume:complete",RESET_DATA:"resume:resetData"},scheme:{CHANGED:"scheme:changed"},search:{START:"search:start",CLEAR:"search:clear",BLUR:"search:blur",SHOW:"search:show",UPDATE_PANEL:"search:updatePanel"},sidebar:{ACTIVE_TAB_SET:"sidebar:activeTabSet",SHOW_SEARCH:"sidebar:showSearch",HIDE_SEARCH:"sidebar:hideSearch",RESIZING:"sidebar:resizing",FORCE_OPEN:"sidebar:forceOpen",OPEN:"sidebar:open",CLOSE:"sidebar:close"},playbackControls:{TIMELINE_CHANGED:"playbackControls:timelineChanged"},slide:{WILL_CHANGE:"slide:willChange",CHANGE:"change:slides",READY:"slide:ready",STARTED:"slide:started",VIEWED:"slide:viewed",TRANSITION_STARTED:"slide:transitionStarted",ON_TRANSITION_IN:"slide:ontransitionin",CURRENT_TIMELINE:"slide:currentTimeline",PAUSE_TIMELINE:"slide:pauseTimeline",PLAY_TIMELINE:"slide:playTimeline",HAS_MOUNTED:"slide:hasMounted",HAS_CHANGED:"slide:hasChanged",ALL_TIMELINES_COMPLETE:"slide:allTimelinesComplete",ARIA_TOGGLE:"slide:ariaToggle",SLIDE_NUMBERS_UPDATED:"slide:slideNumbersUpdated"},slideWindow:{CLEAR_HISTORY:"slideWindow:clearHistory"},slideContainer:{POSITIONED:"slideContainer:positioned"},slideObject:{FOCUS:"slideobject:focus",TRANSFORM_DIRTY:"slideobject:transformdirty",TOGGLE_VISIBILITY:"slideobject:toggleVisibility"},startOverlay:{READY:"startOverlay:ready"},status:{UPDATED:"status:updated"},strings:{UPDATE_STRINGS:"strings:updateStrings"},swipe:{CHANGED:"swipe:changed"},tab:{SHOW:"tab:show",HIDE:"tab:hide"},tabLink:{SHOW_PANEL:"tabLink:showPanel"},threeSixtyImage:{EDIT_MODE_CHANGED:"threeSixtyImage:editModeChanged",MARKER_UPDATED:"threeSixtyImage:markerUpdated"},timeline:{PLAYING:"timeline:playing",PAUSED:"timeline:paused",BEFORE_RESET:"timeline:beforereset",RESET:"timeline:reset",TICK:"timeline:tick",ENDED:"timeline:ended",COMPLETE:"timeline:complete",BEFORE_SEEK_UPDATE:"timeline:beforeSeekUpdate",AFTER_SEEK_UPDATE:"timeline:afterSeekUpdate",SEEK_START:"timeline:seekStart",SEEK_END:"timeline:seekEnd",CHANGED:"timeline:changed",CURRENT_TIMELINE:"timeline:currentTimeline"},timer:{SHOW:"timer:show",HIDE:"timer:hide",SHOWN:"timer:shown",HIDDEN:"timer:hidden",COMPLETE:"timer:complete"},tincan:{STATEMENT:"tincan:statement"},topbar:{CLOSED_SIDEBAR:"topbar:closedSidebar",OPENED_SIDEBAR:"topbar:openedSidebar"},topEllipsesPanel:{HIDE:"topEllipsesPanel:hide"},topTabs:{OPEN_DROPDOWN:"topTabs:openDropDown",OPEN_PANEL:"topTabs:openPanel"},topTabsItem:{ACTIVATE:"topTabsItem:activate",HIDE:"topTabsItem:hide"},touchHelper:{TOUCH_START:"touchHelper:touchStart"},transcript:{CHANGED:"transcript:changed"},tween:{UPDATE:"tween:update"},variable:{CHANGED:"variable:changed",REFRESH_VIEW:"variable:refreshView"},video:{STATE_CHANGED:"video:stateChanged"},elso:{TOGGLE_EXPANDED:"elso:toggleExpanded",SHOW_CONTENT_START:"elso:showContentStart",HIDE_CONTENT_COMPLETE:"elso:hideContentCompelete"},volume:{CHANGED:"volume:changed",CHANGE_CURRENT:"change:currentVolume"},window:{CLOSING:"window:closing",CLOSED:"window:closed",CREATED:"window:created",OPEN_EXTERNAL:"externalWindow:open",MAIN_CREATED:"mainWindow:created",MAIN_CHANGED:"mainWindow:slideChanged",SCALE:"window:scale",AFTER_SCALE:"window:afterScale",STACKING_CHANGED:"window:stackingChanged",ZOOM_MODE_CHANGED:"window:zoomModeChanged"},windowManager:{CREATED:"windowManager:created",TOP_MOST_CHANGED:"windowManager:topMostChanged"}};return Object.freeze(e),Object.freeze(e.actionlink),Object.freeze(e.animation),Object.freeze(e.app),Object.freeze(e.audioClip),Object.freeze(e.captions),Object.freeze(e.controlLayout),Object.freeze(e.course),Object.freeze(e.customlink),Object.freeze(e.data),Object.freeze(e.detection),Object.freeze(e.draw),Object.freeze(e.error),Object.freeze(e.hamburger),Object.freeze(e.interaction),Object.freeze(e.keyManager),Object.freeze(e.layer),Object.freeze(e.layout),Object.freeze(e.loader),Object.freeze(e.media),Object.freeze(e.menuLinksListItem),Object.freeze(e.mobile),Object.freeze(e.navcontrols),Object.freeze(e.player),Object.freeze(e.popup),Object.freeze(e.presentation),Object.freeze(e.preview),Object.freeze(e.quiz),Object.freeze(e.request),Object.freeze(e.resources),Object.freeze(e.resume),Object.freeze(e.scheme),Object.freeze(e.search),Object.freeze(e.sidebar),Object.freeze(e.slide),Object.freeze(e.slideContainer),Object.freeze(e.status),Object.freeze(e.swipe),Object.freeze(e.timeline),Object.freeze(e.timer),Object.freeze(e.topbar),Object.freeze(e.topTabsItem),Object.freeze(e.tween),Object.freeze(e.variable),Object.freeze(e.volume),Object.freeze(e.window),Object.freeze(e.windowManager),e}.call(e,n,e,t))||(t.exports=i)},function(t,e,g){"use strict";var n;void 0===(n=function(t){function e(t,e){var n=v.slice(e);return n.unshift(t),h.formatSrcUrl(n.join("/"))}function n(t){var n=c.rest(arguments);return function(){var e=c.toArray(arguments);return n[t](function(t){return t.apply(null,e)})}}function i(t){return t+"."}function r(t,e){return e.replace(t,"")}function o(t,e){return t===e}function s(t,e){return e.charAt(0)[t]()+e.slice(1)}function a(t,e){return[t,e,t].join("")}function l(t){return"{"===t.charAt(0)&&(t=JSON.parse(t)),t}function u(t){return t.split("=").map(decodeURIComponent).map(l)}var c=g(0),h=g(40),d=g(4),f=g(5),p=/[\u0600-\u06FF]/,v={keys:{DASH:189,PERIOD:190,DELETE:8,ENTER:13},getPath:function(t,e,n){return function t(e,n,i){if(null==e||null==n)return i;if(0===n.length)return null!=e?e:i;var r,o,s=c.first(n),a=c.rest(n),l=c.isString(s),u=l&&"$"===s.charAt(0)?"prop":"get";return l&&-1<s.indexOf("[")&&(r=s.split("["),a.unshift(parseInt(r[1])),s=c.first(r)),t(s=null!=e[s]&&c.isFunction(e[s])?e[s]():null!=e[s]?e[s]:e[u]&&e[u]((o=s,"get"==u?o:o.slice(1))),a,i)}(t,c.isString(e)?e.split("."):e,n)},fix:function(t,e){return+t.toFixed(null!=e?e:5)},toSeconds:function(t){return t/1e3},toMilliseconds:function(t){return v.fix(1e3*t,0)},formatSecondsAsTime:function(t,e){function n(t){return t<10?"0"+t:t}var i,r=Math.floor(t/3600),o=Math.floor((t-3600*r)/60),s=Math.floor(t-3600*r-60*o);if(i=[o=n(o),s=n(s)],1<=r)i.unshift(r);else if(e){return'<span class="transparent no-wid">00:</span>'+i.join(":")}return i.join(":")},hexify:function(t){return"#"+t.replace(/0x|#/,"")},opacify:function(t){return t/100},rgbify:function(t,e){var n=this.hexify(t).replace("#",""),i=parseInt(n,16),r=[i>>16&255,i>>8&255,255&i],o=null!=e,s="rgb"+(o?"a":"");return o&&r.push(e),[s,"(",r.join(","),")"].join("")},toRgba:function(t,e){return v.rgbify(t,v.opacify(e))},octToDec:function(t){return t/255},decToPct:function(t,e){var n=v.fix(100*t);return e?n+"%":n},stopPct:function(t){return v.decToPct(v.octToDec(t))},pctToDec:function(t,e){return v.fix(parseFloat(t)/100,e)},add:function(t,e){return(t||0)+(e||0)},sum:function(){return c.reduce(arguments,v.add,0)},upperCaseFirst:c.partial(s,"toUpperCase"),lowerCaseFirst:c.partial(s,"toLowerCase"),slice:c.bind(Array.prototype.slice.call,Array.prototype.slice),resolveAssetUrl:function(){return e(d.PRESENTATION_URL,arguments)},resolveDataUrl:function(){return e(d.PRESENTATION_DATA_URL,arguments)+".js"},clamp:function(t,e,n){return Math.max(Math.min(n,e),t)},areOverlapping:function(t,e){return t.left<e.right&&t.right>e.left&&t.top<e.bottom&&t.bottom>e.top},getRectIntersection:function(t,e){var n=Math.max(t.top,e.top),i=Math.min(t.bottom,e.bottom),r=Math.max(t.left,e.left),o=Math.min(t.right,e.right);return v.areOverlapping(t,e)&&{top:n,left:r,bottom:i,right:o,width:o-r,height:i-n}},isWithinRange:function(t,e,n){return t<=n&&n<=e},hasProp:function(t,e){if(null==t)return!1;for(var n,i=t,r=e.split(".");n=r.shift();){if(null==i[n])return!1;i=i[n]}return!0},not:function(t){return function(){return!t.apply(this,arguments)}},take:function(t,e,n){return function(){return e.apply(n,c.take(arguments,t))}},invertPercent:function(t){return 1-t},andify:c.partial(n,"every"),orify:c.partial(n,"some"),is:o,isTrue:c.partial(o,!0),isFalse:c.partial(o,!1),alwaysTrue:function(){return!0},alwaysFalse:function(){return!1},buildDataStructure:function(t,e,n){return new t(n,e)},createSuper:function(e){return function(t){return e.prototype[t]}},cloneDeeply:function(t){return JSON.parse(JSON.stringify(t))},buildEventNamespace:function(t){return".ds"+(t||"")},namespaceEvent:function(t,e){return t+v.buildEventNamespace(e)},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},hypot:function(t,e){return Math.sqrt(t*t+e*e)},dist:function(t,e,n,i){var r=t-n,o=e-i;return this.hypot(r,o)},degToRad:function(t){return t*d.math.TO_RADIANS},radToDeg:function(t){return t*d.math.TO_DEGREES},normalizeDeg:function(t){for(var e=t;e<0;)e+=360;return e%360},stripTags:function(t,e,n){var i=document.createElement("div"),r=n?["<",n,">"].join(""):"",o=r.replace("<","</");return i.innerHTML=t,e?c(i.querySelectorAll(e)).map(function(t){return[r,t.innerHTML,o].join("")}).join(""):i.textContent},stripTagsMobile:function(t,e,n){return f.deviceView.isClassicMobile?v.stripTags(t,e,n):t},decodeHtml:function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value},camelCaseAttr:function(t,e){return(t=e?t:t.toLowerCase()).replace(/-(.)/g,function(t,e){return e.toUpperCase()})},stripPlayer:c.partial(r,i(d.refs.PLAYER)),stripChoice:c.partial(r,i(d.refs.CHOICES)),stripStatement:c.partial(r,i(d.refs.STMTS)),prefixWithPlayer:function(t){return d.refs.PLAYER+"."+v.stripPlayer(t)},parseParams:function(t){return t=t||window.location.search.substr(1),c.object(t.split("&").map(function(t){return t.split("=")}))},applyMethod:function(t,e){var n=c.slice(arguments,2);return e=c.isArray(e)?e:[e],n.unshift(e,t),c.invoke.apply(c,n)},pxify:function(t){return[t,"px"].join("")},ptify:function(t){return[t,"pt"].join("")},shallowEqual:function(t,e){if(t===e)return!0;var n;for(n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0},doubleQuote:c.partial(a,'"'),quote:c.partial(a,"'"),toCssUrl:function(t){return["url(",this.quote(t),")"].join("")},getWindowSearch:function(){return window.location.search.replace(/^\?/,"")},queryStringToObj:function(){var t;return t=this.getWindowSearch().split("&"),c.zipObject(t.map(u))},rotatePoint:function(t,e,n,i,r){r=v.degToRad(r);var o=t-n,s=e-i,a=Math.cos(r),l=Math.sin(r);return{x:a*o-l*s+n,y:l*o+a*s+i}},pointInRect:function(t,e,n){var i=n[0][0],r=n[0][1],o=n[1][0],s=n[1][1];return i<=t&&t<=o&&r<=e&&e<=s},showTimer:function(t,n){c(t.refs).pick(function(t,e){return 0===e.indexOf("timer")&&t!==n}).forOwn(function(t){t.onHide()}).value()},dateToString:function(t){if(null==t)return"";return[["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]," ",t.getDate(),", ",t.getFullYear()].join("")},timeToString:function(t){if(null==t)return"";var e=t.getHours(),n=t.getMinutes(),i="am";return n<10&&(n="0"+n),12<e&&(e-=12,i="pm"),[e,":",n," ",i].join("")},parseUrl:function(t){var e=document.createElement("a");return e.href=t,c.pick(e,["protocol","hostname","port","pathname","search","hash","host"])},hasArabicCharacters:function(t){return p.test(t)},ellipsize:function(t,e){return null==t||t.length<=e?t:[t.substr(0,e),"…"].join("")},generateHash:function(t){var e,n=0,i=t.length;for(e=0;e<i;e++)n=31*n+t.charCodeAt(e),n|=0;return n},multiply:c.curry(function(t,e){return t*e}),juxt:function(t){return function(){var e=arguments;return t.map(function(t){return t.apply(null,e)})}}};return v}.call(e,g,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var e=window.globals||{},n=window.location.protocol+"//",i=window.location.host,r=window.location.pathname.split(/\/+/).slice(0,-1).join("/"),o=e.DATA_PATH_BASE+"/html5/data/js",s=n+i+r+e.DATA_PATH_BASE+"/html5/lib/scripts",a=n+i+r+e.DATA_PATH_BASE+"/html5/lib/stylesheets",l={slideLocation:s+"/slides.min.js",frameLocations:{MOBILE:s+"/frame.mobile.min.js",DESKTOP:s+"/frame.desktop.min.js"},cssLocations:{MOBILE:a+"/mobile.min.css",DESKTOP:a+"/desktop.min.css"},player:{},LINE_BREAK_REGEX:/\n|\r/,theme:{},setThemeConstant:function(t,e){l.theme[t]=e},strings:{PROJECT_TITLE:"project-title"},els:{PRESO:"preso",LIB:"lib",MASK_LIB:"mask-library"},SVG_HIT:"svgHit",RECT_HIT:"rectHit",GROUP_HIT:"groupHit",SLIDE_HIT:"slideHit",PATH_DELIMITER:".",NODE_DELIMITER:"-",SVG_NODE_PREFIX:"commandset",PRESENTATION_URL:[e.DATA_PATH_BASE,r].join(""),PRESENTATION_DATA_URL:[r,o].join(""),STORY_CONTENT_URL:"story_content/",QUIZ_MAKER_URL:"quiz_content/",PRESENTER_URL:"presentation_content/",PLAYER_PROPS_KEYPATH:"playerProps",DEFAULT_VOLUME:.8,DESKTOP_LOADER_DELAY:200,XAPI_RETRY_INTERVALS_MS:[100,400,400,600,600],LIGHTBOX_SCALAR:.85,UNIFIED_PORTRAIT_UI_SIZE:65,UNIFIED_LANDSCAPE_UI_SIZE:58,UNIFIED_LIGHTBOX_UI_SIZE:50,MOBILE_UI_SIZE:58,DOUBLE_MOBILE_UI_SIZE:116,MOBILE_ANIMATION_DURATION:260,ANIMATION_DURATION:300,MOBILE_WIDTH_MIN:320,MOBILE_360_PHONE_LARGE:380,MOBILE_360_PHONE_MEDIUM:375,MOBILE_MIN_LANDSCAPE_FULL:314,MOBILE_MIN_LANDSCAPE:250,MOBILE_FONT:"Open Sans Full",XMLNS_XLINK:"http://www.w3.org/1999/xlink",XMLNS_XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/svg",refs:{PLAYER:"_player",FRAME:"_frame",PARENT:"_parent",CURRENT_SLIDE:"_currentSlide",CHILDREN:"_children",SELF:"_this",CHOICES:"choices",STMTS:"statements",PLAYER_VARS:"_playerVars"},varTypes:{STRING:"string",NUM:"number",BOOL:"boolean"},statuses:{CORRECT:"correct",INCORRECT:"incorrect",INCOMPLETE:"incomplete",COMPLETE:"complete",NEUTRAL:"neutral",PASSING:"pass",FAILING:"fail"},reviewResetTypes:{ALL:"all",INCORRECTONLY:"incorrectonly"},dynamicTabEls:{},tabIndices:{SKIP:0,LIGHTBOX_CLOSE:1,SUBMIT_ALL:2,PREV:3,NEXT:4,SUBMIT:5,SIDEBAR:10,SEARCH_RESULTS_TREE_MODE:0,SEARCH_INPUT:1,SEARCH_SUBMIT:2,SEARCH_FILTER:3,SEARCH_NOTES:4,SEARCH_TEXT:5,SEARCH_RESULTS_LIST_MODE:6,SEARCH_CLEAR:17,TIME:39,TOP_TAB_LEFT:30,TOP_TAB_RIGHT:40,VOLUME:50,CAPTIONS:55,PLAYBACK_PLAY:60,PLAYBACK_PROGRESS:65,PLAYBACK_RESET:70},math:{QUARTER_PI:.25*Math.PI,HALF_PI:.5*Math.PI,THREE_QUARTER_PI:.75*Math.PI,TWO_PI:2*Math.PI,TO_RADIANS:Math.PI/180,TO_DEGREES:180/Math.PI},keys:{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126},TINY_VIDEO:"data:video/mp4;base64, AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=",TINY_AUDIO:"data:audio/mp3;base64,//MgxAAAAANIAAAAAExBTUUzLjk3VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIsQnAAADSAAAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MgxE8AAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIMR2AAADSAAAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8yDEnQAAA0gAAAAAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVEFHOWVmMTRlNzg4YzVhNDQ5AAAAAAAAAAAAAAAAAAAAYjZiYWQ3ZjY2NjFkZWZhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="};return Object.freeze(l),Object.freeze(l.refs),Object.freeze(l.varTypes),Object.freeze(l.statuses),Object.freeze(l.tabIndices),Object.freeze(l.math),Object.freeze(l.keys),l}.call(e,n,e,t))||(t.exports=i)},function(t,e,V){"use strict";var n;void 0===(n=function(t){function e(t){return"1"===c[t]}function n(){var t=P.orientation;t.value=window.innerWidth>window.innerHeight?"landscape":"portrait",P.innerHeight=window.innerHeight,P.innerWidth=window.innerWidth,D(),t.value===t.prev&&!P.forceHideWarning||("portrait"===t.value?(document.body.classList.remove("is-landscape"),document.body.classList.add("is-portrait"),t.isPortrait=!0,t.isLandscape=!1):(document.body.classList.add("is-landscape"),document.body.classList.remove("is-portrait"),t.isPortrait=!1,t.isLandscape=!0),a.trigger(s.detection.ORIENTATION_CHANGE,{orientation:t.value}),t.prev=t.value)}var i,r,o=V(25),s=V(2),a=V(1),l=V(41),u=V(6).addWindowListener,c=window.globals&&window.globals.parsedParams||{},h=e("forcemobile"),d=e("devicepreview"),f=e("phone"),p=e("noframe"),v=e("enableFs"),g=c.videocontrolsfont,m=window.navigator.userAgent.toLowerCase(),y="ActiveXObject"in window||null!=window.MSBlobBuilder,A=window.isMobile.apple.device,b=A?parseInt((/os[x\s]+([0-9]+)_/.exec(m)||/version\/([0-9]+)/.exec(m))[1]):NaN,w=A&&m.indexOf("version")<0,S="file:"===document.location.protocol,T=null!=window.vInterfaceObject&&window.autoSpider,E=T&&h&&d,x=(i=document.createElement("canvas"),r=i.getContext("webgl")||i.getContext("experimental-webgl"),(i=null)!=r),_=window.globals,C=_.deviceView,k=_.themeName,O=window,M=O.isMobile,R=O.isMobile.apple.tablet,I="classic"===k,L="unified"===k,P={device:{isDesktop:M.desktop,isMobile:M.mobile,isPhone:M.phone,isTablet:M.tablet},deviceView:{isDesktop:C.desktop,isMobile:C.mobile,isPhone:C.phone,isTablet:C.tablet,isClassicMobile:I&&C.mobile,isClassicDesktop:I&&C.desktop,isUnifiedMobile:L&&C.mobile,isUnifiedDesktop:L&&C.desktop},theme:{isClassic:I,isUnified:L},os:{isAndroid:window.isMobile.android.device,isIOS:A,iOSVersion:b,isIosPhoneBefore10:M.phone&&b<10,isMac:o.mac},browser:{isWebKit:m.includes("webkit"),isSafariMac:!(!o.mac||!o.safari),safariVersion:function(){if(o.safari){var t=/\/([\d]+)([.\d]+|[\w\d]+)\ssafari/.exec(m);if(null!==t)return parseInt(t[1])}return NaN}(),isFF:m.includes("firefox"),isChrome:o.chrome,isWebView:w,isUIWebView:w&&!window.indexedDB,isIE:y,isIE10:m.includes("msie s10"),isIE11:y&&null!=window.msCrypto&&!window.ActiveXObject,isEdge:y&&null==window.msCrypto&&x},env:{is360:T,isDevicePreview:E,isMobilePreview:h,isPhonePreview:E&&f,isRise:null!=window.vInterfaceObject&&window.vInterfaceObject.isRise,isInIframe:window.top!==window.self,isWebObject:/(\?|&)wo=1(&|$)/.test(window.location.search),isFileProtocol:S,enableFs:v&&E&&!f,hideFrame:p,videoControlsFont:null!=g&&"'"+window.decodeURIComponent(g)+"'"},capabilities:{hasAudioApi:l&&(!S||M.mobile),isMemoryDeficientDevice:R&&(768===screen.height||768===screen.width)},orientation:{forceHideWarning:!1,prev:null}},D=P.os.isAndroid?function(){var t=window.screen,e=t.width<t.height?"portrait":"landscape",n=P.orientation;n.forceHideWarning=n.value!==e}:function(){};if(P.device.isMobile&&P.env.isInIframe){document.body.style.position="fixed";var N=function(){document.body.style.width=window.innerWidth+"px",document.body.style.height=window.innerHeight+"px"};u("resize",N),N()}return P.isRise&&(document.body.classList.add("is-rise"),document.body.styles.background="transparent"),P.isMobile&&!P.theme.isUnified&&document.getElementById("preso").setAttribute("class",""),n(),u("orientationchange",n),P}.call(e,V,e,t))||(t.exports=n)},function(t,e,m){"use strict";var n;void 0===(n=function(t){function a(t,e,n){return((f[t]||{})[e]||{})[n]}function r(t,e,n,i,r){var o=4<arguments.length&&void 0!==r?r:"on",s=t===window&&("resize"===e||"orientationchange"===e);i=!!i&&!s;var a=h.get(t),l=f[a]=f[a]||{},u=l[e]=l[e]||{},c=u[i]=u[i]||{callbacks:{before:new Set,on:new Set,after:new Set},listener:null,customEvent:s};return d.reduce(function(t,e){return c.callbacks[e].has(n)||t},!1)||(c.callbacks[o].add(n),null===c.listener&&(c.listener=function(e){return d.forEach(function(t){return[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(c.callbacks[t])).forEach(function(t){return t(e)})})},s||t.addEventListener(e,c.listener,i))),function(){return v(t,e,n,i)}}function o(t,e,n){var i=a(t,e,!1);null!=i&&i.listener(n)}function s(t){l!==window.innerWidth||u!==window.innerHeight?(p=null,g()):t-p<1e3?window.requestAnimationFrame(s):p=null}var e=m(1),n=m(2),h=new Map([[document,"document"],[document.body,"body"],[window,"window"]]),d=["before","on","after"],f={},i=window,l=i.lastWidth,u=i.lastHeight,c=void 0,p=void 0,v=function(t,e,n,i){var r=3<arguments.length&&void 0!==i&&i,o=h.get(t),s=a(o,e,r);null!=s&&(d.forEach(function(t){return s.callbacks[t].delete(n)}),s.customEvent||0!==d.reduce(function(t,e){return s.callbacks[e].size+t},0)||t.removeEventListener(e,n,r))},g=function(t){var e,n,i,r=0<arguments.length&&void 0!==t?t:{};e=r,n=window.innerWidth>window.innerHeight,c!==n&&(c=n,o("window","orientationchange",e)),i=r,l===window.innerWidth&&u===window.innerHeight||(l=window.innerWidth,u=window.innerHeight,o("window","resize",i)),null==p&&(p=window.performance.now(),window.requestAnimationFrame(s))};return window.addEventListener("orientationchange",g),window.addEventListener("resize",g),e.on(n.window.ZOOM_MODE_CHANGED,function(){o("window","resize",null)}),{addBodyListener:function(t,e,n,i){return r(document.body,t,e,n,i)},removeBodyListener:function(t,e,n){return v(document.body,t,e,n)},addDocumentListener:function(t,e,n,i){return r(document,t,e,n,i)},removeDocumentListener:function(t,e,n){return v(document,t,e,n)},addWindowListener:function(t,e,n,i){return r(window,t,e,n,i)},removeWindowListener:function(t,e,n){return v(window,t,e,n)}}}.call(e,m,e,t))||(t.exports=n)},function(t,e,y){"use strict";var n;void 0===(n=function(t){function i(t,e,n){var i=[];for(e=e||d.alwaysTrue;t&&1===t.nodeType&&(i.push(t),null==n||!n(t));)t=t.parentNode;return i.slice(1).filter(e)}function n(t,e){return m.closest(t,function(t){return m.hasClass(t,e)})}function e(t,e){return!!n(t,e)}function r(t,e){return e.tagName.toLowerCase()===t.toLowerCase()}function o(t){return null==t?"":h.isString(t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):t}function s(t,e){if(null!=t.classList)t.classList.remove(e);else{var n=t.getAttribute("class").split();t.setAttribute("class",h.without(n,e).join(" "))}}function a(t,e){if(null!=t.classList)t.classList.add(e);else{var n=t.getAttribute("class").split();n.includes(e)||n.push(e),t.setAttribute("class",n.join())}}function l(t,e,n){var i=["<",t];return e&&h.isPlainObject(e)&&h.forOwn(e,function(t,e){i.push(" ",e,'="',o(t),'"')},i),i.push(!0===n||!0===e?" />":">"),i.join("")}var h=y(0),d=y(3),u=(y(14),y(4)),c=y(10),f=y(6).addBodyListener,p=function(t,e,n){t.removeEventListener(e,n)},v=function(t,e){if(null!=t.classList)return t.classList.contains(e);var n=t.getAttribute("class");return null!=n&&n.split(" ").includes(e)},g=h.partialRight(function(t,e,n){return t.classList.add(e),setTimeout(function(){t.classList.remove(e)},n)},"button-tapped",u.MOBILE_ANIMATION_DURATION),m={on:function(t,e,n,i){return t.addEventListener(e,n,!!i),h.partial(p,t,e,n)},off:p,parentNodesOf:i,closest:function(t,e,n){return(e=e||d.alwaysTrue)(t)?t:i(t,e,n)[0]},isNodeOfType:r,isInput:function(t){return r("input",t)||r("textarea",t)},isLink:h.partial(r,"a"),isVideoNode:h.partial(r,"video"),isIconNode:function(t){return v(t,"svg-icon-wrapper")},isSlideObject:function(t){return v(t,"slide-object")},selectAllByRef:function(n,t){[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(t.querySelectorAll("[data-ref]"))).forEach(function(t){var e=t.classList[0];null!=e&&(n[h.camelCase(e)+"El"]=t)})},setAttributes:function(n,t){return h.forOwn(t,function(t,e){n.setAttribute(e,t)}),n},setStyles:function(n,t){return h.forOwn(t,function(t,e){n.style[e]=t}),n},getScrollRecommendation:function(t,e){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return n.height>i.height||i.top>n.top?t.scrollTop-(i.top-n.top):i.bottom<n.bottom?t.scrollTop+(n.bottom-i.bottom):-1},resizeToFit:function(t,r,e,o){var s=!!h.isFinite(e)&&r.length>e,a=t.getBoundingClientRect().width,l=a,u=0,c=l/r.length;o=o||0,h(r).map(function(t,e){t.style.width="";var n=t.getBoundingClientRect().width+o;return u+=n,{el:t,width:n}}).sortBy("width").forEach(function(t,e){var n=e+1,i=Math.min(t.width,c);a<u?(t.el.style.width=d.pxify(i-o),c=(l-=i)/(r.length-n)):s&&(t.el.style.width=d.pxify(t.width+(l-u)/r.length))}).value()},hasClass:v,addClass:a,removeClass:s,toggleClasses:function(t,e,n,i){var r=i?[a,s]:[s,a];r[0](t,e),r[1](t,n)},writeNode:l,writeCloseNode:function(t){return l(t).replace("<","</")},tappedClass:g,trigger:function(t,e,n){if(n=n||{ignoreDisabled:!0},null!=t){var i,r,o,s=(i=e,(o=document.createEvent("Event")).initEvent(i,!0,!0),h.defaults(o,r),o);return n.ignoreDisabled&&t.disabled||t.dispatchEvent(s),s}},getParentFrame:function(){try{for(var t,e=window.parent.document.getElementsByTagName("iframe"),n=e.length,i=0;i<n;i++)if((t=e[i]).contentDocument===document)return t}catch(t){}},getParentWithClass:n,isWithin:e,isWithinSlide:function(t){return e(t,"slide")},isWithinShadowDom:function(t){return e(t,"acc-shadow-dom")},mapShadowToModel:function(t){if(null==t)return null;var e=t;if(m.isWithinShadowDom(e)){for(;null!==e&&null==e.dataset.represents;)e=e.parentElement;return null==e?null:c.resolvePath(e.dataset.represents)}return null},xmlEncodeValue:o,updateMousePosition:function(t){null!=t.pageX&&null!=t.pageY&&(m.mouseX=t.pageX,m.mouseY=t.pageY)},mouseX:0,mouseY:0};return f("mousemove",function(t){m.updateMousePosition(t)}),f("touchstart",function(t){t.touches&&0<t.touches.length&&(m.mouseX=t.touches[0].pageX,m.mouseY=t.touches[0].pageY)},!0),m}.call(e,y,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){function e(t,e){return e.state()===t}var n=u(0),o=u(62),s=u(3),i="pending",r="resolved",a="rejected",l={Deferred:function(){return new o},when:function(){var t=s.slice(arguments),e=new o,n=t.length;return t.forEach(function(t){t.then(function(){0==--n&&e.resolve()}).catch(function(){0<=--n&&(e.reject(),n=0)})}),e.promise()},after:function(){function e(t){r.push(t),i.length===r.length&&n.resolve.apply(n,i)}var n=new o,i=s.slice(arguments),r=[];return i.length?i.forEach(function(t){t.always(function(){e(t)})}):n.resolve(),n.promise()},isPending:n.partial(e,i),isResolved:n.partial(e,r),isRejected:n.partial(e,a),promiseToVow:function(t){var e=l.Deferred();return t.then(e.resolve).catch(e.reject),e.promise()}};return l}.call(e,u,e,t))||(t.exports=n)},function(t,e,i){"use strict";var n;void 0===(n=function(t){var r=i(0),n=i(42),e=r.curry(function(t,e,n,i){t([e,"::",n," - ",r.slice(arguments,3).join(" ")].join(""))},4);return{throwFatal:e(function(t){throw new Error(t)}),throwError:e(function(t){var e=n.debugMode?"error":"warn";console[e](t),n.throwError()}),throwErrorSoft:e(function(t){n.debugMode&&console.warn(t)}),warn:e(function(t){console.warn(t)}),backtick:function(t){return["`",t,"`"].join("")}}}.call(e,i,e,t))||(t.exports=n)},function(t,e,k){"use strict";var n;void 0===(n=function(t){function e(t){return i.test(t)}var a=k(0),n=k(9),r=k(4),i=/^RAND/,o={};o.string=o.object=o.boolean=function(t){return t},o.num=o.number=function(t){return e(t)?t:parseFloat(t)},o.var=o.variable=function(t,e){var n=a.identity,i=this.resolvePath(t,e,{optional:!0});return null!=i&&("number"===i.type()&&(n=parseFloat),i=n(i.value())),i},o.property=function(t,e){return this.resolvePath(t,e,{optional:!0})},o.drawid=function(t,e){return this.resolvePath(t,e,{optional:!0})},o.param=function(t,e,n){return this.getRef(n.params[t],e,n)},o.valueref=function(t,e,n){return this.getRef(a.findWhere(n.iterables,{name:t}),e,n)},o.actparam=function(t,e,n){return n[t]},o.default=function(t,e){return this.getRef(t,e)};function l(t){return t.replace(y,"")}function u(t){return m.test(t)}function s(t){return t.split(r.PATH_DELIMITER)}function c(r,o){var s;return a.find(r.resolveables,function(t){var e,n,i=r.get(t);return!!i&&(!(s=i.isCollection?i.get(o):i.id===o?i:i[o])&&(e=t,n=r,a.has(n.resolvers,e))&&(s=r.resolvers[t].call(r,o,i)),s)},r),s}function h(t,e){var n,i,r="$"===e?A:b;return i=e+(n=t.replace(r,"").split(".")).pop(),n.push(i),n.join(".")}var d,f=n.throwError("resolver"),p=f("resolvePath"),v=f("getRef"),g=f("findReference"),m=/\$/,y=/\#/,A=/\$/g,b=/\#/g,w=/^\$/,S=/^\#/,T=new RegExp("^"+r.refs.PLAYER),E=function(t){return t.replace(m,"")},x=a.partialRight(h,"$"),_=a.partialRight(h,"#"),C={initialize:function(){d=DS.presentation},getPresentationContext:function(){return DS.presentation},getSlideBankSlideInstance:function(e){var n=null;return d.scenes().some(function(t){return t.slidedraws().some(function(t){return t.slides().some(function(t){return t.id===e&&(n=t),null!=n}),null!=n}),null!=n}),n},resolvePath:function(t,e,n){var i,r;if(t)return null==d&&null!=DS.presentation&&this.initialize(DS.presentation),r=t,S.test(r)&&-1!==r.indexOf(".")?t=_(t):(i=t,w.test(i)&&-1!==i.indexOf(".")&&(t=x(t))),n=n||{},e&&a.isPlainObject(e)&&(n=e,e=void 0),this.resolvePathArray(s(t),e,n);p("Must provide a path to resolve")},resolvePathArray:function(n,t,e){var i=n.shift();switch(i){case r.refs.PLAYER:t=d;break;case r.refs.PLAYER_VARS:t=d.playerVars();break;case r.refs.PARENT:t=t.getClosestParentRef();break;case r.refs.CHILDREN:t=t.getChildren();break;case r.refs.SELF:t=t.getClosestThisRef();break;case r.refs.CURRENT_SLIDE:t=this.resolvePath(d.prop("CurrentSlideId"),d);break;default:t=C.findReference(i,t)}return null==t?e.optional?void 0:void p("Path did not resolve at:",i):n.length?a.isArray(t)?a(t).map(function(t){var e=n.slice();return C.resolvePathArray(e,t,{optional:!0})}).compact().value():C.resolvePathArray(n,t,e):t},findReference:function(t,e){if(t){var n,i,r,o,s;if(e)return e.isCollection&&e.get(t)?e.get(t):u(t)?e.prop(E(t)):(r=t,y.test(r)?(i=l(t),e.getVariableProp&&(n=e.getVariableProp(i))?n.value():e.variables().get(l(t))):e.isModel||null==e[t]?c(e,t)||(e.id===t?e:(s=t,(o=e).prop&&o.hasOwnPlayerProp(E(s))?e.prop(t):void 0)):e[t]);g("Context must be defined.")}else g("Cannot find a reference with no ID")},getRef:function(t,e,n){if(t){if(t.type)return(o[t.type]||o.default).call(this,t.value,e,n);v("Type is undefined for the provided reference")}else v("No reference passed in")}};return C.normalizePropRef=E,C.isPropRef=u,C.splitPath=s,C.joinPath=function(t){return t.join(r.PATH_DELIMITER)},C.isRelativePath=function(t){return!T.test(t)},C.isRandomToken=e,C.resolveAbsolutePathWithFilter=function(t,e){var n,i;return t=t.split("."),n=a.first(t.splice(0,1)),t.some(function(t){return n+="."+t,i=C.resolvePath(n),e(i)})?i:null},C}.call(e,k,e,t))||(t.exports=n)},function(t,e,n){var i,r,o;i=this,r=function(t,a,S,e){var n=t.Backbone,i=[],r=i.slice;a.VERSION="1.1.2",a.$=e,a.noConflict=function(){return t.Backbone=n,this},a.emulateHTTP=!1,a.emulateJSON=!1;var o=a.Events={on:function(t,e,n){return h(this,"on",t,[e,n])&&e&&(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this})),this},once:function(t,e,n){if(!h(this,"once",t,[e,n])||!e)return this;var i=this,r=S.once(function(){i.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,n)},off:function(t,e,n){var i,r,o,s,a,l,u,c;if(!this._events||!h(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(a=0,l=(s=t?[t]:S.keys(this._events)).length;a<l;a++)if(t=s[a],o=this._events[t]){if(this._events[t]=i=[],e||n)for(u=0,c=o.length;u<c;u++)r=o[u],(e&&e!==r.callback&&e!==r.callback._callback||n&&n!==r.context)&&i.push(r);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!h(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&s(n,e),i&&s(i,arguments),this},stopListening:function(t,e,n){var i=this._listeningTo;if(!i)return this;var r=!e&&!n;for(var o in n||"object"!=typeof e||(n=this),t&&((i={})[t._listenId]=t),i)(t=i[o]).off(e,n,this),(r||S.isEmpty(t._events))&&delete this._listeningTo[o];return this}},l=/\s+/,h=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(l.test(n)){for(var o=n.split(l),s=0,a=o.length;s<a;s++)t[e].apply(t,[o[s]].concat(i));return!1}return!0},s=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};S.each({listenTo:"on",listenToOnce:"once"},function(r,t){o[t]=function(t,e,n){var i=this._listeningTo||(this._listeningTo={});return n||"object"!=typeof e||(n=this),(i[t._listenId||(t._listenId=S.uniqueId("l"))]=t)[r](e,n,this),this}}),o.bind=o.on,o.unbind=o.off,S.extend(a,o);var T=a.Model=function(t,e){var n=t||{};e=e||{},this.cid=S.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=S.defaults({},n,S.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};S.extend(T.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return S.clone(this.attributes)},sync:function(){return a.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return S.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var i,r,o,s,a,l,u,c;if(null==t)return this;if("object"==typeof t?(r=t,n=e):(r={})[t]=e,n=n||{},!this._validate(r,n))return!1;for(i in o=n.unset,a=n.silent,s=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=S.clone(this.attributes),this.changed={}),c=this.attributes,u=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]),r)e=r[i],S.isEqual(c[i],e)||s.push(i),S.isEqual(u[i],e)?delete this.changed[i]:this.changed[i]=e,o?delete c[i]:c[i]=e;if(!a){s.length&&(this._pending=n);for(var h=0,d=s.length;h<d;h++)this.trigger("change:"+s[h],this,c[s[h]],n)}if(l)return this;if(!a)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,S.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,S.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!S.isEmpty(this.changed):S.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&S.clone(this.changed);var e,n=!1,i=this._changing?this._previousAttributes:this.attributes;for(var r in t)S.isEqual(i[r],e=t[r])||((n=n||{})[r]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return S.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?S.clone(e):{}).parse&&(e.parse=!0);var n=this,i=e.success;return e.success=function(t){if(!n.set(n.parse(t,e),e))return!1;i&&i(n,t,e),n.trigger("sync",n,t,e)},I(this,e),this.sync("read",this,e)},save:function(t,e,n){var i,r,o,s=this.attributes;if(null==t||"object"==typeof t?(i=t,n=e):(i={})[t]=e,n=S.extend({validate:!0},n),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;i&&n.wait&&(this.attributes=S.extend({},s,i)),void 0===n.parse&&(n.parse=!0);var a=this,l=n.success;return n.success=function(t){a.attributes=s;var e=a.parse(t,n);if(n.wait&&(e=S.extend(i||{},e)),S.isObject(e)&&!a.set(e,n))return!1;l&&l(a,t,n),a.trigger("sync",a,t,n)},I(this,n),"patch"==(r=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i),o=this.sync(r,this,n),i&&n.wait&&(this.attributes=s),o},destroy:function(e){e=e?S.clone(e):{};function n(){i.trigger("destroy",i,i.collection,e)}var i=this,r=e.success;if(e.success=function(t){(e.wait||i.isNew())&&n(),r&&r(i,t,e),i.isNew()||i.trigger("sync",i,t,e)},this.isNew())return e.success(),!1;I(this,e);var t=this.sync("delete",this,e);return e.wait||n(),t},url:function(){var t=S.result(this,"urlRoot")||S.result(this.collection,"url")||R();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},S.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=S.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,S.extend(e,{validationError:n})),!1)}});S.each(["keys","values","pairs","invert","pick","omit"],function(e){T.prototype[e]=function(){var t=r.call(arguments);return t.unshift(this.attributes),S[e].apply(S,t)}});var u=a.Collection=function(t,e){(e=e||{}).model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,S.extend({silent:!0},e))},E={add:!0,remove:!0,merge:!0},c={add:!0,remove:!1};S.extend(u.prototype,o,{model:T,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return a.sync.apply(this,arguments)},add:function(t,e){return this.set(t,S.extend({merge:!1},e,c))},remove:function(t,e){var n,i,r,o,s=!S.isArray(t);for(e=e||{},n=0,i=(t=s?[t]:S.clone(t)).length;n<i;n++)(o=t[n]=this.get(t[n]))&&(delete this._byId[o.id],delete this._byId[o.cid],r=this.indexOf(o),this.models.splice(r,1),this.length--,e.silent||(e.index=r,o.trigger("remove",o,this,e)),this._removeReference(o,e));return s?t[0]:t},set:function(t,e){(e=S.defaults({},e,E)).parse&&(t=this.parse(t,e));var n,i,r,o,s,a,l,u=!S.isArray(t);t=u?t?[t]:[]:S.clone(t);var c=e.at,h=this.model,d=this.comparator&&null==c&&!1!==e.sort,f=S.isString(this.comparator)?this.comparator:null,p=[],v=[],g={},m=e.add,y=e.merge,A=e.remove,b=!(d||!m||!A)&&[];for(n=0,i=t.length;n<i;n++){if(r=(s=t[n]||{})instanceof T?o=s:s[h.prototype.idAttribute||"id"],a=this.get(r))A&&(g[a.cid]=!0),y&&(s=s===o?o.attributes:s,e.parse&&(s=a.parse(s,e)),a.set(s,e),d&&!l&&a.hasChanged(f)&&(l=!0)),t[n]=a;else if(m){if(!(o=t[n]=this._prepareModel(s,e)))continue;p.push(o),this._addReference(o,e)}o=a||o,!b||!o.isNew()&&g[o.id]||b.push(o),g[o.id]=!0}if(A){for(n=0,i=this.length;n<i;++n)g[(o=this.models[n]).cid]||v.push(o);v.length&&this.remove(v,e)}if(p.length||b&&b.length)if(d&&(l=!0),this.length+=p.length,null!=c)for(n=0,i=p.length;n<i;n++)this.models.splice(c+n,0,p[n]);else{b&&(this.models.length=0);var w=b||p;for(n=0,i=w.length;n<i;n++)this.models.push(w[n])}if(l&&this.sort({silent:!0}),!e.silent){for(n=0,i=p.length;n<i;n++)(o=p[n]).trigger("add",o,this,e);(l||b&&b.length)&&this.trigger("sort",this,e)}return u?t[0]:t},reset:function(t,e){e=e||{};for(var n=0,i=this.models.length;n<i;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,S.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,S.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,S.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return r.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(n,t){return S.isEmpty(n)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var e in n)if(n[e]!==t.get(e))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t=t||{},S.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(S.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return S.invoke(this.models,"get",t)},fetch:function(n){void 0===(n=n?S.clone(n):{}).parse&&(n.parse=!0);var i=n.success,r=this;return n.success=function(t){var e=n.reset?"reset":"set";r[e](t,n),i&&i(r,t,n),r.trigger("sync",r,t,n)},I(this,n),this.sync("read",this,n)},create:function(t,n){if(n=n?S.clone(n):{},!(t=this._prepareModel(t,n)))return!1;n.wait||this.add(t,n);var i=this,r=n.success;return n.success=function(t,e){n.wait&&i.add(t,n),r&&r(t,e,n)},t.save(null,n),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof T)return t;var n=new(((e=e?S.clone(e):{}).collection=this).model)(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){null!=(this._byId[t.cid]=t).id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});S.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],function(e){u.prototype[e]=function(){var t=r.call(arguments);return t.unshift(this.models),S[e].apply(S,t)}});S.each(["groupBy","countBy","sortBy","indexBy"],function(i){u.prototype[i]=function(e,t){var n=S.isFunction(e)?e:function(t){return t.get(e)};return S[i](this.models,n,t)}});var d=a.View=function(t){this.cid=S.uniqueId("view"),t=t||{},S.extend(this,S.pick(t,p)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},f=/^(\S+)\s*(.*)$/,p=["model","collection","el","id","attributes","className","tagName","events"];S.extend(d.prototype,o,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof a.$?t:a.$(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},delegateEvents:function(t){if(!(t=t||S.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(S.isFunction(n)||(n=this[t[e]]),n){var i=e.match(f),r=i[1],o=i[2];n=S.bind(n,this),r+=".delegateEvents"+this.cid,""===o?this.$el.on(r,n):this.$el.on(r,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(S.result(this,"el"),!1);else{var t=S.extend({},S.result(this,"attributes"));this.id&&(t.id=S.result(this,"id")),this.className&&(t.class=S.result(this,"className"));var e=a.$("<"+S.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),a.sync=function(t,e,n){var i=g[t];S.defaults(n=n||{},{emulateHTTP:a.emulateHTTP,emulateJSON:a.emulateJSON});var r={type:i,dataType:"json"};if(n.url||(r.url=S.result(e,"url")||R()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),n.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){r.type="POST",n.emulateJSON&&(r.data._method=i);var o=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",i),o)return o.apply(this,arguments)}}"GET"===r.type||n.emulateJSON||(r.processData=!1),"PATCH"===r.type&&v&&(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var s=n.xhr=a.ajax(S.extend(r,n));return e.trigger("request",e,s,n),s};var v=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),g={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};a.ajax=function(){return a.$.ajax.apply(a.$,arguments)};var m=a.Router=function(t){(t=t||{}).routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},y=/\((.*?)\)/g,A=/(\(\?)?:\w+/g,b=/\*\w+/g,w=/[\-{}\[\]+?.,\\\^$|#\s]/g;S.extend(m.prototype,o,{initialize:function(){},route:function(n,i,r){S.isRegExp(n)||(n=this._routeToRegExp(n)),S.isFunction(i)&&(r=i,i=""),r=r||this[i];var o=this;return a.history.route(n,function(t){var e=o._extractParameters(n,t);o.execute(r,e),o.trigger.apply(o,["route:"+i].concat(e)),o.trigger("route",i,e),a.history.trigger("route",o,i,e)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,e){return a.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=S.result(this,"routes");for(var t,e=S.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(w,"\\$&").replace(y,"(?:$1)?").replace(A,function(t,e){return e?t:"([^/?]+)"}).replace(b,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return S.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var x=a.History=function(){this.handlers=[],S.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},_=/^[#\/]|\s+$/g,C=/^\/+|\/+$/g,k=/msie [\w.]+/,O=/\/$/,M=/#.*$/;x.started=!1,S.extend(x.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(O,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(_,"")},start:function(t){if(x.started)throw new Error("Backbone.history has already been started");x.started=!0,this.options=S.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),n=document.documentMode,i=k.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);if(this.root=("/"+this.root+"/").replace(C,"/"),i&&this._wantsHashChange){var r=a.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=r.hide().appendTo("body")[0].contentWindow,this.navigate(e)}this._hasPushState?a.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?a.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=e;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(_,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){a.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),x.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),S.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(t,e){if(!x.started)return!1;e&&!0!==e||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(M,""),this.fragment!==t){if(""===(this.fragment=t)&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),a.history=new x;T.extend=u.extend=m.extend=d.extend=x.extend=function(t,e){var n,i=this;n=t&&S.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},S.extend(n,i,e);function r(){this.constructor=n}return r.prototype=i.prototype,n.prototype=new r,t&&S.extend(n.prototype,t),n.__super__=i.prototype,n};var R=function(){throw new Error('A "url" property or function must be specified')},I=function(e,n){var i=n.error;n.error=function(t){i&&i(e,t,n),e.trigger("error",e,t,n)}};return a},o=n(0),r(i,e,o)},function(t,e,n){"use strict";var i;void 0===(i=function(t){n(16);return n(27),n(28),TweenLite.defaultOverwrite=!1,TweenLite}.call(e,n,e,t))||(t.exports=i)},function(t,e,a){"use strict";var n;void 0===(n=function(t){var e,n=a(0),i=a(4),r=a(2),o=a(8),s=a(1);return new(a(31).extend({accessibleTextVar:null,shorthand:["currentLayout","currentVolume","accessibleTextOn"],subscriptions:((e={})[r.app.COMPLETE]="onAppComplete",e[r.controlLayout.CHANGED]="onLayoutChanged",e),initialize:function(){n.bindAll(this,"setAccessibleTextFromVar"),this.appCompleteDfd=new o.Deferred,this.setVolume(i.DEFAULT_VOLUME)},connectVariables:function(t){if(null!=t){this.accessibleTextVar=t;var e=this.accessibleTextVar.value();this.accessibleTextOn(e),this.accessibleTextVar.on("change:value",this.setAccessibleTextFromVar),e&&this.onToggleAccessibleText(e)}},setAccessibleTextFromVar:function(t){this.onToggleAccessibleText(t.value())},getAppCompletePromise:function(){return this.appCompleteDfd.promise()},onAppComplete:function(){this.appCompleteDfd.resolve()},unsetAttrs:function(){return this.set(n.toArray(arguments).reduce(function(t,e){return t[e]=null,t},{})),this},onLayoutChanged:function(t,e){this.currentLayout(t),this.trigger(r.layout.CHANGED,this,t,e)},setVolume:function(t){this.volumeToggle=!1,this.currentVolume(t),s.trigger(r.volume.CHANGED,t)},onToggleVolume:function(){this.volumeToggle||(this.lastVolume=this.currentVolume()),this.volumeToggle=!this.volumeToggle;var t=this.volumeToggle?0:this.lastVolume;this.currentVolume(t),s.trigger(r.volume.CHANGED,t)},onToggleAccessibleText:function(t){var e=null==t?!this.accessibleTextOn():t;this.accessibleTextOn(e),null!=this.accessibleTextVar&&this.accessibleTextVar.value()!==e?this.accessibleTextVar.changeValue(e):this.trigger(DS.events.player.ACCESSIBLE_TEXT_CHANGED,e)}}))}.call(e,a,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){var e=u(0),n=u(6).addWindowListener,o=u(47),s=u(3),i=u(5),r=u(2),a=u(1),l={scaleValue:1,zoomMode:!1,zoomVar:null,enableZoomMode:function(t){this.zoomMode=t,null!=this.zoomVar&&this.zoomVar.value()!==t?this.zoomVar.changeValue(t):a.trigger(r.window.ZOOM_MODE_CHANGED)},setZoomModeVariable:function(t){this.enableZoomMode(t.value())},initialize:function(){e.bindAll(this,"scale","sendWindowScale","setZoomModeVariable"),this.isShowAll()&&!i.deviceView.isClassicMobile?this.startScaling():n("resize",this.sendWindowScale)},connectVariables:function(t){if(null!=t){this.zoomVar=t;var e=this.zoomVar.value();e&&this.enableZoomMode(e),this.zoomVar.on("change:value",this.setZoomModeVariable)}},isShowAll:function(){return"show all"===window.globals.scale},sendWindowScale:function(){a.trigger(r.window.SCALE),a.trigger(r.window.AFTER_SCALE)},setWindowScale:function(t){this.windowScale=t},getWindowScale:function(){return this.windowScale},startScaling:function(){this.scale(),n("resize",this.scale)},getScaledFontSize:function(){return o.player.getFontScale()*this.getScale()},queueScale:function(){this.pending||(this.pending=!0,window.requestAnimationFrame(this.scale))},scale:function(){this.scaleValue=this.calcScale(),this.sendWindowScale(),this.pending=!1},calcScale:function(){var t=this.getWindowDimensions(),e=t.height,n=t.width,i=e/o.presentation.display().height(),r=n/o.presentation.display().width();return s.fix(Math.min(i,r),5)},getWindowDimensions:function(){return{height:window.innerHeight,width:window.innerWidth}},getScale:function(){return this.scaleValue}};return s.scaleVal=function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=t*l.getScale();return e?Math.round(n):n},l}.call(e,u,e,t))||(t.exports=n)},function(t,e,a){"use strict";var n;void 0===(n=function(t){var e=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0;return s=a(5).device.isMobile?(i=n="touchstart",r="touchmove",o=e="touchend"):(e="click",n="mousedown",i="mouseenter",r="mousemove",o="mouseup","mouseleave"),Object.freeze({clickOrTouchEnd:e,downOrTouchStart:n,enterOrTouchStart:i,moveOrTouchMove:r,upOrTouchEnd:o,leaveOrTouchEnd:s})}.call(e,a,e,t))||(t.exports=n)},function(t,e,n){
/*!
 * GSAP 3.5.1
 * https://greensock.com
 * 
 * @license Copyright 2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(t){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return"string"==typeof t}function E(t){return"function"==typeof t}function C(t){return"number"==typeof t}function o(t){return void 0===t}function k(t){return"object"==typeof t}function D(t){return!1!==t}function e(){return"undefined"!=typeof window}function O(t){return E(t)||T(t)}function i(t){return(At=fe(t,re))&&dn}function x(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function a(t,e){return t&&(re[t]=e)&&At&&(At[t]=e)||re}function R(){return 0}function N(t){var e,n,i=t[0];if(k(i)||E(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=he.length;n--&&!he[n].targetTest(i););e=he[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new De(t[n],e)))||t.splice(n,1);return t}function V(t){return t._gsap||N(ye(t))[0]._gsap}function s(t,e,n){return(n=t[e])&&E(n)?t[e]():o(n)&&t.getAttribute&&t.getAttribute(e)||n}function v(t,e){return(t=t.split(",")).forEach(e)||t}function j(t){return Math.round(1e5*t)/1e5||0}function l(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n}function u(t,e,n){var i,r=C(t[1]),o=(r?2:1)+(e<2?0:1),s=t[o];if(r&&(s.duration=t[1]),s.parent=n,e){for(i=s;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=D(n.vars.inherit)&&n.parent;s.immediateRender=D(i.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return s}function F(){var t,e,n=se.length,i=se.slice(0);for(ae={},t=se.length=0;t<n;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function r(t,e,n,i){se.length&&F(),t.render(e,n,i),se.length&&F()}function c(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ie).length<2?e:T(t)?t.trim():t}function h(t){return t}function H(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}function d(t,e){for(var n in e)n in t||"duration"===n||"ease"===n||(t[n]=e[n])}function f(t,e){for(var n in e)t[n]=k(e[n])?f(t[n]||(t[n]={}),e[n]):e[n];return t}function B(t,e){var n,i={};for(n in t)n in e||(i[n]=t[n]);return i}function I(t){var e=t.parent||vt,n=t.keyframes?d:H;if(D(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t}function g(t,e,n,i){void 0===n&&(n="_first"),void 0===i&&(i="_last");var r=e._prev,o=e._next;r?r._next=o:t[n]===e&&(t[n]=o),o?o._prev=r:t[i]===e&&(t[i]=r),e._next=e._prev=e.parent=null}function U(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function p(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t}function m(t){return t._repeat?pe(t._tTime,t=t.duration()+t._rDelay)*t:0}function y(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function L(t){return t._end=j(t._start+(t._tDur/Math.abs(t._ts||t._rts||Wt)||0))}function A(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=j(t._dp._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),L(t),n._dirty||p(n,t)),t}function P(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=y(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),n)-e._tTime>Wt)&&e.render(n,!0)),p(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)0<=n.rawTime()&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Wt}}function b(t,e,n,i){return e.parent&&U(e),e._start=j(n+e._delay),e._end=j(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function t(e,n,i,r,o){void 0===i&&(i="_first"),void 0===r&&(r="_last");var s,a=e[r];if(o)for(s=n[o];a&&a[o]>s;)a=a._prev;a?(n._next=a._next,a._next=n):(n._next=e[i],e[i]=n),n._next?n._next._prev=n:e[r]=n,n._prev=a,n.parent=n._dp=e}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,i||P(t,e),t}function W(t,e){return(re.ScrollTrigger||x("scrollTrigger",e))&&re.ScrollTrigger.create(e,t)}function w(t,e,n,i){return Ue(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&wt!==xe.frame?(se.push(t),t._lazy=[e,i],1):void 0:1}function S(t,e,n,i){var r=t._repeat,o=j(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:j(o*(r+1)+t._rDelay*r):o,s&&!i?A(t,t._tTime=t._tDur*s):t.parent&&L(t),n||p(t.parent,t),t}function z(t){return t instanceof Fe?p(t):S(t,t._dur)}function q(t,e){var n,i,r=t.labels,o=t._recent||ve,s=t.duration()>=Ut?o.endTime(!1):t._dur;return T(e)&&(isNaN(e)||e in r)?"<"===(n=e.charAt(0))||">"===n?("<"===n?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0):(n=e.indexOf("="))<0?(e in r||(r[e]=s),r[e]):(i=+(e.charAt(n-1)+e.substr(n+1)),1<n?q(t,e.substr(0,n-1))+i:s+i):null==e?s:+e}function G(t,e){return t||0===t?e(t):e}function X(t){return(t=(t+"").substr((parseFloat(t)+"").length))&&isNaN(t)?t:""}function Y(t,e){return t&&k(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&k(t[0]))&&!t.nodeType&&t!==gt}function J(t){return t.sort(function(){return.5-Math.random()})}function K(t){if(E(t))return t;var p=k(t)?t:{each:t},v=Re(p.ease),g=p.from||0,m=parseFloat(p.base)||0,y={},e=0<g&&g<1,A=isNaN(g)||e,b=p.axis,w=g,S=g;return T(g)?w=S={center:.5,edges:.5,end:1}[g]||0:!e&&A&&(w=g[0],S=g[1]),function(t,e,n){var i,r,o,s,a,l,u,c,h,d=(n||p).length,f=y[d];if(!f){if(!(h="auto"===p.grid?0:(p.grid||[1,Ut])[1])){for(u=-Ut;u<(u=n[h++].getBoundingClientRect().left)&&h<d;);h--}for(f=y[d]=[],i=A?Math.min(h,d)*w-.5:g%h,r=A?d*S/h-.5:g/h|0,c=Ut,l=u=0;l<d;l++)o=l%h-i,s=r-(l/h|0),f[l]=a=b?Math.abs("y"===b?s:o):Xt(o*o+s*s),u<a&&(u=a),a<c&&(c=a);"random"===g&&J(f),f.max=u-c,f.min=c,f.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<h?d-1:b?"y"===b?d/h:h:Math.max(h,d/h))||0)*("edges"===g?-1:1),f.b=d<0?m-d:m,f.u=X(p.amount||p.each)||0,v=v&&d<0?Me(v):v}return d=(f[t]-f.min)/f.max||0,j(f.b+(v?v(d):d)*f.v)+f.u}}function $(e){var n=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*n)/n+(C(t)?0:X(t))}}function Z(l,t){var u,c,e=$t(l);return!e&&k(l)&&(u=e=l.radius||Ut,l.values?(l=ye(l.values),(c=!C(l[0]))&&(u*=u)):l=$(l.increment)),G(t,e?E(l)?function(t){return c=l(t),Math.abs(c-t)<=u?c:t}:function(t){for(var e,n,i=parseFloat(c?t.x:t),r=parseFloat(c?t.y:0),o=Ut,s=0,a=l.length;a--;)(e=c?(e=l[a].x-i)*e+(n=l[a].y-r)*n:Math.abs(l[a]-i))<o&&(o=e,s=a);return s=!u||o<=u?l[s]:t,c||s===t||C(t)?s:s+X(t)}:$(l))}function Q(t,e,n,i){return G($t(t)?!e:!0===n?!!(n=0):!i,function(){return $t(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/n)*n*i)/i})}function tt(e,n,t){return G(t,function(t){return e[~~n(t)]})}function et(t){for(var e,n,i,r,o=0,s="";~(e=t.indexOf("random(",o));)i=t.indexOf(")",e),r="["===t.charAt(e+7),n=t.substr(e+7,i-e-7).match(r?ie:Zt),s+=t.substr(o,e-o)+Q(r?n:+n[0],r?0:+n[1],+n[2]||1e-5),o=i+1;return s+t.substr(o,t.length-o)}function nt(t,e,n){var i,r,o,s=t.labels,a=Ut;for(i in s)(r=s[i]-e)<0==!!n&&r&&a>(r=Math.abs(r))&&(o=i,a=r);return o}function it(t){return U(t),t.progress()<1&&be(t,"onInterrupt"),t}function rt(t,e,n){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*we+.5|0}function ot(t,e,n){var i,r,o,s,a,l,u,c,h,d,f=t?C(t)?[t>>16,t>>8&we,t&we]:0:Se.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Se[t])f=Se[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(r=t.charAt(2))+r+(o=t.charAt(3))+o),f=[(t=parseInt(t.substr(1),16))>>16,t>>8&we,t&we];else if("hsl"===t.substr(0,3))if(f=d=t.match(Zt),e){if(~t.indexOf("="))return f=t.match(Qt),n&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,a=f[1]/100,i=2*(l=f[2]/100)-(r=l<=.5?l*(a+1):l+a-l*a),3<f.length&&(f[3]*=1),f[0]=rt(s+1/3,i,r),f[1]=rt(s,i,r),f[2]=rt(s-1/3,i,r);else f=t.match(Zt)||Se.transparent;f=f.map(Number)}return e&&!d&&(i=f[0]/we,r=f[1]/we,o=f[2]/we,l=((u=Math.max(i,r,o))+(c=Math.min(i,r,o)))/2,u===c?s=a=0:(h=u-c,a=.5<l?h/(2-u-c):h/(u+c),s=u===i?(r-o)/h+(r<o?6:0):u===r?(o-i)/h+2:(i-r)/h+4,s*=60),f[0]=~~(s+.5),f[1]=~~(100*a+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f}function st(t){var n=[],i=[],r=-1;return t.split(Te).forEach(function(t){var e=t.match(te)||[];n.push.apply(n,e),i.push(r+=e.length+1)}),n.c=i,n}function at(t,e,n){var i,r,o,s,a="",l=(t+a).match(Te),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=ot(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),n&&(o=st(t),(i=n.c).join(a)!==o.c.join(a)))for(s=(r=t.replace(Te,"1").split(te)).length-1;c<s;c++)a+=r[c]+(~i.indexOf(c)?l.shift()||u+"0,0,0,0)":(o.length?o:l.length?l:n).shift());if(!r)for(s=(r=t.split(Te)).length-1;c<s;c++)a+=r[c]+l[c];return a+r[s]}function lt(t){var e,n=t.join(" ");if(Te.lastIndex=0,Te.test(n))return e=Ee.test(n),t[1]=at(t[1],e),t[0]=at(t[0],e,st(t[1])),!0}function ut(t){var e=(t+"").split("("),n=Ce[e[0]];return n&&1<e.length&&n.config?n.config.apply(null,~t.indexOf("{")?[function t(e){for(var n,i,r,o={},s=e.substr(1,e.length-3).split(":"),a=s[0],l=1,u=s.length;l<u;l++)i=s[l],n=l!==u-1?i.lastIndexOf(","):i.length,r=i.substr(0,n),o[a]=isNaN(r)?r.replace(Oe,"").trim():+r,a=i.substr(n+1).trim();return o}(e[1])]:function t(e){var n=e.indexOf("(")+1,i=e.indexOf(")"),r=e.indexOf("(",n);return e.substring(n,~r&&r<i?e.indexOf(")",i+1):i)}(t).split(",").map(c)):Ce._CE&&ke.test(t)?Ce._CE("",t):n}function ct(t,e){for(var n,i=t._first;i;)i instanceof Fe?ct(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?ct(i.timeline,e):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=e)),i=i._next}function ht(t,n,i,e){void 0===i&&(i=function t(e){return 1-n(1-e)}),void 0===e&&(e=function t(e){return e<.5?n(2*e)/2:1-n(2*(1-e))/2});var r,o={easeIn:n,easeOut:i,easeInOut:e};return v(t,function(t){for(var e in Ce[t]=re[t]=o,Ce[r=t.toLowerCase()]=i,o)Ce[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=o[e]}),o}function dt(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function ft(n,t,e){function i(t){return 1===t?1:r*Math.pow(2,-10*t)*Jt((t-s)*o)+1}var r=1<=t?t:1,o=(e||(n?.3:.45))/(t<1?t:1),s=o/zt*(Math.asin(1/r)||0),a="out"===n?i:"in"===n?function(t){return 1-i(1-t)}:dt(i);return o=zt/o,a.config=function(t,e){return ft(n,t,e)},a}function pt(e,n){function i(t){return t?--t*t*((n+1)*t+n)+1:0}void 0===n&&(n=1.70158);var t="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:dt(i);return t.config=function(t){return pt(e,t)},t}var vt,gt,mt,yt,At,bt,wt,St,Tt,Et,xt,_t,Ct,kt,Ot,Mt,Rt,It,Lt,Pt,Dt,Nt,Vt,Ft,Ht,jt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Bt={duration:.5,overwrite:!1,delay:0},Ut=1e8,Wt=1/Ut,zt=2*Math.PI,qt=zt/4,Gt=0,Xt=Math.sqrt,Yt=Math.cos,Jt=Math.sin,Kt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$t=Array.isArray,Zt=/(?:-?\.?\d|\.)+/gi,Qt=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,te=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ee=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,ne=/[+-]=-?[\.\d]+/,ie=/[#\-+.]*\b[a-z\d-=+%.]+/gi,re={},oe={},se=[],ae={},le={},ue={},ce=30,he=[],de="",fe=function t(e,n){for(var i in n)e[i]=n[i];return e},pe=function t(e,n){return(e/=n)&&~~e===e?~~e-1:~~e},ve={_start:0,endTime:R},ge=function t(e,n,i){return i<e?e:n<i?n:i},me=[].slice,ye=function t(e,n){return!T(e)||n||!mt&&_e()?$t(e)?function t(e,n,i){return void 0===i&&(i=[]),e.forEach(function(t){return T(t)&&!n||Y(t,1)?i.push.apply(i,ye(t)):i.push(t)})||i}(e,n):Y(e)?me.call(e,0):e?[e]:[]:me.call(yt.querySelectorAll(e),0)},Ae=function t(e,n,i,r,o){var s=n-e,a=r-i;return G(o,function(t){return i+((t-e)/s*a||0)})},be=function t(e,n,i){var r,o,s=e.vars,a=s[n];if(a)return r=s[n+"Params"],o=s.callbackScope||e,i&&se.length&&F(),r?a.apply(o,r):a.call(o)},we=255,Se={aqua:[0,we,we],lime:[0,we,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,we],navy:[0,0,128],white:[we,we,we],olive:[128,128,0],yellow:[we,we,0],orange:[we,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[we,0,0],pink:[we,192,203],cyan:[0,we,we],transparent:[we,we,we,0]},Te=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in Se)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ee=/hsl[a]?\(/,xe=(Mt=Date.now,Rt=500,It=33,Lt=Mt(),Pt=Lt,Nt=Dt=1e3/240,Ct={time:0,frame:0,tick:function t(){Ie(!0)},deltaRatio:function t(e){return kt/(1e3/(e||60))},wake:function t(){bt&&(!mt&&e()&&(gt=mt=window,yt=gt.document||{},re.gsap=dn,(gt.gsapVersions||(gt.gsapVersions=[])).push(dn.version),i(At||gt.GreenSockGlobals||!gt.gsap&&gt||{}),_t=gt.requestAnimationFrame),Et&&Ct.sleep(),xt=_t||function(t){return setTimeout(t,Nt-1e3*Ct.time+1|0)},Tt=1,Ie(2))},sleep:function t(){(_t?gt.cancelAnimationFrame:clearTimeout)(Et),Tt=0,xt=R},lagSmoothing:function t(e,n){Rt=e||1e8,It=Math.min(n,Rt,0)},fps:function t(e){Dt=1e3/(e||240),Nt=1e3*Ct.time+Dt},add:function t(e){Vt.indexOf(e)<0&&Vt.push(e),_e()},remove:function t(e){var n;~(n=Vt.indexOf(e))&&Vt.splice(n,1)&&n<=Ot&&Ot--},_listeners:Vt=[]}),_e=function t(){return!Tt&&xe.wake()},Ce={},ke=/^[\d.\-M][\d.\-,\s]/,Oe=/["']/g,Me=function t(e){return function(t){return 1-e(1-t)}},Re=function t(e,n){return e&&(E(e)?e:Ce[e]||ut(e))||n};function Ie(t){var e,n,i,r,o=Mt()-Pt,s=!0===t;if(Rt<o&&(Lt+=o-It),(0<(e=(i=(Pt+=o)-Lt)-Nt)||s)&&(r=++Ct.frame,kt=i-1e3*Ct.time,Ct.time=i/=1e3,Nt+=e+(Dt<=e?4:Dt-e),n=1),s||(Et=xt(Ie)),n)for(Ot=0;Ot<Vt.length;Ot++)Vt[Ot](i,kt,r,t)}function Le(t){return t<Ht?Ft*t*t:t<.7272727272727273?Ft*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Ft*(t-=2.25/2.75)*t+.9375:Ft*Math.pow(t-2.625/2.75,2)+.984375}v("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ht(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},function(t){return 1-Math.pow(1-t,n)},function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2})}),Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn,ht("Elastic",ft("in"),ft("out"),ft()),Ft=7.5625,Ht=1/2.75,ht("Bounce",function(t){return 1-Le(1-t)},Le),ht("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),ht("Circ",function(t){return-(Xt(1-t*t)-1)}),ht("Sine",function(t){return 1===t?1:1-Yt(t*qt)}),ht("Back",pt("in"),pt("out"),pt()),Ce.SteppedEase=Ce.steps=re.SteppedEase={config:function t(e,n){void 0===e&&(e=1);var i=1/e,r=e+(n?0:1),o=n?1:0;return function(t){return((r*ge(0,.99999999,t)|0)+o)*i}}},Bt.ease=Ce["quad.out"],v("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return de+=t+","+t+"Params,"});var Pe,De=function t(e,n){this.id=Gt++,(e._gsap=this).target=e,this.harness=n,this.get=n?n.get:s,this.set=n?n.getSetter:Ze},Ne=((Pe=Ve.prototype).delay=function t(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},Pe.duration=function t(e){return arguments.length?this.totalDuration(0<this._repeat?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},Pe.totalDuration=function t(e){return arguments.length?(this._dirty=0,S(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Pe.totalTime=function t(e,n){if(_e(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(A(this,e);i.parent;)i.parent._time!==i._start+(0<=i._ts?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&e<this._tDur||this._ts<0&&0<e||!this._tDur&&!e)&&b(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Wt||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),r(this,e,n)),this},Pe.time=function t(e,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+m(this))%this._dur||(e?this._dur:0),n):this._time},Pe.totalProgress=function t(e,n){return arguments.length?this.totalTime(this.totalDuration()*e,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Pe.progress=function t(e,n){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+m(this),n):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Pe.iteration=function t(e,n){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,n):this._repeat?pe(this._tTime,i)+1:1},Pe.timeScale=function t(e){if(!arguments.length)return this._rts===-Wt?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?y(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Wt?0:this._rts,function t(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e}(this.totalTime(ge(-this._delay,this._tDur,n),!0))},Pe.paused=function t(e){return arguments.length?(this._ps!==e&&((this._ps=e)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_e(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=Wt)&&Math.abs(this._zTime)!==Wt))),this):this._ps},Pe.startTime=function t(e){if(arguments.length){this._start=e;var n=this.parent||this._dp;return!n||!n._sort&&this.parent||b(n,this,e-this._delay),this}return this._start},Pe.endTime=function t(e){return this._start+(D(e)?this.totalDuration():this.duration())/Math.abs(this._ts)},Pe.rawTime=function t(e){var n=this.parent||this._dp;return n?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?y(n.rawTime(e),this):this._tTime:this._tTime},Pe.globalTime=function t(e){for(var n=this,i=arguments.length?e:n.rawTime();n;)i=n._start+i/(n._ts||1),n=n._dp;return i},Pe.repeat=function t(e){return arguments.length?(this._repeat=e,z(this)):this._repeat},Pe.repeatDelay=function t(e){return arguments.length?(this._rDelay=e,z(this)):this._rDelay},Pe.yoyo=function t(e){return arguments.length?(this._yoyo=e,this):this._yoyo},Pe.seek=function t(e,n){return this.totalTime(q(this,e),D(n))},Pe.restart=function t(e,n){return this.play().totalTime(e?-this._delay:0,D(n))},Pe.play=function t(e,n){return null!=e&&this.seek(e,n),this.reversed(!1).paused(!1)},Pe.reverse=function t(e,n){return null!=e&&this.seek(e||this.totalDuration(),n),this.reversed(!0).paused(!1)},Pe.pause=function t(e,n){return null!=e&&this.seek(e,n),this.paused(!0)},Pe.resume=function t(){return this.paused(!1)},Pe.reversed=function t(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-Wt:0)),this):this._rts<0},Pe.invalidate=function t(){return this._initted=0,this._zTime=-Wt,this},Pe.isActive=function t(){var e,n=this.parent||this._dp,i=this._start;return!(n&&!(this._ts&&this._initted&&n.isActive()&&(e=n.rawTime(!0))>=i&&e<this.endTime(!0)-Wt))},Pe.eventCallback=function t(e,n,i){var r=this.vars;return 1<arguments.length?(n?(r[e]=n,i&&(r[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=n)):delete r[e],this):r[e]},Pe.then=function t(i){var r=this;return new Promise(function(e){function t(){var t=r.then;r.then=null,E(n)&&(n=n(r))&&(n.then||n===r)&&(r.then=t),e(n),r.then=t}var n=E(i)?i:h;r._initted&&1===r.totalProgress()&&0<=r._ts||!r._tTime&&r._ts<0?t():r._prom=t})},Pe.kill=function t(){it(this)},Ve);function Ve(t,e){var n=t.parent||vt;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,S(this,+t.duration,1,1),this.data=t.data,Tt||xe.wake(),n&&b(n,this,e||0===e?e:n._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}H(Ne.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Wt,_prom:0,_ps:!1,_rts:1});var Fe=function(i){function t(t,e){var n;return void 0===t&&(t={}),(n=i.call(this,t,e)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=D(t.sortChildren),n.parent&&P(n.parent,_(n)),t.scrollTrigger&&W(_(n),t.scrollTrigger),n}n(t,i);var e=t.prototype;return e.to=function t(e,n,i,r){return new Ge(e,u(arguments,0,this),q(this,C(n)?r:i)),this},e.from=function t(e,n,i,r){return new Ge(e,u(arguments,1,this),q(this,C(n)?r:i)),this},e.fromTo=function t(e,n,i,r,o){return new Ge(e,u(arguments,2,this),q(this,C(n)?o:r)),this},e.set=function t(e,n,i){return n.duration=0,n.parent=this,I(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Ge(e,n,q(this,i),1),this},e.call=function t(e,n,i){return b(this,Ge.delayedCall(0,e,n),q(this,i))},e.staggerTo=function t(e,n,i,r,o,s,a){return i.duration=n,i.stagger=i.stagger||r,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new Ge(e,i,q(this,o)),this},e.staggerFrom=function t(e,n,i,r,o,s,a){return i.runBackwards=1,I(i).immediateRender=D(i.immediateRender),this.staggerTo(e,n,i,r,o,s,a)},e.staggerFromTo=function t(e,n,i,r,o,s,a,l){return r.startAt=i,I(r).immediateRender=D(r.immediateRender),this.staggerTo(e,n,r,o,s,a,l)},e.render=function t(e,n,i){var r,o,s,a,l,u,c,h,d,f,p,v,g=this._time,m=this._dirty?this.totalDuration():this._tDur,y=this._dur,A=this!==vt&&m-Wt<e&&0<=e?m:e<Wt?0:e,b=this._zTime<0!=e<0&&(this._initted||!y);if(A!==this._tTime||i||b){if(g!==this._time&&y&&(A+=this._time-g,e+=this._time-g),r=A,d=this._start,u=!(h=this._ts),b&&(y||(g=this._zTime),!e&&n||(this._zTime=e)),this._repeat&&(p=this._yoyo,l=y+this._rDelay,r=j(A%l),A===m?(a=this._repeat,r=y):((a=~~(A/l))&&a===A/l&&(r=y,a--),y<r&&(r=y)),f=pe(this._tTime,l),!g&&this._tTime&&f!==a&&(f=a),p&&1&a&&(r=y-r,v=1),a!==f&&!this._lock)){var w=p&&1&f,S=w===(p&&1&a);if(a<f&&(w=!w),g=w?0:y,this._lock=1,this.render(g||(v?0:j(a*l)),n,!y)._lock=0,!n&&this.parent&&be(this,"onRepeat"),this.vars.repeatRefresh&&!v&&(this.invalidate()._lock=1),g!==this._time||u!=!this._ts)return this;if(y=this._dur,m=this._tDur,S&&(this._lock=2,g=w?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!v&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;ct(this,v)}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function t(e,n,i){var r;if(n<i)for(r=e._first;r&&r._start<=i;){if(!r._dur&&"isPause"===r.data&&r._start>n)return r;r=r._next}else for(r=e._last;r&&r._start>=i;){if(!r._dur&&"isPause"===r.data&&r._start<n)return r;r=r._prev}}(this,j(g),j(r)))&&(A-=r-(r=c._start)),this._tTime=A,this._time=r,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e),g||!r||n||be(this,"onStart"),g<=r&&0<=e)for(o=this._first;o;){if(s=o._next,(o._act||r>=o._start)&&o._ts&&c!==o){if(o.parent!==this)return this.render(e,n,i);if(o.render(0<o._ts?(r-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(r-o._start)*o._ts,n,i),r!==this._time||!this._ts&&!u){c=0,s&&(A+=this._zTime=-Wt);break}}o=s}else{o=this._last;for(var T=e<0?e:r;o;){if(s=o._prev,(o._act||T<=o._end)&&o._ts&&c!==o){if(o.parent!==this)return this.render(e,n,i);if(o.render(0<o._ts?(T-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(T-o._start)*o._ts,n,i),r!==this._time||!this._ts&&!u){c=0,s&&(A+=this._zTime=T?-Wt:Wt);break}}o=s}}if(c&&!n&&(this.pause(),c.render(g<=r?0:-Wt)._zTime=g<=r?1:-1,this._ts))return this._start=d,L(this),this.render(e,n,i);this._onUpdate&&!n&&be(this,"onUpdate",!0),(A===m&&m>=this.totalDuration()||!A&&g)&&(d!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!e&&y||!(A===m&&0<this._ts||!A&&this._ts<0)||U(this,1),n||e<0&&!g||!A&&!g||(be(this,A===m?"onComplete":"onReverseComplete",!0),!this._prom||A<m&&0<this.timeScale()||this._prom())))}return this},e.add=function t(e,n){var i=this;if(C(n)||(n=q(this,n)),!(e instanceof Ne)){if($t(e))return e.forEach(function(t){return i.add(t,n)}),this;if(T(e))return this.addLabel(e,n);if(!E(e))return this;e=Ge.delayedCall(0,e)}return this!==e?b(this,e,n):this},e.getChildren=function t(e,n,i,r){void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=-Ut);for(var o=[],s=this._first;s;)s._start>=r&&(s instanceof Ge?n&&o.push(s):(i&&o.push(s),e&&o.push.apply(o,s.getChildren(!0,n,i)))),s=s._next;return o},e.getById=function t(e){for(var n=this.getChildren(1,1,1),i=n.length;i--;)if(n[i].vars.id===e)return n[i]},e.remove=function t(e){return T(e)?this.removeLabel(e):E(e)?this.killTweensOf(e):(g(this,e),e===this._recent&&(this._recent=this._last),p(this))},e.totalTime=function t(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=j(xe.time-(0<this._ts?e/this._ts:(this.totalDuration()-e)/-this._ts))),i.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},e.addLabel=function t(e,n){return this.labels[e]=q(this,n),this},e.removeLabel=function t(e){return delete this.labels[e],this},e.addPause=function t(e,n,i){var r=Ge.delayedCall(0,n||R,i);return r.data="isPause",this._hasPause=1,b(this,r,q(this,e))},e.removePause=function t(e){var n=this._first;for(e=q(this,e);n;)n._start===e&&"isPause"===n.data&&U(n),n=n._next},e.killTweensOf=function t(e,n,i){for(var r=this.getTweensOf(e,i),o=r.length;o--;)je!==r[o]&&r[o].kill(e,n);return this},e.getTweensOf=function t(e,n){for(var i,r=[],o=ye(e),s=this._first,a=C(n);s;)s instanceof Ge?l(s._targets,o)&&(a?(!je||s._initted&&s._ts)&&s.globalTime(0)<=n&&s.globalTime(s.totalDuration())>n:!n||s.isActive())&&r.push(s):(i=s.getTweensOf(o,n)).length&&r.push.apply(r,i),s=s._next;return r},e.tweenTo=function t(e,n){n=n||{};var i=this,r=q(i,e),o=n.startAt,s=n.onStart,a=n.onStartParams,l=Ge.to(i,H(n,{ease:"none",lazy:!1,time:r,overwrite:"auto",duration:n.duration||Math.abs((r-(o&&"time"in o?o.time:i._time))/i.timeScale())||Wt,onStart:function t(){i.pause();var e=n.duration||Math.abs((r-i._time)/i.timeScale());l._dur!==e&&S(l,e,0,1).render(l._time,!0,!0),s&&s.apply(l,a||[])}}));return l},e.tweenFromTo=function t(e,n,i){return this.tweenTo(n,H({startAt:{time:q(this,e)}},i))},e.recent=function t(){return this._recent},e.nextLabel=function t(e){return void 0===e&&(e=this._time),nt(this,q(this,e))},e.previousLabel=function t(e){return void 0===e&&(e=this._time),nt(this,q(this,e),1)},e.currentLabel=function t(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Wt)},e.shiftChildren=function t(e,n,i){void 0===i&&(i=0);for(var r,o=this._first,s=this.labels;o;)o._start>=i&&(o._start+=e,o._end+=e),o=o._next;if(n)for(r in s)s[r]>=i&&(s[r]+=e);return p(this)},e.invalidate=function t(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return i.prototype.invalidate.call(this)},e.clear=function t(e){void 0===e&&(e=!0);for(var n,i=this._first;i;)n=i._next,this.remove(i),i=n;return this._time=this._tTime=this._pTime=0,e&&(this.labels={}),p(this)},e.totalDuration=function t(e){var n,i,r,o=0,s=this,a=s._last,l=Ut;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-e:e));if(s._dirty){for(r=s.parent;a;)n=a._prev,a._dirty&&a.totalDuration(),l<(i=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,b(s,a,i-a._delay,1)._lock=0):l=i,i<0&&a._ts&&(o-=i,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),l=0),a._end>o&&a._ts&&(o=a._end),a=n;S(s,s===vt&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},t.updateRoot=function t(e){if(vt._ts&&(r(vt,y(e,vt)),wt=xe.frame),xe.frame>=ce){ce+=jt.autoSleep||120;var n=vt._first;if((!n||!n._ts)&&jt.autoSleep&&xe._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||xe.sleep()}}},t}(Ne);function He(t,e,n,i,r,o){var s,a,l,u;if(le[t]&&!1!==(s=new le[t]).init(r,s.rawVars?e[t]:function t(e,n,i,r,o){if(E(e)&&(e=We(e,o,n,i,r)),!k(e)||e.style&&e.nodeType||$t(e)||Kt(e))return T(e)?We(e,o,n,i,r):e;var s,a={};for(s in e)a[s]=We(e[s],o,n,i,r);return a}(e[t],i,r,o,n),n,i,o)&&(n._pt=a=new an(n._pt,r,t,0,1,s.render,s,0,s.priority),n!==St))for(l=n._ptLookup[n._targets.indexOf(r)],u=s._props.length;u--;)l[s._props[u]]=a;return s}H(Fe.prototype,{_lock:0,_hasPause:0,_forcing:0});var je,Be=function t(e,n,i,r,o,s,a,l,u){E(r)&&(r=r(o||0,e,s));var c,h=e[n],d="get"!==i?i:E(h)?u?e[n.indexOf("set")||!E(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():h,f=E(h)?u?$e:Ke:Je;if(T(r)&&(~r.indexOf("random(")&&(r=et(r)),"="===r.charAt(1)&&(r=parseFloat(d)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(X(d)||0))),d!==r)return isNaN(d*r)?(h||n in e||x(n,r),function t(e,n,i,r,o,s,a){var l,u,c,h,d,f,p,v,g=new an(this._pt,e,n,0,1,en,null,o),m=0,y=0;for(g.b=i,g.e=r,i+="",(p=~(r+="").indexOf("random("))&&(r=et(r)),s&&(s(v=[i,r],e,n),i=v[0],r=v[1]),u=i.match(ee)||[];l=ee.exec(r);)h=l[0],d=r.substring(m,l.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),h!==u[y++]&&(f=parseFloat(u[y-1])||0,g._pt={_next:g._pt,p:d||1===y?d:",",s:f,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-f,m:c&&c<4?Math.round:0},m=ee.lastIndex);return g.c=m<r.length?r.substring(m,r.length):"",g.fp=a,(ne.test(r)||p)&&(g.e=0),this._pt=g}.call(this,e,n,d,r,f,l||jt.stringFilter,u)):(c=new an(this._pt,e,n,+d||0,r-(d||0),"boolean"==typeof h?tn:Qe,0,f),u&&(c.fp=u),a&&c.modifier(a,this,e),this._pt=c)},Ue=function t(e,n){var i,r,o,s,a,l,u,c,h,d,f,p,v,g=e.vars,m=g.ease,y=g.startAt,A=g.immediateRender,b=g.lazy,w=g.onUpdate,S=g.onUpdateParams,T=g.callbackScope,E=g.runBackwards,x=g.yoyoEase,_=g.keyframes,C=g.autoRevert,k=e._dur,O=e._startAt,M=e._targets,R=e.parent,I=R&&"nested"===R.data?R.parent._targets:M,L="auto"===e._overwrite,P=e.timeline;if(!P||_&&m||(m="none"),e._ease=Re(m,Bt.ease),e._yEase=x?Me(Re(!0===x?m:x,Bt.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),!P){if(p=(c=M[0]?V(M[0]).harness:0)&&g[c.prop],i=B(g,oe),O&&O.render(-1,!0).kill(),y){if(U(e._startAt=Ge.set(M,H({data:"isStart",overwrite:!1,parent:R,immediateRender:!0,lazy:D(b),startAt:null,delay:0,onUpdate:w,onUpdateParams:S,callbackScope:T,stagger:0},y))),A)if(0<n)C||(e._startAt=0);else if(k&&!(n<0&&O))return void(n&&(e._zTime=n))}else if(E&&k)if(O)C||(e._startAt=0);else if(n&&(A=!1),o=H({overwrite:!1,data:"isFromStart",lazy:A&&D(b),immediateRender:A,stagger:0,parent:R},i),p&&(o[c.prop]=p),U(e._startAt=Ge.set(M,o)),A){if(!n)return}else t(e._startAt,Wt);for(e._pt=0,b=k&&D(b)||b&&!k,r=0;r<M.length;r++){if(u=(a=M[r])._gsap||N(M)[r]._gsap,e._ptLookup[r]=d={},ae[u.id]&&se.length&&F(),f=I===M?r:I.indexOf(a),c&&!1!==(h=new c).init(a,p||i,e,f,I)&&(e._pt=s=new an(e._pt,a,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(t){d[t]=s}),h.priority&&(l=1)),!c||p)for(o in i)le[o]&&(h=He(o,i,e,f,a,I))?h.priority&&(l=1):d[o]=s=Be.call(e,a,o,"get",i[o],f,I,0,g.stringFilter);e._op&&e._op[r]&&e.kill(a,e._op[r]),L&&e._pt&&(je=e,vt.killTweensOf(a,d,e.globalTime(0)),v=!e.parent,je=0),e._pt&&b&&(ae[u.id]=1)}l&&sn(e),e._onInit&&e._onInit(e)}e._from=!P&&!!g.runBackwards,e._onUpdate=w,e._initted=(!e._op||e._pt)&&!v},We=function t(e,n,i,r,o){return E(e)?e.call(n,i,r,o):T(e)&&~e.indexOf("random(")?et(e):e},ze=de+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",qe=(ze+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Ge=function(x){function o(t,e,n,i){var r;"number"==typeof e&&(n.duration=e,e=n,n=null);var o,s,a,l,u,c,h,d,f=(r=x.call(this,i?e:I(e),n)||this).vars,p=f.duration,v=f.delay,g=f.immediateRender,m=f.stagger,y=f.overwrite,A=f.keyframes,b=f.defaults,w=f.scrollTrigger,S=f.yoyoEase,T=r.parent,E=($t(t)||Kt(t)?C(t[0]):"length"in e)?[t]:ye(t);if(r._targets=E.length?N(E):M("GSAP target "+t+" not found. https://greensock.com",!jt.nullTargetWarn)||[],r._ptLookup=[],r._overwrite=y,A||m||O(p)||O(v)){if(e=r.vars,(o=r.timeline=new Fe({data:"nested",defaults:b||{}})).kill(),o.parent=_(r),A)H(o.vars.defaults,{ease:"none"}),A.forEach(function(t){return o.to(E,t,">")});else{if(l=E.length,h=m?K(m):R,k(m))for(u in m)~ze.indexOf(u)&&((d=d||{})[u]=m[u]);for(s=0;s<l;s++){for(u in a={},e)qe.indexOf(u)<0&&(a[u]=e[u]);a.stagger=0,S&&(a.yoyoEase=S),d&&fe(a,d),c=E[s],a.duration=+We(p,_(r),s,c,E),a.delay=(+We(v,_(r),s,c,E)||0)-r._delay,!m&&1===l&&a.delay&&(r._delay=v=a.delay,r._start+=v,a.delay=0),o.to(c,a,h(s,c,E))}o.duration()?p=v=0:r.timeline=0}p||r.duration(p=o.duration())}else r.timeline=0;return!0===y&&(je=_(r),vt.killTweensOf(E),je=0),T&&P(T,_(r)),(g||!p&&!A&&r._start===j(T._time)&&D(g)&&function t(e){return!e||e._ts&&t(e.parent)}(_(r))&&"nested"!==T.data)&&(r._tTime=-Wt,r.render(Math.max(0,-v))),w&&W(_(r),w),r}n(o,x);var t=o.prototype;return t.render=function t(e,n,i){var r,o,s,a,l,u,c,h,d,f=this._time,p=this._tDur,v=this._dur,g=p-Wt<e&&0<=e?p:e<Wt?0:e;if(v){if(g!==this._tTime||!e||i||this._startAt&&this._zTime<0!=e<0){if(r=g,h=this.timeline,this._repeat){if(a=v+this._rDelay,r=j(g%a),g===p?(s=this._repeat,r=v):((s=~~(g/a))&&s===g/a&&(r=v,s--),v<r&&(r=v)),(u=this._yoyo&&1&s)&&(d=this._yEase,r=v-r),l=pe(this._tTime,a),r===f&&!i&&this._initted)return this;s!==l&&(h&&this._yEase&&ct(h,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=i=1,this.render(j(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(w(this,e<0?e:r,i,n))return this._tTime=0,this;if(v!==this._dur)return this.render(e,n,i)}for(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(d||this._ease)(r/v),this._from&&(this.ratio=c=1-c),!r||f||n||be(this,"onStart"),o=this._pt;o;)o.r(c,o.d),o=o._next;h&&h.render(e<0?e:!r&&u?-Wt:h._dur*c,n,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!n&&(e<0&&this._startAt&&this._startAt.render(e,!0,i),be(this,"onUpdate")),this._repeat&&s!==l&&this.vars.onRepeat&&!n&&this.parent&&be(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),!e&&v||!(g===this._tDur&&0<this._ts||!g&&this._ts<0)||U(this,1),n||e<0&&!f||!g&&!f||(be(this,g===p?"onComplete":"onReverseComplete",!0),!this._prom||g<p&&0<this.timeScale()||this._prom()))}}else!function t(e,n,i,r){var o,s,a=e.ratio,l=n<0||!n&&a&&!e._start&&e._zTime>Wt&&!e._dp._lock||(e._ts<0||e._dp._ts<0)&&"isFromStart"!==e.data&&"isStart"!==e.data?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(c=ge(0,e._tDur,n),pe(c,u)!==(s=pe(e._tTime,u))&&(a=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==a||r||e._zTime===Wt||!n&&e._zTime){if(!e._initted&&w(e,n,r,i))return;for(s=e._zTime,e._zTime=n||(i?Wt:0),i=i||n&&!s,e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i||be(e,"onStart"),o=e._pt;o;)o.r(l,o.d),o=o._next;e._startAt&&n<0&&e._startAt.render(n,!0,!0),e._onUpdate&&!i&&be(e,"onUpdate"),c&&e._repeat&&!i&&e.parent&&be(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&U(e,1),i||(be(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)}(this,e,n,i);return this},t.targets=function t(){return this._targets},t.invalidate=function t(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),x.prototype.invalidate.call(this)},t.kill=function t(e,n){if(void 0===n&&(n="all"),!(e||n&&"all"!==n)&&(this._lazy=0,this.parent))return it(this);if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,n,je&&!0!==je.vars.overwrite)._first||it(this),this.parent&&i!==this.timeline.totalDuration()&&S(this,this._dur*this.timeline._tDur/i,0,1),this}var r,o,s,a,l,u,c,h=this._targets,d=e?ye(e):h,f=this._ptLookup,p=this._pt;if((!n||"all"===n)&&function t(e,n){for(var i=e.length,r=i===n.length;r&&i--&&e[i]===n[i];);return i<0}(h,d))return"all"===n&&(this._pt=0),it(this);for(r=this._op=this._op||[],"all"!==n&&(T(n)&&(l={},v(n,function(t){return l[t]=1}),n=l),n=function t(e,n){var i,r,o,s,a=e[0]?V(e[0]).harness:0,l=a&&a.aliases;if(!l)return n;for(r in i=fe({},n),l)if(r in i)for(o=(s=l[r].split(",")).length;o--;)i[s[o]]=i[r];return i}(h,n)),c=h.length;c--;)if(~d.indexOf(h[c]))for(l in o=f[c],"all"===n?(r[c]=n,a=o,s={}):(s=r[c]=r[c]||{},a=n),a)(u=o&&o[l])&&("kill"in u.d&&!0!==u.d.kill(l)||g(this,u,"_pt"),delete o[l]),"all"!==s&&(s[l]=1);return this._initted&&!this._pt&&p&&it(this),this},o.to=function t(e,n,i){return new o(e,n,i)},o.from=function t(e,n){return new o(e,u(arguments,1))},o.delayedCall=function t(e,n,i,r){return new o(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:r})},o.fromTo=function t(e,n,i){return new o(e,u(arguments,2))},o.set=function t(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new o(e,n)},o.killTweensOf=function t(e,n,i){return vt.killTweensOf(e,n,i)},o}(Ne);function Xe(t,e,n){return t.setAttribute(e,n)}function Ye(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)}H(Ge.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),v("staggerTo,staggerFrom,staggerFromTo",function(n){Ge[n]=function(){var t=new Fe,e=me.call(arguments,0);return e.splice("staggerFromTo"===n?5:4,0,0),t[n].apply(t,e)}});var Je=function t(e,n,i){return e[n]=i},Ke=function t(e,n,i){return e[n](i)},$e=function t(e,n,i,r){return e[n](r.fp,i)},Ze=function t(e,n){return E(e[n])?Ke:o(e[n])&&e.setAttribute?Xe:Je},Qe=function t(e,n){return n.set(n.t,n.p,Math.round(1e4*(n.s+n.c*e))/1e4,n)},tn=function t(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},en=function t(e,n){var i=n._pt,r="";if(!e&&n.b)r=n.b;else if(1===e&&n.e)r=n.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+r,i=i._next;r+=n.c}n.set(n.t,n.p,r,n)},nn=function t(e,n){for(var i=n._pt;i;)i.r(e,i.d),i=i._next},rn=function t(e,n,i,r){for(var o,s=this._pt;s;)o=s._next,s.p===r&&s.modifier(e,n,i),s=o},on=function t(e){for(var n,i,r=this._pt;r;)i=r._next,r.p===e&&!r.op||r.op===e?g(this,r,"_pt"):r.dep||(n=1),r=i;return!n},sn=function t(e){for(var n,i,r,o,s=e._pt;s;){for(n=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=n}e._pt=r},an=(ln.prototype.modifier=function t(e,n,i){this.mSet=this.mSet||this.set,this.set=Ye,this.m=e,this.mt=i,this.tween=n},ln);function ln(t,e,n,i,r,o,s,a,l){this.t=e,this.s=i,this.c=r,this.p=n,this.r=o||Qe,this.d=s||this,this.set=a||Je,this.pr=l||0,(this._next=t)&&(t._prev=this)}v(de+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return oe[t]=1}),re.TweenMax=re.TweenLite=Ge,re.TimelineLite=re.TimelineMax=Fe,vt=new Fe({sortChildren:!1,defaults:Bt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),jt.stringFilter=lt;var un={registerPlugin:function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.forEach(function(t){return function t(e){var n=(e=!e.name&&e.default||e).name,i=E(e),r=n&&!i&&e.init?function(){this._props=[]}:e,o={init:R,render:nn,add:Be,kill:on,modifier:rn,rawVars:0},s={targetTest:0,get:0,getSetter:Ze,aliases:{},register:0};if(_e(),e!==r){if(le[n])return;H(r,H(B(e,o),s)),fe(r.prototype,fe(o,B(e,s))),le[r.prop=n]=r,e.targetTest&&(he.push(r),oe[n]=1),n=("css"===n?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}a(n,r),e.register&&e.register(dn,r,an)}(t)})},timeline:function t(e){return new Fe(e)},getTweensOf:function t(e,n){return vt.getTweensOf(e,n)},getProperty:function t(i,e,n,r){T(i)&&(i=ye(i)[0]);var o=V(i||{}).get,s=n?h:c;return"native"===n&&(n=""),i?e?s((le[e]&&le[e].get||o)(i,e,n,r)):function(t,e,n){return s((le[t]&&le[t].get||o)(i,t,e,n))}:i},quickSetter:function t(n,e,i){if(1<(n=ye(n)).length){var r=n.map(function(t){return dn.quickSetter(t,e,i)}),o=r.length;return function(t){for(var e=o;e--;)r[e](t)}}n=n[0]||{};var s=le[e],a=V(n),l=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(t){var e=new s;St._pt=0,e.init(n,i?t+i:t,St,0,[n]),e.render(1,e),St._pt&&nn(1,St)}:a.set(n,l);return s?u:function(t){return u(n,l,i?t+i:t,a,1)}},isTweening:function t(e){return 0<vt.getTweensOf(e,!0).length},defaults:function t(e){return e&&e.ease&&(e.ease=Re(e.ease,Bt.ease)),f(Bt,e||{})},config:function t(e){return f(jt,e||{})},registerEffect:function t(e){var i=e.name,r=e.effect,n=e.plugins,o=e.defaults,s=e.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!le[t]&&!re[t]&&M(i+" effect requires "+t+" plugin.")}),ue[i]=function(t,e,n){return r(ye(t),H(e||{},o),n)},s&&(Fe.prototype[i]=function(t,e,n){return this.add(ue[i](t,k(e)?e:(n=e)&&{},this),n)})},registerEase:function t(e,n){Ce[e]=Re(n)},parseEase:function t(e,n){return arguments.length?Re(e,n):Ce},getById:function t(e){return vt.getById(e)},exportRoot:function t(e,n){void 0===e&&(e={});var i,r,o=new Fe(e);for(o.smoothChildTiming=D(e.smoothChildTiming),vt.remove(o),o._dp=0,o._time=o._tTime=vt._time,i=vt._first;i;)r=i._next,!n&&!i._dur&&i instanceof Ge&&i.vars.onComplete===i._targets[0]||b(o,i,i._start-i._delay),i=r;return b(vt,o,0),o},utils:{wrap:function t(e,n,i){var r=n-e;return $t(e)?tt(e,t(0,e.length),n):G(i,function(t){return(r+(t-e)%r)%r+e})},wrapYoyo:function t(e,n,i){var r=n-e,o=2*r;return $t(e)?tt(e,t(0,e.length-1),n):G(i,function(t){return e+(r<(t=(o+(t-e)%o)%o||0)?o-t:t)})},distribute:K,random:Q,snap:Z,normalize:function t(e,n,i){return Ae(e,n,0,1,i)},getUnit:X,clamp:function t(e,n,i){return G(i,function(t){return ge(e,n,t)})},splitColor:ot,toArray:ye,mapRange:Ae,pipe:function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(t){return n.reduce(function(t,e){return e(t)},t)}},unitize:function t(e,n){return function(t){return e(parseFloat(t))+(n||X(t))}},interpolate:function t(n,e,i,r){var o=isNaN(n+e)?0:function(t){return(1-t)*n+t*e};if(!o){var s,a,l,u,c,h=T(n),d={};if(!0===i&&(r=1)&&(i=null),h)n={p:n},e={p:e};else if($t(n)&&!$t(e)){for(l=[],u=n.length,c=u-2,a=1;a<u;a++)l.push(t(n[a-1],n[a]));u--,o=function t(e){e*=u;var n=Math.min(c,~~e);return l[n](e-n)},i=e}else r||(n=fe($t(n)?[]:{},n));if(!l){for(s in e)Be.call(d,n,s,"get",e[s]);o=function t(e){return nn(e,d)||(h?n.p:n)}}}return G(i,o)},shuffle:J},install:i,effects:ue,ticker:xe,updateRoot:Fe.updateRoot,plugins:le,globalTimeline:vt,core:{PropTween:an,globals:a,Tween:Ge,Timeline:Fe,Animation:Ne,getCache:V,_removeLinkedListItem:g}};function cn(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n}function hn(t,r){return{name:t,rawVars:1,init:function t(e,i,n){n._onInit=function(t){var e,n;if(T(i)&&(e={},v(i,function(t){return e[t]=1}),i=e),r){for(n in e={},i)e[n]=r(i[n]);i=e}!function t(e,n){var i,r,o,s=e._targets;for(i in n)for(r=s.length;r--;)(o=(o=e._ptLookup[r][i])&&o.d)&&(o._pt&&(o=cn(o,i)),o&&o.modifier&&o.modifier(n[i],e,s[r],i))}(t,i)}}}}v("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return un[t]=Ge[t]}),xe.add(Fe.updateRoot),St=un.to({},{duration:0});var dn=un.registerPlugin({name:"attr",init:function t(e,n,i,r,o){var s,a;for(s in n)(a=this.add(e,"setAttribute",(e.getAttribute(s)||0)+"",n[s],r,o,0,0,s))&&(a.op=s),this._props.push(s)}},{name:"endArray",init:function t(e,n){for(var i=n.length;i--;)this.add(e,i,e[i]||0,n[i])}},hn("roundProps",$),hn("modifiers"),hn("snap",Z))||un;function fn(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function pn(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function vn(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function gn(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)}function mn(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function yn(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function An(t,e,n){return t.style[e]=n}function bn(t,e,n){return t.style.setProperty(e,n)}function wn(t,e,n){return t._gsap[e]=n}function Sn(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n}function Tn(t,e,n,i,r){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(r,o)}function En(t,e,n,i,r){var o=t._gsap;o[e]=n,o.renderTransform(r,o)}function xn(t,e){var n=Xn.createElementNS?Xn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Xn.createElement(t);return n.style?n:Xn.createElement(t)}function _n(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Si,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&_n(t,Oi(e)||e,1)||""}function Cn(){(function t(){return"undefined"!=typeof window})()&&window.document&&(Gn=window,Xn=Gn.document,Yn=Xn.documentElement,Kn=xn("div")||{style:{}},$n=xn("div"),_i=Oi(_i),Ci=_i+"Origin",Kn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Qn=!!Oi("perspective"),Jn=1)}function kn(t){var e,n=xn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,r=this.nextSibling,o=this.style.cssText;if(Yn.appendChild(n),n.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=kn}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(r?i.insertBefore(this,r):i.appendChild(this)),Yn.removeChild(n),this.style.cssText=o,e}function On(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])}function Mn(e){var n;try{n=e.getBBox()}catch(t){n=kn.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===kn||(n=kn.call(e,!0)),!n||n.width||n.x||n.y?n:{x:+On(e,["x","cx","x1"])||0,y:+On(e,["y","cy","y1"])||0,width:0,height:0}}function Rn(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Mn(t))}function In(t,e){if(e){var n=t.style;e in yi&&e!==Ci&&(e=_i),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Si,"-$1").toLowerCase())):n.removeAttribute(e)}}function Ln(t,e,n,i,r,o){var s=new an(t._pt,e,n,0,1,o?yn:mn);return(t._pt=s).b=i,s.e=r,t._props.push(n),s}function Pn(t,e,n,i){var r,o,s,a,l=parseFloat(n)||0,u=(n+"").trim().substr((l+"").length)||"px",c=Kn.style,h=Ti.test(e),d="svg"===t.tagName.toLowerCase(),f=(d?"client":"offset")+(h?"Width":"Height"),p="px"===i,v="%"===i;return i===u||!l||Mi[i]||Mi[u]?l:("px"===u||p||(l=Pn(t,e,n,"px")),a=t.getCTM&&Rn(t),v&&(yi[e]||~e.indexOf("adius"))?j(l/(a?t.getBBox()[h?"width":"height"]:t[f])*100):(c[h?"width":"height"]=100+(p?u:i),o=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,a&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==Xn&&o.appendChild||(o=Xn.body),(s=o._gsap)&&v&&s.width&&h&&s.time===xe.time?j(l/s.width*100):(!v&&"%"!==u||(c.position=_n(t,"position")),o===t&&(c.position="static"),o.appendChild(Kn),r=Kn[f],o.removeChild(Kn),c.position="absolute",h&&v&&((s=V(o)).time=xe.time,s.width=o[f]),j(p?r*l/100:r&&l?100/r*l:0))))}function Dn(t,e,n,i){var r;return Jn||Cn(),e in xi&&"transform"!==e&&~(e=xi[e]).indexOf(",")&&(e=e.split(",")[0]),yi[e]&&"transform"!==e?(r=Di(t,i),r="transformOrigin"!==e?r[e]:Ni(_n(t,Ci))+" "+r.zOrigin+"px"):(r=t.style[e])&&"auto"!==r&&!i&&!~(r+"").indexOf("calc(")||(r=Ii[e]&&Ii[e](t,e,n)||_n(t,e)||s(t,e)||("opacity"===e?1:0)),n&&!~(r+"").indexOf(" ")?Pn(t,e,r,n)+n:r}function Nn(t,e,n,i){if(!n||"none"===n){var r=Oi(e,t,1),o=r&&_n(t,r,1);o&&o!==n?(e=r,n=o):"borderColor"===e&&(n=_n(t,"borderTopColor"))}var s,a,l,u,c,h,d,f,p,v,g,m,y=new an(this._pt,t.style,e,0,1,en),A=0,b=0;if(y.b=n,y.e=i,n+="","auto"===(i+="")&&(t.style[e]=i,i=_n(t,e)||i,t.style[e]=n),lt(s=[n,i]),i=s[1],l=(n=s[0]).match(te)||[],(i.match(te)||[]).length){for(;a=te.exec(i);)d=a[0],p=i.substring(A,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),d!==(h=l[b++]||"")&&(u=parseFloat(h)||0,g=h.substr((u+"").length),(m="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),f=parseFloat(d),v=d.substr((f+"").length),A=te.lastIndex-v.length,v||(v=v||jt.units[e]||g,A===i.length&&(i+=v,y.e+=v)),g!==v&&(u=Pn(t,e,h,v)||0),y._pt={_next:y._pt,p:p||1===b?p:",",s:u,c:m?m*f:f-u,m:c&&c<4?Math.round:0});y.c=A<i.length?i.substring(A,i.length):""}else y.r="display"===e&&"none"===i?yn:mn;return ne.test(i)&&(y.e=0),this._pt=y}function Vn(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==i&&"right"!==i||(t=n,n=i,i=t),e[0]=Ri[n]||n,e[1]=Ri[i]||i,e.join(" ")}function Fn(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,i,r,o=e.t,s=o.style,a=e.u,l=o._gsap;if("all"===a||!0===a)s.cssText="",i=1;else for(r=(a=a.split(",")).length;-1<--r;)n=a[r],yi[n]&&(i=1,n="transformOrigin"===n?Ci:_i),In(o,n);i&&(In(o,_i),l&&(l.svg&&o.removeAttribute("transform"),Di(o,1),l.uncache=1))}}function Hn(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function jn(t){var e=_n(t,_i);return Hn(e)?Li:e.substr(7).match(Qt).map(j)}function Bn(t,e){var n,i,r,o,s=t._gsap||V(t),a=t.style,l=jn(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?Li:l:(l!==Li||t.offsetParent||t===Yn||s.svg||(r=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,i=t.nextSibling,Yn.appendChild(t)),l=jn(t),r?a.display=r:In(t,"display"),o&&(i?n.insertBefore(t,i):n?n.appendChild(t):Yn.removeChild(t))),e&&6<l.length?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)}function Un(t,e,n,i,r,o){var s,a,l,u=t._gsap,c=r||Bn(t,!0),h=u.xOrigin||0,d=u.yOrigin||0,f=u.xOffset||0,p=u.yOffset||0,v=c[0],g=c[1],m=c[2],y=c[3],A=c[4],b=c[5],w=e.split(" "),S=parseFloat(w[0])||0,T=parseFloat(w[1])||0;n?c!==Li&&(a=v*y-g*m)&&(l=S*(-g/a)+T*(v/a)-(v*b-g*A)/a,S=S*(y/a)+T*(-m/a)+(m*b-y*A)/a,T=l):(S=(s=Mn(t)).x+(~w[0].indexOf("%")?S/100*s.width:S),T=s.y+(~(w[1]||w[0]).indexOf("%")?T/100*s.height:T)),i||!1!==i&&u.smooth?(A=S-h,b=T-d,u.xOffset=f+(A*v+b*m)-A,u.yOffset=p+(A*g+b*y)-b):u.xOffset=u.yOffset=0,u.xOrigin=S,u.yOrigin=T,u.smooth=!!i,u.origin=e,u.originIsAbsolute=!!n,t.style[Ci]="0px 0px",o&&(Ln(o,u,"xOrigin",h,S),Ln(o,u,"yOrigin",d,T),Ln(o,u,"xOffset",f,u.xOffset),Ln(o,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",S+" "+T)}function Wn(t,e,n){var i=X(e);return j(parseFloat(e)+parseFloat(Pn(t,"x",n+"px",i)))+i}function zn(t,e,n,i,r,o){var s,a,l=360,u=T(r),c=parseFloat(r)*(u&&~r.indexOf("rad")?Ai:1),h=o?c*o:c-i,d=i+h+"deg";return u&&("short"===(s=r.split("_")[1])&&(h%=l)!==h%180&&(h+=h<0?l:-l),"cw"===s&&h<0?h=(h+36e9)%l-~~(h/l)*l:"ccw"===s&&0<h&&(h=(h-36e9)%l-~~(h/l)*l)),t._pt=a=new an(t._pt,e,n,i,h,pn),a.e=d,a.u="deg",t._props.push(n),a}function qn(t,e,n){var i,r,o,s,a,l,u,c=$n.style,h=n._gsap;for(r in c.cssText=getComputedStyle(n).cssText+";position:absolute;display:block;",c[_i]=e,Xn.body.appendChild($n),i=Di($n,1),yi)(o=h[r])!==(s=i[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(a=X(o)!==(u=X(s))?Pn(n,r,o,u):parseFloat(o),l=parseFloat(s),t._pt=new an(t._pt,h,r,a,l-a,fn),t._pt.u=u||0,t._props.push(r));Xn.body.removeChild($n)}Ge.version=Fe.version=dn.version="3.5.1",bt=1,e()&&_e();var Gn,Xn,Yn,Jn,Kn,$n,Zn,Qn,ti=Ce.Power0,ei=Ce.Power1,ni=Ce.Power2,ii=Ce.Power3,ri=Ce.Power4,oi=Ce.Linear,si=Ce.Quad,ai=Ce.Cubic,li=Ce.Quart,ui=Ce.Quint,ci=Ce.Strong,hi=Ce.Elastic,di=Ce.Back,fi=Ce.SteppedEase,pi=Ce.Bounce,vi=Ce.Sine,gi=Ce.Expo,mi=Ce.Circ,yi={},Ai=180/Math.PI,bi=Math.PI/180,wi=Math.atan2,Si=/([A-Z])/g,Ti=/(?:left|right|width|margin|padding|x)/i,Ei=/[\s,\(]\S/,xi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_i="transform",Ci=_i+"Origin",ki="O,Moz,ms,Ms,Webkit".split(","),Oi=function t(e,n,i){var r=(n||Kn).style,o=5;if(e in r&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(ki[o]+e in r););return o<0?null:(3===o?"ms":0<=o?ki[o]:"")+e},Mi={deg:1,rad:1,turn:1},Ri={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ii={clearProps:function t(e,n,i,r,o){if("isFromStart"!==o.data){var s=e._pt=new an(e._pt,n,i,0,0,Fn);return s.u=r,s.pr=-10,s.tween=o,e._props.push(i),1}}},Li=[1,0,0,1,0,0],Pi={},Di=function t(e,n){var i=e._gsap||new De(e);if("x"in i&&!n&&!i.uncache)return i;var r,o,s,a,l,u,c,h,d,f,p,v,g,m,y,A,b,w,S,T,E,x,_,C,k,O,M,R,I,L,P,D,N=e.style,V=i.scaleX<0,F="deg",H=_n(e,Ci)||"0";return r=o=s=u=c=h=d=f=p=0,a=l=1,i.svg=!(!e.getCTM||!Rn(e)),m=Bn(e,i.svg),i.svg&&(C=!i.uncache&&e.getAttribute("data-svg-origin"),Un(e,C||H,!!C||i.originIsAbsolute,!1!==i.smooth,m)),v=i.xOrigin||0,g=i.yOrigin||0,m!==Li&&(w=m[0],S=m[1],T=m[2],E=m[3],r=x=m[4],o=_=m[5],6===m.length?(a=Math.sqrt(w*w+S*S),l=Math.sqrt(E*E+T*T),u=w||S?wi(S,w)*Ai:0,(d=T||E?wi(T,E)*Ai+u:0)&&(l*=Math.cos(d*bi)),i.svg&&(r-=v-(v*w+g*T),o-=g-(v*S+g*E))):(D=m[6],L=m[7],M=m[8],R=m[9],I=m[10],P=m[11],r=m[12],o=m[13],s=m[14],c=(y=wi(D,I))*Ai,y&&(C=x*(A=Math.cos(-y))+M*(b=Math.sin(-y)),k=_*A+R*b,O=D*A+I*b,M=x*-b+M*A,R=_*-b+R*A,I=D*-b+I*A,P=L*-b+P*A,x=C,_=k,D=O),h=(y=wi(-T,I))*Ai,y&&(A=Math.cos(-y),P=E*(b=Math.sin(-y))+P*A,w=C=w*A-M*b,S=k=S*A-R*b,T=O=T*A-I*b),u=(y=wi(S,w))*Ai,y&&(C=w*(A=Math.cos(y))+S*(b=Math.sin(y)),k=x*A+_*b,S=S*A-w*b,_=_*A-x*b,w=C,x=k),c&&359.9<Math.abs(c)+Math.abs(u)&&(c=u=0,h=180-h),a=j(Math.sqrt(w*w+S*S+T*T)),l=j(Math.sqrt(_*_+D*D)),y=wi(x,_),d=2e-4<Math.abs(y)?y*Ai:0,p=P?1/(P<0?-P:P):0),i.svg&&(C=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!Hn(_n(e,_i)),C&&e.setAttribute("transform",C))),90<Math.abs(d)&&Math.abs(d)<270&&(V?(a*=-1,d+=u<=0?180:-180,u+=u<=0?180:-180):(l*=-1,d+=d<=0?180:-180)),i.x=((i.xPercent=r&&Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)?0:r)+"px",i.y=((i.yPercent=o&&Math.round(e.offsetHeight/2)===Math.round(-o)?-50:0)?0:o)+"px",i.z=s+"px",i.scaleX=j(a),i.scaleY=j(l),i.rotation=j(u)+F,i.rotationX=j(c)+F,i.rotationY=j(h)+F,i.skewX=d+F,i.skewY=f+F,i.transformPerspective=p+"px",(i.zOrigin=parseFloat(H.split(" ")[2])||0)&&(N[Ci]=Ni(H)),i.xOffset=i.yOffset=0,i.force3D=jt.force3D,i.renderTransform=i.svg?Ui:Qn?Bi:Vi,i.uncache=0,i},Ni=function t(e){return(e=e.split(" "))[0]+" "+e[1]},Vi=function t(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Bi(e,n)},Fi="0deg",Hi="0px",ji=") ",Bi=function t(e,n){var i=n||this,r=i.xPercent,o=i.yPercent,s=i.x,a=i.y,l=i.z,u=i.rotation,c=i.rotationY,h=i.rotationX,d=i.skewX,f=i.skewY,p=i.scaleX,v=i.scaleY,g=i.transformPerspective,m=i.force3D,y=i.target,A=i.zOrigin,b="",w="auto"===m&&e&&1!==e||!0===m;if(A&&(h!==Fi||c!==Fi)){var S,T=parseFloat(c)*bi,E=Math.sin(T),x=Math.cos(T);T=parseFloat(h)*bi,S=Math.cos(T),s=Wn(y,s,E*S*-A),a=Wn(y,a,-Math.sin(T)*-A),l=Wn(y,l,x*S*-A+A)}g!==Hi&&(b+="perspective("+g+ji),(r||o)&&(b+="translate("+r+"%, "+o+"%) "),!w&&s===Hi&&a===Hi&&l===Hi||(b+=l!==Hi||w?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+ji),u!==Fi&&(b+="rotate("+u+ji),c!==Fi&&(b+="rotateY("+c+ji),h!==Fi&&(b+="rotateX("+h+ji),d===Fi&&f===Fi||(b+="skew("+d+", "+f+ji),1===p&&1===v||(b+="scale("+p+", "+v+ji),y.style[_i]=b||"translate(0, 0)"},Ui=function t(e,n){var i,r,o,s,a,l=n||this,u=l.xPercent,c=l.yPercent,h=l.x,d=l.y,f=l.rotation,p=l.skewX,v=l.skewY,g=l.scaleX,m=l.scaleY,y=l.target,A=l.xOrigin,b=l.yOrigin,w=l.xOffset,S=l.yOffset,T=l.forceCSS,E=parseFloat(h),x=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(v=parseFloat(v))&&(p+=v=parseFloat(v),f+=v),f||p?(f*=bi,p*=bi,i=Math.cos(f)*g,r=Math.sin(f)*g,o=Math.sin(f-p)*-m,s=Math.cos(f-p)*m,p&&(v*=bi,a=Math.tan(p-v),o*=a=Math.sqrt(1+a*a),s*=a,v&&(a=Math.tan(v),i*=a=Math.sqrt(1+a*a),r*=a)),i=j(i),r=j(r),o=j(o),s=j(s)):(i=g,s=m,r=o=0),(E&&!~(h+"").indexOf("px")||x&&!~(d+"").indexOf("px"))&&(E=Pn(y,"x",h,"px"),x=Pn(y,"y",d,"px")),(A||b||w||S)&&(E=j(E+A-(A*i+b*o)+w),x=j(x+b-(A*r+b*s)+S)),(u||c)&&(a=y.getBBox(),E=j(E+u/100*a.width),x=j(x+c/100*a.height)),a="matrix("+i+","+r+","+o+","+s+","+E+","+x+")",y.setAttribute("transform",a),T&&(y.style[_i]=a)};v("padding,margin,Width,Radius",function(e,n){var t="Right",i="Bottom",r="Left",a=(n<3?["Top",t,i,r]:["Top"+r,"Top"+t,i+t,i+r]).map(function(t){return n<2?e+t:"border"+t+e});Ii[1<n?"border"+e:e]=function(e,t,n,i,r){var o,s;if(arguments.length<4)return o=a.map(function(t){return Dn(e,t,n)}),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(i+"").split(" "),s={},a.forEach(function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]}),e.init(t,s,r)}});var Wi,zi,qi,Gi={name:"css",register:Cn,targetTest:function t(e){return e.style&&e.nodeType},init:function t(e,n,i,r,o){var s,a,l,u,c,h,d,f,p,v,g,m,y,A,b,w=this._props,S=e.style;for(d in Jn||Cn(),n)if("autoRound"!==d&&(a=n[d],!le[d]||!He(d,n,i,r,e,o)))if(c=typeof a,h=Ii[d],"function"===c&&(c=typeof(a=a.call(i,r,e,o))),"string"===c&&~a.indexOf("random(")&&(a=et(a)),h)h(this,e,d,a,i)&&(b=1);else if("--"===d.substr(0,2))this.add(S,"setProperty",getComputedStyle(e).getPropertyValue(d)+"",a+"",r,o,0,0,d);else if("undefined"!==c){if(s=Dn(e,d),u=parseFloat(s),(v="string"===c&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),l=parseFloat(a),d in xi&&("autoAlpha"===d&&(1===u&&"hidden"===Dn(e,"visibility")&&l&&(u=0),Ln(this,S,"visibility",u?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==d&&"transform"!==d&&~(d=xi[d]).indexOf(",")&&(d=d.split(",")[0])),g=d in yi)if(m||((y=e._gsap).renderTransform||Di(e),A=!1!==n.smoothOrigin&&y.smooth,(m=this._pt=new an(this._pt,S,_i,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===d)this._pt=new an(this._pt,y,"scaleY",y.scaleY,v?v*l:l-y.scaleY),w.push("scaleY",d),d+="X";else{if("transformOrigin"===d){a=Vn(a),y.svg?Un(e,a,0,A,0,this):((p=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&Ln(this,y,"zOrigin",y.zOrigin,p),Ln(this,S,d,Ni(s),Ni(a)));continue}if("svgOrigin"===d){Un(e,a,1,A,0,this);continue}if(d in Pi){zn(this,y,d,u,a,v);continue}if("smoothOrigin"===d){Ln(this,y,"smooth",y.smooth,a);continue}if("force3D"===d){y[d]=a;continue}if("transform"===d){qn(this,a,e);continue}}else d in S||(d=Oi(d)||d);if(g||(l||0===l)&&(u||0===u)&&!Ei.test(a)&&d in S)l=l||0,(f=(s+"").substr((u+"").length))!==(p=X(a)||(d in jt.units?jt.units[d]:f))&&(u=Pn(e,d,s,p)),this._pt=new an(this._pt,g?y:S,d,u,v?v*l:l-u,"px"!==p||!1===n.autoRound||g?fn:gn),this._pt.u=p||0,f!==p&&(this._pt.b=s,this._pt.r=vn);else if(d in S)Nn.call(this,e,d,s,a);else{if(!(d in e)){x(d,a);continue}this.add(e,d,e[d],a,r,o)}w.push(d)}b&&sn(this)},get:Dn,aliases:xi,getSetter:function t(e,n,i){var r=xi[n];return r&&r.indexOf(",")<0&&(n=r),n in yi&&n!==Ci&&(e._gsap.x||Dn(e,"x"))?i&&Zn===i?"scale"===n?Sn:wn:(Zn=i||{})&&("scale"===n?Tn:En):e.style&&!o(e.style[n])?An:~n.indexOf("-")?bn:Ze(e,n)},core:{_removeProperty:In,_getMatrix:Bn}};dn.utils.checkPrefix=Oi,qi=v((Wi="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(zi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){yi[t]=1}),v(zi,function(t){jt.units[t]="deg",Pi[t]=1}),xi[qi[13]]=Wi+","+zi,v("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");xi[e[1]]=qi[e[0]]}),v("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){jt.units[t]="px"}),dn.registerPlugin(Gi);var Xi=dn.registerPlugin(Gi)||dn,Yi=Xi.core.Tween;if(t.Back=di,t.Bounce=pi,t.CSSPlugin=Gi,t.Circ=mi,t.Cubic=ai,t.Elastic=hi,t.Expo=gi,t.Linear=oi,t.Power0=ti,t.Power1=ei,t.Power2=ni,t.Power3=ii,t.Power4=ri,t.Quad=si,t.Quart=li,t.Quint=ui,t.Sine=vi,t.SteppedEase=fi,t.Strong=ci,t.TimelineLite=Fe,t.TimelineMax=Fe,t.TweenLite=Ge,t.TweenMax=Yi,t.default=Xi,t.gsap=Xi,typeof window==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})}else{delete t.default}}(e)},function(t,e,c){"use strict";var n;void 0===(n=function(t){function g(t){return null!=t&&t.includes("MessageWnd")}function l(t){return null!=t&&t.includes("Lightbox")}var m,e,o=c(0),y=c(3),u=c(4),n=c(11),A=c(45),a=c(21),i=c(20),b=c(2),w=c(1),r=c(13),S=c(50),T=c(9),E=T.warn("windowManager"),x="_current",s=o.extend({subscriptions:((e={})[b.window.CLOSING]="onCloseWindowById",e[b.request.NEXT_SLIDE]="onRequestingNextSlide",e[b.request.PREV_SLIDE]="onRequestingPrevSlide",e[b.request.NEXT_DRAW_SLIDE]="onRequestingNextDrawSlide",e[b.request.PREV_HISTORY_GROUP]="onRequestingPrevHistoryGroup",e[b.window.STACKING_CHANGED]="onTopMostWindowChanged",e),initialize:function(){m=DS.presentation.display(),this.addSubscriptions(),this.windows=[],this.windows.push(this.getOrCreateWindow(u.refs.FRAME)),A.setWindowManager(this),w.trigger(b.window.MAIN_CREATED,this.getMainWindow())},getCurrentWindow:function(){return o.last(this.windows)},getCurrentWindowId:function(){return s.getCurrentWindow().getId()},getMainWindow:function(){return o.first(this.windows)},getCurrentWindowSlide:function(){var t=this.getCurrentWindow();return t&&t.state.currentSlide},removeWindow:function(t){return this.windows=o.without(this.windows,t),this},removeAllButMainWindow:function(){this.windows.forEach(function(t){var e=t.getId();e!==u.refs.FRAME&&w.trigger(b.window.CLOSING,e)})},addWindow:function(t){return this.removeWindow(t),this.windows.push(t),this},getOrCreateWindow:function(t){var e=this.getCurrentWindow();t=t===x?e.getId():t;var n=this.findWindowById(t);if(n)return n!==e&&n.frame.moveToTop(),n;if(e){var i=e.getCurrentSlide();i&&i.onPauseTimeline()}var r,o=DS.frame.createWindow(t),s={id:t,model:m.getWindowById(t),isMainWindow:t===u.refs.FRAME,lightboxed:l(t),hasControls:null!=(r=t)&&r.includes("Controls"),onPinchZoom:o.onPinchZoom,getPinchZoomBounds:o.getPinchZoomBounds,getWinScale:o.getWinScale},a=DS.renderEngine.createWindowFor(o.el,g(t),s,o.captionEl);return a.frame=o,a},findWindowById:function(e){return e===x||null==e?this.getCurrentWindow():this.windows.find(function(t){return t.getId()===e})},isLightBoxActive:function(){return this.getCurrentWindow()!==this.getMainWindow()},moveSlideToOtherWindow:function(n,t){var i=t.props.model.windowId;n.replaceSlideWith(t);var r=function(t){var e=this.findWindowById(i);t===n&&(null!=e&&e.rebuildCurSlide(),w.off(b.window.CLOSED,r))}.bind(this);return w.on(b.window.CLOSED,r),this},isMultiWindowSlide:function(e){return o.initial(this.windows).some(function(t){return(t.getCurrentSlide()||{}).absoluteId===e.absoluteId})},onMainWindowCreated:function(t){this.addWindow(t),A.setWindowManager(this)},onCloseWindowById:function(t){var e,n,i=this.findWindowById(t);i&&(i.el&&(e=i.el.parentNode)&&(e.classList.remove("opaque"),DS.renderEngine.closeWindow(e,i.frame.captionEl),i.frame.close()),this.removeWindow(i),w.trigger(b.window.CLOSED,i),null!=(n=this.getCurrentWindowSlide())&&(n.onPlayTimeline(),w.trigger(b.slide.STARTED,n.absoluteId,n,this.getCurrentWindowId())),A.savePresentationData())},onTopMostWindowChanged:function(t){this.topMostWindow=t,this.trigger(b.windowManager.TOP_MOST_CHANGED)},getTopMostWindowId:function(){return this.topMostWindow},loadSlide:function(t,e,n){var i=o.isString(t)?t:t.absoluteId,r=S.loadSlide(t,this.getCurrentWindowSlide());return r.then(e.bind(this)),w.trigger(b.slide.HAS_CHANGED,y.stripPlayer(i),n),r},onRequestingPrevSlide:function(){var t=this.getCurrentWindow().getPrevSlide();null!=t&&this.onRequestingSlide(t.absoluteId,null,"pop")},onRequestingPrevHistoryGroup:function(){var t=this.getCurrentWindow().getPrevHistoryGroup();null!=t&&this.onRequestingSlide(t.absoluteId,null,"popGroup")},onRequestingNextDrawSlide:function(){var t,e=this.getCurrentWindowSlide(),n=e.getSlideDraw();n&&((t=n.getNextSlideId(e))?this.onRequestingNextSlide(t):n.performExitAction())},onRequestingNextSlide:function(t,e){var n=this.getCurrentWindowSlide();n||(t=t||S.getEntrypoint()),t?this.onRequestingSlide(t,e,"push"):n.executePlayerEvent("onnextslide")},isNewLightBox:function(t,e){return null!=t&&!(g(t)||!l(t)||t===e.displayName)},onRequestingSlide:function(t,e,n){var i,r,o,s,a,l,u,c,h,d=this,f=this.getCurrentWindowSlide(),p=this.getCurrentWindow(),v=this.isNewLightBox(e,p);if(null!=p&&p.forceTransition(),null==(s=S.getSlide(t,this.getCurrentWindowSlide()))){if(m.parent.isPreview())return void w.trigger(b.preview.NOTIFY,"PREVIEW_SLIDE_MISSING");E("onRequestingSlide","could not resolve slide",T.backtick(t),"so defaulting to entry point"),s=S.getSlide(S.getEntrypoint())}if((o=null!=f&&f.absoluteId===s.absoluteId||y.getPath(this.findWindowById(e),"getCurrentSlide")===s)&&!v)s.restart();else{if(null!=f&&(a=f,l=s,u=v||g(e),h={_ActTargetSlideId:l.absoluteId,_ActTargetSlideNavIndex:DS.utils.getPath(l,"navIndex")},a.executePlayerEvent("onbeforeslidejump",h),(c=!h.cancel)&&w.trigger(b.slide.WILL_CHANGE,a,l,u),!c))return;if(null!=f&&!f.slideReady)return this.findWindowById(e)===this.getCurrentWindow()&&(f.destroyed=!0),void w.once(b.slide.READY,function(){d.onRequestingSlide(t,e,n)});i=this.getOrCreateWindow(e||x,s),this.addWindow(i),r=this.loadSlide(s,function(t){d.updateWindowHistory(i,"push"===n?t:null,"popGroup"===n)}),o&&v&&w.trigger(b.loader.HIDE),i.setSlideLoading(r),null!=f&&i!==p&&r.then(function(){A.savePresentationData()})}},updateWindowHistory:function(t,e,n){var i,r=!!e;i=null!=(e=e||t[n?"getPrevHistoryGroup":"getPrevSlide"]())&&this.isMultiWindowSlide(e)&&null!==e.currView,t.prepareToUpdateSlide(i),r?t.pushHistory(e):t[n?"popHistoryGroup":"popHistory"](),i&&(e.onPlayTimeline(),this.moveSlideToOtherWindow(t,e.currView))},getResumeData:function(){return this.windows.reduce(function(t,e){return t+a.create(e.getResumeData())},"")},setResumeData:function(t){var e=new a({fullString:t}),n=e.encodedString();for(this.resumeWindowQueue=[];n.length;)this.setWindowAndHistory(n),n=(e=e.reChunk()).encodedString()},setWindowAndHistory:function(t){var e=new a({fullString:t}),n=e.getUnsignedValue(),i=this.resolveSlideFromResumeData(e.remainder()),r=new a({fullString:i.data}),o=this.createSlideHistoryArray(r.encodedString());0===o.length&&o.push(i.slide),this.restoreOrQueueWindow(n,o)},restoreOrQueueWindow:function(t,e){this.restoringWindow?this.resumeWindowQueue.push({idx:t,history:e}):(this.restoringWindow=!0,this.setLoadedWindow(t,e))},setLoadedWindow:function(t,n){var i=this.getWindowFromIndex(t,n),e=n.pop(),r=this.loadSlide(e.absoluteId,function(t){var e;i.setPreviousHistory(n),this.updateWindowHistory(i,t),this.restoringWindow=0<this.resumeWindowQueue.length,this.restoringWindow&&(t.pauseForResume=!0,e=this.resumeWindowQueue.shift(),this.setLoadedWindow(e.idx,e.history))});i.setSlideLoading(r)},getWindowFromIndex:function(t){var e,n;return 0===t?e=this.getMainWindow():(n=m.windows().at(t-1).id,e=this.getOrCreateWindow(n),this.addWindow(e)),e},createSlideHistoryArray:function(t){for(var e,n=[];t.length;)e=this.resolveSlideFromResumeData(t),n.push(e.slide),t=e.data;return n},resolveSlideFromResumeData:function(t){return this["1"===t.charAt(0)?"getDrawFromResumeData":"getSlideFromResumeData"](t.slice(1))},getSlideFromResumeData:function(t){var e=new a({fullString:t}),n=e.reChunk(),i=e.getUnsignedValue(),r=n.getUnsignedValue();return{slide:S.getSlideFromIndices(r,i),data:n.remainder()}},getDrawFromResumeData:function(t){var e=new a({fullString:t}),n=e.reChunk(),i=n.reChunk(),r=e.getUnsignedValue(),o=n.getUnsignedValue(),s=i.getUnsignedValue();return{slide:S.getDrawFromIndices(s,o,r),data:i.remainder()}}},n.Events,i);return r.windowManager=s}.call(e,c,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var i=[],r={frame:!1,slides:!1},o={AccessibleText:"accTextEnabled",SettingsControl:"settingsControlEnabled",ModernPlayerRefresh:"modernPlayerRefreshEnabled"},s={SettingsControl:"settingAssign"};return{register:function(t,e){var n=this;r[t]||null==e||i.push.apply(i,e),r[t]=!0,_.every(r,function(t){return t})&&(i.forEach(function(t){n[o[t]]=!0,document.body.classList.add("ff-"+_.kebabCase(t))}),_.forEach(s,function(t,e){n.hasFlag(e)?n[t]=function(t,e,n){return Object.assign(t,n)}:n[t]=function(t,e,n){return Object.assign(t,e)}}),Object.freeze(this))},hasFlag:function(t){return i.includes(t)},constants:{SLIDE_ACCESSIBILITY:"slideAccessibility",MULTIPLE_QUIZ_TRACKING:"MultipleQuizTracking",TEXT_STYLE_HYPERLINKS:"TextStyleHyperlinks",MODERN_PLAYER_REFRESH:"ModernPlayerRefresh"}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,A){"use strict";var n;void 0===(n=function(t){var o=A(39),s=A(2),a=A(1),l=(A(3),A(77)),i=A(0);l=window.captionator;function u(t){return null!=t.captions()}function n(t){var e=t.isVideo(),n=e?t.props.playerProps.parent.get("isBaseLayer"):t.props.model.parent.get("isBaseLayer"),i=p.getCurrentWindowSlide().slideLayers().getTopMostLayer(),r=!!e&&t.props.slideObjectModel.getLayer()===i,o=t.props.slideVisible&&(t.props.objectVisible||n||r);return e?t.props.slideObjectModel.prop("HiddenByLayer")&&(o=!1):null!=i&&!0===n&&!0===i.get("pauseParent")&&(o=!1),o}function c(t){g=t,null!=f&&f.value()!==g?f.changeValue(g):a.trigger(s.captions.ENABLED,g)}function h(t){var e=t.getCueAsSource();return null!=e&&!i.isEmpty(e.trim())}var d,f,p,v={},g=!1,r=[],m='"Open Sans Full", Helvetica, Arial, sans-serif',y={};return{initialize:function(t,e,n,i){var r=e.getCaptionData().font;d=null!=r?['"',r,'", ',m].join(""):m,p=n,null!=i?(g=(f=i).value(),f.on("change:value",function(t){return c(t.value())}),g&&c(g)):g=!1,v={},t.filter(u).map(function(e){o.scriptSync("read",{id:"caption"},{url:e.captions(),success:function(t){null!=t&&(v[e.id]=l.parseCaptions(decodeURI(t.data)).filter(h))},error:function(t){console.error(t)}})}),a.on(s.slide.STARTED,this.checkHasCaptions),a.on(s.layer.PLAYING,this.checkHasCaptions),a.on(s.captions.ENABLE,c)},toggleCaptioning:function(){g=f.value(),c(!g)},checkHasCaptions:function(){var t=p.getCurrentWindowSlide();if(null!=t&&!t.isMessageSlide()){var e=(y[t.id]||[]).some(n);a.trigger(e?s.captions.SHOW_BUTTON:s.captions.HIDE_BUTTON)}},isCaptionEnabled:function(){return g},mount:function(t,e){v[t.getAssetId()]&&(null==y[e]&&(y[e]=[]),y[e].push(t))},unmount:function(e,t){var n=i.findIndex(y[t],function(t){return t.getAssetId()===e.getAssetId()});-1!==n&&y[t].splice(n,1)},hasCaptions:function(t){return Array.isArray(t)||(t=[t]),t.some(function(t){return null!=v[t]})},getCaptions:function(t){return v[t]},getCaptionFont:function(){return d},excludeMedia:function(t){-1===r.indexOf(t)&&r.push(t)},includeMedia:function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}.call(e,A,e,t))||(t.exports=n)},function(t,e,o){"use strict";var n;void 0===(n=function(t){var n=o(0),i=o(1),r=o(9).throwError("subscribable");return{componentWillMount:function(){return this.addSubscriptions(),this},addSubscriptions:function(){for(var t in this.resetSubscriptions(),this.subscriptions)this.subscriptions.hasOwnProperty(t)&&this.addSubscription(t,this.subscriptions[t]);return this},addSubscription:function(t,e){return n.isFunction(this[e])||r("addSubscription","this."+e,"is not a defined callback."),this.addSubscribedEvent(t).listenTo(i,t,this[e]),this},addSubscribedEvent:function(t){return this.subscribedEvents.push(t),this},removeSubscriptions:function(){return n.each(n.uniq(this.subscribedEvents),this.removeSubscription,this),this},removeSubscription:function(t,e){var n=this.subscribedEvents.indexOf(t);return this.stopListening(i,t,this[e]),-1<n&&this.subscribedEvents.splice(n,1),this},resetSubscriptions:function(){return this.removeSubscriptions(),this.subscribedEvents=[],this}}}.call(e,o,e,t))||(t.exports=n)},function(t,e,o){"use strict";var n;void 0===(n=function(t){var s=o(0),e=o(31),n="abcdefghijklmnopqrstuvwxyz",a=s.union(s.range(10).map(function(t){return t.toString()}),n.split(""),n.toUpperCase().split(""),"_$".split("")),i=/([^a-zA-Z0-9_$])/,l=e.extend({shorthand:["encodedLength","strLength","fullString","encodedString","strVal","remainder"],initialize:function(){var t,e=1,n=0;"~"===this.fullString().charAt(0)&&(n=2,e=parseInt(this.fullString().charAt(1))),t=n+e,this.encodedLength(this.fullString().slice(n,t)),this.strLength(parseInt(l.fromUnsignedString64(this.encodedLength()))),this.encodedString(this.fullString().slice(t,t+this.strLength())),this.remainder(this.fullString().slice(t+this.strLength()))},getDecodedValue:function(t){var e=this.encodedString();return i.test(e)||(e=l[t](e)),e},reChunk:function(){return new l({fullString:this.remainder()})}}),r=l.prototype;return r.getSignedValue=s.partial(r.getDecodedValue,"fromSignedString64"),r.getUnsignedValue=s.partial(r.getDecodedValue,"fromUnsignedString64"),l.EMPTY_CHUNK=0,l.create=function(t){null==t&&(t="");var e="",n=t.toString().length,i=l.toUnsignedString64(n);return 63<n&&(e+="~"+i.length),e+=i+t},l.packData=function(t){return[l.create(l.toUnsignedString64(t.length)),t].join("")},l.toUnsignedString64=function(t,e,n){var i="",r=!0,o=t;for(n=n||l.EMPTY_CHUNK;0<o||r;)r=!1,i+=a[63&o],o>>=6;return i+=s.times(e-i.length,s.partial(s.identity,n)).join("")},l.toSignedString64=function(t,e){var n,i=t,r=t<0,o=1,s=0;for(e=e||-1;Math.pow(64,o)/2<=Math.abs(t);)o++;if(n=Math.max(e,o),r){for(;-t>=Math.pow(64,s)/2;)s++;i=Math.pow(64,s)+t}return l.toUnsignedString64(i,n,r?"$":"0")},l.toSignedFloatString64=function(t,e){if(t%1==0||s.isNaN(t))return l.toSignedString64(t,e);var n,i=Math.min(3,(n=t,Math.floor(n)!==n&&n.toString().split(".")[1].length||0)),r=Math.trunc(t*Math.pow(10,i));return l.toSignedString64(r)+"-"+i.toString()},l.fromUnsignedString64=function(t){return t.toString().split("").reduce(function(t,e,n){var i;return t+=(i=e,a.indexOf(i)<<6*n)},0)},l.fromSignedString64=function(t){var e=l.fromUnsignedString64(t.toString()),n=Math.pow(64,t.length)/2;return n<=e&&(e-=2*n),e},l.fromSignedFloatString64=function(t){if(!t.includes("-"))return l.fromSignedString64(t);var e=t.split("-");return l.fromSignedString64(e[0])/Math.pow(10,Number(e[1]))},l}.call(e,o,e,t))||(t.exports=n)},function(t,e,g){"use strict";var n;void 0===(n=function(t){function n(t){t.style.display="inline-block",e.browser.isSafariMac&&(t.style.willChange=""),t.style.display="",e.browser.isSafariMac&&(t.style.willChange="contents")}var s=g(0),i=g(16),e=g(5),a=g(2),r=g(23),o=g(51),l=g(19),u=g(24),c=g(8),h=g(3),d=g(1),f=/[\r\n\t]|  +/g,p=e.browser.isIE&&!e.browser.isEdge,v={transformZ:"",feDropShadow:!0,tspanFilters:!0};e.browser.isWebKit&&(v.forceSingleRepaint=function(t){n(t)},v.forceRepaint=function(t,e){return i.to(t,e,{onUpdate:function(){n(t)},onComplete:function(){n(t)}})},v.fixTspan=function(t){var e=h.getPath(t,"x","").split(" ").length;return s.isString(t.y)||(t.y=s.times(e,s.constant(t.y)).join(" ")),t},v.handleWillChange=function(t){t.willChange="opacity"}),e.browser.isChrome&&(v.handleWillChange=function(t){t.willChange=""}),p&&(v.getDxAdjustment=function(t){return t.runs.reduce(function(t,e){return t+e.spans.reduce(function(t,e){return t+s.sum(e.dx)},0)},0)/2},v.fixFontFallbacks=function(t){t.splice(1,0,'"not a font name"')}),v.fixStyleString=p?function(t){return t.replace(f,"")}:function(t){return t},e.browser.isIE&&(v.tspanFilters=!1,v.feDropShadow=!1,v.forceSingleRepaint=function(t){n(t)},o.patchEvents(),v.mouseOver=function(){return"mouseover"},v.elementsFromPoint=function(t,e,n){return s(document.msElementsFromPoint(t,e)).filter(n).value()},v.forceLayoutLtr=function(t){t.direction="ltr",t.unicodeBidi="bidi-override"},v.removeCharPositions=function(t){return r.isTspanNode(t)&&(t.x=[s.first(t.x.split(" "))]),t},v.stopColorProps=function(t){return{stopColor:h.toRgba(t.rgb,t.alpha)}});return e.os.isIosPhoneBefore10&&(v.buildCaptionTracks=function(t,e){var n,i,r,o;l.hasCaptions(e)&&(n=t,null!=(i=l.getCaptions(e))&&0<i.length&&((r=n.addTextTrack("captions",u.getString("closed_captions"),"")).mode=l.isCaptionEnabled()?"showing":"hidden",i.forEach(function(t){(o=new window.VTTCue(t.startTime,t.endTime,t.text.cueSource)).line=12,r.addCue(o)})))},v.onCaptionsEnabled=function(t){d.on(a.captions.ENABLE,t)},v.offCaptionsEnabled=function(t){d.off(a.captions.ENABLE,t)}),e.os.isAndroid&&(v.getAudioInitEvent=function(){return"click"}),e.os.isIOS&&(v.transformZ=" translateZ(0)",v.destroyAudioContext=s.noop,v.detectVisibilityChange=function(){var i,r=(new Date).getTime(),o=!1,s=!1;setInterval(function(){var t=(new Date).getTime(),e=t-r,n=o;r=t,o=900<=e,!n&&o?i=t:n&&o&&!s&&2e3<=t-i?(s=!0,d.trigger(a.detection.VISIBILITY_HIDDEN)):n&&!o&&(s=!1,d.trigger(a.detection.VISIBILITY_SHOWN))},500)},v.onOpenWindow=function(t,e,n){var i=h.getPath(e,"eventType"),r=h.getPath(e,"context.currView.el");"onpress"===i&&null!=r?r.addEventListener("touchend",function t(){n(),r.removeEventListener("touchend",t)}):n()},v.handleWillChange=function(t){t.willChange="unset"},e.browser.isUIWebView&&(v.registerAudioInitEvent=function(t,e,n,i){if(i.props.model.isKind("button"))return[{teardown:t(e,"click",function(){return!0},n)}]},v.getAudioInitEvent=function(){return"click"})),e.browser.isFF,(e.browser.isChrome||e.device.isMobile||e.browser.isSafariMac)&&(v.transformZ=" translateZ(0)"),v.moveHtmlTextOutOfSvg=function(t){function n(t){return"variableText"===t.nodeType||"accessibleText"===t.nodeType}function e(t){var e;return i=i.concat((e=t,s.remove(e.children,n))),t}var i=[];return e.afterFinish=function(t){if(0===i.length)return t;var e={nodeType:"div",className:"textlib-wrapper"};return e.children=i.slice(),e.children.push(t),e},r.transformNodeConfig(e,t)},v.unwrapForeignObjectVarText=function(t){return t.children[0]},null==document.fonts&&(v.loadFonts=function(t,o){return c.when.apply(c,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(t.map(function(e){var n=c.Deferred(),i=Date.now(),r=s.times(3,function(){var t=document.createElement("div");return s.extend(t.style,{display:"inline-block",fontSize:"40px",left:0,pointerEvents:"none",posistion:"absolute",top:0,visibility:"hidden",whiteSpace:"nowrap"}),t.setAttribute("aria-hidden","true"),t.innerText="BESbswy",document.body.appendChild(t),t});r[0].style.fontFamily=e.name+", serif",r[1].style.fontFamily=e.name+", sans-serif",r[2].style.fontFamily=e.name+", monospace";return function t(){s.uniq(r.map(s.property("offsetWidth"))).length<=2?n.resolve():1e3<=Date.now()-i?n.reject('Timed out loading "'+e.name+'"'):setTimeout(t,50)}(),n.promise().always(function(){r.forEach(function(t){null!=t.parentNode&&t.parentNode.removeChild(t)})}).catch(o("loadFonts"))})))}),v}.call(e,g,e,t))||(t.exports=n)},function(t,e,i){"use strict";var n;void 0===(n=function(t){function e(t,e,n){var i,r,o=(r=s.slice(arguments,3),function(){return s.toArray(arguments).concat(r)});return i=e.apply(null,o(n)),i=t.apply(null,o(o,e,i,n))}var s=i(0),a=i(3),n=i(4),l=i(34),u=n.XMLNS_XLINK,c=n.XMLNS,h=n.math.TWO_PI,r=s.partial(e,function(n,i,t){return t.children&&!t.children.skipTraversal&&(t.children=t.children.map(function(t){if(s.isString(t))return t;var e=n(i,t);return r.apply(null,e)})),t}),d={isNodeOfType:function(t,e){var n;return e&&(n=e.tagName||e.nodeType),!!n&&t.toLowerCase()===n.toLowerCase()},svgPrefix:function(t){return[n.SVG_NODE_PREFIX,t].join(n.NODE_DELIMITER)},buildTransformFromConfigFn:function(t){var e=t.args.slice();return e.unshift(t.type),d.buildTransformFn.apply(this,e)},buildTransformFn:function(t){for(var e=arguments.length,n=new Array(e),i=0;i<e;++i)n[i]=arguments[i];return[t,"(",s.rest(n).join(", "),")"].join("")},buildTransformConfig:function(t){return{type:t,args:s.rest(arguments)}},applyTransformTo:function(t,e){return t.transform=[e],t},getTransformOf:function(t){return t.transform=t.transform||[],t.transform},transformNodeConfig:function(t,e){s.isFunction(t.beforeStart)&&t.beforeStart();var n=r.apply(null,arguments);return s.isFunction(t.afterFinish)&&(n=t.afterFinish(n)),n},getFromNodeConfig:s.partial(e,function(i,r,o,t){return null!=o&&!1!==o||!t.children||t.children.every(function(t){var e=i(r,t),n=d.getFromNodeConfig.apply(null,e);return null==n||!1===n||(o=n,!1)}),o}),getFullSvgConfig:function(t,e,n,i){var r={height:(e.fullHeight+Math.ceil(e.strokewidth/2))*i,width:(e.fullWidth+Math.ceil(e.strokewidth/2))*i},o={nodeType:"svg",xmlns:c,"xmlns:xlink":u,"data-xmlns-xlink":u,version:"1.1",baseprofile:"full",height:e.fullHeight*i,width:e.fullWidth*i,focusable:"false",viewBox:[e.fullX,e.fullY,e.fullWidth,e.fullHeight].join(" "),children:[t],"data-commandset-id":n,"data-accepts":"events",ref:s.uniqueId("ref-")};return r[l.camelCase("transform")]=d.transformTranslate(a.pxify(e.fullX*i),a.pxify(e.fullY*i)),{nodeType:"div",className:"slideobject-maskable",style:r,children:[o]}},createSvgNode:function(t,e){var n=document.createElementNS(c,"svg");return n.setAttribute("width",t),n.setAttribute("focusable","false"),n.setAttribute("height",e),n},getFirstTransformOfType:function(t,e){return s.find(e,{type:t})},buildUrl:function(t){return["url(#",t,")"].join("")},createElement:function(t){return document.createElementNS(c,t)},rectPath:function(t,e,n,i){var r=t+n,o=e+i;return["M",t,e,"L",r,e,r,o,t,o].join(" ")},ellipsePath:function(t,e,n,i){var r=2*n;return["M",t,e,"m",-n,0,"a",n,i,0,1,0,r,0,"a",n,i,0,1,0,-r,0].join(" ")},diamondPath:function(t,e,n,i){var r=n/2+t,o=i/2+e;return["M",r,e,"L",n+t,o,r,i+e,t,o].join(" ")},rightRoundedRectPath:function(t,e,n,i,r){return["M",t,e,"h",n-r,"a",r,r,"0 0 1",r,r,"v",i-2*r,"a",r,r,"0 0 1",-r,r,"h",r-n,"z"].join(" ")},wheelPath:function(t,e,n,i,r){if(!r)return"";i=a.degToRad(i),(r=a.degToRad(r))===h&&(r=h-1e-5);var o=r-i>Math.PI?1:0;return["M",t,e,"l",a.fix(n*Math.cos(i),4),a.fix(n*Math.sin(i),4),"A",n,n,0,o,1,a.fix(t+n*Math.cos(r),4),a.fix(e+n*Math.sin(r),4),"z"].join(" ")}};return d.getFirstTranslate=s.partial(d.getFirstTransformOfType,"translate"),d.getFirstRotate=s.partial(d.getFirstTransformOfType,"rotate"),d.getFirstScale=s.partial(d.getFirstTransformOfType,"scale"),d.buildTranslateConfig=s.partial(d.buildTransformConfig,"translate"),d.buildRotateConfig=s.partial(d.buildTransformConfig,"rotate"),d.buildScaleConfig=s.partial(d.buildTransformConfig,"scale"),d.isImageNode=s.partial(d.isNodeOfType,"image"),d.isPatternNode=s.partial(d.isNodeOfType,"pattern"),d.isDefsNode=s.partial(d.isNodeOfType,"defs"),d.isUseNode=s.partial(d.isNodeOfType,"use"),d.isPathNode=s.partial(d.isNodeOfType,"path"),d.isTextNode=s.partial(d.isNodeOfType,"text"),d.isTspanNode=s.partial(d.isNodeOfType,"tspan"),d.transformScale=s.partial(d.buildTransformFn,"scale"),d.transformRotate=s.partial(d.buildTransformFn,"rotate"),d.transformTranslate=s.partial(d.buildTransformFn,"translate"),d.transformTranslateX=s.partial(d.buildTransformFn,"translateX"),d.scaleFromCenter=function(t,e){return null==e&&(e=t),[d.transformTranslate(.5,.5),d.transformScale(t,e),d.transformTranslate(-.5,-.5)].join(" ")},d.getDefsNode=s.partial(d.getFromNodeConfig,function(t){if(d.isDefsNode(t))return t}),d}.call(e,i,e,t))||(t.exports=n)},function(t,e,o){"use strict";var n;void 0===(n=function(t){var n=o(9),i=o(4),r=void 0;return{initialize:function(t){r=t},reInit:function(t){r.frame.stringTables[r.currLayout.string_table].string=t},getString:function(t){var e=r&&(t===i.strings.PROJECT_TITLE?r.title.text:r.getString(t));return null==e&&(e=t.replace(/_/g," "),n.throwErrorSoft("getString","could not resolve the string",n.backtick(t))),e}}}.call(e,o,e,t))||(t.exports=n)},function(t,e,n){var i;i=function(){var E=!0;function s(n){function t(t){var e=n.match(t);return e&&1<e.length&&e[1]||""}function e(t){var e=n.match(t);return e&&1<e.length&&e[2]||""}var i,r=t(/(ipod|iphone|ipad)/i).toLowerCase(),o=!/like android/i.test(n)&&/android/i.test(n),s=/nexus\s*[0-6]\s*/i.test(n),a=!s&&/nexus\s*[0-9]+/i.test(n),l=/CrOS/.test(n),u=/silk/i.test(n),c=/sailfish/i.test(n),h=/tizen/i.test(n),d=/(web|hpw)(o|0)s/i.test(n),f=/windows phone/i.test(n),p=(/SamsungBrowser/i.test(n),!f&&/windows/i.test(n)),v=!r&&!u&&/macintosh/i.test(n),g=!o&&!c&&!h&&!d&&/linux/i.test(n),m=e(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=t(/version\/(\d+(\.\d+)?)/i),A=/tablet/i.test(n)&&!/tablet pc/i.test(n),b=!A&&/[^-]mobi/i.test(n),w=/xbox/i.test(n);/opera/i.test(n)?i={name:"Opera",opera:E,version:y||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(n)?i={name:"Opera",opera:E,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(n)?i={name:"Samsung Internet for Android",samsungBrowser:E,version:y||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(n)?i={name:"NAVER Whale browser",whale:E,version:t(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(n)?i={name:"MZ Browser",mzbrowser:E,version:t(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(n)?i={name:"Opera Coast",coast:E,version:y||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(n)?i={name:"Focus",focus:E,version:t(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(n)?i={name:"Yandex Browser",yandexbrowser:E,version:y||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(n)?i={name:"UC Browser",ucbrowser:E,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(n)?i={name:"Maxthon",maxthon:E,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(n)?i={name:"Epiphany",epiphany:E,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(n)?i={name:"Puffin",puffin:E,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(n)?i={name:"Sleipnir",sleipnir:E,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(n)?i={name:"K-Meleon",kMeleon:E,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:f?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:E},m?(i.msedge=E,i.version=m):(i.msie=E,i.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(n)?i={name:"Internet Explorer",msie:E,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?i={name:"Chrome",osname:"Chrome OS",chromeos:E,chromeBook:E,chrome:E,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(n)?i={name:"Microsoft Edge",msedge:E,version:m}:/vivaldi/i.test(n)?i={name:"Vivaldi",vivaldi:E,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||y}:c?i={name:"Sailfish",osname:"Sailfish OS",sailfish:E,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(n)?i={name:"SeaMonkey",seamonkey:E,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(n)?(i={name:"Firefox",firefox:E,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(n)&&(i.firefoxos=E,i.osname="Firefox OS")):u?i={name:"Amazon Silk",silk:E,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(n)?i={name:"PhantomJS",phantom:E,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(n)?i={name:"SlimerJS",slimer:E,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(n)||/rim\stablet/i.test(n)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:E,version:y||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(i={name:"WebOS",osname:"WebOS",webos:E,version:y||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(n)&&(i.touchpad=E)):/bada/i.test(n)?i={name:"Bada",osname:"Bada",bada:E,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:h?i={name:"Tizen",osname:"Tizen",tizen:E,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(n)?i={name:"QupZilla",qupzilla:E,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(n)?i={name:"Chromium",chromium:E,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(n)?i={name:"Chrome",chrome:E,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?i={name:"Android",version:y}:/safari|applewebkit/i.test(n)?(i={name:"Safari",safari:E},y&&(i.version=y)):r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},y&&(i.version=y)):i=/googlebot/i.test(n)?{name:"Googlebot",googlebot:E,version:t(/googlebot\/(\d+(\.\d+))/i)||y}:{name:t(/^(.*)\/(.*) /),version:e(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(n)?(/(apple)?webkit\/537\.36/i.test(n)?(i.name=i.name||"Blink",i.blink=E):(i.name=i.name||"Webkit",i.webkit=E),!i.version&&y&&(i.version=y)):!i.opera&&/gecko\//i.test(n)&&(i.name=i.name||"Gecko",i.gecko=E,i.version=i.version||t(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!o&&!i.silk?!i.windowsphone&&r?(i[r]=E,i.ios=E,i.osname="iOS"):v?(i.mac=E,i.osname="macOS"):w?(i.xbox=E,i.osname="Xbox"):p?(i.windows=E,i.osname="Windows"):g&&(i.linux=E,i.osname="Linux"):(i.android=E,i.osname="Android");var S="";i.windows?S=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(t(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?S=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?S=(S=t(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):r?S=(S=t(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):o?S=t(/android[ \/-](\d+(\.\d+)*)/i):i.webos?S=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?S=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?S=t(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(S=t(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(i.osversion=S);var T=!i.windows&&S.split(".")[0];return A||a||"ipad"==r||o&&(3==T||4<=T&&!b)||i.silk?i.tablet=E:(b||"iphone"==r||"ipod"==r||o||s||i.blackberry||i.webos||i.bada)&&(i.mobile=E),i.msedge||i.msie&&10<=i.version||i.yandexbrowser&&15<=i.version||i.vivaldi&&1<=i.version||i.chrome&&20<=i.version||i.samsungBrowser&&4<=i.version||i.whale&&1===x([i.version,"1.0"])||i.mzbrowser&&1===x([i.version,"6.0"])||i.focus&&1===x([i.version,"1.0"])||i.firefox&&20<=i.version||i.safari&&6<=i.version||i.opera&&10<=i.version||i.ios&&i.osversion&&6<=i.osversion.split(".")[0]||i.blackberry&&10.1<=i.version||i.chromium&&20<=i.version?i.a=E:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=E:i.x=E,i}var a=s("undefined"!=typeof navigator&&navigator.userAgent||"");function i(t){return t.split(".").length}function r(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n++)i.push(e(t[n]));return i}function x(t){for(var n=Math.max(i(t[0]),i(t[1])),e=r(t,function(t){var e=n-i(t);return r((t+=new Array(1+e).join(".0")).split("."),function(t){return new Array(20-t.length).join("0")+t}).reverse()});0<=--n;){if(e[0][n]>e[1][n])return 1;if(e[0][n]!==e[1][n])return-1;if(0===n)return 0}}function o(t,e,n){var i=a;"string"==typeof e&&(n=e,e=void 0),void 0===e&&(e=!1),n&&(i=s(n));var r=""+i.version;for(var o in t)if(t.hasOwnProperty(o)&&i[o]){if("string"!=typeof t[o])throw new Error("Browser version in the minVersion map should be a string: "+o+": "+String(t));return x([r,t[o]])<0}return e}return a.test=function(t){for(var e=0;e<t.length;++e){var n=t[e];if("string"==typeof n&&n in a)return!0}return!1},a.isUnsupportedBrowser=o,a.compareVersions=x,a.check=function(t,e,n){return!o(t,e,n)},a._detect=s,a.detect=s,a},t.exports?t.exports=i():n(63)("bowser",i)},function(t,e,a){"use strict";var n;void 0===(n=function(t){function e(t,e){var n,i,r=s[t],o=e.mixins.slice(0);for(i=o.length;i--;)null!=(n=o[i])[t]&&n[t].call(e),null!=n[r]&&n[r].call(e);return this}var n=a(0),s={init:"componentWillMount"},i=["preInit","init","postInit"],r=n.partialRight(n.omit,i),o={mixInto:function(t,e){return n.defaults.apply(n,n(e).map(r).unshift(t).value()),t},mix:function(t){return this.mixInto(t,t.mixins),t}};return i.forEach(function(t){o[t+"MixinsOf"]=n.partial(e,t)}),o}.call(e,a,e,t))||(t.exports=n)},function(t,e,n){
/*!
 * EasePack 3.5.1
 * https://greensock.com
 * 
 * @license Copyright 2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(t){"use strict";function r(){return A||"undefined"!=typeof window&&(A=window.gsap)&&A.registerPlugin&&A}function m(t,e){return!!(void 0===t?e:t&&!~(t+"").indexOf("false"))}function e(t){if(A=t||r()){s=A.registerEase;var e,n=A.parseEase(),i=function t(n){return function(t){var e=.5+t/2;n.config=function(t){return n(2*(1-t)*t*e+t*t)}}};for(e in n)n[e].config||i(n[e]);for(e in s("slow",a),s("expoScale",l),s("rough",u),c)"version"!==e&&A.core.globals(e,c[e])}}function n(t,e,n){var i=(t=Math.min(1,t||.7))<1?e||0===e?e:.7:0,r=(1-t)/2,o=r+t,s=m(n);return function(t){var e=t+(.5-t)*i;return t<r?s?1-(t=1-t/r)*t:e-(t=1-t/r)*t*t*t*e:o<t?s?1===t?0:1-(t=(t-o)/r)*t:e+(t-e)*(t=(t-o)/r)*t*t*t:s?1:e}}function i(e,t,n){var i=Math.log(t/e),r=t-e;return n=n&&A.parseEase(n),function(t){return(e*Math.exp(i*(n?n(t):t))-e)/r}}function y(t,e,n){this.t=t,this.v=e,n&&(((this.next=n).prev=this).c=n.v-e,this.gap=n.t-t)}function o(t){"object"!=typeof t&&(t={points:+t||20});for(var e,n,i,r,o,s,a,l=t.taper||"none",u=[],c=0,h=0|(+t.points||20),d=h,f=m(t.randomize,!0),p=m(t.clamp),v=A?A.parseEase(t.template):0,g=.4*(+t.strength||1);-1<--d;)e=f?Math.random():1/h*d,n=v?v(e):e,i="none"===l?g:"out"===l?(r=1-e)*r*g:"in"===l?e*e*g:e<.5?(r=2*e)*r*.5*g:(r=2*(1-e))*r*.5*g,f?n+=Math.random()*i-.5*i:d%2?n+=.5*i:n-=.5*i,p&&(1<n?n=1:n<0&&(n=0)),u[c++]={x:e,y:n};for(u.sort(function(t,e){return t.x-e.x}),s=new y(1,1,null),d=h;d--;)o=u[d],s=new y(o.x,o.y,s);return a=new y(0,0,s.t?s:s.next),function(t){var e=a;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(a=e).v+(t-e.t)/e.gap*e.c}}var A,s,a=n(.7);(a.ease=a).config=n;var l=i(1,2);l.config=i;var u=o();(u.ease=u).config=o;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:l};for(var h in c)c[h].register=e,c[h].version="3.5.1";if(r()&&A.registerPlugin(a),t.EasePack=c,t.ExpoScaleEase=l,t.RoughEase=u,t.SlowMo=a,t.default=c,typeof window==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})}else{delete t.default}}(e)},function(t,e,n){
/*!
 * CSSRulePlugin 3.5.1
 * https://greensock.com
 * 
 * @license Copyright 2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(t){"use strict";function n(){return"undefined"!=typeof window}function i(){return r||n()&&(r=window.gsap)&&r.registerPlugin&&r}function c(){return o||(e(),a||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),o}var r,o,h,a,e=function t(e){r=e||i(),n()&&(h=document),r&&(a=r.plugins.css)&&(o=1)},s={version:"3.5.1",name:"cssRule",init:function t(e,n,i,r,o){if(!c()||void 0===e.cssText)return!1;var s=e._gsProxy=e._gsProxy||h.createElement("div");this.ss=e,this.style=s.style,s.style.cssText=e.cssText,a.prototype.init.call(this,s,n,i,r,o)},render:function t(e,n){for(var i,r=n._pt,o=n.style,s=n.ss;r;)r.r(e,r.d),r=r._next;for(i=o.length;-1<--i;)s[o[i]]=o[o[i]]},getRule:function t(e){c();var n,i,r,o,s=h.all?"rules":"cssRules",a=h.styleSheets,l=a.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(o=[]);l--;){try{if(!(i=a[l][s]))continue;n=i.length}catch(e){console.warn(e);continue}for(;-1<--n;)if((r=i[n]).selectorText&&-1!==(","+r.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return r.style;o.push(r.style)}}return o},register:e};if(i()&&r.registerPlugin(s),t.CSSRulePlugin=s,t.default=s,typeof window==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})}else{delete t.default}}(e)},function(t,e,o){"use strict";var n;void 0===(n=function(t){var e=o(0),n=o(2),i=o(1),r={callbacks:[],endFrameCallbacks:[],frameRequested:!1,staleFrameRequested:!1,timeStale:!0,staleTime:-1,lastCpuTime:Date.now(),lastEndFrameTime:0,currentTime:0,locks:[],locked:!1,waitingLock:!1,clockOverridden:!1,overrideClock:function(t){this.clockOverridden=!0,this.frameTimeMs=t},requestAnimationFrame:function(t,e){e?this.endFrameCallbacks.push(t):this.callbacks.push(t),this.frameRequested||(this.frameRequested=!0,this.staleFrameRequested||this.clockOverridden||window.requestAnimationFrame(this.tick.bind(this)),this.staleFrameRequested=!1)},lock:function(){var t=e.uniqueId("lock-");return this.locks.push(t),this.locked=!0,t},unlock:function(t){e.pull(this.locks,t),this.locked=0<this.locks.length,!this.locked&&this.waitingLock&&(this.waitingLock=!1,this.tick())},updateTime:function(){var t=Date.now(),e=t-this.lastCpuTime;return this.lastCpuTime=t,132<e&&(e=33),this.currentTime+=this.clockOverridden?this.frameTimeMs:e,this.currentTime},requestStaleFrame:function(){this.frameRequested||this.staleFrameRequested||this.clockOverridden||(this.staleFrameRequested=!0,window.requestAnimationFrame(this.tick.bind(this)))},requestEndFrameTick:function(){this.frameRequested||this.clockOverridden||(this.frameRequested=!0,window.requestAnimationFrame(this.tick.bind(this)))},time:function(){return this.timeStale&&(this.requestStaleFrame(),-1===this.staleTime&&(this.staleTime=this.updateTime()),this.frameTime=this.staleTime),this.frameTime},tick:function(){if(this.locked)this.waitingLock=!0;else{var t=this.frameRequested;this.staleFrameRequested=!1,this.frameRequested=!1,this.frameTime=this.updateTime(),this.staleTime=-1,this.timeStale=!1,0<this.callbacks.length&&this.executeCallbacks(),0<this.endFrameCallbacks.length&&(33<=this.currentTime-this.lastEndFrameTime?(this.lastEndFrameTime=this.currentTime,this.executeCallbacks(!0)):this.requestEndFrameTick()),t?this.requestStaleFrame():this.timeStale=!0}},executeCallbacks:function(t){var e,n;t?(e=this.endFrameCallbacks.slice(0),this.endFrameCallbacks=[]):(e=this.callbacks.slice(0),this.callbacks=[]),n=e.length;for(var i=0;i<n;i++)e[i](this.frameTime)}};return i.on([n.detection.VISIBILITY_SHOWN,n.detection.VISIBILITY_HIDDEN].join(" "),r.updateTime.bind(r)),r}.call(e,o,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){n(16);return n(16),n(27),n(28),TimelineLite}.call(e,n,e,t))||(t.exports=i)},function(t,e,g){"use strict";var n;void 0===(n=function(t){g(67);function i(){}var r=g(11),o=g(0),s=g(2),e=g(9),n=g(20),a=g(43),l=g(32),u=g(44),c=g(26),h=g(3),d=e.throwError("BaseModel"),f=h.createSuper(r.Model),p=r.Model.extend({abilities:{resolveAsThis:!1,resolveAsParent:!1,beEventTarget:!1},mixins:[n,a,l,u],autoParse:!1,isModel:!0,constructor:function(t,e){o.bindAll(this,"createAbsoluteId");var n=this.initialize;this.initialize=i,this.autoParse&&((e=e||{}).parse=!0),r.Model.call(this,t,e),this.on(s.data.UPDATED,this.createAbsoluteId),this.createParentReference(e).buildAssociations().bindAssociations().createAbsoluteId(),c.initMixinsOf(this),this.initialize=n,this.initialize.apply(this,arguments),c.postInitMixinsOf(this)},index:function(){return this.collection||d("index","must have a `collection` defined"),this.collection.indexOf(this)},sibling:function(t){return this.collection||d("sibling","must have a `collection` defined"),t=t||0,this.collection.at(this.index()+t)},prevSibling:function(){return this.sibling(-1)},nextSibling:function(){return this.sibling(1)},toJSON:function(t){return h.isTrue(t)?h.cloneDeeply(this):f("toJSON").call(this)},buildAssociations:function(){for(var t in this.associations)this.associations.hasOwnProperty(t)&&this.buildAssociation(t);return this},buildAssociation:function(t,e){var n=e||this.get(t),i={parent:this},r=this.associations[t];return n instanceof r||(this.attributes[t]=h.buildDataStructure(r,i,n)),this},bindAssociation:function(r){return this.on("change:"+r,function(t,e,n){var i=this.previous(r);o.isFunction(i.set)?(i.set(e,{parent:this}),i.trigger(s.data.UPDATED),i.isCollection&&i.invoke("trigger",s.data.UPDATED),this.set(r,i,{silent:!0})):this.buildAssociation(r,e)}),this},bindAssociations:function(){for(var t in this.associations)this.associations.hasOwnProperty(t)&&this.bindAssociation(t);return this},buildAbsoluteId:function(){if(!this.id)return null;for(var t=this,e=[this.id];t=t.parent;)t.id&&e.push(t.id);return e.reverse().join(".")},createAbsoluteId:function(){this.absoluteId=this.buildAbsoluteId()},isType:function(t){return this.get("type")===t},isKind:function(t){return this.get("kind")===t}});p.addAssociation=function(t,e){this.prototype.associations.hasOwnProperty(t)||(this.prototype.associations[t]=e,this.shorthandify(t))};var v=p.extend;return p.extend=function(){var t=v.apply(this,arguments);return t.prototype.associations=o.extend({},t.prototype.associations,this.prototype.associations),t.shorthandify().shorthandify(o.keys(t.prototype.associations)),t},p}.call(e,g,e,t))||(t.exports=n)},function(t,e,r){"use strict";var n;void 0===(n=function(t){function n(t,e){return i.contains(i.values(e.associations),t)}var i=r(0),e={isAncestral:!0,createParentReference:function(t){return t&&t.parent&&(this.parent=t.parent),this},getClosestAncestor:function(t,e){for(var n=e?this:this.parent;n&&!t(n);)n=n.parent;return n},getClosestAncestorWithAssoc:function(t){var e=i.partial(n,t);return this.getClosestAncestor(e)},getClosestAncestorByAttr:function(e,n,t){return this.getClosestAncestor(function(t){return t.get(e)===n},t)},forEachAncestor:function(t,e){for(var n=e?this:this.parent,i=0;null!=n;){if(!1===t(n,i++))return;n=n.parent}}};return e.getClosestAncestorByKind=i.partial(e.getClosestAncestorByAttr,"kind"),e}.call(e,r,e,t))||(t.exports=n)},function(t,e,l){"use strict";var n;void 0===(n=function(t){var e,n,r=l(0),i=l(3),o=l(8),s=l(21),a={initialize:function(){var t,e,n={},i=window.vRestoreStateData;if(this.hasData=!r.isEmpty(i),this.hasData){for(t=new s({fullString:i}),this.resumeData=t.encodedString(),t=t.reChunk(),e=(t=new s({fullString:t.encodedString()})).encodedString();0<e.length;)t=t.reChunk(),n[e]=t.encodedString(),e=(t=t.reChunk()).encodedString();this.slideStateData=n}},setResumer:function(t){e=t},setWindowManager:function(t){n=t},getSlideStateData:function(t){if(this.hasData)return this.slideStateData[i.stripPlayer(t)]},clearSlideStateData:function(t){this.slideStateData[i.stripPlayer(t)]=null},getState:function(){return r.map([s.packData(e.collectResumeData()),this.getActiveSlideStates()],s.create).join("")},shouldShimLMS:function(){return window.autoSpider},getLMSShim:function(){return{getItem:function(){var t=o.Deferred();return t.resolve(),t.promise()},setItem:r.noop,setResumer:r.noop}},getActiveSlideStates:function(){return n.windows.map(function(t){var e=t.getCurrentSlide();return null==e?"":(e.prepareResumeData({retainState:!0,force:!0,skipPostBuild:!0}),r.map([i.stripPlayer(e.absoluteId),e.getResumeData()],s.create).join(""))}).join("")}};return a.initialize(),a}.call(e,l,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){n(78);var i={};return{camelCase:function(t){var e,n=i[t]||(e=t,PrefixFree.prefixCSS(e+":").replace(":","").replace(/-(.)/g,function(t,e){return e.toUpperCase()}));return i[t]=n},kebabCase:function(t){return PrefixFree.prefix+t}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={},i={},o=e.imgBuffer=document.createElement("canvas");e.imgBufferCtx=o.getContext("2d");o.width=o.height=256;e.parseFontFamily=function(t){return null==t?null:t.split(",")[0].replace(/['"]+/g,"")},e.parseFontThemeType=function(t){return null==t?"none":t},e.svgHtmlIcon=function(t){var e=t;return i[e]||(i[e]=window.atob(t.replace("data:image/svg+xml;base64, ",""))),i[e]},e.svgImageIcon=function(t,e){var n=t;if(r[n])e(r[n]);else{var i=new Image;i.crossOrigin="Anonymous",i.src=t,i.addEventListener("load",function(){r[n]=i,e(i)})}},e.unpackHex=function(t){if("transparent"===t)return{r:0,g:0,b:0,a:0};if("white"===t)return{r:255,g:255,b:255,a:1};var e=parseInt(t.replace("#","0x"),16);return{r:e>>16&255,g:e>>8&255,b:255&e,a:1}},e.packRgb=function(t){var e=[t.r,t.g,t.b].map(function(t){return Math.round(t)});return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t.a+")"},e.easeColor=function(t,e){t.r+=(e.r-t.r)/6,t.g+=(e.g-t.g)/6,t.b+=(e.b-t.b)/6,t.a+=(e.a-t.a)/6;var n=Math.abs(t.r-e.r)<1&&Math.abs(t.g-e.g)<1&&Math.abs(t.b-e.b)<1&&Math.abs(t.a-e.a)<1;return n&&s(t,e),n};var s=e.setColor=function(t,e){t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),i=n(4).math.TWO_PI;e.angle=function(t,e,n,i){return Math.atan2(e-i,t-n)},e.angleDiff=function(t,e){for(var n=e-t;n<-Math.PI;)n+=i;for(;n>Math.PI;)n-=i;return n},e.getPinchDistance=function(t){var e=t.touches;return 1===e.length?1:utils.dist(e[0].pageX,e[0].pageY,e[1].pageX,e[1].pageY)},e.backTextureSettings=function(t,e,n){t.anisotropy=n,t.minfilter=THREE.LinearMipMapLinearFilter,t.magfilter=THREE.LinearFilter,e.transparent=!0,e.blending=THREE.CustomBlending,e.blendEquation=THREE.AddEquation,e.blendSrc=THREE.SrcAlphaFactor,e.blendDst=THREE.OneMinusSrcAlphaFactor,e.depthTest=!1,e.depthWrite=!1},e.textureSettings=function(t,e,n){t.anisotropy=n,t.minfilter=THREE.LinearMipMapLinearFilter,t.magfilter=THREE.LinearFilter,e.transparent=!0,e.blending=THREE.CustomBlending,e.blendSrc=THREE.OneFactor,e.blendDst=THREE.OneMinusSrcAlphaFactor,e.depthTest=!1,e.depthWrite=!1},e.isPanelBody=function(t){return t.classList.contains("panel-body")},e.isPanelTitle=function(t){return t.classList.contains("panel-title")},e.adjustVariable=function(t,e,n){var i={operator:"set",value:{type:"number",value:e}},r=o.resolvePath(t);null!=r&&r.adjust(i,{context:n.model})},e.createBoundingBoxEl=function(){var t=document.createElement("div");return t.classList.add("three-sixty-image-bb"),Object.assign(t.style,{position:"absolute",left:0,top:0,width:"30px",height:"30px",border:"none",display:"none"}),t.innerHTML='\n    <div class="box-handle box-handle-tl"></div>\n    <div class="box-handle box-handle-tr"></div>\n    <div class="box-handle box-handle-br"></div>\n    <div class="box-handle box-handle-bl"></div>\n\n\n    <div class="box-handle non-uniform box-handle-l" data-axis="x"></div>\n    <div class="box-handle non-uniform box-handle-t" data-axis="y"></div>\n    <div class="box-handle non-uniform box-handle-r" data-axis="x"></div>\n    <div class="box-handle non-uniform box-handle-b" data-axis="y"></div>\n  ',t},e.touchify=function(t,e){var n=void 0,i=void 0,r=!1;return null!=t.touches&&0<t.touches.length?(n=t.touches[0].clientX,i=t.touches[0].clientY,1<t.touches.length&&(r=!0)):(n=t.clientX,i=t.clientY),null!=e.sceneRect&&(n-=e.sceneRect.left,i-=e.sceneRect.top,n*=window.innerWidth/e.sceneRect.width,i*=window.innerHeight/e.sceneRect.height),{pageX:n,pageY:i,gesture:r}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,r){"use strict";(function(t){var e;void 0===(e=function(t){var u=r(0),e=r(11),c=r(8),h="Could not fetch model",d={},i={origSync:e.sync,scriptSync:function(t,e,n){var i,r,s,o=n.url||u.result(e,"url"),a=c.Deferred(),l=a.promise();return o?(i=e.id||(r=o,u.first(u.last(r.split("/")).split("."))),s=o,new Promise(function(t,e){function n(){i.removeEventListener("load",r),i.removeEventListener("error",o),document.head.removeChild(i),i.src="",i=null}var i=document.createElement("script"),r=function(){t(),n()},o=function(){e(),n()};i.addEventListener("load",r),i.addEventListener("error",o),i.src=s,document.head.appendChild(i)}).then(function(){var t=d[i];d[i]=null,n.success(t),a.resolve(t)}).catch(function(){n.error(h),a.reject(h)})):a.reject("Must provide a url to fetch model"),l},sync:function(t,e,n){return i["read"===t?"scriptSync":"origSync"].apply(this,arguments)}};return e.sync=i.sync,window.globalProvideData=function(t,e){var n=JSON.parse(e),i="slide"===t?n.id:t;d[i]=n},i}.call(n,r,n,t))||(t.exports=e)}).call(this,r(38)(t))},function(t,e,i){"use strict";var n;void 0===(n=function(t){var e=i(0),n=i(5);return{formatSrcUrl:n.env.isFileProtocol&&n.browser.isIE?function(t){return n.browser.isIE10?"file://"+t:document.location.origin+t}:e.identity}}.call(e,i,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(){return window.AudioContext||window.webkitAudioContext||null}.call(e,n,e,t))||(t.exports=i)},function(t,e,i){"use strict";var n;void 0===(n=function(t){var e=i(1),n=i(2);return{initialize:function(t,e,n){this.debugMode=void 0!==t&&t.get("debugMode"),this.setGlobals(t,e,n)},setGlobals:function(t,e,n){this.debugMode&&(window.presentation=t,window.player=e,window.app=n)},throwError:function(){!0===this.debugMode&&e.trigger(n.player.ERROR)}}}.call(e,i,e,t))||(t.exports=n)},function(t,e,o){"use strict";var n;void 0===(n=function(t){var e=o(0),n=o(32),i=o(10),r=n.getClosestAncestor;return{resolvePath:function(t){return i.resolvePath(t,this.getClosestThisRef())},getClosestParentRef:e.partial(r,function(t){return t.abilities.resolveAsParent}),getClosestThisRef:e.partial(r,function(t){return t.abilities.resolveAsThis},!0),getClosestEventTarget:e.partial(r,function(t){return t.abilities.beEventTarget},!0),getChildren:function(){return this.objects().slice()}}}.call(e,o,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){function u(e,t){return c.mapValues(t,function(t){return e[t]})}var c=n(0),e=n(9),h=e.warn("shortEventable")("bindShortEvents"),d=e.backtick;return{componentWillMount:function(){return this.bindShortEvents(),this},bindShortEvents:function(){var t,e,n,i,r,o,s,a=Object.keys(this.shortEvents||{}),l=a.length;for(i=0;i<l;i++){if(e="self"===(t=a[i])?this:(s=void 0,(s=(r=this)[o=t])?c.isFunction(s)?s.call(r):s:r.get?r.get(o):r.props&&r.props[o]),n=u(this,this.shortEvents[t]),!e)return void h("Cannot listen to undefined object",d(t));this.listenTo(e,n)}return this},rebindShortEvents:function(){return this.stopListening(),this.bindShortEvents(),this}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,S){"use strict";var n;void 0===(n=function(t){function r(t){return t.match(/.{2}/g)}function e(t){return t.getViewGroupId()}var a,i,l,o,s=S(0),n=S(13),u=S(2),c=S(1),h=S(70),d=S(72),f=S(74),p=S(76),v=S(21),g=S(8),m=S(9),y=S(5),A=S(33),b=S(48),w=(m.warn("resumer"),{viewedSlides:[],totalViewedSlides:[],viewedActionLinks:{},courseStartTime:!1,hasOverlay:!1,initialize:function(t,e){return s.bindAll(this,"savePresentationData"),i=(a=t).resume()||{},this.resumeDfd=g.Deferred(),this.hasOverlay=e,this.resumeDfd.catch(function(){this.setViewedSlidesFromString("")}.bind(this)),A.setResumer(this),this.setProperLms(),c.on(u.player.CLOSING,this.closePlayer.bind(this)),this.isResumable()?this.informExternals().setListeners().createSceneResumeArray().setResumeDataCallback().initResumeData():(this.lmsDfd=g.Deferred().resolve().promise(),this.setListeners().checkAndReject()),this.resumeDfd.promise()},isResumable:function(){return!!o},setProperLms:function(){var t=a.get("scoring"),e=a.scorings()||[],n=a.get("courseId");return this.hasLms=!0,0===e.length&&null!=t&&e.push(t),0<e.length?window.globals.tinCanPresent||y.env.isRise?o=h.initialize(n,a.get("tincanVersion"),e,a,y.env.isRise):window.globals.aoSupport?o=d.initialize(n,e.first()):window.globals.lmsPresent?(o=f.initialize(n,e,window.globals.cmi5Present),this.hasLms=this.isResumable()):!0===i.flashresume?(this.hasLms=!1,o=p.getStorage()):A.shouldShimLMS()?(this.hasLms=!1,o=A.getLMSShim()):this.hasLms=!1:this.hasLms=!1,y.env.isWebObject&&null!=o&&(o=b.getResumer(o)),null==o||!this.hasLms||i.lmsresume&&!y.env.isRise||this.neverResumeLms(o),this},neverResumeLms:function(t){t.setItem=s.noop,t.getItem=function(){var t=g.Deferred();return t.resolve(),t.promise()}},informExternals:function(){return o.setResumer(this),this},setListeners:function(){var t={};return t[u.slide.VIEWED]=this.slideViewed.bind(this),t[u.slideWindow.CLEAR_HISTORY]=this.clearResumeData.bind(this),t[u.actionlink.EVENT]=this.onActionLink.bind(this),this.hasLms&&(t[u.interaction.EVALUATED]=this.onInteractionEvaluated,t[u.quiz.COMPLETED]=o.quizComplete.bind(o),t[u.course.COMPLETED]=o.courseComplete.bind(o),t[u.course.MANUALLY_COMPLETED]=o.manualCourseComplete.bind(o),t[u.course.VIEWED]=o.viewedComplete.bind(o),t[u.status.UPDATED]=o.reportStatus.bind(o),s.isFunction(o.quizRetried)&&(t[u.quiz.RETRIED]=o.quizRetried.bind(o))),c.on(t),this},onInteractionEvaluated:function(t,e){t.hasScoring()&&o.interactionAnswered(t,e)},closePlayer:function(){a.isPreview()?c.trigger(u.preview.NOTIFY,"PREVIEW_CLOSE_WND"):null!=o&&s.isFunction(o.lmsUnload)?o.lmsUnload(!0):window.top.window.open("","_self","").close()},setWindowManager:function(t){l=t,A.setWindowManager(t),null!=this.lmsDfd&&this.lmsDfd.then(this.checkQuickResume.bind(this))},createSceneResumeArray:function(){return this.sceneResume=a.scenes().map(function(t,e){return v.EMPTY_CHUNK}),this},callForLightboxClose:function(){return c.trigger(u.window.CLOSING,i.window),this},resolveDeferred:function(){return this.resumeDfd.resolve(),c.trigger(u.resume.SET_DATA,this.totalViewedSlides,Object.keys(this.viewedActionLinks)),this},rejectDeferred:function(){return this.resumeDfd.reject(),c.trigger(u.resume.SET_DATA),this},check:function(e){(this.hasOverlay||y.theme.isClassic||!y.deviceView.isDesktop||this.mobileStartAsPrompt)&&(this.hasOverlay||y.deviceView.isPhone&&y.env.isDevicePreview||y.device.isMobile||!y.theme.isClassic&&!a.isPreview())?((y.deviceView.isMobile||y.theme.isUnified)&&DS.renderEngine.createMobileStartOverlay(),n.getAppCompletePromise().then(function(){var t=y.deviceView.isClassicDesktop?e:{rejectDeferred:e,mobileStartAsPrompt:this.mobileStartAsPrompt};c.trigger(u.request.START,t)}.bind(this))):e()},initResumeData:function(){this.lmsDfd=o.getItem(i.id).then(function(t){var e=!1;A.hasData&&(t=A.resumeData),null!=t&&t.length&&(e=this.processResumeData(t)),e?i.prompt&&!y.theme.isClassic?(this.mobileStartAsPrompt=!0,this.checkAndResolve()):this.checkApplyResumeData():this.checkAndReject()}.bind(this))},processResumeData:function(t){var e,n=!1,i=new v({fullString:t});return(e=i).remainder().length===e.getUnsignedValue()?(this.resumeData=i.reChunk(),n=!0):m.warn("processResumeData","the data is the incorrect length, resume not attempted"),n},checkApplyResumeData:function(){return i.prompt&&!A.hasData&&n.getAppCompletePromise().then(function(){c.trigger(u.request.NEXT_SLIDE,i.slideId,i.window)}),this},checkQuickResume:function(){null==this.resumeData||i.prompt&&!A.hasData||this.checkAndResolve()},applyResumeData:function(t){var e=t?"resolveDeferred":"rejectDeferred";this.callForLightboxClose(),this[e]()},slideViewed:function(t){t.get("trackViews")&&(this.addSlideToViewedList(t),this.hasLms&&o.slideViewed(t))},onActionLink:function(t){var e=s.findIndex(a.get("actionlinks"),{id:t});-1!==e&&(this.viewedActionLinks[t]=e)},addSlideToViewedList:function(t){this.viewedSlides.push(t),this.viewedSlides=s.uniq(this.viewedSlides),this.totalViewedSlides.push.apply(this.totalViewedSlides,this.viewedSlides),this.totalViewedSlides=s.uniq(this.totalViewedSlides)},getViewedSlidesString:function(){return this.totalViewedSlides.reduce(function(t,e){return t+v.toUnsignedString64(e.prop("Index")+1,2)},"")},setViewedSlidesFromString:function(t){if(t.length){var n=a.getFlatSlides(),e=a.get("scoring"),i=a.scorings();0===i.length&&null!=e&&i.push(e),this.totalViewedSlides=s(r(t)).map(v.fromUnsignedString64).map(function(e){var t=s.find(n,function(t){return t.prop("Index")===e-1});return null!=t&&(i.incrementViewed(t),t.restoreViewed()),t}.bind(this)).compact().value()}this.hasLms&&a.getDrawPromise().then(function(){o.setTotalSlides(a.getUniqueSlides().length)})},getUniqueSlides:function(t){return s.uniq(this[t],e)},getViewedActionLinksString:function(){return s.reduce(this.viewedActionLinks,function(t,e){return t+v.toUnsignedString64(e,2)},"")},setViewedActionLinksFromString:function(t){if(0<t.length){var i=a.get("actionlinks");null!=i&&(this.viewedActionLinks=r(t).map(v.fromUnsignedString64).reduce(function(t,e){var n=i[e];return null!=n&&(t[n.id]=e),t},{}))}},collectResumeData:function(){return[v.create(this.getViewedSlidesString()),v.create(l.getResumeData()),0<a.variables().length?v.create(a.variables().getResumeDataOrReturn("")):"",this.sceneResume.join(""),a.quizzes().getResumeData(),0<a.timers().length?a.timers().getResumeData():"",v.create(this.getViewedActionLinksString())].join("")},savePresentationData:function(t){if(!this.isResumable()||g.isPending(this.resumeDfd))return this;var e=l.getCurrentWindowSlide();this.saveSceneData(t),null!=e&&(this.resumeData=this.collectResumeData(),o.setItem(i.id,v.packData(this.resumeData)))},saveSceneData:function(t){null!=t&&(this.sceneResume[t.index()]=v.create(t.getResumeData()))},setResumeDataCallback:function(){return this.resumeDfd.then(this.setResumeData.bind(this)).catch(s.noop),this},setResumeData:function(){var t,e,n=this.resumeData.encodedString(),i=0<a.variables().length,r=this.resumeData.reChunk(),o=i?r.reChunk():null,s=i?o.reChunk():r.reChunk();i&&a.variables().setResumeData(o.encodedString()),t=this.setSceneResumeData(s),a.createSlideIndices(),this.setViewedSlidesFromString(n),e=a.quizzes().setResumeData(t),0<a.timers().length&&a.timers().setResumeData(e),this.setViewedActionLinksFromString(e.encodedString()),l.setResumeData(r.encodedString())},setSceneResumeData:function(n){return this.sceneResume=a.scenes().map(function(t){var e=n.encodedString();return t.setResumeData(e),n=n.reChunk(),v.create(e)}),n},courseStarted:function(t){this.courseStartTime=Date.now(),this.hasLms&&o.courseStarted(t)},getCourseTime:function(){return Date.now()-this.courseStartTime},clearResumeData:function(){a.scenes().forEach(function(t){t.clearResumeData()}),a.getUniqueSlides().forEach(function(t){t.clearResumeData()}),l.setResumeData(""),this.viewedSlides=[],this.totalViewedSlides=[],this.isResumable()&&o.setItem(i.id,"")}});return w.getUniqueViewedSlides=s.partial(w.getUniqueSlides,"viewedSlides"),w.getUniqueTotalSlides=s.partial(w.getUniqueSlides,"totalViewedSlides"),w.checkAndReject=s.partial(w.check,w.rejectDeferred.bind(w)),w.checkAndResolve=s.partial(w.check,w.resolveDeferred.bind(w)),w}.call(e,S,e,t))||(t.exports=n)},function(t,e,f){"use strict";var n;void 0===(n=function(t){var n=f(73),r=function(t,e,n){for(var i=0,r=t.length,o=3==arguments.length?n:t[i++];i<r;)o=e.call(null,o,t[i],++i,t);return o},i="undefined"==typeof window?this||self:window;function u(){}function c(t){switch({}.toString.call(t)){case"[object File]":case"[object Blob]":case"[object FormData]":return 1;default:return}}d.getXHR=function(){if(!(!i.XMLHttpRequest||i.location&&"file:"==i.location.protocol&&i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}return!1};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function o(t){return t===Object(t)}function e(t){if(!o(t))return t;var e=[];for(var n in t)null!=t[n]&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function s(t){for(var e,n={},i=t.split("&"),r=0,o=i.length;r<o;++r)e=i[r].split("="),n[decodeURIComponent(e[0])]=decodeURIComponent(e[1]);return n}function a(t,e){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=function(t){var e,n,i,r,o=t.split(/\r?\n/),s={};o.pop();for(var a=0,l=o.length;a<l;++a)e=(n=o[a]).indexOf(":"),i=n.slice(0,e).toLowerCase(),r=h(n.slice(e+1)),s[i]=r;return s}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function l(t,e){var i=this;n.call(this),this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new a(i)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,i.callback(e)}if(i.emit("response",t),e)return i.callback(e,t);if(200<=t.status&&t.status<300||0===t.status)return i.callback(e,t);var n=new Error(t.statusText||"Unsuccessful HTTP response");n.original=e,n.response=t,n.status=t.status,i.callback(e||n,t)})}function d(t,e){return"function"==typeof e?new l("GET",t).end(e):1==arguments.length?new l("GET",t):new l(t,e)}return d.serializeObject=e,d.parseString=s,d.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":e,"application/json":JSON.stringify},d.parse={"application/x-www-form-urlencoded":s,"application/json":JSON.parse},a.prototype.get=function(t){return this.header[t.toLowerCase()]},a.prototype.setHeaderProperties=function(t){var e=this.header["content-type"]||"";this.type=e.split(/ *; */).shift();var n=r(e.split(/ *; */),function(t,e){var n=e.split(/ *= */),i=n.shift(),r=n.shift();return i&&r&&(t[i]=r),t},{});for(var i in n)this[i]=n[i]},a.prototype.parseBody=function(t){var e=d.parse[this.type];return e&&t&&(t.length||t instanceof Object)?e(t):null},a.prototype.setStatusProperties=function(t){1223===t&&(t=204);var e=t/100|0;this.status=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.notFound=404==t,this.forbidden=403==t},a.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,i="cannot "+e+" "+n+" ("+this.status+")",r=new Error(i);return r.status=this.status,r.method=e,r.url=n,r},d.Response=a,n(l.prototype),l.prototype.use=function(t){return t(this),this},l.prototype.timeout=function(t){return this._timeout=t,this},l.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},l.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},l.prototype.set=function(t,e){if(o(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},l.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},l.prototype.getHeader=function(t){return this._header[t.toLowerCase()]},l.prototype.type=function(t){return this.set("Content-Type",d.types[t]||t),this},l.prototype.accept=function(t){return this.set("Accept",d.types[t]||t),this},l.prototype.auth=function(t,e){var n=btoa(t+":"+e);return this.set("Authorization","Basic "+n),this},l.prototype.query=function(t){return"string"!=typeof t&&(t=e(t)),t&&this._query.push(t),this},l.prototype.field=function(t,e){return this._formData||(this._formData=new i.FormData),this._formData.append(t,e),this},l.prototype.attach=function(t,e,n){return this._formData||(this._formData=new i.FormData),this._formData.append(t,e,n),this},l.prototype.send=function(t){var e=o(t),n=this.getHeader("Content-Type");if(e&&o(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(n||this.type("form"),n=this.getHeader("Content-Type"),this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||c(t)||n||this.type("json"),this},l.prototype.callback=function(t,e){var n=this._callback;this.clearTimeout(),n(t,e)},l.prototype.crossDomainError=function(){var t=new Error("Origin is not allowed by Access-Control-Allow-Origin");t.crossDomain=!0,this.callback(t)},l.prototype.timeoutError=function(){var t=this._timeout,e=new Error("timeout of "+t+"ms exceeded");e.timeout=t,this.callback(e)},l.prototype.withCredentials=function(){return this._withCredentials=!0,this},l.prototype.end=function(t){var e=this,n=this.xhr=d.getXHR(),i=this._query.join("&"),r=this._timeout,o=this._formData||this._data;this._callback=t||u,n.onreadystatechange=function(){if(4==n.readyState){try{n.status}catch(t){if(e.timedout)return e.timeoutError();if(e.aborted)return;return e.crossDomainError()}e.emit("end")}};function s(t){0<t.total&&(t.percent=t.loaded/t.total*100),e.emit("progress",t)}this.hasListeners("progress")&&(n.onprogress=s);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=s)}catch(t){}if(r&&!this._timer&&(this._timer=setTimeout(function(){e.timedout=!0,e.abort()},r)),i&&(i=d.serializeObject(i),this.url+=~this.url.indexOf("?")?"&"+i:"?"+i),n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof o&&!c(o)){var a=d.serialize[this.getHeader("Content-Type")];a&&(o=a(o))}for(var l in this.header)null!=this.header[l]&&n.setRequestHeader(l,this.header[l]);return this.emit("request",this),n.send(o),this},d.Request=l,d.get=function(t,e,n){var i=d("GET",t);return"function"==typeof e&&(n=e,e=null),e&&i.query(e),n&&i.end(n),i},d.head=function(t,e,n){var i=d("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&i.send(e),n&&i.end(n),i},d.del=function(t,e){var n=d("DELETE",t);return e&&n.end(e),n},d.patch=function(t,e,n){var i=d("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&i.send(e),n&&i.end(n),i},d.post=function(t,e,n){var i=d("POST",t);return"function"==typeof e&&(n=e,e=null),e&&i.send(e),n&&i.end(n),i},d.put=function(t,e,n){var i=d("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&i.send(e),n&&i.end(n),i},d}.call(e,f,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var e={presentation:null,player:null};return Object.seal(e),e}.call(e,n,e,t))||(t.exports=i)},function(t,e,y){"use strict";var n;void 0===(n=function(t){var e,i,r=y(0),n=y(13),o=y(5),s=y(3),a=y(9),l=y(2),u=y(1),c=y(8),h=y(49),d=c.Deferred(),f=a.throwError("webObjectHelper"),p=!1;u.once(l.data.INITIALIZED,function(){p=!0}),d.catch(function(t){return t});function v(){return d.then(function(){return i.request("getResumeData").then(function(t){return t}).catch(f.bind(this,"receiveResumeData","Cannot receive resume data from web object host"))})}var g={setVolume:function(t){n.setVolume(t)},executeFilteredPlayerEvent:function(t){if(!p)throw new Error("data is not yet initialized");e.executeFilteredPlayerEvent(m(t),"onhostevent")}},m=function(e){return function(t){return t.eventname===e||t.eventName===e}};return{initialize:function(t){e=t,o.env.isWebObject?((i=new h(g,s.queryStringToObj().id)).ready().then(d.resolve),i.connect(window.parent)):d.reject()},tearDown:function(){null!=i&&i.tearDown()},triggerHostEvent:function(t){if(void 0===i)throw Error("triggerHostEvent - postMessaging has not been initialized");return i.request("triggerHostEvent",t)},getResumer:function(n){return r.extend({},n,{getItem:v,setItem:function(t,e){return function(t){i.request("setResumeData",t).catch(f.bind(this,"receiveResumeData","Cannot receive resume data from web object host"))}(e),n.setItem.apply(n,arguments)}})}}}.call(e,y,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){function p(t){var e,n=m.throwError("PostMessaging");if(null!=t.data){try{e=JSON.parse(t.data)}catch(t){return}var i;if(null!=(i=e)&&null!=i.id&&null!=i.type&&-1!==r.indexOf(i.type))null!=A[e.connectionId]?A[e.connectionId](e,t):n("No listener exists for connectionId: ",e.connectionId)}}var v,g=n(8),m=n(9),y=n(6).addWindowListener,A={},b="request",w="response",r=[b,w];return function(o,t){function s(t,e,n,i,r){var o=++h,s=g.Deferred(),a={type:e,connectionId:f};return c[o]=s,e===b?(a.method=n,a.params=i,a.id=o):(a.id=n,a.data=i,a.status=null!=r?r:"SUCCESS"),t.postMessage(JSON.stringify(a),"*"),s.always(function(){delete c[o]}).catch(function(t){delete c[o],u(t.message)}),s.promise()}function a(i){e=function(t,e){return d.then(function(){return s(i,b,t,e)})},l=function(t,e,n){return d.then(function(){return s(i,w,t,e,n)})}}var e,l,n,i,r,u=m.throwError("PostMessaging"),c={},h=0,d=g.Deferred(),f=t;null==v&&(v=y("message",p,!1)),r=function(e,t){var n,i,r;if(e.type===b)if("connect"===e.method)a(t.source),s(t.source,w,e.id),d.resolve();else if(null!=o[e.method])try{i=o[e.method].apply(void 0,Array.isArray(e.params)?e.params:[e.params]),null!=(r=i)&&"function"==typeof r.then?i.then(function(t){l(e.id,t)}):l(e.id,i)}catch(t){l(e.id,t.message,"ERROR")}else l(e.id,["No handler for this method ",e.method].join(""),"ERROR");else{if(null!=(n=c[e.id]))return void("SUCCESS"===e.status?n.resolve(e.data,t):n.reject(e.data,t));l(e.id,["No pending requests for this response id ",e.id].join(""),"ERROR")}},A[i=f]=r,n=function(){delete A[i]},this.ready=function(){return d},this.connect=function(t){return a(t),s(t,b,"connect").then(d.resolve),d},this.request=function(){if(null!=e)return e.apply(void 0,arguments);u("request","A destination iframe needs to be connected before sending requests to it.  Try using `connect` first.")},this.tearDown=function(){n(),_.isEmpty(Object.keys(A))&&null!=v&&(v(),v=null)}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,s){"use strict";var n;void 0===(n=function(t){var r=s(0),e=s(11),n=s(20),i=(s(1),s(3)),o=s(10);return r.extend({initialize:function(){this.addSubscriptions()},ensureSlideIsSlide:function(t){return t.isScene&&(t=this.getStartingSlide(t)),t.isSlideDraw&&(t=i.getPath(t.slides(),"first")),t},getSlide:function(t,e){var n=o.isRelativePath(t)?e:DS.presentation,i=o.resolvePath(t,n,{optional:!0});return null!=i&&(i=this.ensureSlideIsSlide(i)),i},getRef:function(t){var e=DS.presentation.slideMap().slideRefs();return e.get(t.fullId())||e.get(t.id)},getStartingSlide:function(t){return o.resolvePath(t.startingSlide(),DS.presentation)},getEntrypoint:function(){return DS.presentation.entryPoint()},loadSlide:function(t,e){var n=r.isString(t)?this.getSlide(t,e):t,i=n.load(this.getRef(n));return DS.presentation.slideMap().setCurrentSlide(n.absoluteId),i},getSlideFromIndices:function(t,e){return DS.presentation.scenes().at(t).slides().at(e)},getDrawFromIndices:function(t,e,n){return DS.presentation.scenes().at(e).slidedraws().at(t).slides().at(n)}},e.Events,n)}.call(e,s,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){function i(t,e){var n=document.createEvent("Event");n.initEvent("change",!0,!0),r.defaults(n,e),Object.defineProperty(n,a,{value:!0}),t.dispatchEvent(n),s("mouseup",t.fireChangeEvent)}var r=n(0),e=n(6),o=e.addDocumentListener,s=e.removeDocumentListener,a="allowTheChangeEventToPropagate";return{patchEvents:function(){o("change",function(t){var e,n;t[a]||"range"!==t.target.getAttribute("type")||(t.stopPropagation(),(e=document.createEvent("Event")).initEvent("input",!0,!0),r.defaults(e,t),t.target.dispatchEvent(e),s("mouseup",t.target.fireChangeEvent),n=r.partial(i,t.target),t.target.fireChangeEvent=n,o("mouseup",n))},!0)}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,o){"use strict";var n;function p(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}void 0===(n=function(t){function s(t){var e,n,i,r,o,s,a,l=t.keyCode,u=t.altKey,c=t.shiftKey,h=t.ctrlKey,d=String.fromCharCode(l);return{LastKeyCodeString:(n=(e=t).keyCode,i=e.altKey,r=e.shiftKey,o=e.ctrlKey,s=String.fromCharCode(n),a=[].concat(p(o?["[CTRL] + "]:[]),p(r?["[SHIFT] + "]:[]),p(i?["[ALT] + "]:[])),48<=n&&n<=90?a.push(s):(a.push("["),null!=f[n]?a.push(f[n]):a.push("#"+n),a.push("]")),a.join("")),LastKeyCode:l,LastKeyValue:d,LastKeyCtrl:h,LastKeyShift:c,LastKeyAlt:u}}var a=o(0),l=o(4),n=o(6).addBodyListener,r=o(17),e=["LastKeyCodeString","LastKeyCode","LastKeyValue","LastKeyCtrl","LastKeyShift","LastKeyAlt"],f=a.invert(l.keys),i={isShowFocus:!1,lastKeyPressTargets:[],initialize:function(){var e=this;n("mousedown",function(t){e.isShowFocus=!1,document.body.classList.remove("show-focus")},!0),n("keyup",function(t){e.isTabKey(t.which)&&!e.isShowFocus&&(e.isShowFocus=!0,document.body.classList.add("show-focus")),e.clearLastKey()},!0)},isKey:function(t,e){return t===e},keyPressHandlerExists:function(t){var e=r.getCurrentWindowSlide();if(null==e)return!1;var n=e.slideLayers().getTopMostLayer()||e.getBaseLayer(),i=e.slideLayers().activeLayers.slice(0);return this.handlerExists(n,t,i)},getLayerStack:function(t){var e=r.getCurrentWindowSlide(),n=null!=e?e.slideLayers().activeLayers.slice(0):[],i=a.findIndex(n,t);return 0<i&&(n.length=i),n},getParentFromLayerstack:function(t,e){var n=null;if(e=e||this.getLayerStack(t),t.isSlideObject){if(null==(n=t.getClosestAncestor(function(t){return t.isSlideObject}))){var i=t.getLayer();i.isBaseLayer()?e=[]:e.length=a.findIndex(e,i)+1}}else if(null==t.modal||!t.modal()){for(;null!=(n=e.pop())&&!n.isOpen;);null==n&&(n=t.getClosestAncestor(function(t){return t.isSlide}))}return{parent:n,layerStack:e}},handlerExists:function(t,e,n){if(null!=t.getFilteredPlayerEvent(function(t){return t.keycode===e.keyCode&&t.shift===e.shiftKey&&t.ctrl===e.ctrlKey&&t.alt===e.altKey},"onkeypress").events.first())return!0;var i=this.getParentFromLayerstack(t,n),r=i.parent,o=i.layerStack;return null!=r&&this.handlerExists(r,e,o)},executeKeypressEvent:function(t,e,n){this.lastKeyPressTargets.push(t),a.contains([l.keys.CONTROL,l.keys.SHIFT,l.keys.ALT],e.keyCode)||(t.prop(s(e)),t.executePlayerEvent("onanykeypress"));var i=this.getParentFromLayerstack(t,n),r=i.parent,o=i.layerStack;t.executeFilteredPlayerEvent(function(t){return t.keycode===e.keyCode&&t.shift===e.shiftKey&&t.ctrl===e.ctrlKey&&t.alt===e.altKey},"onkeypress"),null!=r&&this.executeKeypressEvent(r,e,o)},clearLastKey:function(){this.lastKeyPressTargets.forEach(function(t){t.resetSpecifiedProps(e)}),this.lastKeyPressTargets=[]},isReturnKey:function(t){return i.isKey(t,l.keys.ENTER)},isSpaceKey:function(t){return i.isKey(t,l.keys.SPACE)},isActionKey:function(t){return i.isReturnKey(t)||i.isSpaceKey(t)},isRightKey:function(t){return i.isKey(t,l.keys.RIGHT)},isDownKey:function(t){return i.isKey(t,l.keys.DOWN)},isPageDownKey:function(t){return i.isKey(t,l.keys.PAGE_DOWN)},isDownishKey:function(t){return i.isLeftKey(t)||i.isDownKey(t)},isRtlDownishKey:function(t){return i.isRightKey(t)||i.isDownKey(t)},isLeftKey:function(t){return i.isKey(t,l.keys.LEFT)},isUpKey:function(t){return i.isKey(t,l.keys.UP)},isPageUpKey:function(t){return i.isKey(t,l.keys.PAGE_UP)},isUpishKey:function(t){return i.isRightKey(t)||i.isUpKey(t)},isRtlUpishKey:function(t){return i.isLeftKey(t)||i.isUpKey(t)},isHomeKey:function(t){return i.isKey(t,l.keys.HOME)},isEndKey:function(t){return i.isKey(t,l.keys.END)},isTabKey:function(t){return i.isKey(t,l.keys.TAB)},isSeekKey:function(t){return i.isUpishKey(t)||i.isDownishKey(t)||i.isHomeKey(t)||i.isEndKey(t)||i.isPageUpKey(t)||i.isPageDownKey(t)}};return i}.call(e,o,e,t))||(t.exports=n)},function(t,e,p){"use strict";var n,v=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===(n=function(t){var r=p(0),i=p(7),e=p(2),l=p(3),o=p(1),n=p(4),s=p(18),a=p(6),u=a.addWindowListener,c=a.addDocumentListener,h=p(4).ANIMATION_DURATION,d=void 0;function f(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),r.bindAll(this,"onScrollBtnDown","onEndScrollDrag","onDragBtn","onScroll","onResize","unHighlight","delayedUpdate","update","onFocus","onKeyDown"),this.enabled=!0,this.hScroll=n,this.targetEl=t,this.isHidden=!1,this.highlight=!1,this.cls=e+"-"+(n?"h":"")+"scroll",this.targetId=e,s.hasFlag(s.constants.MODERN_PLAYER_REFRESH)){var i=this.cls+"-id";null==document.getElementById(i)&&this.createElements(i)}else this.createElements(null);this.update()}return c("wheel",function(){document.body.classList.add("document-scrolling"),clearTimeout(d),d=setTimeout(function(){document.body.classList.remove("document-scrolling")},200)}),v(f,[{key:"addOrRemoveClass",value:function(t,e,n){i[t?"addClass":"removeClass"](e,n)}},{key:"changeHighlight",value:function(){this.addOrRemoveClass(this.highlight,this.scrollBar,"highlight-scrollbar")}},{key:"changeHidden",value:function(){this.addOrRemoveClass(this.isHidden,this.scrollBar,"hidden")}},{key:"initScroll",value:function(){this.targetEl.addEventListener("scroll",this.onScroll),u("resize",this.onResize),this.targetEl.style.overflowY="hidden !important",this.targetEl.style.overflowX="hidden !important",this.hasInited=!0}},{key:"createElements",value:function(t){this.scrollBar=document.createElement("div"),null!=t&&(this.scrollBar.id=t),this.scrollBar.setAttribute("class","scrollarea-scrollbar micro-scrollbar "+(this.hScroll?"horizontal-scroll ":"")+this.cls),this.scrollBar.setAttribute("tabindex",0),this.scrollBar.addEventListener("focus",this.onFocus),this.scrollBar.addEventListener("keydown",this.onKeyDown),this.scrollBtn=document.createElement("div"),this.scrollBtn.setAttribute("class","scrollarea-btn micro-scrollbar-btn"),this.scrollBtn.addEventListener("mousedown",this.onScrollBtnDown),this.scrollBtn.addEventListener("touchstart",this.onScrollBtnDown),this.scrollBar.appendChild(this.scrollBtn),this.targetEl.parentNode.appendChild(this.scrollBar),this.initScroll(),this.setupUpdateEvents()}},{key:"setupUpdateEvents",value:function(){var n=this;o.on(e.tab.SHOW,function(t){n.targetId===t&&n.delayedUpdate()}),o.on(e.tabLink.SHOW_PANEL,function(t){var e=t.model.name;n.targetId===e&&n.delayedUpdate()}),"search"===this.targetId&&o.on(e.search.UPDATE_PANEL,function(){setTimeout(n.delayedUpdate,h)}),"outline"===this.targetId&&o.on(e.menuLinksListItem.TOGGLE,this.delayedUpdate),"transcript"===this.targetId&&o.on(e.transcript.CHANGED,this.delayedUpdate),DS.detection.deviceView.isMobile&&(this.teardownResize=u("resize",this.delayedUpdate))}},{key:"delayedUpdate",value:function(){var t=this;window.requestAnimationFrame(function(){return t.update(!1)})}},{key:"onScroll",value:function(){this.update(!0)}},{key:"onFocus",value:function(){DS.focusManager.setFocusRectOn(this.targetEl)}},{key:"onKeyDown",value:function(t){switch(t.which){case n.keys.DOWN:this.targetEl.scrollTop+=10;break;case n.keys.UP:this.targetEl.scrollTop-=10;break;case n.keys.PAGE_DOWN:this.targetEl.scrollTop+=this.btnLength;break;case n.keys.PAGE_UP:this.targetEl.scrollTop-=this.btnLength;break;case n.keys.HOME:this.targetEl.scrollTop=0;break;case n.keys.END:this.targetEl.scrollTop=this.targetEl.scrollHeight}}},{key:"onResize",value:function(){this.update()}},{key:"getTargetMetrics",value:function(){var t=this.targetEl,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,s=t.scrollLeft;return this.hScroll?{contentLength:n,scrollbarLength:r,currScrollPos:s}:{contentLength:e,scrollbarLength:i,currScrollPos:o}}},{key:"setEnabled",value:function(t){this.enabled=t,this.update()}},{key:"update",value:function(t){if(this.hasInited&&null!=this.scrollBtn){var e=this.getTargetMetrics(),n=e.contentLength,i=e.scrollbarLength,r=e.currScrollPos,o=n-i,s=l.clamp(0,1,r/o);this.btnLength=i/n*i,this.isHidden=Math.abs(o)<2||!this.enabled,this.scrollBtn.style[this.hScroll?"width":"height"]=l.pxify(this.btnLength),this.scrollBtn.style[this.getPosAttrib()]=l.pxify(s*l.invertPercent(this.btnLength/i)*i),(this.highlight=t)&&(clearTimeout(this.colorId),this.colorId=setTimeout(this.unHighlight,1e3)),this.changeHighlight(),this.changeHidden(),null!=this.updateScroll&&this.updateScroll()}}},{key:"getPosAttrib",value:function(){return this.hScroll?"left":"top"}},{key:"getPagePostion",value:function(t){return this.hScroll?t.pageX:t.pageY}},{key:"getParentPos",value:function(){return this.targetEl.getBoundingClientRect()[this.getPosAttrib()]}},{key:"onScrollBtnDown",value:function(t){this.scrollByButton=!0,this.startPos=this.getPagePostion(t)-this.getParentPos()-parseFloat(this.scrollBtn.style[this.getPosAttrib()]),document.body.addEventListener("mousemove",this.onDragBtn),document.body.addEventListener("mouseup",this.onEndScrollDrag)}},{key:"onEndScrollDrag",value:function(){this.scrollByButton=!1,document.body.removeEventListener("mouseup",this.onEndScrollDrag),document.body.removeEventListener("mousemove",this.onDragBtn)}},{key:"onDragBtn",value:function(t){var e=this.getTargetMetrics(),n=e.contentLength,i=e.scrollbarLength,r=n-i,o=i-this.btnLength,s=this.getPagePostion(t)-this.getParentPos()-this.startPos,a=l.clamp(0,1,s/o);this.scrollBtn.style[this.getPosAttrib()]=l.pxify(a*l.invertPercent(this.btnLength/i)*i),this.targetEl[this.hScroll?"scrollLeft":"scrollTop"]=r*a}},{key:"unHighlight",value:function(){this.highlight=!1,this.changeHighlight()}},{key:"teardown",value:function(){this.scrollBar.removeEventListener("focus",this.onFocus),this.scrollBar.removeEventListener("keydown",this.onKeyDown),this.scrollBtn.removeEventListener("mousedown",this.onScrollBtnDown),this.scrollBtn.removeEventListener("touchstart",this.onScrollBtnDown),this.targetEl.removeEventListener("scroll",this.onScroll),o.off(e.search.UPDATE_PANEL),o.off(e.tab.SHOW),o.off(e.menuLinksListItem.TOGGLE),o.off(e.transcript.CHANGED),this.teardownResize()}}]),f}.call(e,p,e,t))||(t.exports=n)},function(t,e,S){"use strict";var n;void 0===(n=function(t){function e(t){return c.hasClass(t,"is-scrollable")||c.hasClass(t,"scrollarea-scrollbar")}function n(t){return c.hasClass(t,"three-sixty-image")}function i(t,e){return!!e(t)||!!c.closest(t,e)}function r(t){return t.scrollHeight>t.offsetHeight||c.hasClass(t,"scrollarea-scrollbar")}function o(t){return t.hasAttribute("data-double-click")}function s(t){return c.hasClass(t,"eventable")}function a(t,o){var s,a;return t.objects().forEach(function(t,e){var n,i=null!=o?o.refs["obj"+e]:t.currView,r=i&&i.getFocusTarget();null!=r&&(n=r.props.model.prop("tabIndex"),r.isFocusable()&&r.isVisible()&&(null==a||n<a)&&(a=n,s=i))}),s}var l=S(0),u=S(3),c=S(7),h=S(5),d=l.partialRight(c.hasClass,"draggable"),f=l.partialRight(c.hasClass,"hidden"),p=l.partialRight(c.hasClass,"rotatable"),v=l.partialRight(c.hasClass,"slideable-parent"),g=l.partialRight(i,function(t){return e(t)&&r(t)}),m=l.partialRight(i,function(t){return p(t)}),y=l.partialRight(i,function(t){return f(t)}),A=l.partialRight(i,function(t){return d(t)}),b=l.partialRight(i,function(t){return v(t)}),w=l.partialRight(i,function(t){return s(t)});return{isRelated:i,needsToScroll:r,isScrollable:e,isScrollRelated:function(t){return(e(t)?r:g)(t)},isDraggable:d,isDraggableRelated:A,isEventable:s,isEventableRelated:w,isRotatable:p,isRotatableRelated:m,isSlideableRelated:b,isDoubleClickRelated:function(t){return o(t)||i(t,o)},activeMobileMenuItem:function(t,e){h.deviceView.isClassicMobile&&(0===u.getPath(t,"length",0)?document.body.classList.add(e):document.body.classList.remove(e))},isThreeSixtyImageRelated:function(t){return i(t,n)},isMobileSlide:function(t){return h.deviceView.isMobile&&!t.props.isMessageWindow},getGroupFocusTarget:function(t){var e=t.props.parent;if(!h.deviceView.isMobile)return e.isFocusable()?e:a(t.props.model,t)},removeEngageBorder:function(){var t=c.getParentFrame();null!=t&&t.classList.remove("webobject-engage")},getChildAtLowestTabIndex:a,isHiddenRelated:y}}.call(e,S,e,t))||(t.exports=n)},function(t,e){t.exports=THREE},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.PAD_SCALE=.8,e.Z_INDEX_MID=9999},function(t,e,r){"use strict";var n;void 0===(n=function(t){function e(){this.reset()}var n=r(0),s=r(23),a=r(3),i=r(4),h=i.math.TO_RADIANS;return n.extend(e.prototype,{adjustByViewProps:function(t){return this.translate(t.RawXPos,t.RawYPos).scale(t.ScaleX,t.ScaleY,t.rotateXPos,t.rotateYPos).rotate(t.Rotation,t.rotateXPos,t.rotateYPos),this},reset:function(){return this.a=this.d=1,this.c=this.b=this.tx=this.ty=0,this},translate:function(t,e){return this.tx+=t*this.a+e*this.b,this.ty+=t*this.c+e*this.d,this},scale:function(t,e,n,i){var r=n||i;return r&&this.translate(n,i),this.a*=t,this.c*=t,this.b*=e,this.d*=e,r&&this.translate(-n,-i),this},rotate:function(t,e,n){t*=h;var i=Math.cos(t),r=Math.sin(t),o=e-e*i+n*r,s=n-e*r-n*i,a=this.a,l=this.b,u=this.c,c=this.d;return this.a=i*a+r*l,this.b=-r*a+i*l,this.c=i*u+r*c,this.d=-r*u+i*c,this.tx+=o*a+s*l,this.ty+=o*u+s*c,this},skew:function(t,e,n,i){var r=n||i,o=this.a,s=this.c;return t=Math.tan(t*h),e=Math.tan(e*h),r&&this.translate(n,i),this.a+=e*this.b,this.c+=e*this.d,this.b+=t*o,this.d+=t*s,r&&this.translate(-n,-i),this},transform:function(t,e){return{x:t*this.a+e*this.b+this.tx,y:t*this.c+e*this.d+this.ty}},copy:function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},invert:function(){var t=1/(this.a*this.d-this.b*this.c),e=this.d*t,n=-this.b*t,i=-this.c*t,r=this.a*t,o=t*(this.b*this.ty-this.d*this.tx),s=t*(this.c*this.tx-this.a*this.ty);return this.a=e,this.b=n,this.c=i,this.d=r,this.tx=o,this.ty=s,this},toCssTransform:function(){var t=a.fix(this.a,6),e=a.fix(this.b,6),n=a.fix(this.c,6),i=a.fix(this.d,6),r=a.fix(this.tx,6),o=a.fix(this.ty,6);return s.buildTransformFn("matrix",t,n,e,i,r,o)},getScale:function(){return{x:a.hypot(this.a,this.c),y:a.hypot(this.b,this.d)}},transformPoint:function(t,e){return{x:t*this.a+e*this.b+this.tx,y:t*this.c+e*this.d+this.ty}},unTransformPoint:function(t,e){return this.copy().invert().transformPoint(t,e)},decompose:function(){var t,e,n,i=this.a,r=this.b,o=this.c,s=this.d;return n=i*s-r*o,Math.abs(n)<=1e-12?null:(r/=t=Math.sqrt(i*i+r*r),(i/=t)*(s/=e=Math.sqrt(o*o+s*s))<r*(o/=e)&&(i=-i,r=-r,t=-t),{scaling:{x:t,y:e},rotation:180*-Math.atan2(r,i)/Math.PI})},append:function(t){var e=this.a,n=this.b,i=this.c,r=this.d,o=t.a,s=t.b,a=t.c,l=t.d,u=t.tx,c=t.ty;return this.a=o*e+a*n,this.b=s*e+l*n,this.c=o*i+a*r,this.d=s*i+l*r,this.tx+=u*e+c*n,this.ty+=u*i+c*r,this},isEqual:function(t){return this.tx===t.tx&&this.ty===t.ty&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d},isOnlyTranslated:function(t){return this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d}}),e}.call(e,r,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i,r;i=[n(59)],void 0===(r=function(){Promise.resolve().then(function(){var t=[n(0),n(60),n(39),n(64),n(12)];(function(ct){Promise.resolve().then(function(){var t=[n(6),n(65),n(29),n(66),n(13),n(41),n(68),n(31),n(19),n(4),n(34),n(42),n(5),n(7),n(9),n(2),n(40),n(18),n(79),n(80),n(52),n(53),n(81),n(1),n(47),n(82),n(83),n(51),n(84),n(14),n(85),n(86),n(54),n(50),n(24),n(23),n(87),n(30),n(88),n(57),n(3),n(22),n(8),n(10),n(48),n(100),n(17),n(26),n(49),n(32),n(43),n(44),n(20),n(21),n(33),n(45),n(46),n(11),n(101),n(25),n(16),n(27),n(28)];(function(t,e,n,i,r,o,s,a,l,u,c,h,d,f,p,v,g,m,y,A,b,w,S,T,E,x,_,C,k,O,M,R,I,L,P,D,N,V,F,H,j,B,U,W,z,q,G,X,Y,J,K,$,Z,Q,tt,et,nt,it){var rt=d.deviceView.isMobile?"MOBILE":"DESKTOP",ot=u.frameLocations[rt],st=u.cssLocations[rt],at=void 0;if(!window.globals.AUTHORING_HOST_MODE){at=function(){return DS.loadScript(u.slideLocation)},(d.deviceView.isMobile||d.theme.isUnified)&&(window.globals.scale="noscale"),window.globals.HAS_SLIDE&&window.globals.HAS_FRAME||_.initialize(window.globals.HAS_SLIDE);var lt=document.createElement("link");lt.type="text/css",lt.href=st,lt.rel="stylesheet",lt.dataset.noprefix=!0,document.head.appendChild(lt)}if(window.DS=window.DS||{},Object.assign(window.DS,{_:ct,globalEventHelper:t,analyticsHelper:e,animationClock:n,AnimationTimeline:i,appState:r,audioContext:o,automation:s,BaseModel:a,captionsManager:l,constants:u,cssPrefix:c,debug:h,detection:d,dom:f,errorManager:p,events:v,fileProtocolOverrides:g,flagManager:m,focusManager:y,fontManager:A,keyManager:b,MicroScrollBar:w,mobileChromeKiller:S,pubSub:T,playerGlobals:E,previewHelper:x,rangeSliders:C,requestAnimationFrame:k,scaler:O,shortcutManager:M,slideNumberManager:R,slideObjectUtils:I,slidesController:L,stringTabler:P,svgUtils:D,tabFocusBox:N,TimelineLite:V,ThreeSixtyImage:F,TransMatrix:H,TweenLite:TweenLite,utils:j,vendorOverrides:B,vow:U,resolver:W,webObjectHelper:z,windowOpen:q,windowManager:G,mixer:X,PostMessaging:Y,ancestral:J,resolveable:K,shortEventable:$,subscribable:Z,Chunk:Q,courseStateHelper:tt,resumer:et,superagent:nt,Backbone:it,clientHeight:document.body.clientHeight,clientWidth:document.body.clientWidth,loadScript:function(t,e){var n=document.createElement("script");n.src=t,n.onload=e,document.head.appendChild(n)}}),!window.globals.AUTHORING_HOST_MODE){var ut=function(){T.once(v.ds.PRESO_LOADED,function(t){T.trigger(v.ds.PRESO_READY,DS.presentation,u.els.PRESO),W.initialize(),L.initialize(DS.presentation),s.initialize(L,DS.presentation),b.initialize(),G.initialize(),q.initialize(DS.presentation),z.initialize(DS.presentation),e.initialize(DS.presentation),h.initialize(window.globals.HAS_SLIDE?DS.presentation:void 0,window.globals.HAS_FRAME?DS.frame:void 0),x.initialize(DS.frame,DS.presentation,t),T.trigger(v.app.COMPLETE)})};T.once(v.ds.FRAME_DATA_LOADED,function(t){DS.frame=t,ut(),window.globals.HAS_SLIDE?at():(m.register("slides",j.getPath(window,"globals.features","").split(",")),DS.playerGlobals.presentation=DS.presentation,O.initialize(),T.trigger(v.ds.PRESO_LOADED),DS.frameModel.frame.controlOptions.controls.closed_captions&&T.trigger(v.captions.SHOW_BUTTON))}),window.globals.HAS_FRAME?DS.loadScript(ot):(ut(),at(),document.querySelector("body > .slide-loader").style.display="none")}}).apply(null,t)}).catch(n.oe)}).apply(null,t)}).catch(n.oe)}.apply(e,i))||(t.exports=r)},function(t,e,n){(function(i){!function r(o,s,a){function l(e,t){if(!s[e]){if(!o[e]){if(0,u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};o[e][0].call(i.exports,function(t){return l(o[e][1][t]||t)},i,i.exports,r,o,s,a)}return s[e].exports}for(var u=!1,t=0;t<a.length;t++)l(a[t]);return l}({1:[function(n,t,e){(function(t){"use strict";function e(t,e,n){t[e]||Object.defineProperty(t,e,{writable:!0,configurable:!0,value:n})}if(n(327),n(328),n(2),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2,327:327,328:328}],2:[function(t,e,n){t(130),e.exports=t(23).RegExp.escape},{130:130,23:23}],3:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,e,n){var i=t(18);e.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},{18:18}],5:[function(t,e,n){var i=t(128)("unscopables"),r=Array.prototype;null==r[i]&&t(42)(r,i,{}),e.exports=function(t){r[i][t]=!0}},{128:128,42:42}],6:[function(t,e,n){e.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},{}],7:[function(t,e,n){var i=t(51);e.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{51:51}],8:[function(t,e,n){"use strict";var c=t(119),h=t(114),d=t(118);e.exports=[].copyWithin||function(t,e,n){var i=c(this),r=d(i.length),o=h(t,r),s=h(e,r),a=2<arguments.length?n:void 0,l=Math.min((void 0===a?r:h(a,r))-s,r-o),u=1;for(s<o&&o<s+l&&(u=-1,s+=l-1,o+=l-1);0<l--;)s in i?i[o]=i[s]:delete i[o],o+=u,s+=u;return i}},{114:114,118:118,119:119}],9:[function(t,e,n){"use strict";var u=t(119),c=t(114),h=t(118);e.exports=function(t,e,n){for(var i=u(this),r=h(i.length),o=arguments.length,s=c(1<o?e:void 0,r),a=2<o?n:void 0,l=void 0===a?r:c(a,r);s<l;)i[s++]=t;return i}},{114:114,118:118,119:119}],10:[function(t,e,n){var i=t(39);e.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},{39:39}],11:[function(t,e,n){var l=t(117),u=t(118),c=t(114);e.exports=function(a){return function(t,e,n){var i,r=l(t),o=u(r.length),s=c(n,o);if(a&&e!=e){for(;s<o;)if((i=r[s++])!=i)return!0}else for(;s<o;s++)if((a||s in r)&&r[s]===e)return a||s||0;return!a&&-1}}},{114:114,117:117,118:118}],12:[function(t,e,n){var A=t(25),b=t(47),w=t(119),S=t(118),i=t(15);e.exports=function(h,t){var d=1==h,f=2==h,p=3==h,v=4==h,g=6==h,m=5==h||g,y=t||i;return function(t,e,n){for(var i,r,o=w(t),s=b(o),a=A(e,n,3),l=S(s.length),u=0,c=d?y(t,l):f?y(t,0):void 0;u<l;u++)if((m||u in s)&&(r=a(i=s[u],u,o),h))if(d)c[u]=r;else if(r)switch(h){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(v)return!1;return g?-1:p||v?v:c}}},{118:118,119:119,15:15,25:25,47:47}],13:[function(t,e,n){var c=t(3),h=t(119),d=t(47),f=t(118);e.exports=function(t,e,n,i,r){c(e);var o=h(t),s=d(o),a=f(o.length),l=r?a-1:0,u=r?-1:1;if(n<2)for(;;){if(l in s){i=s[l],l+=u;break}if(l+=u,r?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;r?0<=l:l<a;l+=u)l in s&&(i=e(i,s[l],l,o));return i}},{118:118,119:119,3:3,47:47}],14:[function(t,e,n){var i=t(51),r=t(49),o=t(128)("species");e.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{128:128,49:49,51:51}],15:[function(t,e,n){var i=t(14);e.exports=function(t,e){return new(i(t))(e)}},{14:14}],16:[function(t,e,n){"use strict";var o=t(3),s=t(51),a=t(46),l=[].slice,u={};e.exports=Function.bind||function(e){var n=o(this),i=l.call(arguments,1),r=function(){var t=i.concat(l.call(arguments));return this instanceof r?function(t,e,n){if(!(e in u)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";u[e]=Function("F,a","return new F("+i.join(",")+")")}return u[e](t,n)}(n,t.length,t):a(n,t,e)};return s(n.prototype)&&(r.prototype=n.prototype),r}},{3:3,46:46,51:51}],17:[function(t,e,n){var r=t(18),o=t(128)("toStringTag"),s="Arguments"==r(function(){return arguments}());e.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},{128:128,18:18}],18:[function(t,e,n){var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],19:[function(t,e,n){"use strict";function s(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n}var a=t(72).f,l=t(71),u=t(93),c=t(25),h=t(6),d=t(39),i=t(55),r=t(57),o=t(100),f=t(29),p=t(66).fastKey,v=t(125),g=f?"_s":"size";e.exports={getConstructor:function(t,o,n,i){var r=t(function(t,e){h(t,r,o,"_i"),t._t=o,t._i=l(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&d(e,n,t[i],t)});return u(r.prototype,{clear:function(){for(var t=v(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var e=v(this,o),n=s(e,t);if(n){var i=n.n,r=n.p;delete e._i[n.i],n.r=!0,r&&(r.n=i),i&&(i.p=r),e._f==n&&(e._f=i),e._l==n&&(e._l=r),e[g]--}return!!n},forEach:function(t,e){v(this,o);for(var n,i=c(t,1<arguments.length?e:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!s(v(this,o),t)}}),f&&a(r.prototype,"size",{get:function(){return v(this,o)[g]}}),r},def:function(t,e,n){var i,r,o=s(t,e);return o?o.v=n:(t._l=o={i:r=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:s,setStrong:function(t,n,e){i(t,n,function(t,e){this._t=v(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?r(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,r(1))},e?"entries":"values",!e,!0),o(n)}}},{100:100,125:125,25:25,29:29,39:39,55:55,57:57,6:6,66:66,71:71,72:72,93:93}],20:[function(t,e,n){var i=t(17),r=t(10);e.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},{10:10,17:17}],21:[function(t,e,n){"use strict";function s(t){return t._l||(t._l=new m)}function i(t,e){return p(t.a,function(t){return t[0]===e})}var a=t(93),l=t(66).getWeak,r=t(7),u=t(51),c=t(6),h=t(39),o=t(12),d=t(41),f=t(125),p=o(5),v=o(6),g=0,m=function(){this.a=[]};m.prototype={get:function(t){var e=i(this,t);if(e)return e[1]},has:function(t){return!!i(this,t)},set:function(t,e){var n=i(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=v(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(t,n,i,r){var o=t(function(t,e){c(t,o,n,"_i"),t._t=n,t._i=g++,t._l=void 0,null!=e&&h(e,i,t[r],t)});return a(o.prototype,{delete:function(t){if(!u(t))return!1;var e=l(t);return!0===e?s(f(this,n)).delete(t):e&&d(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=l(t);return!0===e?s(f(this,n)).has(t):e&&d(e,this._i)}}),o},def:function(t,e,n){var i=l(r(e),!0);return!0===i?s(t).set(e,n):i[t._i]=n,t},ufstore:s}},{12:12,125:125,39:39,41:41,51:51,6:6,66:66,7:7,93:93}],22:[function(t,e,n){"use strict";var m=t(40),y=t(33),A=t(94),b=t(93),w=t(66),S=t(39),T=t(6),E=t(51),x=t(35),_=t(56),C=t(101),k=t(45);e.exports=function(i,t,e,n,r,o){function s(t){var n=c[t];A(c,t,"delete"==t?function(t){return!(o&&!E(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!E(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!E(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})}var a=m[i],l=a,u=r?"set":"add",c=l&&l.prototype,h={};if("function"==typeof l&&(o||c.forEach&&!x(function(){(new l).entries().next()}))){var d=new l,f=d[u](o?{}:-0,1)!=d,p=x(function(){d.has(1)}),v=_(function(t){new l(t)}),g=!o&&x(function(){for(var t=new l,e=5;e--;)t[u](e,e);return!t.has(-0)});v||(((l=t(function(t,e){T(t,l,i);var n=k(new a,t,l);return null!=e&&S(e,r,n[u],n),n})).prototype=c).constructor=l),(p||g)&&(s("delete"),s("has"),r&&s("get")),(g||f)&&s(u),o&&c.clear&&delete c.clear}else l=n.getConstructor(t,i,r,u),b(l.prototype,e),w.NEED=!0;return C(l,i),h[i]=l,y(y.G+y.W+y.F*(l!=a),h),o||n.setStrong(l,i,r),l}},{101:101,33:33,35:35,39:39,40:40,45:45,51:51,56:56,6:6,66:66,93:93,94:94}],23:[function(t,e,n){var i=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=i)},{}],24:[function(t,e,n){"use strict";var i=t(72),r=t(92);e.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},{72:72,92:92}],25:[function(t,e,n){var o=t(3);e.exports=function(i,r,t){if(o(i),void 0===r)return i;switch(t){case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}}},{3:3}],26:[function(t,e,n){"use strict";function i(t){return 9<t?t:"0"+t}var r=t(35),o=Date.prototype.getTime,s=Date.prototype.toISOString;e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=s.call(new Date(-5e13-1))})||!r(function(){s.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":9999<t?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"."+(99<e?e:"0"+i(e))+"Z"}:s},{35:35}],27:[function(t,e,n){"use strict";var i=t(7),r=t(120);e.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},{120:120,7:7}],28:[function(t,e,n){e.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},{}],29:[function(t,e,n){e.exports=!t(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{35:35}],30:[function(t,e,n){var i=t(51),r=t(40).document,o=i(r)&&i(r.createElement);e.exports=function(t){return o?r.createElement(t):{}}},{40:40,51:51}],31:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],32:[function(t,e,n){var a=t(81),l=t(78),u=t(82);e.exports=function(t){var e=a(t),n=l.f;if(n)for(var i,r=n(t),o=u.f,s=0;r.length>s;)o.call(t,i=r[s++])&&e.push(i);return e}},{78:78,81:81,82:82}],33:[function(t,e,n){var v=t(40),g=t(23),m=t(42),y=t(94),A=t(25),b=function(t,e,n){var i,r,o,s,a=t&b.F,l=t&b.G,u=t&b.S,c=t&b.P,h=t&b.B,d=l?v:u?v[e]||(v[e]={}):(v[e]||{}).prototype,f=l?g:g[e]||(g[e]={}),p=f.prototype||(f.prototype={});for(i in l&&(n=e),n)o=((r=!a&&d&&void 0!==d[i])?d:n)[i],s=h&&r?A(o,v):c&&"function"==typeof o?A(Function.call,o):o,d&&y(d,i,o,t&b.U),f[i]!=o&&m(f,i,s),c&&p[i]!=o&&(p[i]=o)};v.core=g,b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,e.exports=b},{23:23,25:25,40:40,42:42,94:94}],34:[function(t,e,n){var i=t(128)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[i]=!1,!"/./"[e](n)}catch(e){}}return!0}},{128:128}],35:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],36:[function(t,e,n){"use strict";var a=t(42),l=t(94),u=t(35),c=t(28),h=t(128);e.exports=function(e,t,n){var i=h(e),r=n(c,i,""[e]),o=r[0],s=r[1];u(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})&&(l(String.prototype,e,o),a(RegExp.prototype,i,2==t?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)}))}},{128:128,28:28,35:35,42:42,94:94}],37:[function(t,e,n){"use strict";var i=t(7);e.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{7:7}],38:[function(t,e,n){"use strict";var p=t(49),v=t(51),g=t(118),m=t(25),y=t(128)("isConcatSpreadable");e.exports=function t(e,n,i,r,o,s,a,l){for(var u,c,h=o,d=0,f=!!a&&m(a,l,3);d<r;){if(d in i){if(u=f?f(i[d],d,n):i[d],c=!1,v(u)&&(c=void 0!==(c=u[y])?!!c:p(u)),c&&0<s)h=t(e,n,u,g(u.length),h,s-1)-1;else{if(9007199254740991<=h)throw TypeError();e[h]=u}h++}d++}return h}},{118:118,128:128,25:25,49:49,51:51}],39:[function(t,e,n){var d=t(25),f=t(53),p=t(48),v=t(7),g=t(118),m=t(129),y={},A={};(n=e.exports=function(t,e,n,i,r){var o,s,a,l,u=r?function(){return t}:m(t),c=d(n,i,e?2:1),h=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(p(u)){for(o=g(t.length);h<o;h++)if((l=e?c(v(s=t[h])[0],s[1]):c(t[h]))===y||l===A)return l}else for(a=u.call(t);!(s=a.next()).done;)if((l=f(a,c,s.value,e))===y||l===A)return l}).BREAK=y,n.RETURN=A},{118:118,129:129,25:25,48:48,53:53,7:7}],40:[function(t,e,n){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],41:[function(t,e,n){var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],42:[function(t,e,n){var i=t(72),r=t(92);e.exports=t(29)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},{29:29,72:72,92:92}],43:[function(t,e,n){var i=t(40).document;e.exports=i&&i.documentElement},{40:40}],44:[function(t,e,n){e.exports=!t(29)&&!t(35)(function(){return 7!=Object.defineProperty(t(30)("div"),"a",{get:function(){return 7}}).a})},{29:29,30:30,35:35}],45:[function(t,e,n){var o=t(51),s=t(99).set;e.exports=function(t,e,n){var i,r=e.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&o(i)&&s&&s(t,i),t}},{51:51,99:99}],46:[function(t,e,n){e.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],47:[function(t,e,n){var i=t(18);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{18:18}],48:[function(t,e,n){var i=t(58),r=t(128)("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},{128:128,58:58}],49:[function(t,e,n){var i=t(18);e.exports=Array.isArray||function(t){return"Array"==i(t)}},{18:18}],50:[function(t,e,n){var i=t(51),r=Math.floor;e.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},{51:51}],51:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],52:[function(t,e,n){var i=t(51),r=t(18),o=t(128)("match");e.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},{128:128,18:18,51:51}],53:[function(t,e,n){var o=t(7);e.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&o(r.call(t)),e}}},{7:7}],54:[function(t,e,n){"use strict";var i=t(71),r=t(92),o=t(101),s={};t(42)(s,t(128)("iterator"),function(){return this}),e.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},{101:101,128:128,42:42,71:71,92:92}],55:[function(t,e,n){"use strict";function A(){return this}var b=t(60),w=t(33),S=t(94),T=t(42),E=t(41),x=t(58),_=t(54),C=t(101),k=t(79),O=t(128)("iterator"),M=!([].keys&&"next"in[].keys());e.exports=function(t,e,n,i,r,o,s){_(n,e,i);function a(t){if(!M&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}}var l,u,c,h=e+" Iterator",d="values"==r,f=!1,p=t.prototype,v=p[O]||p["@@iterator"]||r&&p[r],g=v||a(r),m=r?d?a("entries"):g:void 0,y="Array"==e&&p.entries||v;if(y&&(c=k(y.call(new t)))!==Object.prototype&&c.next&&(C(c,h,!0),b||E(c,O)||T(c,O,A)),d&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),b&&!s||!M&&!f&&p[O]||T(p,O,g),x[e]=g,x[h]=A,r)if(l={values:d?g:a("values"),keys:o?g:a("keys"),entries:m},s)for(u in l)u in p||S(p,u,l[u]);else w(w.P+w.F*(M||f),e,l);return l}},{101:101,128:128,33:33,41:41,42:42,54:54,58:58,60:60,79:79,94:94}],56:[function(t,e,n){var o=t(128)("iterator"),s=!1;try{var i=[7][o]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var i=[7],r=i[o]();r.next=function(){return{done:n=!0}},i[o]=function(){return r},t(i)}catch(t){}return n}},{128:128}],57:[function(t,e,n){e.exports=function(t,e){return{value:e,done:!!t}}},{}],58:[function(t,e,n){e.exports={}},{}],59:[function(t,e,n){var a=t(81),l=t(117);e.exports=function(t,e){for(var n,i=l(t),r=a(i),o=r.length,s=0;s<o;)if(i[n=r[s++]]===e)return n}},{117:117,81:81}],60:[function(t,e,n){e.exports=!1},{}],61:[function(t,e,n){var i=Math.expm1;e.exports=!i||22025.465794806718<i(10)||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},{}],62:[function(t,e,n){var o=t(65),i=Math.pow,s=i(2,-52),a=i(2,-23),l=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(t){var e,n,i=Math.abs(t),r=o(t);return i<u?r*(i/u/a+1/s-1/s)*u*a:l<(n=(e=(1+a/s)*i)-(e-i))||n!=n?r*(1/0):r*n}},{65:65}],63:[function(t,e,n){e.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],64:[function(t,e,n){e.exports=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i}},{}],65:[function(t,e,n){e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],66:[function(t,e,n){function i(t){a(t,r,{value:{i:"O"+ ++l,w:{}}})}var r=t(124)("meta"),o=t(51),s=t(41),a=t(72).f,l=0,u=Object.isExtensible||function(){return!0},c=!t(35)(function(){return u(Object.preventExtensions({}))}),h=e.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,r)){if(!u(t))return"F";if(!e)return"E";i(t)}return t[r].i},getWeak:function(t,e){if(!s(t,r)){if(!u(t))return!0;if(!e)return!1;i(t)}return t[r].w},onFreeze:function(t){return c&&h.NEED&&u(t)&&!s(t,r)&&i(t),t}}},{124:124,35:35,41:41,51:51,72:72}],67:[function(t,e,n){function r(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new o)}var r=i.get(e);if(!r){if(!n)return;i.set(e,r=new o)}return r}var o=t(160),i=t(33),s=t(103)("metadata"),a=s.store||(s.store=new(t(266)));e.exports={store:a,map:r,has:function(t,e,n){var i=r(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=r(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){r(n,i,!0).set(t,e)},keys:function(t,e){var n=r(t,e,!1),i=[];return n&&n.forEach(function(t,e){i.push(e)}),i},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){i(i.S,"Reflect",t)}}},{103:103,160:160,266:266,33:33}],68:[function(t,e,n){var a=t(40),l=t(113).set,u=a.MutationObserver||a.WebKitMutationObserver,c=a.process,h=a.Promise,d="process"==t(18)(c);e.exports=function(){function t(){var t,e;for(d&&(t=c.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?r():i=void 0,t}}i=void 0,t&&t.enter()}var n,i,r;if(d)r=function(){c.nextTick(t)};else if(u){var e=!0,o=document.createTextNode("");new u(t).observe(o,{characterData:!0}),r=function(){o.data=e=!e}}else if(h&&h.resolve){var s=h.resolve();r=function(){s.then(t)}}else r=function(){l.call(a,t)};return function(t){var e={fn:t,next:void 0};i&&(i.next=e),n||(n=e,r()),i=e}}},{113:113,18:18,40:40}],69:[function(t,e,n){"use strict";function i(t){var n,i;this.promise=new t(function(t,e){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=t,i=e}),this.resolve=r(n),this.reject=r(i)}var r=t(3);e.exports.f=function(t){return new i(t)}},{3:3}],70:[function(t,e,n){"use strict";var d=t(81),f=t(78),p=t(82),v=t(119),g=t(47),r=Object.assign;e.exports=!r||t(35)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=r({},t)[n]||Object.keys(r({},e)).join("")!=i})?function(t,e){for(var n=v(t),i=arguments.length,r=1,o=f.f,s=p.f;r<i;)for(var a,l=g(arguments[r++]),u=o?d(l).concat(o(l)):d(l),c=u.length,h=0;h<c;)s.call(l,a=u[h++])&&(n[a]=l[a]);return n}:r},{119:119,35:35,47:47,78:78,81:81,82:82}],71:[function(i,t,e){function r(){}var o=i(7),s=i(73),a=i(31),l=i(102)("IE_PROTO"),u=function(){var t,e=i(30)("iframe"),n=a.length;for(e.style.display="none",i(43).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[a[n]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(r.prototype=o(t),n=new r,r.prototype=null,n[l]=t):n=u(),void 0===e?n:s(n,e)}},{102:102,30:30,31:31,43:43,7:7,73:73}],72:[function(t,e,n){var i=t(7),r=t(44),o=t(120),s=Object.defineProperty;n.f=t(29)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{120:120,29:29,44:44,7:7}],73:[function(t,e,n){var s=t(72),a=t(7),l=t(81);e.exports=t(29)?Object.defineProperties:function(t,e){a(t);for(var n,i=l(e),r=i.length,o=0;o<r;)s.f(t,n=i[o++],e[n]);return t}},{29:29,7:7,72:72,81:81}],74:[function(e,t,n){"use strict";t.exports=e(60)||!e(35)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e(40)[t]})},{35:35,40:40,60:60}],75:[function(t,e,n){var i=t(82),r=t(92),o=t(117),s=t(120),a=t(41),l=t(44),u=Object.getOwnPropertyDescriptor;n.f=t(29)?u:function(t,e){if(t=o(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},{117:117,120:120,29:29,41:41,44:44,82:82,92:92}],76:[function(t,e,n){var i=t(117),r=t(77).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(i(t))}},{117:117,77:77}],77:[function(t,e,n){var i=t(80),r=t(31).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},{31:31,80:80}],78:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],79:[function(t,e,n){var i=t(41),r=t(119),o=t(102)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},{102:102,119:119,41:41}],80:[function(t,e,n){var s=t(41),a=t(117),l=t(11)(!1),u=t(102)("IE_PROTO");e.exports=function(t,e){var n,i=a(t),r=0,o=[];for(n in i)n!=u&&s(i,n)&&o.push(n);for(;e.length>r;)s(i,n=e[r++])&&(~l(o,n)||o.push(n));return o}},{102:102,11:11,117:117,41:41}],81:[function(t,e,n){var i=t(80),r=t(31);e.exports=Object.keys||function(t){return i(t,r)}},{31:31,80:80}],82:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],83:[function(t,e,n){var r=t(33),o=t(23),s=t(35);e.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*s(function(){n(1)}),"Object",i)}},{23:23,33:33,35:35}],84:[function(t,e,n){var l=t(81),u=t(117),c=t(82).f;e.exports=function(a){return function(t){for(var e,n=u(t),i=l(n),r=i.length,o=0,s=[];o<r;)c.call(n,e=i[o++])&&s.push(a?[e,n[e]]:n[e]);return s}}},{117:117,81:81,82:82}],85:[function(t,e,n){var i=t(77),r=t(78),o=t(7),s=t(40).Reflect;e.exports=s&&s.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},{40:40,7:7,77:77,78:78}],86:[function(t,e,n){var i=t(40).parseFloat,r=t(111).trim;e.exports=1/i(t(112)+"-0")!=-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},{111:111,112:112,40:40}],87:[function(t,e,n){var i=t(40).parseInt,r=t(111).trim,o=t(112),s=/^[-+]?0[xX]/;e.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(s.test(n)?16:10))}:i},{111:111,112:112,40:40}],88:[function(t,e,n){"use strict";var i=t(89),u=t(46),c=t(3);e.exports=function(){for(var r=c(this),o=arguments.length,s=Array(o),t=0,a=i._,l=!1;t<o;)(s[t]=arguments[t++])===a&&(l=!0);return function(){var t,e=arguments.length,n=0,i=0;if(!l&&!e)return u(r,s,this);if(t=s.slice(),l)for(;n<o;n++)t[n]===a&&(t[n]=arguments[i++]);for(;i<e;)t.push(arguments[i++]);return u(r,t,this)}}},{3:3,46:46,89:89}],89:[function(t,e,n){e.exports=t(40)},{40:40}],90:[function(t,e,n){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],91:[function(t,e,n){var i=t(69);e.exports=function(t,e){var n=i.f(t);return(0,n.resolve)(e),n.promise}},{69:69}],92:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],93:[function(t,e,n){var r=t(94);e.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},{94:94}],94:[function(t,e,n){var o=t(40),s=t(42),a=t(41),l=t(124)("src"),i=Function.toString,u=(""+i).split("toString");t(23).inspectSource=function(t){return i.call(t)},(e.exports=function(t,e,n,i){var r="function"==typeof n;r&&(a(n,"name")||s(n,"name",e)),t[e]!==n&&(r&&(a(n,l)||s(n,l,t[e]?""+t[e]:u.join(String(e)))),t===o?t[e]=n:i?t[e]?t[e]=n:s(t,e,n):(delete t[e],s(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[l]||i.call(this)})},{124:124,23:23,40:40,41:41,42:42}],95:[function(t,e,n){e.exports=function(e,n){var i=n===Object(n)?function(t){return n[t]}:n;return function(t){return String(t).replace(e,i)}}},{}],96:[function(t,e,n){e.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},{}],97:[function(t,e,n){"use strict";var i=t(33),l=t(3),u=t(25),c=t(39);e.exports=function(t){i(i.S,t,{from:function(t,e,n){var i,r,o,s,a=e;return l(this),(i=void 0!==a)&&l(a),null==t?new this:(r=[],i?(o=0,s=u(a,n,2),c(t,!1,function(t){r.push(s(t,o++))})):c(t,!1,r.push,r),new this(r))}})}},{25:25,3:3,33:33,39:39}],98:[function(t,e,n){"use strict";var i=t(33);e.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},{33:33}],99:[function(e,t,n){function r(t,e){if(o(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var i=e(51),o=e(7);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=e(25)(Function.call,e(75).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return r(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:r}},{25:25,51:51,7:7,75:75}],100:[function(t,e,n){"use strict";var i=t(40),r=t(72),o=t(29),s=t(128)("species");e.exports=function(t){var e=i[t];o&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},{128:128,29:29,40:40,72:72}],101:[function(t,e,n){var i=t(72).f,r=t(41),o=t(128)("toStringTag");e.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},{128:128,41:41,72:72}],102:[function(t,e,n){var i=t(103)("keys"),r=t(124);e.exports=function(t){return i[t]||(i[t]=r(t))}},{103:103,124:124}],103:[function(t,e,n){var i=t(40),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(t){return r[t]||(r[t]={})}},{40:40}],104:[function(t,e,n){var r=t(7),o=t(3),s=t(128)("species");e.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[s])?e:o(n)}},{128:128,3:3,7:7}],105:[function(t,e,n){"use strict";var i=t(35);e.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},{35:35}],106:[function(t,e,n){var l=t(116),u=t(28);e.exports=function(a){return function(t,e){var n,i,r=String(u(t)),o=l(e),s=r.length;return o<0||s<=o?a?"":void 0:(n=r.charCodeAt(o))<55296||56319<n||o+1===s||(i=r.charCodeAt(o+1))<56320||57343<i?a?r.charAt(o):n:a?r.slice(o,o+2):i-56320+(n-55296<<10)+65536}}},{116:116,28:28}],107:[function(t,e,n){var i=t(52),r=t(28);e.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},{28:28,52:52}],108:[function(t,e,n){function i(t,e,n,i){var r=String(s(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(i).replace(a,"&quot;")+'"'),o+">"+r+"</"+e+">"}var r=t(33),o=t(35),s=t(28),a=/"/g;e.exports=function(e,t){var n={};n[e]=t(i),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",n)}},{28:28,33:33,35:35}],109:[function(t,e,n){var c=t(118),h=t(110),d=t(28);e.exports=function(t,e,n,i){var r=String(d(t)),o=r.length,s=void 0===n?" ":String(n),a=c(e);if(a<=o||""==s)return r;var l=a-o,u=h.call(s,Math.ceil(l/s.length));return u.length>l&&(u=u.slice(0,l)),i?u+r:r+u}},{110:110,118:118,28:28}],110:[function(t,e,n){"use strict";var r=t(116),o=t(28);e.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;0<i;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},{116:116,28:28}],111:[function(t,e,n){function i(t,e,n){var i={},r=a(function(){return!!l[t]()||"​…"!="​…"[t]()}),o=i[t]=r?e(h):l[t];n&&(i[n]=o),s(s.P+s.F*r,"String",i)}var s=t(33),r=t(28),a=t(35),l=t(112),o="["+l+"]",u=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),h=i.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};e.exports=i},{112:112,28:28,33:33,35:35}],112:[function(t,e,n){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],113:[function(t,e,n){function i(){var t=+this;if(A.hasOwnProperty(t)){var e=A[t];delete A[t],e()}}function r(t){i.call(t.data)}var o,s,a,l=t(25),u=t(46),c=t(43),h=t(30),d=t(40),f=d.process,p=d.setImmediate,v=d.clearImmediate,g=d.MessageChannel,m=d.Dispatch,y=0,A={};p&&v||(p=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return A[++y]=function(){u("function"==typeof t?t:Function(t),e)},o(y),y},v=function(t){delete A[t]},"process"==t(18)(f)?o=function(t){f.nextTick(l(i,t,1))}:m&&m.now?o=function(t){m.now(l(i,t,1))}:g?(a=(s=new g).port2,s.port1.onmessage=r,o=l(a.postMessage,a,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(o=function(t){d.postMessage(t+"","*")},d.addEventListener("message",r,!1)):o="onreadystatechange"in h("script")?function(t){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this),i.call(t)}}:function(t){setTimeout(l(i,t,1),0)}),e.exports={set:p,clear:v}},{18:18,25:25,30:30,40:40,43:43,46:46}],114:[function(t,e,n){var i=t(116),r=Math.max,o=Math.min;e.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},{116:116}],115:[function(t,e,n){var i=t(116),r=t(118);e.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},{116:116,118:118}],116:[function(t,e,n){var i=Math.ceil,r=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0<t?r:i)(t)}},{}],117:[function(t,e,n){var i=t(47),r=t(28);e.exports=function(t){return i(r(t))}},{28:28,47:47}],118:[function(t,e,n){var i=t(116),r=Math.min;e.exports=function(t){return 0<t?r(i(t),9007199254740991):0}},{116:116}],119:[function(t,e,n){var i=t(28);e.exports=function(t){return Object(i(t))}},{28:28}],120:[function(t,e,n){var r=t(51);e.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{51:51}],121:[function(t,e,n){"use strict";if(t(29)){var m=t(60),y=t(40),A=t(35),b=t(33),w=t(123),i=t(122),p=t(25),S=t(6),r=t(92),T=t(42),o=t(93),s=t(116),E=t(118),x=t(115),a=t(114),l=t(120),u=t(41),_=t(17),C=t(51),v=t(119),g=t(48),k=t(71),O=t(79),M=t(77).f,R=t(129),c=t(124),h=t(128),d=t(12),f=t(11),I=t(104),L=t(141),P=t(58),D=t(56),N=t(100),V=t(9),F=t(8),H=t(72),j=t(75),B=H.f,U=j.f,W=y.RangeError,z=y.TypeError,q=y.Uint8Array,G=Array.prototype,X=i.ArrayBuffer,Y=i.DataView,J=d(0),K=d(2),$=d(3),Z=d(4),Q=d(5),tt=d(6),et=f(!0),nt=f(!1),it=L.values,rt=L.keys,ot=L.entries,st=G.lastIndexOf,at=G.reduce,lt=G.reduceRight,ut=G.join,ct=G.sort,ht=G.slice,dt=G.toString,ft=G.toLocaleString,pt=h("iterator"),vt=h("toStringTag"),gt=c("typed_constructor"),mt=c("def_constructor"),yt=w.CONSTR,At=w.TYPED,bt=w.VIEW,wt=d(1,function(t,e){return _t(I(t,t[mt]),e)}),St=A(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),Tt=!!q&&!!q.prototype.set&&A(function(){new q(1).set({})}),Et=function(t,e){var n=s(t);if(n<0||n%e)throw W("Wrong offset!");return n},xt=function(t){if(C(t)&&At in t)return t;throw z(t+" is not a typed array!")},_t=function(t,e){if(!(C(t)&&gt in t))throw z("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return kt(I(t,t[mt]),e)},kt=function(t,e){for(var n=0,i=e.length,r=_t(t,i);n<i;)r[n]=e[n++];return r},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t,e,n){var i,r,o,s,a,l,u=v(t),c=arguments.length,h=1<c?e:void 0,d=void 0!==h,f=R(u);if(null!=f&&!g(f)){for(l=f.call(u),o=[],i=0;!(a=l.next()).done;i++)o.push(a.value);u=o}for(d&&2<c&&(h=p(h,n,2)),i=0,r=E(u.length),s=_t(this,r);i<r;i++)s[i]=d?h(u[i],i):u[i];return s},Rt=function(){for(var t=0,e=arguments.length,n=_t(this,e);t<e;)n[t]=arguments[t++];return n},It=!!q&&A(function(){ft.call(new q(1))}),Lt=function(){return ft.apply(It?ht.call(xt(this)):xt(this),arguments)},Pt={copyWithin:function(t,e,n){return F.call(xt(this),t,e,2<arguments.length?n:void 0)},every:function(t,e){return Z(xt(this),t,1<arguments.length?e:void 0)},fill:function(t){return V.apply(xt(this),arguments)},filter:function(t,e){return Ct(this,K(xt(this),t,1<arguments.length?e:void 0))},find:function(t,e){return Q(xt(this),t,1<arguments.length?e:void 0)},findIndex:function(t,e){return tt(xt(this),t,1<arguments.length?e:void 0)},forEach:function(t,e){J(xt(this),t,1<arguments.length?e:void 0)},indexOf:function(t,e){return nt(xt(this),t,1<arguments.length?e:void 0)},includes:function(t,e){return et(xt(this),t,1<arguments.length?e:void 0)},join:function(t){return ut.apply(xt(this),arguments)},lastIndexOf:function(t){return st.apply(xt(this),arguments)},map:function(t,e){return wt(xt(this),t,1<arguments.length?e:void 0)},reduce:function(t){return at.apply(xt(this),arguments)},reduceRight:function(t){return lt.apply(xt(this),arguments)},reverse:function(){for(var t,e=xt(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this},some:function(t,e){return $(xt(this),t,1<arguments.length?e:void 0)},sort:function(t){return ct.call(xt(this),t)},subarray:function(t,e){var n=xt(this),i=n.length,r=a(t,i);return new(I(n,n[mt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,E((void 0===e?i:a(e,i))-r))}},Dt=function(t,e){return Ct(this,ht.call(xt(this),t,e))},Nt=function(t,e){xt(this);var n=Et(e,1),i=this.length,r=v(t),o=E(r.length),s=0;if(i<o+n)throw W("Wrong length!");for(;s<o;)this[n+s]=r[s++]},Vt={entries:function(){return ot.call(xt(this))},keys:function(){return rt.call(xt(this))},values:function(){return it.call(xt(this))}},Ft=function(t,e){return C(t)&&t[At]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ht=function(t,e){return Ft(t,e=l(e,!0))?r(2,t[e]):U(t,e)},jt=function(t,e,n){return!(Ft(t,e=l(e,!0))&&C(n)&&u(n,"value"))||u(n,"get")||u(n,"set")||n.configurable||u(n,"writable")&&!n.writable||u(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};yt||(j.f=Ht,H.f=jt),b(b.S+b.F*!yt,"Object",{getOwnPropertyDescriptor:Ht,defineProperty:jt}),A(function(){dt.call({})})&&(dt=ft=function(){return ut.call(this)});var Bt=o({},Pt);o(Bt,Vt),T(Bt,pt,Vt.values),o(Bt,{slice:Dt,set:Nt,constructor:function(){},toString:dt,toLocaleString:Lt}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,vt,{get:function(){return this[At]}}),e.exports=function(t,h,e,o){function d(t,r){B(t,r,{get:function(){return t=r,(e=this._d).v[n](t*h+e.o,St);var t,e},set:function(t){return e=r,n=t,i=this._d,o&&(n=(n=Math.round(n))<0?0:255<n?255:255&n),void i.v[s](e*h+i.o,n,St);var e,n,i},enumerable:!0})}var f=t+((o=!!o)?"Clamped":"")+"Array",n="get"+t,s="set"+t,p=y[f],a=p||{},i=p&&O(p),r=!p||!w.ABV,l={},u=p&&p.prototype;r?(p=e(function(t,e,n,i){S(t,p,f,"_d");var r,o,s,a,l=0,u=0;if(C(e)){if(!(e instanceof X||"ArrayBuffer"==(a=_(e))||"SharedArrayBuffer"==a))return At in e?kt(p,e):Mt.call(p,e);r=e,u=Et(n,h);var c=e.byteLength;if(void 0===i){if(c%h)throw W("Wrong length!");if((o=c-u)<0)throw W("Wrong length!")}else if((o=E(i)*h)+u>c)throw W("Wrong length!");s=o/h}else s=x(e),r=new X(o=s*h);for(T(t,"_d",{b:r,o:u,l:o,e:s,v:new Y(r)});l<s;)d(t,l++)}),u=p.prototype=k(Bt),T(u,"constructor",p)):A(function(){p(1)})&&A(function(){new p(-1)})&&D(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=e(function(t,e,n,i){var r;return S(t,p,f),C(e)?e instanceof X||"ArrayBuffer"==(r=_(e))||"SharedArrayBuffer"==r?void 0!==i?new a(e,Et(n,h),i):void 0!==n?new a(e,Et(n,h)):new a(e):At in e?kt(p,e):Mt.call(p,e):new a(x(e))}),J(i!==Function.prototype?M(a).concat(M(i)):M(a),function(t){t in p||T(p,t,a[t])}),p.prototype=u,m||(u.constructor=p));var c=u[pt],v=!!c&&("values"==c.name||null==c.name),g=Vt.values;T(p,gt,!0),T(u,At,f),T(u,bt,!0),T(u,mt,p),(o?new p(1)[vt]==f:vt in u)||B(u,vt,{get:function(){return f}}),l[f]=p,b(b.G+b.W+b.F*(p!=a),l),b(b.S,f,{BYTES_PER_ELEMENT:h}),b(b.S+b.F*A(function(){a.of.call(p,1)}),f,{from:Mt,of:Rt}),"BYTES_PER_ELEMENT"in u||T(u,"BYTES_PER_ELEMENT",h),b(b.P,f,Pt),N(f),b(b.P+b.F*Tt,f,{set:Nt}),b(b.P+b.F*!v,f,Vt),m||u.toString==dt||(u.toString=dt),b(b.P+b.F*A(function(){new p(1).slice()}),f,{slice:Dt}),b(b.P+b.F*(A(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!A(function(){u.toLocaleString.call([1,2])})),f,{toLocaleString:Lt}),P[f]=v?c:g,m||v||T(u,pt,g)}}else e.exports=function(){}},{100:100,104:104,11:11,114:114,115:115,116:116,118:118,119:119,12:12,120:120,122:122,123:123,124:124,128:128,129:129,141:141,17:17,25:25,29:29,33:33,35:35,40:40,41:41,42:42,48:48,51:51,56:56,58:58,6:6,60:60,71:71,72:72,75:75,77:77,79:79,8:8,9:9,92:92,93:93}],122:[function(t,e,n){"use strict";function i(t,e,n){var i,r,o,s=Array(n),a=8*n-e-1,l=(1<<a)-1,u=l>>1,c=23===e?F(2,-24)-F(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=V(t))!=t||t===D?(r=t!=t?1:0,i=l):(i=H(j(t)/B),t*(o=F(2,-i))<1&&(i--,o*=2),2<=(t+=1<=i+u?c/o:c*F(2,1-u))*o&&(i++,o/=2),l<=i+u?(r=0,i=l):1<=i+u?(r=(t*o-1)*F(2,e),i+=u):(r=t*F(2,u-1)*F(2,e),i=0));8<=e;s[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,a+=e;0<a;s[h++]=255&i,i/=256,a-=8);return s[--h]|=128*d,s}function r(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,s=o>>1,a=r-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;0<a;c=256*c+t[l],l--,a-=8);for(i=c&(1<<-a)-1,c>>=-a,a+=e;0<a;i=256*i+t[l],l--,a-=8);if(0===c)c=1-s;else{if(c===o)return i?NaN:u?-D:D;i+=F(2,e),c-=s}return(u?-1:1)*i*F(2,c-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function s(t){return[255&t]}function a(t){return[255&t,t>>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function u(t){return i(t,52,8)}function c(t){return i(t,23,4)}function h(t,e,n){_(t[O],e,{get:function(){return this[n]}})}function d(t,e,n,i){var r=E(+n);if(r+e>t[W])throw P(M);var o=t[U]._b,s=r+t[z],a=o.slice(s,s+e);return i?a:a.reverse()}function f(t,e,n,i,r,o){var s=E(+n);if(s+e>t[W])throw P(M);for(var a=t[U]._b,l=s+t[z],u=i(+r),c=0;c<e;c++)a[l+c]=u[o?c:e-c-1]}var p=t(40),v=t(29),g=t(60),m=t(123),y=t(42),A=t(93),b=t(35),w=t(6),S=t(116),T=t(118),E=t(115),x=t(77).f,_=t(72).f,C=t(9),k=t(101),O="prototype",M="Wrong index!",R=p.ArrayBuffer,I=p.DataView,L=p.Math,P=p.RangeError,D=p.Infinity,N=R,V=L.abs,F=L.pow,H=L.floor,j=L.log,B=L.LN2,U=v?"_b":"buffer",W=v?"_l":"byteLength",z=v?"_o":"byteOffset";if(m.ABV){if(!b(function(){R(1)})||!b(function(){new R(-1)})||b(function(){return new R,new R(1.5),new R(NaN),"ArrayBuffer"!=R.name})){for(var q,G=(R=function(t){return w(this,R),new N(E(t))})[O]=N[O],X=x(N),Y=0;X.length>Y;)(q=X[Y++])in R||y(R,q,N[q]);g||(G.constructor=R)}var J=new I(new R(2)),K=I[O].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||A(I[O],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else R=function(t){w(this,R,"ArrayBuffer");var e=E(t);this._b=C.call(Array(e),0),this[W]=e},I=function(t,e,n){w(this,I,"DataView"),w(t,R,"DataView");var i=t[W],r=S(e);if(r<0||i<r)throw P("Wrong offset!");if(i<r+(n=void 0===n?i-r:T(n)))throw P("Wrong length!");this[U]=t,this[z]=r,this[W]=n},v&&(h(R,"byteLength","_l"),h(I,"buffer","_b"),h(I,"byteLength","_l"),h(I,"byteOffset","_o")),A(I[O],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t,e){var n=d(this,2,t,e);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t,e){var n=d(this,2,t,e);return n[1]<<8|n[0]},getInt32:function(t,e){return o(d(this,4,t,e))},getUint32:function(t,e){return o(d(this,4,t,e))>>>0},getFloat32:function(t,e){return r(d(this,4,t,e),23,4)},getFloat64:function(t,e){return r(d(this,8,t,e),52,8)},setInt8:function(t,e){f(this,1,t,s,e)},setUint8:function(t,e){f(this,1,t,s,e)},setInt16:function(t,e,n){f(this,2,t,a,e,n)},setUint16:function(t,e,n){f(this,2,t,a,e,n)},setInt32:function(t,e,n){f(this,4,t,l,e,n)},setUint32:function(t,e,n){f(this,4,t,l,e,n)},setFloat32:function(t,e,n){f(this,4,t,c,e,n)},setFloat64:function(t,e,n){f(this,8,t,u,e,n)}});k(R,"ArrayBuffer"),k(I,"DataView"),y(I[O],m.VIEW,!0),n.ArrayBuffer=R,n.DataView=I},{101:101,115:115,116:116,118:118,123:123,29:29,35:35,40:40,42:42,6:6,60:60,72:72,77:77,9:9,93:93}],123:[function(t,e,n){for(var i,r=t(40),o=t(42),s=t(124),a=s("typed_array"),l=s("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(o(i.prototype,a,!0),o(i.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:a,VIEW:l}},{124:124,40:40,42:42}],124:[function(t,e,n){var i=0,r=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+r).toString(36))}},{}],125:[function(t,e,n){var i=t(51);e.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{51:51}],126:[function(t,e,n){var i=t(40),r=t(23),o=t(60),s=t(127),a=t(72).f;e.exports=function(t){var e=r.Symbol||(r.Symbol=!o&&i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},{127:127,23:23,40:40,60:60,72:72}],127:[function(t,e,n){n.f=t(128)},{128:128}],128:[function(t,e,n){var i=t(103)("wks"),r=t(124),o=t(40).Symbol,s="function"==typeof o;(e.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},{103:103,124:124,40:40}],129:[function(t,e,n){var i=t(17),r=t(128)("iterator"),o=t(58);e.exports=t(23).getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},{128:128,17:17,23:23,58:58}],130:[function(t,e,n){var i=t(33),r=t(95)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},{33:33,95:95}],131:[function(t,e,n){var i=t(33);i(i.P,"Array",{copyWithin:t(8)}),t(5)("copyWithin")},{33:33,5:5,8:8}],132:[function(t,e,n){"use strict";var i=t(33),r=t(12)(4);i(i.P+i.F*!t(105)([].every,!0),"Array",{every:function(t,e){return r(this,t,e)}})},{105:105,12:12,33:33}],133:[function(t,e,n){var i=t(33);i(i.P,"Array",{fill:t(9)}),t(5)("fill")},{33:33,5:5,9:9}],134:[function(t,e,n){"use strict";var i=t(33),r=t(12)(2);i(i.P+i.F*!t(105)([].filter,!0),"Array",{filter:function(t,e){return r(this,t,e)}})},{105:105,12:12,33:33}],135:[function(t,e,n){"use strict";var i=t(33),r=t(12)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),i(i.P+i.F*s,"Array",{findIndex:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),t(5)(o)},{12:12,33:33,5:5}],136:[function(t,e,n){"use strict";var i=t(33),r=t(12)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),t(5)("find")},{12:12,33:33,5:5}],137:[function(t,e,n){"use strict";var i=t(33),r=t(12)(0),o=t(105)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t,e){return r(this,t,e)}})},{105:105,12:12,33:33}],138:[function(t,e,n){"use strict";var p=t(25),i=t(33),v=t(119),g=t(53),m=t(48),y=t(118),A=t(24),b=t(129);i(i.S+i.F*!t(56)(function(t){Array.from(t)}),"Array",{from:function(t,e,n){var i,r,o,s,a=v(t),l="function"==typeof this?this:Array,u=arguments.length,c=1<u?e:void 0,h=void 0!==c,d=0,f=b(a);if(h&&(c=p(c,2<u?n:void 0,2)),null==f||l==Array&&m(f))for(r=new l(i=y(a.length));d<i;d++)A(r,d,h?c(a[d],d):a[d]);else for(s=f.call(a),r=new l;!(o=s.next()).done;d++)A(r,d,h?g(s,c,[o.value,d],!0):o.value);return r.length=d,r}})},{118:118,119:119,129:129,24:24,25:25,33:33,48:48,53:53,56:56}],139:[function(t,e,n){"use strict";var i=t(33),r=t(11)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!t(105)(o)),"Array",{indexOf:function(t,e){return s?o.apply(this,arguments)||0:r(this,t,e)}})},{105:105,11:11,33:33}],140:[function(t,e,n){var i=t(33);i(i.S,"Array",{isArray:t(49)})},{33:33,49:49}],141:[function(t,e,n){"use strict";var i=t(5),r=t(57),o=t(58),s=t(117);e.exports=t(55)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},{117:117,5:5,55:55,57:57,58:58}],142:[function(t,e,n){"use strict";var i=t(33),r=t(117),o=[].join;i(i.P+i.F*(t(47)!=Object||!t(105)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},{105:105,117:117,33:33,47:47}],143:[function(t,e,n){"use strict";var i=t(33),o=t(117),s=t(116),a=t(118),l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(u||!t(105)(l)),"Array",{lastIndexOf:function(t,e){if(u)return l.apply(this,arguments)||0;var n=o(this),i=a(n.length),r=i-1;for(1<arguments.length&&(r=Math.min(r,s(e))),r<0&&(r=i+r);0<=r;r--)if(r in n&&n[r]===t)return r||0;return-1}})},{105:105,116:116,117:117,118:118,33:33}],144:[function(t,e,n){"use strict";var i=t(33),r=t(12)(1);i(i.P+i.F*!t(105)([].map,!0),"Array",{map:function(t,e){return r(this,t,e)}})},{105:105,12:12,33:33}],145:[function(t,e,n){"use strict";var i=t(33),r=t(24);i(i.S+i.F*t(35)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);t<e;)r(n,t,arguments[t++]);return n.length=e,n}})},{24:24,33:33,35:35}],146:[function(t,e,n){"use strict";var i=t(33),r=t(13);i(i.P+i.F*!t(105)([].reduceRight,!0),"Array",{reduceRight:function(t,e){return r(this,t,arguments.length,e,!0)}})},{105:105,13:13,33:33}],147:[function(t,e,n){"use strict";var i=t(33),r=t(13);i(i.P+i.F*!t(105)([].reduce,!0),"Array",{reduce:function(t,e){return r(this,t,arguments.length,e,!1)}})},{105:105,13:13,33:33}],148:[function(t,e,n){"use strict";var i=t(33),r=t(43),u=t(18),c=t(114),h=t(118),d=[].slice;i(i.P+i.F*t(35)(function(){r&&d.call(r)}),"Array",{slice:function(t,e){var n=h(this.length),i=u(this);if(e=void 0===e?n:e,"Array"==i)return d.call(this,t,e);for(var r=c(t,n),o=c(e,n),s=h(o-r),a=Array(s),l=0;l<s;l++)a[l]="String"==i?this.charAt(r+l):this[r+l];return a}})},{114:114,118:118,18:18,33:33,35:35,43:43}],149:[function(t,e,n){"use strict";var i=t(33),r=t(12)(3);i(i.P+i.F*!t(105)([].some,!0),"Array",{some:function(t,e){return r(this,t,e)}})},{105:105,12:12,33:33}],150:[function(t,e,n){"use strict";var i=t(33),r=t(3),o=t(119),s=t(35),a=[].sort,l=[1,2,3];i(i.P+i.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!t(105)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},{105:105,119:119,3:3,33:33,35:35}],151:[function(t,e,n){t(100)("Array")},{100:100}],152:[function(t,e,n){var i=t(33);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},{33:33}],153:[function(t,e,n){var i=t(33),r=t(26);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},{26:26,33:33}],154:[function(t,e,n){"use strict";var i=t(33),r=t(119),o=t(120);i(i.P+i.F*t(35)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var t=r(this),e=o(t);return"number"!=typeof e||isFinite(e)?t.toISOString():null}})},{119:119,120:120,33:33,35:35}],155:[function(t,e,n){var i=t(128)("toPrimitive"),r=Date.prototype;i in r||t(42)(r,i,t(27))},{128:128,27:27,42:42}],156:[function(t,e,n){var i=Date.prototype,r=i.toString,o=i.getTime;new Date(NaN)+""!="Invalid Date"&&t(94)(i,"toString",function(){var t=o.call(this);return t==t?r.call(this):"Invalid Date"})},{94:94}],157:[function(t,e,n){var i=t(33);i(i.P,"Function",{bind:t(16)})},{16:16,33:33}],158:[function(t,e,n){"use strict";var i=t(51),r=t(79),o=t(128)("hasInstance"),s=Function.prototype;o in s||t(72).f(s,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},{128:128,51:51,72:72,79:79}],159:[function(t,e,n){var i=t(72).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||t(29)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},{29:29,72:72}],160:[function(t,e,n){"use strict";var i=t(19),r=t(125);e.exports=t(22)("Map",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},{125:125,19:19,22:22}],161:[function(t,e,n){var i=t(33),r=t(63),o=Math.sqrt,s=Math.acosh;i(i.S+i.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},{33:33,63:63}],162:[function(t,e,n){var i=t(33),r=Math.asinh;i(i.S+i.F*!(r&&0<1/r(0)),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},{33:33}],163:[function(t,e,n){var i=t(33),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{33:33}],164:[function(t,e,n){var i=t(33),r=t(65);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},{33:33,65:65}],165:[function(t,e,n){var i=t(33);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{33:33}],166:[function(t,e,n){var i=t(33),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},{33:33}],167:[function(t,e,n){var i=t(33),r=t(61);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},{33:33,61:61}],168:[function(t,e,n){var i=t(33);i(i.S,"Math",{fround:t(62)})},{33:33,62:62}],169:[function(t,e,n){var i=t(33),l=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,r=0,o=0,s=arguments.length,a=0;o<s;)a<(n=l(arguments[o++]))?(r=r*(i=a/n)*i+1,a=n):0<n?r+=(i=n/a)*i:r+=n;return a===1/0?1/0:a*Math.sqrt(r)}})},{33:33}],170:[function(t,e,n){var i=t(33),r=Math.imul;i(i.S+i.F*t(35)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},{33:33,35:35}],171:[function(t,e,n){var i=t(33);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{33:33}],172:[function(t,e,n){var i=t(33);i(i.S,"Math",{log1p:t(63)})},{33:33,63:63}],173:[function(t,e,n){var i=t(33);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{33:33}],174:[function(t,e,n){var i=t(33);i(i.S,"Math",{sign:t(65)})},{33:33,65:65}],175:[function(t,e,n){var i=t(33),r=t(61),o=Math.exp;i(i.S+i.F*t(35)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{33:33,35:35,61:61}],176:[function(t,e,n){var i=t(33),r=t(61),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},{33:33,61:61}],177:[function(t,e,n){var i=t(33);i(i.S,"Math",{trunc:function(t){return(0<t?Math.floor:Math.ceil)(t)}})},{33:33}],178:[function(t,e,n){"use strict";function i(t){var e=c(t,!1);if("string"==typeof e&&2<e.length){var n,i,r,o=(e=y?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var s,a=e.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||r<s)return NaN;return parseInt(a,i)}}return+e}var r=t(40),o=t(41),s=t(18),a=t(45),c=t(120),l=t(35),u=t(77).f,h=t(75).f,d=t(72).f,f=t(111).trim,p=r.Number,v=p,g=p.prototype,m="Number"==s(t(71)(g)),y="trim"in String.prototype;if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l(function(){g.valueOf.call(n)}):"Number"!=s(n))?a(new v(i(e)),n,p):i(e)};for(var A,b=t(29)?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(v,A=b[w])&&!o(p,A)&&d(p,A,h(v,A));(p.prototype=g).constructor=p,t(94)(r,"Number",p)}},{111:111,120:120,18:18,29:29,35:35,40:40,41:41,45:45,71:71,72:72,75:75,77:77,94:94}],179:[function(t,e,n){var i=t(33);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},{33:33}],180:[function(t,e,n){var i=t(33),r=t(40).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},{33:33,40:40}],181:[function(t,e,n){var i=t(33);i(i.S,"Number",{isInteger:t(50)})},{33:33,50:50}],182:[function(t,e,n){var i=t(33);i(i.S,"Number",{isNaN:function(t){return t!=t}})},{33:33}],183:[function(t,e,n){var i=t(33),r=t(50),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},{33:33,50:50}],184:[function(t,e,n){var i=t(33);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{33:33}],185:[function(t,e,n){var i=t(33);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{33:33}],186:[function(t,e,n){var i=t(33),r=t(86);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},{33:33,86:86}],187:[function(t,e,n){var i=t(33),r=t(87);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},{33:33,87:87}],188:[function(t,e,n){"use strict";function u(t,e){for(var n=-1,i=e;++n<6;)i+=t*s[n],s[n]=i%1e7,i=o(i/1e7)}function c(t){for(var e=6,n=0;0<=--e;)n+=s[e],s[e]=o(n/t),n=n%t*1e7}function h(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+p.call("0",7-n.length)+n}return e}var i=t(33),d=t(116),f=t(4),p=t(110),r=1..toFixed,o=Math.floor,s=[0,0,0,0,0,0],v="Number.toFixed: incorrect invocation!",g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};i(i.P+i.F*(!!r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(35)(function(){r.call({})})),"Number",{toFixed:function(t){var e,n,i,r,o=f(this,v),s=d(t),a="",l="0";if(s<0||20<s)throw RangeError(v);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(a="-",o=-o),1e-21<o)if(n=(e=function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e}(o*g(2,69,1))-69)<0?o*g(2,-e,1):o/g(2,e,1),n*=4503599627370496,0<(e=52-e)){for(u(0,n),i=s;7<=i;)u(1e7,0),i-=7;for(u(g(10,i,1),0),i=e-1;23<=i;)c(1<<23),i-=23;c(1<<i),u(1,1),c(2),l=h()}else u(0,n),u(1<<-e,0),l=h()+p.call("0",s);return l=0<s?a+((r=l.length)<=s?"0."+p.call("0",s-r)+l:l.slice(0,r-s)+"."+l.slice(r-s)):a+l}})},{110:110,116:116,33:33,35:35,4:4}],189:[function(t,e,n){"use strict";var i=t(33),r=t(35),o=t(4),s=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==s.call(1,void 0)})||!r(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},{33:33,35:35,4:4}],190:[function(t,e,n){var i=t(33);i(i.S+i.F,"Object",{assign:t(70)})},{33:33,70:70}],191:[function(t,e,n){var i=t(33);i(i.S,"Object",{create:t(71)})},{33:33,71:71}],192:[function(t,e,n){var i=t(33);i(i.S+i.F*!t(29),"Object",{defineProperties:t(73)})},{29:29,33:33,73:73}],193:[function(t,e,n){var i=t(33);i(i.S+i.F*!t(29),"Object",{defineProperty:t(72).f})},{29:29,33:33,72:72}],194:[function(t,e,n){var i=t(51),r=t(66).onFreeze;t(83)("freeze",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{51:51,66:66,83:83}],195:[function(t,e,n){var i=t(117),r=t(75).f;t(83)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},{117:117,75:75,83:83}],196:[function(t,e,n){t(83)("getOwnPropertyNames",function(){return t(76).f})},{76:76,83:83}],197:[function(t,e,n){var i=t(119),r=t(79);t(83)("getPrototypeOf",function(){return function(t){return r(i(t))}})},{119:119,79:79,83:83}],198:[function(t,e,n){var i=t(51);t(83)("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},{51:51,83:83}],199:[function(t,e,n){var i=t(51);t(83)("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{51:51,83:83}],200:[function(t,e,n){var i=t(51);t(83)("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{51:51,83:83}],201:[function(t,e,n){var i=t(33);i(i.S,"Object",{is:t(96)})},{33:33,96:96}],202:[function(t,e,n){var i=t(119),r=t(81);t(83)("keys",function(){return function(t){return r(i(t))}})},{119:119,81:81,83:83}],203:[function(t,e,n){var i=t(51),r=t(66).onFreeze;t(83)("preventExtensions",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{51:51,66:66,83:83}],204:[function(t,e,n){var i=t(51),r=t(66).onFreeze;t(83)("seal",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{51:51,66:66,83:83}],205:[function(t,e,n){var i=t(33);i(i.S,"Object",{setPrototypeOf:t(99).set})},{33:33,99:99}],206:[function(t,e,n){"use strict";var i=t(17),r={};r[t(128)("toStringTag")]="z",r+""!="[object z]"&&t(94)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},{128:128,17:17,94:94}],207:[function(t,e,n){var i=t(33),r=t(86);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},{33:33,86:86}],208:[function(t,e,n){var i=t(33),r=t(87);i(i.G+i.F*(parseInt!=r),{parseInt:r})},{33:33,87:87}],209:[function(n,t,e){"use strict";function i(){}function c(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e}function r(u,e){if(!u._n){u._n=!0;var n=u._c;S(function(){for(var a=u._v,l=1==u._s,t=0;n.length>t;)!function(t){var e,n,i=l?t.ok:t.fail,r=t.resolve,o=t.reject,s=t.domain;try{i?(l||(2==u._h&&D(u),u._h=1),!0===i?e=a:(s&&s.enter(),e=i(a),s&&s.exit()),e===t.promise?o(_("Promise-chain cycle")):(n=c(e))?n.call(e,r,o):r(e)):o(a)}catch(t){o(t)}}(n[t++]);u._c=[],u._n=!1,e&&!u._h&&L(u)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),r(e,!0))}var s,a,l,u,h=n(60),d=n(40),f=n(25),p=n(17),v=n(33),g=n(51),m=n(3),y=n(6),A=n(39),b=n(104),w=n(113).set,S=n(68)(),T=n(69),E=n(90),x=n(91),_=d.TypeError,C=d.process,k=d.Promise,O="process"==p(C),M=a=T.f,R=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(128)("species")]=function(t){t(i,i)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(i)instanceof e}catch(t){}}(),I=h?function(t,e){return t===e||t===k&&e===u}:function(t,e){return t===e},L=function(o){w.call(d,function(){var t,e,n,i=o._v,r=P(o);if(r&&(t=E(function(){O?C.emit("unhandledRejection",i,o):(e=d.onunhandledrejection)?e({promise:o,reason:i}):(n=d.console)&&n.error&&n.error("Unhandled promise rejection",i)}),o._h=O||P(o)?2:1),o._a=void 0,r&&t.e)throw t.v})},P=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,i=0;n.length>i;)if((e=n[i++]).fail||!P(e.promise))return!1;return!0},D=function(e){w.call(d,function(){var t;O?C.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw _("Promise can't be resolved itself");(n=c(t))?S(function(){var e={_w:i,_d:!1};try{n.call(t,f(N,e,1),f(o,e,1))}catch(t){o.call(e,t)}}):(i._v=t,i._s=1,r(i,!1))}catch(t){o.call({_w:i,_d:!1},t)}}};R||(k=function(t){y(this,k,"Promise","_h"),m(t),s.call(this);try{t(f(N,this,1),f(o,this,1))}catch(t){o.call(this,t)}},(s=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(93)(k.prototype,{then:function(t,e){var n=M(b(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&r(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new s;this.promise=t,this.resolve=f(N,t,1),this.reject=f(o,t,1)},T.f=M=function(t){return I(k,t)?new l(t):a(t)}),v(v.G+v.W+v.F*!R,{Promise:k}),n(101)(k,"Promise"),n(100)("Promise"),u=n(23).Promise,v(v.S+v.F*!R,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),v(v.S+v.F*(h||!R),"Promise",{resolve:function(t){return t instanceof k&&I(t.constructor,this)?t:x(this,t)}}),v(v.S+v.F*!(R&&n(56)(function(t){k.all(t).catch(i)})),"Promise",{all:function(t){var s=this,e=M(s),a=e.resolve,l=e.reject,n=E(function(){var i=[],r=0,o=1;A(t,!1,function(t){var e=r++,n=!1;i.push(void 0),o++,s.resolve(t).then(function(t){n||(n=!0,i[e]=t,--o||a(i))},l)}),--o||a(i)});return n.e&&l(n.v),e.promise},race:function(t){var e=this,n=M(e),i=n.reject,r=E(function(){A(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},{100:100,101:101,104:104,113:113,128:128,17:17,23:23,25:25,3:3,33:33,39:39,40:40,51:51,56:56,6:6,60:60,68:68,69:69,90:90,91:91,93:93}],210:[function(t,e,n){var i=t(33),o=t(3),s=t(7),a=(t(40).Reflect||{}).apply,l=Function.apply;i(i.S+i.F*!t(35)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var i=o(t),r=s(n);return a?a(i,e,r):l.call(i,e,r)}})},{3:3,33:33,35:35,40:40,7:7}],211:[function(t,e,n){var i=t(33),l=t(71),u=t(3),c=t(7),h=t(51),r=t(35),d=t(16),f=(t(40).Reflect||{}).construct,p=r(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),v=!r(function(){f(function(){})});i(i.S+i.F*(p||v),"Reflect",{construct:function(t,e,n){u(t),c(e);var i=arguments.length<3?t:u(n);if(v&&!p)return f(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(d.apply(t,r))}var o=i.prototype,s=l(h(o)?o:Object.prototype),a=Function.apply.call(t,s,e);return h(a)?a:s}})},{16:16,3:3,33:33,35:35,40:40,51:51,7:7,71:71}],212:[function(t,e,n){var i=t(72),r=t(33),o=t(7),s=t(120);r(r.S+r.F*t(35)(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},{120:120,33:33,35:35,7:7,72:72}],213:[function(t,e,n){var i=t(33),r=t(75).f,o=t(7);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},{33:33,7:7,75:75}],214:[function(t,e,n){"use strict";function i(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)}var r=t(33),o=t(7);t(54)(i,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},{33:33,54:54,7:7}],215:[function(t,e,n){var i=t(75),r=t(33),o=t(7);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},{33:33,7:7,75:75}],216:[function(t,e,n){var i=t(33),r=t(79),o=t(7);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},{33:33,7:7,79:79}],217:[function(t,e,n){var s=t(75),a=t(79),l=t(41),i=t(33),u=t(51),c=t(7);i(i.S,"Reflect",{get:function t(e,n){var i,r,o=arguments.length<3?e:arguments[2];return c(e)===o?e[n]:(i=s.f(e,n))?l(i,"value")?i.value:void 0!==i.get?i.get.call(o):void 0:u(r=a(e))?t(r,n,o):void 0}})},{33:33,41:41,51:51,7:7,75:75,79:79}],218:[function(t,e,n){var i=t(33);i(i.S,"Reflect",{has:function(t,e){return e in t}})},{33:33}],219:[function(t,e,n){var i=t(33),r=t(7),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},{33:33,7:7}],220:[function(t,e,n){var i=t(33);i(i.S,"Reflect",{ownKeys:t(85)})},{33:33,85:85}],221:[function(t,e,n){var i=t(33),r=t(7),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},{33:33,7:7}],222:[function(t,e,n){var i=t(33),r=t(99);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},{33:33,99:99}],223:[function(t,e,n){var l=t(72),u=t(75),c=t(79),h=t(41),i=t(33),d=t(92),f=t(7),p=t(51);i(i.S,"Reflect",{set:function t(e,n,i){var r,o,s=arguments.length<4?e:arguments[3],a=u.f(f(e),n);if(!a){if(p(o=c(e)))return t(o,n,i,s);a=d(0)}return h(a,"value")?!(!1===a.writable||!p(s)||((r=u.f(s,n)||d(0)).value=i,l.f(s,n,r),0)):void 0!==a.set&&(a.set.call(s,i),!0)}})},{33:33,41:41,51:51,7:7,72:72,75:75,79:79,92:92}],224:[function(t,e,n){var i=t(40),o=t(45),r=t(72).f,s=t(77).f,a=t(52),l=t(37),u=i.RegExp,c=u,h=u.prototype,d=/a/g,f=/a/g,p=new u(d)!==d;if(t(29)&&(!p||t(35)(function(){return f[t(128)("match")]=!1,u(d)!=d||u(f)==f||"/a/i"!=u(d,"i")}))){u=function(t,e){var n=this instanceof u,i=a(t),r=void 0===e;return!n&&i&&t.constructor===u&&r?t:o(p?new c(i&&!r?t.source:t,e):c((i=t instanceof u)?t.source:t,i&&r?l.call(t):e),n?this:h,u)};for(var v=s(c),g=0;v.length>g;)!function(e){e in u||r(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(v[g++]);(h.constructor=u).prototype=h,t(94)(i,"RegExp",u)}t(100)("RegExp")},{100:100,128:128,29:29,35:35,37:37,40:40,45:45,52:52,72:72,77:77,94:94}],225:[function(t,e,n){t(29)&&"g"!=/./g.flags&&t(72).f(RegExp.prototype,"flags",{configurable:!0,get:t(37)})},{29:29,37:37,72:72}],226:[function(t,e,n){t(36)("match",1,function(i,r,t){return[function(t){"use strict";var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},t]})},{36:36}],227:[function(t,e,n){t(36)("replace",2,function(r,o,s){return[function(t,e){"use strict";var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):s.call(String(n),t,e)},s]})},{36:36}],228:[function(t,e,n){t(36)("search",1,function(i,r,t){return[function(t){"use strict";var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},t]})},{36:36}],229:[function(t,e,n){t(36)("split",2,function(r,o,s){"use strict";var f=t(52),p=s,v=[].push,g="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[g]||2!="ab".split(/(?:ab)*/)[g]||4!=".".split(/(.?)(.?)/)[g]||1<".".split(/()()/)[g]||"".split(/.?/)[g]){var m=void 0===/()??/.exec("")[1];s=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!f(t))return p.call(n,t,e);var i,r,o,s,a,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,u+"g");for(m||(i=new RegExp("^"+d.source+"$(?!\\s)",u));(r=d.exec(n))&&!((o=r.index+r[0][g])>c&&(l.push(n.slice(c,r.index)),!m&&1<r[g]&&r[0].replace(i,function(){for(a=1;a<arguments[g]-2;a++)void 0===arguments[a]&&(r[a]=void 0)}),1<r[g]&&r.index<n[g]&&v.apply(l,r.slice(1)),s=r[0][g],c=o,l[g]>=h));)d.lastIndex===r.index&&d.lastIndex++;return c===n[g]?!s&&d.test("")||l.push(""):l.push(n.slice(c)),l[g]>h?l.slice(0,h):l}}else"0".split(void 0,0)[g]&&(s=function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)});return[function(t,e){var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):s.call(String(n),t,e)},s]})},{36:36,52:52}],230:[function(e,t,n){"use strict";e(225);function i(t){e(94)(RegExp.prototype,"toString",t,!0)}var r=e(7),o=e(37),s=e(29),a=/./.toString;e(35)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?i(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&i(function(){return a.call(this)})},{225:225,29:29,35:35,37:37,7:7,94:94}],231:[function(t,e,n){"use strict";var i=t(19),r=t(125);e.exports=t(22)("Set",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},{125:125,19:19,22:22}],232:[function(t,e,n){"use strict";t(108)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{108:108}],233:[function(t,e,n){"use strict";t(108)("big",function(t){return function(){return t(this,"big","","")}})},{108:108}],234:[function(t,e,n){"use strict";t(108)("blink",function(t){return function(){return t(this,"blink","","")}})},{108:108}],235:[function(t,e,n){"use strict";t(108)("bold",function(t){return function(){return t(this,"b","","")}})},{108:108}],236:[function(t,e,n){"use strict";var i=t(33),r=t(106)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},{106:106,33:33}],237:[function(t,e,n){"use strict";var i=t(33),a=t(118),l=t(107),u="".endsWith;i(i.P+i.F*t(34)("endsWith"),"String",{endsWith:function(t,e){var n=l(this,t,"endsWith"),i=1<arguments.length?e:void 0,r=a(n.length),o=void 0===i?r:Math.min(a(i),r),s=String(t);return u?u.call(n,s,o):n.slice(o-s.length,o)===s}})},{107:107,118:118,33:33,34:34}],238:[function(t,e,n){"use strict";t(108)("fixed",function(t){return function(){return t(this,"tt","","")}})},{108:108}],239:[function(t,e,n){"use strict";t(108)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{108:108}],240:[function(t,e,n){"use strict";t(108)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{108:108}],241:[function(t,e,n){var i=t(33),o=t(114),s=String.fromCharCode,r=String.fromCodePoint;i(i.S+i.F*(!!r&&1!=r.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;r<i;){if(e=+arguments[r++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},{114:114,33:33}],242:[function(t,e,n){"use strict";var i=t(33),r=t(107);i(i.P+i.F*t(34)("includes"),"String",{includes:function(t,e){return!!~r(this,t,"includes").indexOf(t,1<arguments.length?e:void 0)}})},{107:107,33:33,34:34}],243:[function(t,e,n){"use strict";t(108)("italics",function(t){return function(){return t(this,"i","","")}})},{108:108}],244:[function(t,e,n){"use strict";var i=t(106)(!0);t(55)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},{106:106,55:55}],245:[function(t,e,n){"use strict";t(108)("link",function(e){return function(t){return e(this,"a","href",t)}})},{108:108}],246:[function(t,e,n){var i=t(33),s=t(117),a=t(118);i(i.S,"String",{raw:function(t){for(var e=s(t.raw),n=a(e.length),i=arguments.length,r=[],o=0;o<n;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}})},{117:117,118:118,33:33}],247:[function(t,e,n){var i=t(33);i(i.P,"String",{repeat:t(110)})},{110:110,33:33}],248:[function(t,e,n){"use strict";t(108)("small",function(t){return function(){return t(this,"small","","")}})},{108:108}],249:[function(t,e,n){"use strict";var i=t(33),o=t(118),s=t(107),a="".startsWith;i(i.P+i.F*t(34)("startsWith"),"String",{startsWith:function(t,e){var n=s(this,t,"startsWith"),i=o(Math.min(1<arguments.length?e:void 0,n.length)),r=String(t);return a?a.call(n,r,i):n.slice(i,i+r.length)===r}})},{107:107,118:118,33:33,34:34}],250:[function(t,e,n){"use strict";t(108)("strike",function(t){return function(){return t(this,"strike","","")}})},{108:108}],251:[function(t,e,n){"use strict";t(108)("sub",function(t){return function(){return t(this,"sub","","")}})},{108:108}],252:[function(t,e,n){"use strict";t(108)("sup",function(t){return function(){return t(this,"sup","","")}})},{108:108}],253:[function(t,e,n){"use strict";t(111)("trim",function(t){return function(){return t(this,3)}})},{111:111}],254:[function(t,e,n){"use strict";function i(t){var e=z[t]=O(V.prototype);return e._k=t,e}function r(t,e){x(t);for(var n,i=T(e=_(e)),r=0,o=i.length;r<o;)Z(t,n=i[r++],e[n]);return t}function o(t){var e=U.call(this,t=C(t,!0));return!(this===G&&c(z,t)&&!c(q,t))&&(!(e||!c(this,t)||!c(z,t)||c(this,j)&&this[j][t])||e)}function s(t,e){if(t=_(t),e=C(e,!0),t!==G||!c(z,e)||c(q,e)){var n=P(t,e);return!n||!c(z,e)||c(t,j)&&t[j][e]||(n.enumerable=!0),n}}function a(t){for(var e,n=N(_(t)),i=[],r=0;n.length>r;)c(z,e=n[r++])||e==j||e==p||i.push(e);return i}function l(t){for(var e,n=t===G,i=N(n?q:_(t)),r=[],o=0;i.length>o;)!c(z,e=i[o++])||n&&!c(G,e)||r.push(z[e]);return r}var u=t(40),c=t(41),h=t(29),d=t(33),f=t(94),p=t(66).KEY,v=t(35),g=t(103),m=t(101),y=t(124),A=t(128),b=t(127),w=t(126),S=t(59),T=t(32),E=t(49),x=t(7),_=t(117),C=t(120),k=t(92),O=t(71),M=t(76),R=t(75),I=t(72),L=t(81),P=R.f,D=I.f,N=M.f,V=u.Symbol,F=u.JSON,H=F&&F.stringify,j=A("_hidden"),B=A("toPrimitive"),U={}.propertyIsEnumerable,W=g("symbol-registry"),z=g("symbols"),q=g("op-symbols"),G=Object.prototype,X="function"==typeof V,Y=u.QObject,J=!Y||!Y.prototype||!Y.prototype.findChild,K=h&&v(function(){return 7!=O(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(G,e);i&&delete G[e],D(t,e,n),i&&t!==G&&D(G,e,i)}:D,$=X&&"symbol"==typeof V.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof V},Z=function(t,e,n){return t===G&&Z(q,e,n),x(t),e=C(e,!0),x(n),c(z,e)?(n.enumerable?(c(t,j)&&t[j][e]&&(t[j][e]=!1),n=O(n,{enumerable:k(0,!1)})):(c(t,j)||D(t,j,k(1,{})),t[j][e]=!0),K(t,e,n)):D(t,e,n)};X||(f((V=function(t){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var e=y(0<arguments.length?t:void 0),n=function(t){this===G&&n.call(q,t),c(this,j)&&c(this[j],e)&&(this[j][e]=!1),K(this,e,k(1,t))};return h&&J&&K(G,e,{configurable:!0,set:n}),i(e)}).prototype,"toString",function(){return this._k}),R.f=s,I.f=Z,t(77).f=M.f=a,t(82).f=o,t(78).f=l,h&&!t(60)&&f(G,"propertyIsEnumerable",o,!0),b.f=function(t){return i(A(t))}),d(d.G+d.W+d.F*!X,{Symbol:V});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)A(Q[tt++]);for(var et=L(A.store),nt=0;et.length>nt;)w(et[nt++]);d(d.S+d.F*!X,"Symbol",{for:function(t){return c(W,t+="")?W[t]:W[t]=V(t)},keyFor:function(t){if($(t))return S(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),d(d.S+d.F*!X,"Object",{create:function(t,e){return void 0===e?O(t):r(O(t),e)},defineProperty:Z,defineProperties:r,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:l}),F&&d(d.S+d.F*(!X||v(function(){var t=V();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!$(t)){for(var e,n,i=[t],r=1;r<arguments.length;)i.push(arguments[r++]);return"function"==typeof(e=i[1])&&(n=e),!n&&E(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!$(e))return e}),i[1]=e,H.apply(F,i)}}}),V.prototype[B]||t(42)(V.prototype,B,V.prototype.valueOf),m(V,"Symbol"),m(Math,"Math",!0),m(u.JSON,"JSON",!0)},{101:101,103:103,117:117,120:120,124:124,126:126,127:127,128:128,29:29,32:32,33:33,35:35,40:40,41:41,42:42,49:49,59:59,60:60,66:66,7:7,71:71,72:72,75:75,76:76,77:77,78:78,81:81,82:82,92:92,94:94}],255:[function(t,e,n){"use strict";var i=t(33),r=t(123),o=t(122),u=t(7),c=t(114),h=t(118),s=t(51),a=t(40).ArrayBuffer,d=t(104),f=o.ArrayBuffer,p=o.DataView,l=r.ABV&&a.isView,v=f.prototype.slice,g=r.VIEW;i(i.G+i.W+i.F*(a!==f),{ArrayBuffer:f}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return l&&l(t)||s(t)&&g in t}}),i(i.P+i.U+i.F*t(35)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(u(this),t);for(var n=u(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),o=new(d(this,f))(h(r-i)),s=new p(this),a=new p(o),l=0;i<r;)a.setUint8(l++,s.getUint8(i++));return o}}),t(100)("ArrayBuffer")},{100:100,104:104,114:114,118:118,122:122,123:123,33:33,35:35,40:40,51:51,7:7}],256:[function(t,e,n){var i=t(33);i(i.G+i.W+i.F*!t(123).ABV,{DataView:t(122).DataView})},{122:122,123:123,33:33}],257:[function(t,e,n){t(121)("Float32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],258:[function(t,e,n){t(121)("Float64",8,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],259:[function(t,e,n){t(121)("Int16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],260:[function(t,e,n){t(121)("Int32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],261:[function(t,e,n){t(121)("Int8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],262:[function(t,e,n){t(121)("Uint16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],263:[function(t,e,n){t(121)("Uint32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],264:[function(t,e,n){t(121)("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},{121:121}],265:[function(t,e,n){t(121)("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}},!0)},{121:121}],266:[function(t,e,n){"use strict";function i(e){return function(t){return e(this,0<arguments.length?t:void 0)}}var o,r=t(12)(0),s=t(94),a=t(66),l=t(70),u=t(21),c=t(51),h=t(35),d=t(125),f=a.getWeak,p=Object.isExtensible,v=u.ufstore,g={},m={get:function(t){if(c(t)){var e=f(t);return!0===e?v(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(d(this,"WeakMap"),t,e)}},y=e.exports=t(22)("WeakMap",i,m,u,!0,!0);h(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(l((o=u.getConstructor(i,"WeakMap")).prototype,m),a.NEED=!0,r(["delete","has","get","set"],function(i){var t=y.prototype,r=t[i];s(t,i,function(t,e){if(!c(t)||p(t))return r.call(this,t,e);this._f||(this._f=new o);var n=this._f[i](t,e);return"set"==i?this:n})}))},{12:12,125:125,21:21,22:22,35:35,51:51,66:66,70:70,94:94}],267:[function(t,e,n){"use strict";var i=t(21),r=t(125);t(22)("WeakSet",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},{125:125,21:21,22:22}],268:[function(t,e,n){"use strict";var i=t(33),o=t(38),s=t(119),a=t(118),l=t(3),u=t(15);i(i.P,"Array",{flatMap:function(t,e){var n,i,r=s(this);return l(t),n=a(r.length),i=u(r,0),o(i,r,r,n,0,1,t,e),i}}),t(5)("flatMap")},{118:118,119:119,15:15,3:3,33:33,38:38,5:5}],269:[function(t,e,n){"use strict";var i=t(33),o=t(38),s=t(119),a=t(118),l=t(116),u=t(15);i(i.P,"Array",{flatten:function(t){var e=t,n=s(this),i=a(n.length),r=u(n,0);return o(r,n,n,i,0,void 0===e?1:l(e)),r}}),t(5)("flatten")},{116:116,118:118,119:119,15:15,33:33,38:38,5:5}],270:[function(t,e,n){"use strict";var i=t(33),r=t(11)(!0);i(i.P,"Array",{includes:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),t(5)("includes")},{11:11,33:33,5:5}],271:[function(t,e,n){var i=t(33),r=t(68)(),o=t(40).process,s="process"==t(18)(o);i(i.G,{asap:function(t){var e=s&&o.domain;r(e?e.bind(t):t)}})},{18:18,33:33,40:40,68:68}],272:[function(t,e,n){var i=t(33),r=t(18);i(i.S,"Error",{isError:function(t){return"Error"===r(t)}})},{18:18,33:33}],273:[function(t,e,n){var i=t(33);i(i.G,{global:t(40)})},{33:33,40:40}],274:[function(t,e,n){t(97)("Map")},{97:97}],275:[function(t,e,n){t(98)("Map")},{98:98}],276:[function(t,e,n){var i=t(33);i(i.P+i.R,"Map",{toJSON:t(20)("Map")})},{20:20,33:33}],277:[function(t,e,n){var i=t(33);i(i.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},{33:33}],278:[function(t,e,n){var i=t(33);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},{33:33}],279:[function(t,e,n){var i=t(33),r=180/Math.PI;i(i.S,"Math",{degrees:function(t){return t*r}})},{33:33}],280:[function(t,e,n){var i=t(33),o=t(64),s=t(62);i(i.S,"Math",{fscale:function(t,e,n,i,r){return s(o(t,e,n,i,r))}})},{33:33,62:62,64:64}],281:[function(t,e,n){var i=t(33);i(i.S,"Math",{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},{33:33}],282:[function(t,e,n){var i=t(33);i(i.S,"Math",{imulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>16,a=i>>16,l=(s*o>>>0)+(r*o>>>16);return s*a+(l>>16)+((r*a>>>0)+(65535&l)>>16)}})},{33:33}],283:[function(t,e,n){var i=t(33);i(i.S,"Math",{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},{33:33}],284:[function(t,e,n){var i=t(33);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},{33:33}],285:[function(t,e,n){var i=t(33),r=Math.PI/180;i(i.S,"Math",{radians:function(t){return t*r}})},{33:33}],286:[function(t,e,n){var i=t(33);i(i.S,"Math",{scale:t(64)})},{33:33,64:64}],287:[function(t,e,n){var i=t(33);i(i.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:0<t}})},{33:33}],288:[function(t,e,n){var i=t(33);i(i.S,"Math",{umulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>>16,a=i>>>16,l=(s*o>>>0)+(r*o>>>16);return s*a+(l>>>16)+((r*a>>>0)+(65535&l)>>>16)}})},{33:33}],289:[function(t,e,n){"use strict";var i=t(33),r=t(119),o=t(3),s=t(72);t(29)&&i(i.P+t(74),"Object",{__defineGetter__:function(t,e){s.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},{119:119,29:29,3:3,33:33,72:72,74:74}],290:[function(t,e,n){"use strict";var i=t(33),r=t(119),o=t(3),s=t(72);t(29)&&i(i.P+t(74),"Object",{__defineSetter__:function(t,e){s.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},{119:119,29:29,3:3,33:33,72:72,74:74}],291:[function(t,e,n){var i=t(33),r=t(84)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},{33:33,84:84}],292:[function(t,e,n){var i=t(33),l=t(85),u=t(117),c=t(75),h=t(24);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=u(t),r=c.f,o=l(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&h(s,e,n);return s}})},{117:117,24:24,33:33,75:75,85:85}],293:[function(t,e,n){"use strict";var i=t(33),r=t(119),o=t(120),s=t(79),a=t(75).f;t(29)&&i(i.P+t(74),"Object",{__lookupGetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=a(n,i))return e.get}while(n=s(n))}})},{119:119,120:120,29:29,33:33,74:74,75:75,79:79}],294:[function(t,e,n){"use strict";var i=t(33),r=t(119),o=t(120),s=t(79),a=t(75).f;t(29)&&i(i.P+t(74),"Object",{__lookupSetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=a(n,i))return e.set}while(n=s(n))}})},{119:119,120:120,29:29,33:33,74:74,75:75,79:79}],295:[function(t,e,n){var i=t(33),r=t(84)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},{33:33,84:84}],296:[function(t,e,n){"use strict";function r(t){return null==t?void 0:f(t)}function o(t){var e=t._c;e&&(t._c=void 0,e())}function s(t){return void 0===t._o}function a(t){s(t)||(t._o=void 0,o(t))}function i(t,e){p(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:f(n),this._c=n)}catch(e){return void t.error(e)}s(this)&&o(this)}var l=t(33),u=t(40),c=t(23),h=t(68)(),d=t(128)("observable"),f=t(3),p=t(7),v=t(6),g=t(93),m=t(42),y=t(39),A=y.RETURN;i.prototype=g({},{unsubscribe:function(){a(this)}});var b=function(t){this._s=t};b.prototype=g({},{next:function(t){var e=this._s;if(!s(e)){var n=e._o;try{var i=r(n.next);if(i)return i.call(n,t)}catch(t){try{a(e)}finally{throw t}}}},error:function(t){var e=this._s;if(s(e))throw t;var n=e._o;e._o=void 0;try{var i=r(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{o(e)}finally{throw t}}return o(e),t},complete:function(t){var e=this._s;if(!s(e)){var n=e._o;e._o=void 0;try{var i=r(n.complete);t=i?i.call(n,t):void 0}catch(t){try{o(e)}finally{throw t}}return o(e),t}}});var w=function(t){v(this,w,"Observable","_f")._f=f(t)};g(w.prototype,{subscribe:function(t){return new i(t,this._f)},forEach:function(i){var r=this;return new(c.Promise||u.Promise)(function(t,e){f(i);var n=r.subscribe({next:function(t){try{return i(t)}catch(t){e(t),n.unsubscribe()}},error:e,complete:t})})}}),g(w,{from:function(t){var e="function"==typeof this?this:w,n=r(p(t)[d]);if(n){var i=p(n.call(t));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}return new e(function(e){var n=!1;return h(function(){if(!n){try{if(y(t,!1,function(t){if(e.next(t),n)return A})===A)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,i=Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:w)(function(e){var n=!1;return h(function(){if(!n){for(var t=0;t<i.length;++t)if(e.next(i[t]),n)return;e.complete()}}),function(){n=!0}})}}),m(w.prototype,d,function(){return this}),l(l.G,{Observable:w}),t(100)("Observable")},{100:100,128:128,23:23,3:3,33:33,39:39,40:40,42:42,6:6,68:68,7:7,93:93}],297:[function(t,e,n){"use strict";var i=t(33),r=t(23),o=t(40),s=t(104),a=t(91);i(i.P+i.R,"Promise",{finally:function(e){var n=s(this,r.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return a(n,e()).then(function(){return t})}:e,t?function(t){return a(n,e()).then(function(){throw t})}:e)}})},{104:104,23:23,33:33,40:40,91:91}],298:[function(t,e,n){"use strict";var i=t(33),r=t(69),o=t(90);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},{33:33,69:69,90:90}],299:[function(t,e,n){var i=t(67),r=t(7),o=i.key,s=i.set;i.exp({defineMetadata:function(t,e,n,i){s(t,e,r(n),o(i))}})},{67:67,7:7}],300:[function(t,e,n){var i=t(67),s=t(7),a=i.key,l=i.map,u=i.store;i.exp({deleteMetadata:function(t,e,n){var i=arguments.length<3?void 0:a(n),r=l(s(e),i,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var o=u.get(e);return o.delete(i),!!o.size||u.delete(e)}})},{67:67,7:7}],301:[function(t,e,n){var o=t(231),s=t(10),i=t(67),r=t(7),a=t(79),l=i.keys,u=i.key,c=function(t,e){var n=l(t,e),i=a(t);if(null===i)return n;var r=c(i,e);return r.length?n.length?s(new o(n.concat(r))):r:n};i.exp({getMetadataKeys:function(t,e){return c(r(t),arguments.length<2?void 0:u(e))}})},{10:10,231:231,67:67,7:7,79:79}],302:[function(t,e,n){var i=t(67),r=t(7),o=t(79),s=i.has,a=i.get,l=i.key,u=function(t,e,n){if(s(t,e,n))return a(t,e,n);var i=o(e);return null!==i?u(t,i,n):void 0};i.exp({getMetadata:function(t,e,n){return u(t,r(e),arguments.length<3?void 0:l(n))}})},{67:67,7:7,79:79}],303:[function(t,e,n){var i=t(67),r=t(7),o=i.keys,s=i.key;i.exp({getOwnMetadataKeys:function(t,e){return o(r(t),arguments.length<2?void 0:s(e))}})},{67:67,7:7}],304:[function(t,e,n){var i=t(67),r=t(7),o=i.get,s=i.key;i.exp({getOwnMetadata:function(t,e,n){return o(t,r(e),arguments.length<3?void 0:s(n))}})},{67:67,7:7}],305:[function(t,e,n){var i=t(67),r=t(7),o=t(79),s=i.has,a=i.key,l=function(t,e,n){if(s(t,e,n))return!0;var i=o(e);return null!==i&&l(t,i,n)};i.exp({hasMetadata:function(t,e,n){return l(t,r(e),arguments.length<3?void 0:a(n))}})},{67:67,7:7,79:79}],306:[function(t,e,n){var i=t(67),r=t(7),o=i.has,s=i.key;i.exp({hasOwnMetadata:function(t,e,n){return o(t,r(e),arguments.length<3?void 0:s(n))}})},{67:67,7:7}],307:[function(t,e,n){var i=t(67),r=t(7),o=t(3),s=i.key,a=i.set;i.exp({metadata:function(n,i){return function(t,e){a(n,i,(void 0!==e?r:o)(t),s(e))}}})},{3:3,67:67,7:7}],308:[function(t,e,n){t(97)("Set")},{97:97}],309:[function(t,e,n){t(98)("Set")},{98:98}],310:[function(t,e,n){var i=t(33);i(i.P+i.R,"Set",{toJSON:t(20)("Set")})},{20:20,33:33}],311:[function(t,e,n){"use strict";var i=t(33),r=t(106)(!0);i(i.P,"String",{at:function(t){return r(this,t)}})},{106:106,33:33}],312:[function(t,e,n){"use strict";function r(t,e){this._r=t,this._s=e}var i=t(33),o=t(28),s=t(118),a=t(52),l=t(37),u=RegExp.prototype;t(54)(r,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),i(i.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in u?String(t.flags):l.call(t),i=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=s(t.lastIndex),new r(i,e)}})},{118:118,28:28,33:33,37:37,52:52,54:54}],313:[function(t,e,n){"use strict";var i=t(33),r=t(109);i(i.P,"String",{padEnd:function(t,e){return r(this,t,1<arguments.length?e:void 0,!1)}})},{109:109,33:33}],314:[function(t,e,n){"use strict";var i=t(33),r=t(109);i(i.P,"String",{padStart:function(t,e){return r(this,t,1<arguments.length?e:void 0,!0)}})},{109:109,33:33}],315:[function(t,e,n){"use strict";t(111)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},{111:111}],316:[function(t,e,n){"use strict";t(111)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},{111:111}],317:[function(t,e,n){t(126)("asyncIterator")},{126:126}],318:[function(t,e,n){t(126)("observable")},{126:126}],319:[function(t,e,n){var i=t(33);i(i.S,"System",{global:t(40)})},{33:33,40:40}],320:[function(t,e,n){t(97)("WeakMap")},{97:97}],321:[function(t,e,n){t(98)("WeakMap")},{98:98}],322:[function(t,e,n){t(97)("WeakSet")},{97:97}],323:[function(t,e,n){t(98)("WeakSet")},{98:98}],324:[function(t,e,n){for(var i=t(141),r=t(81),o=t(94),s=t(40),a=t(42),l=t(58),u=t(128),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),v=0;v<p.length;v++){var g,m=p[v],y=f[m],A=s[m],b=A&&A.prototype;if(b&&(b[c]||a(b,c,d),b[h]||a(b,h,m),l[m]=d,y))for(g in i)b[g]||o(b,g,i[g],!0)}},{128:128,141:141,40:40,42:42,58:58,81:81,94:94}],325:[function(t,e,n){var i=t(33),r=t(113);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},{113:113,33:33}],326:[function(t,e,n){function i(n){return u?function(t,e){return n(s(a,[].slice.call(arguments,2),"function"==typeof t?t:Function(t)),e)}:n}var r=t(40),o=t(33),s=t(46),a=t(88),l=r.navigator,u=!!l&&/MSIE .\./.test(l.userAgent);o(o.G+o.B+o.F*u,{setTimeout:i(r.setTimeout),setInterval:i(r.setInterval)})},{33:33,40:40,46:46,88:88}],327:[function(t,e,n){t(254),t(191),t(193),t(192),t(195),t(197),t(202),t(196),t(194),t(204),t(203),t(199),t(200),t(198),t(190),t(201),t(205),t(206),t(157),t(159),t(158),t(208),t(207),t(178),t(188),t(189),t(179),t(180),t(181),t(182),t(183),t(184),t(185),t(186),t(187),t(161),t(162),t(163),t(164),t(165),t(166),t(167),t(168),t(169),t(170),t(171),t(172),t(173),t(174),t(175),t(176),t(177),t(241),t(246),t(253),t(244),t(236),t(237),t(242),t(247),t(249),t(232),t(233),t(234),t(235),t(238),t(239),t(240),t(243),t(245),t(248),t(250),t(251),t(252),t(152),t(154),t(153),t(156),t(155),t(140),t(138),t(145),t(142),t(148),t(150),t(137),t(144),t(134),t(149),t(132),t(147),t(146),t(139),t(143),t(131),t(133),t(136),t(135),t(151),t(141),t(224),t(230),t(225),t(226),t(227),t(228),t(229),t(209),t(160),t(231),t(266),t(267),t(255),t(256),t(261),t(264),t(265),t(259),t(262),t(260),t(263),t(257),t(258),t(210),t(211),t(212),t(213),t(214),t(217),t(215),t(216),t(218),t(219),t(220),t(221),t(223),t(222),t(270),t(268),t(269),t(311),t(314),t(313),t(315),t(316),t(312),t(317),t(318),t(292),t(295),t(291),t(289),t(290),t(293),t(294),t(276),t(310),t(275),t(309),t(321),t(323),t(274),t(308),t(320),t(322),t(273),t(319),t(272),t(277),t(278),t(279),t(280),t(281),t(283),t(282),t(284),t(285),t(286),t(288),t(287),t(297),t(298),t(299),t(300),t(302),t(301),t(304),t(303),t(305),t(306),t(307),t(271),t(296),t(326),t(325),t(324),e.exports=t(23)},{131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,23:23,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288,289:289,290:290,291:291,292:292,293:293,294:294,295:295,296:296,297:297,298:298,299:299,300:300,301:301,302:302,303:303,304:304,305:305,306:306,307:307,308:308,309:309,310:310,311:311,312:312,313:313,314:314,315:315,316:316,317:317,318:318,319:319,320:320,321:321,322:322,323:323,324:324,325:325,326:326}],328:[function(t,I,e){(function(t){!function(t){"use strict";function o(t,e,n,i){var o,s,a,l,r=e&&e.prototype instanceof d?e:d,u=Object.create(r.prototype),c=new p(i||[]);return u._invoke=(o=t,s=n,a=c,l=T,function(t,e){if(l===x)throw new Error("Generator is already running");if(l===_){if("throw"===t)throw e;return v()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var i=f(n,a);if(i){if(i===C)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===T)throw l=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=x;var r=h(o,s,a);if("normal"===r.type){if(l=a.done?_:E,r.arg===C)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(l=_,a.method="throw",a.arg=r.arg)}}),u}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function d(){}function n(){}function e(){}function i(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(a){function l(t,e,n,i){var r=h(a[t],a,e);if("throw"!==r.type){var o=r.arg,s=o.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){l("next",t,n,i)},function(t){l("throw",t,n,i)}):Promise.resolve(s).then(function(t){o.value=t,n(o)},i)}i(r.arg)}var e;"object"==typeof t.process&&t.process.domain&&(l=t.process.domain.bind(l)),this._invoke=function(n,i){function t(){return new Promise(function(t,e){l(n,i,t,e)})}return e=e?e.then(t,t):t()}}function f(t,e){var n=t.iterator[e.method];if(n===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,f(t,e),"throw"===e.method))return C;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var i=h(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,C;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,C):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function r(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function a(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(r,this),this.reset(!0)}function l(e){if(e){var t=e[y];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(g.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=u,t.done=!0,t};return i.next=i}}return{next:v}}function v(){return{value:u,done:!0}}var u,c=Object.prototype,g=c.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},y=m.iterator||"@@iterator",A=m.asyncIterator||"@@asyncIterator",b=m.toStringTag||"@@toStringTag",w="object"==typeof I,S=t.regeneratorRuntime;if(S)w&&(I.exports=S);else{(S=t.regeneratorRuntime=w?I.exports:{}).wrap=o;var T="suspendedStart",E="suspendedYield",x="executing",_="completed",C={},k={};k[y]=function(){return this};var O=Object.getPrototypeOf,M=O&&O(O(l([])));M&&M!==c&&g.call(M,y)&&(k=M);var R=e.prototype=d.prototype=Object.create(k);n.prototype=R.constructor=e,e.constructor=n,e[b]=n.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,e):(t.__proto__=e,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(R),t},S.awrap=function(t){return{__await:t}},i(s.prototype),s.prototype[A]=function(){return this},S.AsyncIterator=s,S.async=function(t,e,n,i){var r=new s(o(t,e,n,i));return S.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},i(R),R[b]="Generator",R[y]=function(){return this},R.toString=function(){return"[object Generator]"},S.keys=function(n){var i=[];for(var t in n)i.push(t);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},S.values=l,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(a),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){function t(t,e){return o.type="throw",o.arg=n,i.next=t,e&&(i.method="next",i.arg=u),!!e}if(this.done)throw n;for(var i=this,e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],o=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=g.call(r,"catchLoc"),a=g.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&g.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,C):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),a(n),C}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;a(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:l(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=u),C}}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])}).call(this,n(37))},function(t,e,n){"use strict";var i,r;i=[n(11),n(61)],void 0===(r=function(t,e){t.ajax=e}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){var p=function(){var n=/^(?:application|text)\/xml/;var i=/^application\/json/;var l=function(t,e){if(t==null)t=e.getResponseHeader("content-type");if(n.test(t)){return e.responseXML}else if(i.test(t)&&e.responseText!==""){return JSON.parse(e.responseText)}else{return e.responseText}};var u=function(t){return t.status>=200&&t.status<300||t.status===304||t.status===0&&window.location.protocol==="file:"};var d=function(i,r,o,s,a){return function(){f(i,o);if(i.readyState!==4)return;var t=i.status;var e=l(r.headers&&r.headers.Accept,i);if(u(i)){if(r.success)r.success(e);if(s)s(e)}else{var n=new Error("Server responded with a status of "+t);if(r.error)r.error(i,t,n);if(a)a(i)}}};var f=function(t,e){if(!e)return;var n=["readyState","status","statusText","responseText","responseXML","setRequestHeader","getAllResponseHeaders","getResponseHeader","statusCode","abort"];for(var i=0;i<n.length;i++){var r=n[i];try{e[r]=typeof t[r]==="function"?t[r].bind(t):t[r]}catch(t){console.log(t)}}return e};return function(t){if(t==null)throw new Error("You must provide options");if(t.type==null)t.type="GET";var n,i,e=new XMLHttpRequest;var r=p.Promise||typeof Promise!=="undefined"&&Promise;var o=r&&new r(function(t,e){n=t;i=e});if(t.contentType){if(t.headers==null)t.headers={};t.headers["Content-Type"]=t.contentType}if(t.type==="GET"&&typeof t.data==="object"){var s="";var a=function(t,e){return e==null?"":"&"+encodeURIComponent(t)+"="+encodeURIComponent(e)};for(var l in t.data){s+=a(l,t.data[l])}if(s){var u=t.url.indexOf("?")===-1?"?":"&";t.url+=u+s.substring(1)}}e.onreadystatechange=d(e,t,o,n,i);e.open(t.type,t.url,t.async!==false);if(!(t.headers&&t.headers.Accept)){var c="*/".concat("*");var h={"*":c,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"};e.setRequestHeader("Accept",t.dataType&&h[t.dataType]?h[t.dataType]+(t.dataType!=="*"?", "+c+"; q=0.01":""):h["*"])}if(t.headers)for(var l in t.headers){e.setRequestHeader(l,t.headers[l])}if(t.beforeSend)t.beforeSend(e);e.send(t.data);t.originalXhr=e;f(e,o);return o?o:e}}();return p})?i.call(e,n,e,t):i)||(t.exports=r)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var u="pending";return function(){var i=this,r=u,o=[],s=[],a=[],l=[];this.resolve=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r===u&&(o=e,r="resolved",a.forEach(function(t){return t.apply(i,e)}),l=a=null),i},this.reject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r===u&&(s=e,r="rejected",l.forEach(function(t){return t.apply(i,e)}),l=a=null),i},this.state=function(){return r},this.then=function(t){return"resolved"===r?t.apply(i,o):r===u&&a.push(t),i},this.catch=function(t){return"rejected"===r?t.apply(i,s):r===u&&l.push(t),i},this.always=function(t){return i.then(t).catch(t)};var t={then:this.then,catch:this.catch,always:this.always,state:this.state};this.promise=function(){return t},Object.freeze(this)}}.call(e,n,e,t))||(t.exports=i)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,a){"use strict";var n;void 0===(n=function(t){function e(t,e){var n;return t=t||{},i.isArray(t)||(t=[t]),t=t.filter(i.isPlainObject),(n=i.extend.apply(i,t.map(o))).mixins=i(t).pluck("mixins").unshift(this.prototype.mixins).flatten().filter(i.isPlainObject).uniq().value(),r.mix(n),s.call(this,n,e)}var i=a(0),n=a(11),r=a(26),o=i.partialRight(i.omit,"mixins"),s=n.Model.extend;return"Model Collection View Router History".split(" ").forEach(function(t){n[t].extend=e}),e}.call(e,a,e,t))||(t.exports=n)},function(t,e,h){"use strict";var n;void 0===(n=function(t){var n,i,r,e=h(0),l=h(25),o=h(2),u=h(3),s=h(8),a=h(1),c=!1===window.globals.suppressAnalytics&&-1===window.location.protocol.indexOf("file");if(c){n=document.createElement("iframe"),i=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}(),r=s.Deferred();n.id="analytics-frame",n.src="analytics-frame.html#"+i,n.style.position="fixed",n.style.left="-1000px",n.style.top=0,window.addEventListener("message",function t(e){e.data.id===i&&("loaded"===e.data.message?r.resolve():"xhr sent"===e.data.message&&(document.body.removeChild(n),window.removeEventListener("message",t),i=n=null))}),document.body.appendChild(n)}return{initialize:function(t){e.bindAll(this,"onMounted"),this.confirmValidProps(),this.dfd=r,t.assetLib(),t.slideMap(),a.once(o.slide.HAS_MOUNTED,this.onMounted)},confirmValidProps:function(){this.hasValidProps=["productChannel","publishSource","aid","cid","playerVersion"].every(function(t){return null!=window.globals[t]})},onMounted:function(t){var e=Math.round(performance.now()),n=u.getPath(t,"props.model.parent.isMessageScene",!1),i=document.getElementById("font-test"),r=document.getElementById("font-test-download"),o=document.getElementById("font-test-default"),s=Math.floor(r.getComputedTextLength())!==Math.floor(o.getComputedTextLength()),a={os:[l.osname,l.osversion].join(" "),browser:[l.name,l.version].join(" "),playerVersion:window.globals.playerVersion,playerType:"HTML5-A",lmsPresent:window.globals.lmsPresent,tinCanPresent:window.globals.tinCanPresent,cmi5Present:window.globals.cmi5Present,aoSupport:window.globals.aoSupport,protocol:window.location.protocol.slice(0,-1),productChannel:window.globals.productChannel,publishSource:window.globals.publishSource,cid:window.globals.cid,timeToLoad:e,resumePrompt:n,canDownloadFonts:s};i.parentNode.removeChild(i),this.sendMessage("player_course_load",a)},sendMessage:function(t,e){c&&this.hasValidProps&&r.then(function(){n.contentWindow.postMessage({id:i,event:t,properties:e,aid:window.globals.aid},"*")})}}}.call(e,h,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){function o(t,e){return s.findIndex(t,{id:e})}function i(t){return t instanceof n||t instanceof r}function e(e){this.playing=!1,this.currentTime=0,this.lastCallbackTime=-1,this.labels={},this.duration=0,this.callbacks=[],this.seekables=[],this.activeSeekables=[],null!=e&&(["onUpdate","onComplete"].forEach(function(t){this[t]=e[t]}.bind(this)),e.tweens&&e.tweens.forEach(function(t){var e=t.delay();i(t)&&(this.wrapGsap(t),e=a.toMilliseconds(e)),this.addSeekable(t,e,!0)}.bind(this)))}var s=u(0),a=u(3),n=u(12),r=u(30),l=u(29);return s.extend(e.prototype,{add:function(t,e,n){if(s.isString(t))this.labels[t]=e;else{if(e=s.isString(e)?this.labels[e]:e||0,s.isFunction(t))return this.insertCallback(this.wrapCallback(t,e)),void this.updateDuration(e);i(t)&&this.wrapGsap(t),s.isFunction(t.stepAnimation)&&this.addSeekable(t,e,n)}},remove:function(t){var e,n,i,r;s.isString(t)?this.labels[t]=null:null!=t.timelineData&&(e=t.timelineData.seekableId,0<=(n=o(this.callbacks,e))&&(this.callbacks.splice(n,1),0<=(i=o(this.seekables,e))&&(this.seekables.splice(i,1),0<=(r=o(this.activeSeekables,e))&&(this.activeMutated=!0,this.activeSeekables.splice(r,1)))),t.timelineData=null,this.mutated=!0)},updateDuration:function(t){t>this.duration&&(this.duration=t,null!=this.timelineData&&this.timelineData.parent.childDurationChanged(this))},childDurationChanged:function(t){this.updateDuration(t.timelineData.startTime+t.totalTime())},wrapGsap:function(i){i.pause(),i.totalTime=function(){return a.toMilliseconds(i.duration())},i.stepAnimation=function(t,e){var n=a.toSeconds(t);i.seek(n,!0),i.render(n,!!e,!0)}},addSeekable:function(t,e,n){var i=t.totalTime(),r=a.clamp(0,i,this.currentTime-e),o=this.wrapSeekable(t,e);this.seekables.push(o),this.insertCallback(o),!n&&this.currentTime>=e&&((this.executingCallbacks||r<=i)&&o.timelineCallback(),this.executingCallbacks||t.stepAnimation(r)),this.updateDuration(e+t.totalTime())},wrapCallback:function(t,e){return{startTime:e,id:s.uniqueId("wc"),timelineCallback:t}},wrapSeekable:function(t,e){var n=s.uniqueId("ws"),i={startTime:e,id:n,seekable:t};return i.timelineCallback=function(){i.seekable.killed||this.activeSeekables.push(i)}.bind(this),t.timelineData={parent:this,seekableId:n,startTime:e},i},insertCallback:function(t){0===this.callbacks.length||t.startTime>=s.last(this.callbacks).startTime?this.callbacks.push(t):this.callbacks.splice(s.sortedLastIndex(this.callbacks,t,"startTime"),0,t)},hasParentTimeline:function(){return null!=this.timelineData},pause:function(){this.playing&&!this.hasParentTimeline()&&(this.playing=!1,this.currentTime=this.executingCallbacks?this.lastCallbackTime:l.time()-this.startTime)},play:function(){!this.playing&&!this.hasParentTimeline()&&this.currentTime<this.duration&&(this.playing=!0,this.startTime=l.time()-this.currentTime,l.requestAnimationFrame(this.tick.bind(this)))},seek:function(t,e){this.hasParentTimeline()||(t<=this.lastCallbackTime&&this.reset(),this.startTime=l.time()-t,this.currentTime=t,this.executingCallbacks&&!this.renderDirty||this.update(e))},reset:function(){this.killed||(this.renderDirty=!0,this.lastCallbackTime=-1,this.activeSeekables=[],this.seekables.forEach(function(t){null!=t.seekable.reset&&t.seekable.reset()}))},progress:function(t,e){return null==t?a.clamp(0,1,this.currentTime/(this.duration||1)):(this.seek(t*this.duration,e),this)},isActive:function(){return this.hasParentTimeline()?this.timelineData.parent.isActive():this.playing},time:function(){return a.clamp(0,this.duration,this.currentTime)},totalTime:function(t){if(null==t)return this.duration;this.duration=t},tick:function(){var t;this.killed||(t=this.currentTime,this.currentTime=l.time()-this.startTime,this.playing&&(t<this.duration||0<this.activeSeekables.length)&&!this.hasParentTimeline()&&(this.update(),l.requestAnimationFrame(this.tick.bind(this))))},stepAnimation:function(t,e){this.currentTime;this.currentTime=a.clamp(0,this.duration,t),this.update(e)},update:function(t){this.renderDirty=!1,!this.silent&&this.executeCallbacks()&&(this.updateActiveSeekables(t),this.onUpdate&&this.onUpdate(),this.currentTime>=this.duration&&(this.playing=!1,t||null==this.onComplete||this.onComplete()))},executeCallbacks:function(){this.executingCallbacks=!0;var t=s.sortedLastIndex(this.callbacks,{startTime:this.lastCallbackTime},"startTime");if(t>=this.callbacks.length)return!(this.executingCallbacks=!1);for(var e=this.callbacks.slice(t),n=e.length,i=0,r=this.currentTime;!this.killed&&i<n&&e[i].startTime<=r;){if(this.lastCallbackTime=e[i].startTime,e[i].timelineCallback(),r>this.currentTime)return this.executingCallbacks=!1;r=this.currentTime,i++}return!(this.executingCallbacks=!1)},updateActiveSeekables:function(t){var e,n,i,r=this.activeSeekables.length-1;for(this.activeMutated=!1;0<=r&&!this.killed;)(!this.activeMutated||r<this.activeSeekables.length)&&(e=(i=this.activeSeekables[r]).seekable,n=i.startTime,e.stepAnimation(this.currentTime-n,t),this.currentTime>=n+e.totalTime()&&(!this.activeMutated||i===this.activeSeekables[r])&&this.activeSeekables.splice(r,1)),r--},kill:function(){this.killed||(this.killed=!0,null!=this.timelineData&&this.timelineData.parent.remove(this),this.timelineData=null,this.onUpdate=null,this.onComplete=null,this.labels=null,this.callbacks=null,this.activeSeekables=null,this.seekables.forEach(function(t){null!=t.seekable.kill&&t.seekable.kill()}),this.seekables=null)}}),e}.call(e,u,e,t))||(t.exports=n)},function(t,e,n){!function(){var t=this.Backbone;t=t||n(11);var i=Array.prototype.slice;function r(t,n){t.prototype[n]=function(){var t=arguments.length?"set":"get",e=i.call(arguments);return e.unshift(n),this[t].apply(this,e)}}t.Model.shorthandify=function(t){if(!(t=t||this.prototype.shorthand))return this;"string"==typeof t&&(t=[t]);for(var e=0,n=t.length;e<n;e++)r(this,t[e]);return this},e.shorthandify=t.Model.shorthandify}()},function(t,e,A){"use strict";var n;void 0===(n=function(t){var o,s,e,a=A(0),l=A(30),u=A(29),c=A(2),h=A(1),d=A(3),f=A(5),p=A(69),v=A(33),n=A(17),g=A(6).addBodyListener,m={},i=window.vInterfaceObject||window,y={mainWindow:null,updateTime:function(){var t=n.getCurrentWindowSlide();return null!=t&&u.tick(),this.getIsPlaying(t)||e},getIsPlaying:function(t){var e=this,n=t.getBaseLayer(),i=t.slideLayers().activeLayers,r=this.isLayerTimelinePlaying(n);return!r&&0<i.length&&(r=i.some(function(t){return e.isLayerTimelinePlaying(t)})),r},isLayerTimelinePlaying:function(t){return!t.getHasTimelineFinished()&&!t.getIsTimelinePaused()},nextSlide:function(){var t=o.shift();t&&h.trigger(c.request.NEXT_SLIDE,d.prefixWithPlayer(t))},pausePlayer:function(){h.trigger(c.detection.VISIBILITY_HIDDEN)},playPlayer:function(){h.trigger(c.detection.VISIBILITY_SHOWN)}},r={silenceActions:{trigger_next_slide:!1,close_player:!1},initialize:function(n,t){var e=d.parseParams();if("1"===e.automation&&(window.autoSpider=!0,this.silenceActions.trigger_next_slide=!0,this.silenceActions.close_player=!0),window.autoSpider){s=e.frametimems?parseFloat(e.frametimems):33.33,g("mousedown",this.onPlayerClicked.bind(this)),g("touchstart",this.onPlayerClicked.bind(this)),window.g_nWidth=t.display().width(),window.g_nHeight=t.display().height(),"1"===e.overrideclock&&(l.prototype.play=a.noop,u.overrideClock(s),this.clockIsOverridden=!0,h.on(c.video.STATE_CHANGED,this.onVideoEvent.bind(this)));o=a(t.slideMap().slideRefs().where({type:"slide"})).pluck("id").filter(function(t){return!/^MsgScene|^PromptScene/.test(t)}).tap(function(t){t.forEach(function(t){var e=n.getSlide(d.prefixWithPlayer(t)).get("showAnimationId");null!=e&&(m[e]=t)})}).rest().value();var i={playerTime:0,type:"dark-spider",AdvanceFrame:function(){return y.updateTime()},AutoUpdateTime:function(){u.tick()},UpdateAutomationTime:function(t){var e=u.frameTimeMs;u.frameTimeMs=t-u.currentTime,u.tick(),u.frameTimeMs=e},TriggerNextSlide:function(){y.nextSlide()},TriggerPause:function(){f.env.is360&&y.pausePlayer()},TriggerPlay:function(){f.env.is360&&y.playPlayer()},CaptureSlideImage:function(){return p.generate()},GetCourseStateData:function(){return v.getState()},GetTargetDuration:function(t){var e=m[t];return e?n.getSlide(d.prefixWithPlayer(e)).getTransitionAnimation().duration():n.getSlide(d.prefixWithPlayer(t)).getBaseLayer().timeline().duration()}};this.getPlayer=function(){return i},a.bindAll(this,"onSlideStarted","onSlideTransition","onNextSlideRequesting","onMainWindowCreated","onEnterFullscreen","onExitFullscreen","onLoaderShown","onLoaderHidden","onTincanStatement","onPlayButtonShown");var r={};r[c.slide.STARTED]=this.onSlideStarted,r[c.slide.TRANSITION_STARTED]=this.onSlideTransition,r[c.layer.TIMELINE_ACTIVATED]=this.onLayerTimelineActivated,r[c.loader.SHOW]=this.onLoaderShown,r[c.loader.HIDE]=this.onLoaderHidden,r[c.window.MAIN_CREATED]=this.onMainWindowCreated,r[c.request.NEXT_SLIDE]=this.onNextSlideRequesting,r[c.presentation.ENTER_FULLSCREEN]=this.onEnterFullscreen,r[c.presentation.EXIT_FULLSCREEN]=this.onExitFullscreen,r[c.startOverlay.READY]=this.onPlayButtonShown,f.env.isRise&&(r[c.tincan.STATEMENT]=this.onTincanStatement),h.on(r)}},onPlayerClicked:function(){this.callIfExists("OnPlayerClicked")},onEnterFullscreen:function(){this.callIfExists("OnEnterFullscreen")},onExitFullscreen:function(){this.callIfExists("OnExitFullscreen")},onMainWindowCreated:function(t){y.mainWindow=t,this.callIfExists("AutomationReady")},onSlideTransition:function(t,e,n){this.callIfExists("OnSlideTransition",t,e,n)},onSlideStarted:function(t){e=!1,this.callIfExists("OnSlideStarted",t)},onMediaStarted:function(t){this.callIfExists("OnMediaStarted",t)},onNextSlideRequesting:function(){e=!0,this.callIfExists("OnNextSlideRequesting")},onPlayButtonShown:function(){this.callIfExists("OnPlayButtonShown")},onLoaderShown:function(){this.callIfExists("OnLoaderShown")},onLoaderHidden:function(){this.callIfExists("OnLoaderHidden")},onVideoEvent:function(t,e,n){this.callIfExists("OnVideoEvent",t,e,n)},onTincanStatement:function(t){this.callIfExists("LmsUpdate",t)},onLayerTimelineActivated:function(t){if(t.isBaseLayer()){var e=t.getClosestAncestorByKind("slide").absoluteId;r.onSlideStarted(d.stripPlayer(e))}},callIfExists:function(t){var e=i[t];"function"==typeof e&&e.apply(i,a.rest(arguments))}};return r}.call(e,A,e,t))||(t.exports=n)},function(t,e,i){"use strict";var n;void 0===(n=function(t){var u=i(17),c=i(4),n=i(0),h=i(14),e=i(5),d=e.device.isMobile,f=e.theme.isUnified,p=/data-reactid="(.*?)"/g,v=/(-webkit-|-moz-|-ms-)?transform(-origin)?:\s*([^;]*);/g;return{createVideoThumb:function(t){var e=document.createElement("canvas"),n=e.getContext("2d"),i=parseFloat(t.parentNode.style.width),r=parseFloat(t.parentNode.style.height);return(isNaN(i)||isNaN(r))&&(i=parseFloat(t.parentNode.parentNode.style.width),r=parseFloat(t.parentNode.parentNode.style.height)),e.width=i,e.height=r,n.drawImage(t,0,0,e.width,e.height),{uri:e.toDataURL("image/jpeg",.8),src:t.src}},addVideoImageThumbs:function(t,e){var i={};return n(t).map(this.createVideoThumb).forEach(function(t){i[t.src]=t.uri}).value(),e.replace(/<video(.*?)<\/video>/g,function(t){var e,n=document.createElement("div");return n.innerHTML=t,e=n.querySelector("video").src,['<img src="',i[e],'"/>'].join("")})},generate:function(){var t,e,n,i,r,o,s=u.getCurrentWindow().getCurSlide(),a="",l=d||f?h.getWindowScale():h.getScale();return null!=s?(t=s.el.innerHTML,e=s.props.model.get("width"),n=s.props.model.get("height"),t=t.replace(p,"").replace(v,"-webkit-transform$2: $3; -moz-transform$2: $3; -ms-transform$2: $3; transform$2: $3;"),0<(o=document.getElementById("slide").querySelectorAll("video")).length&&(t=this.addVideoImageThumbs(o,t)),r=function(t){var e;if(null!=t)return(e=document.createElement("div")).id="lib",e.setAttribute("class","offscreen"),e.innerHTML=t.innerHTML,[e.querySelector("#video-pen"),e.querySelector("#presentation-canvas"),e.querySelector("#zoomimage-container"),e.querySelector("canvas")].forEach(function(t){null!=t&&t.parentNode.removeChild(t)}),e}(i=document.getElementById(c.els.LIB)),null!=i&&(a=r.outerHTML.replace(p,"")),{width:e,height:n,html:['<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="html5/lib/stylesheets/'+(d?"mobile":"desktop")+'.min.css" /> <link rel="stylesheet" href="html5/data/css/output.min.css" /> <style>* { margin: 0; padding: 0; pointer-events: none !important; } .slide-thumb { position: absolute; left: 0; top: 0; width: '+e*l+"px; height: "+n*l+'px; } </style> </head> <body> <div class="slide-thumb">',t,a,'</div> <script> (function() { var slide = document.querySelector(".slide-thumb"), topLeft = "0 0", scaleValue; slide.style.WebkitTransformOrigin = topLeft; slide.style.MozTransformOrigin = topLeft; slide.style.MsTransformOrigin = topLeft; slide.style.transformOrigin = topLeft; var scale = function() { var winH = window.innerHeight, winW = window.innerWidth, slideH = '+n*l+", slideW = "+e*l+', xScale = winH / slideH, yScale = winW / slideW, nextScaleValue = Math.min(xScale, yScale); if (scaleValue !== nextScaleValue) { scaleValue = nextScaleValue; slide.style.WebkitTransform = "scale(" + scaleValue + ")"; slide.style.WebkitTransform = "scale(" + scaleValue + ")"; slide.style.transform = "scale(" + scaleValue + ")"; } }; window.addEventListener("resize", scale); scale(); })(); <\/script> </body></html>'].join("")}):{html:null}}}}.call(e,i,e,t))||(t.exports=n)},function(t,e,x){"use strict";var n;void 0===(n=function(t){function u(t){var e={id:t.id,description:{}};return e.description.und=t.lmstext,e}var e,d=x(0),n=x(8),c=x(3),i=x(2),r=x(1),s=window.TinCan||x(71),o=x(4),a=x(18),l=s.Utils.convertMillisecondsToISO8601Duration,h=s.Utils.getUUID,f="choice",p="matching",v="sequencing",g="http://adlnet.gov/expapi/activities/course",m="http://adlnet.gov/expapi/activities/cmi.interaction",y="http://",A=/file/.test(window.location.protocol),b={};b[f]=b[v]=function(t,e){t.choices=e.choices().map(u)},b[p]=function(t,e){t.target=e.choices().map(u),t.source=e.statements().map(u)};var w={likert:"likert"};w.sequence=v,w.multiplechoice=w.truefalse=w.hotspot=w.wordbank=w.multipleresponse=f,w.numeric="numeric",w.fillin="fill-in",w.essay="long-fill-in",w.matching=p;var S={};S.multiplechoice=S.hotspot=S.wordbank=S.sequence=S.truefalse=S.multipleresponse=function(t){var e=t&&t.choiceResponse,n=null!=e?e:t;return c.stripChoice(n)},S.essay=S.fillin=S.numeric=d.identity,S.matching=function(t){return[c.stripStatement(t.statementResponse),c.stripChoice(t.choiceResponse)].join("[.]")};var T=void 0,E=void 0;return{queue:[],tinCan:null,resumer:null,scoring:null,scorings:null,version:0,retryCount:0,setTotalSlides:d.noop,reportStatus:d.noop,initialize:function(t,e,n,i,r){if(window.globals.tinCanPresent||r){this.setPreso(i);var o=c.queryStringToObj();return this.urlParams=o,this.version=e,null!=o.activity_id&&(y=o.activity_id.replace(/\/$/,"")),this.scorings=n,this.scoring=this.scorings.first(),this.tinCan=A||r?new s:new s({url:window.location.toString().replace("&tincan=true","")}),this.sendData=r?this.sendStatementLocal:this.sendStatement,this}},setPreso:function(t){e=t},setResumer:function(t){this.resumer=t},createConfig:function(t){return null==this.urlParams.activity_id&&(t.activity={id:"http://"+e.get("courseId")}),t},getItem:function(){this.resumeDfd=n.Deferred();var t=this.createConfig({callback:this.sendResumeReady.bind(this),overwriteJSON:!0});return this.tinCan.getState("resume",t),A&&this.resumeDfd.resolve(""),this.resumeDfd.promise()},setItem:function(t,e){var n=this.createConfig({callback:d.noop});this.tinCan.setState("resume",e,n)},sendResumeReady:function(t,e){null==t&&this.resumeDfd.resolve(e&&e.contents)},courseStarted:function(t){var e=this.getStmtObj({type:g,name:this.scoring.get("lmstext"),description:this.scoring.get("description"),verb:this.getVerb("attempted")});t||(e.result={completion:!1}),this.queueStatement(e)},quizComplete:function(t){if(!E){T=t.scoring;var e=t.get("lmstext"),n=this.getStmtObj(t.id,{type:"http://adlnet.gov/expapi/activities/objective",name:e,description:e,verb:this.getVerb(this.getCompletedVerb(t))});t.get("issurvey")||(n.result={score:{scaled:t.prop("PercentScore")/100,raw:t.prop("Score"),min:0,max:t.maxPoints},success:t.isPassed()}),this.queueStatement(n)}},courseComplete:function(t,e){if(!e&&!E){E=!0;var n=this.getStmtObj({type:g,name:t.get("lmstext"),description:t.get("description"),verb:this.getVerb(this.getCompletedVerb(t))});n.result={duration:l(this.resumer.getCourseTime()),completion:!0},t.isSurvey()||t.isAction()||(n.result.score={scaled:t.getPercentScore()},n.result.success=t.isPassed()),this.queueStatement(n)}},manualCourseComplete:function(t,e){this.courseComplete(e,!1)},quizRetried:function(t){a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)&&T==t&&(E=!1)},viewedComplete:function(t){if(!E){E=!0;var e=this.getStmtObj({type:g,name:t.get("lmstext"),description:t.get("description"),verb:this.getVerb("completed")}),n={};n[this.formatUri("viewcount")]=t.viewedSlides,e.result={completion:!0,duration:l(this.resumer.getCourseTime()),extensions:n},this.queueStatement(e)}},slideViewed:function(t){var e=t.get("title"),n=this.getStmtObj(t.id,{type:"http://adlnet.gov/expapi/activities/module",name:e,description:e,verb:this.getVerb("experienced")});this.queueStatement(n)},interactionAnswered:function(t,e){this[e.isType("likert")?"logLikert":"logQuestion"](t,e)},logLikert:function(a,l){l.hasResponses()&&l.responses.forEach(function(t,e){var n=l.statements()[e].lmstext,i=c.stripStatement(t.statementResponse),r=[l.parent.id,l.id,i],o={scale:l.choices().map(u),interactionType:w.likert},s=this.getStmtObj(r,{type:m,name:n,description:n,verb:this.getVerb("answered"),parent:this.formatUri(a.id)});this.setDefinitions(s,o),s.result={response:c.stripChoice(t.choiceResponse)},this.queueStatement(s)}.bind(this))},logQuestion:function(t,e){if(e.hasResponses()){var n,i=e.get("lmstext"),r=e.type(),o=w[r],s=S[r],a=b[o]||d.noop,l={interactionType:o},u={response:e.responses.map(s).join("[,]")},c=[e.parent.id,e.id],h=this.getStmtObj(c,{type:m,name:i,description:i,verb:this.getVerb("answered"),parent:this.formatUri(t.id)});(n=o)!==p&&n!==v&&n!==f||(l.correctResponsesPattern=[this.getCorrectResponses(e)]),a(l,e),this.setDefinitions(h,l),e.get("issurvey")||(u.success=e.isPassing(),u.score={raw:e.prop("Score")}),h.result=u,this.queueStatement(h)}},formatUri:function(){var t=d.compact(arguments),e=[y],n=this.version<1?".":"/";return e.concat(t).join(n)},getCorrectResponses:function(t){var e=t.prop("CorrectResponse"),n=t.isType("sequence");return e.map(function(t){var e=t.id;return n?e=t.choice.id:t.choice&&t.statement&&(e=[t.statement.id,t.choice.id].join("[.]")),e}).join("[,]")},getVerb:function(t){var e=new s.Verb(t);return e.display["en-US"]=e.display.und,delete e.display.und,e},getCompletedVerb:function(t){return null==t||t.isType("survey")?"completed":t.isPassed()?"passed":"failed"},setDefinitions:function(t,e){d.extend(t.object.definition,e)},getStmtObj:function(t,e){d.isPlainObject(t)&&(e=t,t=void 0);var n={name:{},description:{}};return n.name.und=e.name||"",n.description.und=e.description||"",n.type=e.type,d.isArray(t)||(t=[t]),{id:h(),object:{id:this.formatUri.apply(this,t),definition:n},context:{contextActivities:{grouping:[{id:this.formatUri(),objectType:"Activity"}],parent:[{id:e.parent||y,objectType:"Activity"}]}},verb:e.verb,objectType:"Activity"}},queueStatement:function(t){0===this.queue.length?this.sendData(t):this.queue.unshift(t)},sendStatementCallback:function(t,e){var n=this;null!=t[0].err&&this.retryCount<o.XAPI_RETRY_INTERVALS_MS.length?setTimeout(function(){return n.sendStatement(e)},o.XAPI_RETRY_INTERVALS_MS[this.retryCount++]):(this.retryCount=0,this.popQueue())},popQueue:function(){0<this.queue.length&&this.sendData(this.queue.pop())},sendStatement:function(t){this.tinCan.sendStatement(t,this.sendStatementCallback.bind(this))},sendStatementLocal:function(t){r.trigger(i.tincan.STATEMENT,t),this.popQueue()}}}.call(e,x,e,t))||(t.exports=n)},function(module,exports,__webpack_require__){var CryptoJS=CryptoJS||function(a){var t={},e=t.lib={},n=e.Base={extend:function(t){c.prototype=this;var e=new c;return t&&e.mixIn(t),e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}},l=e.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||r).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes;t=t.sigBytes;if(this.clamp(),i%4)for(var r=0;r<t;r++)e[i+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535<n.length)for(r=0;r<t;r+=4)e[i+r>>>2]=n[r>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=a.ceil(e/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(4294967296*a.random()|0);return l.create(e,t)}}),i=t.enc={},r=i.Hex={stringify:function(t){for(var e=t.words,n=(t=t.sigBytes,[]),i=0;i<t;i++){var r=e[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return l.create(n,e/2)}},o=i.Latin1={stringify:function(t){for(var e=t.words,n=(t=t.sigBytes,[]),i=0;i<t;i++)n.push(String.fromCharCode(e[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return l.create(n,e)}},s=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},u=e.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=l.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=s.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,i=e.sigBytes,r=this.blockSize,o=i/(4*r);t=(o=t?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,i=a.min(4*t,i);if(t){for(var s=0;s<t;s+=r)this._doProcessBlock(n,s);s=n.splice(0,t),e.sigBytes-=i}return l.create(s,i)},clone:function(){var t=n.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});function c(){}e.Hasher=u.extend({init:function(){this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(n){return function(t,e){return n.create(e).finalize(t)}},_createHmacHelper:function(n){return function(t,e){return h.HMAC.create(n,e).finalize(t)}}});var h=t.algo={};return t}(Math),SBc,UBc,TBc,VBc,WBc,lCc,TinCan;SBc=CryptoJS,UBc=(TBc=SBc.lib).WordArray,TBc=TBc.Hasher,VBc=[],WBc=SBc.algo.SHA1=TBc.extend({_doReset:function(){this._hash=UBc.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=0;l<80;l++){if(l<16)VBc[l]=0|t[e+l];else{var u=VBc[l-3]^VBc[l-8]^VBc[l-14]^VBc[l-16];VBc[l]=u<<1|u>>>31}u=(i<<5|i>>>27)+a+VBc[l],u=l<20?u+(1518500249+(r&o|~r&s)):l<40?u+(1859775393+(r^o^s)):l<60?u+((r&o|r&s|o&s)-1894007588):u+((r^o^s)-899497514),a=s,s=o,o=r<<30|r>>>2,r=i,i=u}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[15+(64+i>>>9<<4)]=n,t.sigBytes=4*e.length,this._process()}}),SBc.SHA1=TBc._createHelper(WBc),SBc.HmacSHA1=TBc._createHmacHelper(WBc),lCc=CryptoJS.lib.WordArray,CryptoJS.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)r.push(i.charAt(s>>>6*(3-a)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var e=(t=t.replace(/\s/g,"")).length,n=this._map,i=n.charAt(64);if(i){var r=t.indexOf(i);-1!=r&&(e=r)}for(var o=[],s=0,a=0;a<e;a++)if(a%4){var l=n.indexOf(t.charAt(a-1))<<a%4*2,u=n.indexOf(t.charAt(a))>>>6-a%4*2;o[s>>>2]|=(l|u)<<24-s%4*8,s++}return lCc.create(o,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(){"use strict";var l={statementId:!0,voidedStatementId:!0,verb:!0,object:!0,registration:!0,context:!0,actor:!0,since:!0,until:!0,limit:!0,authoritative:!0,sparse:!0,instructor:!0,ascending:!0,continueToken:!0,agent:!0,activityId:!0,stateId:!0,profileId:!0,activity_platform:!0,grouping:!0,"Accept-Language":!0};(TinCan=function(t){this.log("constructor"),this.recordStores=[],this.actor=null,this.activity=null,this.registration=null,this.context=null,this.init(t)}).prototype={LOG_SRC:"TinCan",log:function(t,e){TinCan.DEBUG&&"undefined"!=typeof console&&console.log&&(e=e||this.LOG_SRC||"TinCan",console.log("TinCan."+e+": "+t))},init:function(t){var e;if(this.log("init"),(t=t||{}).hasOwnProperty("url")&&""!==t.url&&this._initFromQueryString(t.url),t.hasOwnProperty("recordStores")&&void 0!==t.recordStores)for(e=0;e<t.recordStores.length;e+=1)this.addRecordStore(t.recordStores[e]);t.hasOwnProperty("activity")&&(t.activity instanceof TinCan.Activity?this.activity=t.activity:this.activity=new TinCan.Activity(t.activity)),t.hasOwnProperty("actor")&&(t.actor instanceof TinCan.Agent?this.actor=t.actor:this.actor=new TinCan.Agent(t.actor)),t.hasOwnProperty("context")&&(t.context instanceof TinCan.Context?this.context=t.context:this.context=new TinCan.Context(t.context)),t.hasOwnProperty("registration")&&(this.registration=t.registration)},_initFromQueryString:function(t){this.log("_initFromQueryString");var e,n,i,r=TinCan.Utils.parseURL(t).params,o=["endpoint","auth"],s={},a=null;if(r.hasOwnProperty("actor")){this.log("_initFromQueryString - found actor: "+r.actor);try{this.actor=TinCan.Agent.fromJSON(r.actor),delete r.actor}catch(t){this.log("_initFromQueryString - failed to set actor: "+t)}}if(r.hasOwnProperty("activity_id")&&(this.activity=new TinCan.Activity({id:r.activity_id}),delete r.activity_id),(r.hasOwnProperty("activity_platform")||r.hasOwnProperty("registration")||r.hasOwnProperty("grouping"))&&(i={},r.hasOwnProperty("activity_platform")&&(i.platform=r.activity_platform,delete r.activity_platform),r.hasOwnProperty("registration")&&(i.registration=this.registration=r.registration,delete r.registration),r.hasOwnProperty("grouping")&&(i.contextActivities={},i.contextActivities.grouping=r.grouping,delete r.grouping),this.context=new TinCan.Context(i)),r.hasOwnProperty("endpoint")){for(e=0;e<o.length;e+=1)n=o[e],r.hasOwnProperty(n)&&(s[n]=r[n],delete r[n]);for(e in r)r.hasOwnProperty(e)&&(l.hasOwnProperty(e)?delete r[e]:(a=a||{})[e]=r[e]);null!==a&&(s.extended=a),s.allowFail=!1,this.addRecordStore(s)}},addRecordStore:function(t){var e;this.log("addRecordStore"),e=t instanceof TinCan.LRS?t:new TinCan.LRS(t),this.recordStores.push(e)},prepareStatement:function(t){return this.log("prepareStatement"),t instanceof TinCan.Statement||(t=new TinCan.Statement(t)),null===t.actor&&null!==this.actor&&(t.actor=this.actor),null===t.target&&null!==this.activity&&(t.target=this.activity),null!==this.context&&(null===t.context?t.context=this.context:(null===t.context.registration&&(t.context.registration=this.context.registration),null===t.context.platform&&(t.context.platform=this.context.platform),null!==this.context.contextActivities&&(null===t.context.contextActivities?t.context.contextActivities=this.context.contextActivities:(null!==this.context.contextActivities.grouping&&null===t.context.contextActivities.grouping&&(t.context.contextActivities.grouping=this.context.contextActivities.grouping),null!==this.context.contextActivities.parent&&null===t.context.contextActivities.parent&&(t.context.contextActivities.parent=this.context.contextActivities.parent),null!==this.context.contextActivities.other&&null===t.context.contextActivities.other&&(t.context.contextActivities.other=this.context.contextActivities.other))))),t},sendStatement:function(t,i){this.log("sendStatement");var e,n,r,o=this,s=this.prepareStatement(t),a=this.recordStores.length,l=[],u=[];if(0<a)for("function"==typeof i&&(r=function(t,e){var n;o.log("sendStatement - callbackWrapper: "+a),1<a?(--a,u.push({err:t,xhr:e})):1===a?(u.push({err:t,xhr:e}),n=[u,s],i.apply(this,n)):o.log("sendStatement - unexpected record store count: "+a)}),n=0;n<a;n+=1)e=this.recordStores[n],l.push(e.saveStatement(s,{callback:r}));else this.log("[warning] sendStatement: No LRSs added yet (statement not sent)"),"function"==typeof i&&i.apply(this,[null,s]);return{statement:s,results:l}},getStatement:function(t,e){if(this.log("getStatement"),0<this.recordStores.length)return this.recordStores[0].retrieveStatement(t,{callback:e});this.log("[warning] getStatement: No LRSs added yet (statement not retrieved)")},voidStatement:function(t,i,e){this.log("voidStatement");var n,r,o,s,a,l=this,u=this.recordStores.length,c=[],h=[];if(t instanceof TinCan.Statement&&(t=t.id),void 0!==e.actor?r=e.actor:null!==this.actor&&(r=this.actor),o=new TinCan.Statement({actor:r,verb:{id:"http://adlnet.gov/expapi/verbs/voided"},target:{objectType:"StatementRef",id:t}}),0<u)for("function"==typeof i&&(a=function(t,e){var n;l.log("voidStatement - callbackWrapper: "+u),1<u?(--u,h.push({err:t,xhr:e})):1===u?(h.push({err:t,xhr:e}),n=[h,o],i.apply(this,n)):l.log("voidStatement - unexpected record store count: "+u)}),s=0;s<u;s+=1)n=this.recordStores[s],c.push(n.saveStatement(o,{callback:a}));else this.log("[warning] voidStatement: No LRSs added yet (statement not sent)"),"function"==typeof i&&i.apply(this,[null,o]);return{statement:o,results:c}},getVoidedStatement:function(t,e){if(this.log("getVoidedStatement"),0<this.recordStores.length)return this.recordStores[0].retrieveVoidedStatement(t,{callback:e});this.log("[warning] getVoidedStatement: No LRSs added yet (statement not retrieved)")},sendStatements:function(t,i){this.log("sendStatements");var e,n,r,o=this,s=[],a=this.recordStores.length,l=[],u=[];if(0===t.length)"function"==typeof i&&i.apply(this,[null,s]);else{for(n=0;n<t.length;n+=1)s.push(this.prepareStatement(t[n]));if(0<a)for("function"==typeof i&&(r=function(t,e){var n;o.log("sendStatements - callbackWrapper: "+a),1<a?(--a,u.push({err:t,xhr:e})):1===a?(u.push({err:t,xhr:e}),n=[u,s],i.apply(this,n)):o.log("sendStatements - unexpected record store count: "+a)}),n=0;n<a;n+=1)e=this.recordStores[n],l.push(e.saveStatements(s,{callback:r}));else this.log("[warning] sendStatements: No LRSs added yet (statements not sent)"),"function"==typeof i&&i.apply(this,[null,s])}return{statements:s,results:l}},getStatements:function(t){this.log("getStatements");var e,n,i={};if(0<this.recordStores.length)return e=this.recordStores[0],n=(t=t||{}).params||{},t.sendActor&&null!==this.actor&&("0.9"===e.version||"0.95"===e.version?n.actor=this.actor:n.agent=this.actor),t.sendActivity&&null!==this.activity&&("0.9"===e.version||"0.95"===e.version?n.target=this.activity:n.activity=this.activity),void 0===n.registration&&null!==this.registration&&(n.registration=this.registration),i={params:n},void 0!==t.callback&&(i.callback=t.callback),e.queryStatements(i);this.log("[warning] getStatements: No LRSs added yet (statements not read)")},getState:function(t,e){var n,i;if(this.log("getState"),0<this.recordStores.length)return i=this.recordStores[0],n={agent:void 0!==(e=e||{}).agent?e.agent:this.actor,activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.registration?n.registration=e.registration:null!==this.registration&&(n.registration=this.registration),void 0!==e.callback&&(n.callback=e.callback),i.retrieveState(t,n);this.log("[warning] getState: No LRSs added yet (state not retrieved)")},setState:function(t,e,n){var i,r;if(this.log("setState"),0<this.recordStores.length)return r=this.recordStores[0],i={agent:void 0!==(n=n||{}).agent?n.agent:this.actor,activity:void 0!==n.activity?n.activity:this.activity},void 0!==n.registration?i.registration=n.registration:null!==this.registration&&(i.registration=this.registration),void 0!==n.lastSHA1&&(i.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(i.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&TinCan.Utils.isApplicationJSON(n.contentType)&&(i.method="POST")),void 0!==n.callback&&(i.callback=n.callback),r.saveState(t,e,i);this.log("[warning] setState: No LRSs added yet (state not saved)")},deleteState:function(t,e){var n,i;if(this.log("deleteState"),0<this.recordStores.length)return i=this.recordStores[0],n={agent:void 0!==(e=e||{}).agent?e.agent:this.actor,activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.registration?n.registration=e.registration:null!==this.registration&&(n.registration=this.registration),void 0!==e.callback&&(n.callback=e.callback),i.dropState(t,n);this.log("[warning] deleteState: No LRSs added yet (state not deleted)")},getActivityProfile:function(t,e){var n,i;if(this.log("getActivityProfile"),0<this.recordStores.length)return i=this.recordStores[0],n={activity:void 0!==(e=e||{}).activity?e.activity:this.activity},void 0!==e.callback&&(n.callback=e.callback),i.retrieveActivityProfile(t,n);this.log("[warning] getActivityProfile: No LRSs added yet (activity profile not retrieved)")},setActivityProfile:function(t,e,n){var i,r;if(this.log("setActivityProfile"),0<this.recordStores.length)return r=this.recordStores[0],i={activity:void 0!==(n=n||{}).activity?n.activity:this.activity},void 0!==n.callback&&(i.callback=n.callback),void 0!==n.lastSHA1&&(i.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(i.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&TinCan.Utils.isApplicationJSON(n.contentType)&&(i.method="POST")),r.saveActivityProfile(t,e,i);this.log("[warning] setActivityProfile: No LRSs added yet (activity profile not saved)")},deleteActivityProfile:function(t,e){var n,i;if(this.log("deleteActivityProfile"),0<this.recordStores.length)return i=this.recordStores[0],n={activity:void 0!==(e=e||{}).activity?e.activity:this.activity},void 0!==e.callback&&(n.callback=e.callback),i.dropActivityProfile(t,n);this.log("[warning] deleteActivityProfile: No LRSs added yet (activity profile not deleted)")},getAgentProfile:function(t,e){var n,i;if(this.log("getAgentProfile"),0<this.recordStores.length)return i=this.recordStores[0],n={agent:void 0!==(e=e||{}).agent?e.agent:this.actor},void 0!==e.callback&&(n.callback=e.callback),i.retrieveAgentProfile(t,n);this.log("[warning] getAgentProfile: No LRSs added yet (agent profile not retrieved)")},setAgentProfile:function(t,e,n){var i,r;if(this.log("setAgentProfile"),0<this.recordStores.length)return r=this.recordStores[0],i={agent:void 0!==(n=n||{}).agent?n.agent:this.actor},void 0!==n.callback&&(i.callback=n.callback),void 0!==n.lastSHA1&&(i.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(i.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&TinCan.Utils.isApplicationJSON(n.contentType)&&(i.method="POST")),r.saveAgentProfile(t,e,i);this.log("[warning] setAgentProfile: No LRSs added yet (agent profile not saved)")},deleteAgentProfile:function(t,e){var n,i;if(this.log("deleteAgentProfile"),0<this.recordStores.length)return i=this.recordStores[0],n={agent:void 0!==(e=e||{}).agent?e.agent:this.actor},void 0!==e.callback&&(n.callback=e.callback),i.dropAgentProfile(t,n);this.log("[warning] deleteAgentProfile: No LRSs added yet (agent profile not deleted)")}},TinCan.DEBUG=!1,TinCan.enableDebug=function(){TinCan.DEBUG=!0},TinCan.disableDebug=function(){TinCan.DEBUG=!1},TinCan.versions=function(){return["1.0.1","1.0.0","0.95","0.9"]},module.exports=TinCan}(),function(){"use strict";TinCan.Utils={getUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},getISODateString:function(t){function e(t,e){var n,i;for(null==t&&(t=0),null==e&&(e=2),n=Math.pow(10,e-1),i=t.toString();t<n&&1<n;)i="0"+i,n/=10;return i}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"."+e(t.getUTCMilliseconds(),3)+"Z"},convertISO8601DurationToMilliseconds:function(t){var e,n,i,r,o=0<=t.indexOf("-"),s=t.indexOf("T"),a=t.indexOf("H"),l=t.indexOf("M"),u=t.indexOf("S");if(-1===s||-1!==l&&l<s||-1!==t.indexOf("D")||-1!==t.indexOf("Y"))throw new Error("ISO 8601 timestamps including years, months and/or days are not currently supported");return e=-1===a?(a=s,0):parseInt(t.slice(s+1,a),10),n=-1===l?(l=s,0):parseInt(t.slice(a+1,l),10),i=parseFloat(t.slice(l+1,u)),r=parseInt(1e3*(60*(60*e+n)+i),10),isNaN(r)&&(r=0),o&&(r*=-1),r},convertMillisecondsToISO8601Duration:function(t){var e,n,i=parseInt(t,10),r="",o="";return i<0&&(r="-",i*=-1),o=r+"PT",0<(e=parseInt(i/36e5,10))&&(o+=e+"H"),0<(n=parseInt(i%36e5/6e4,10))&&(o+=n+"M"),o+=i%36e5%6e4/1e3+"S"},getSHA1String:function(t){return CryptoJS.SHA1(t).toString(CryptoJS.enc.Hex)},getBase64String:function(t){return CryptoJS.enc.Base64.stringify(CryptoJS.enc.Latin1.parse(t))},getLangDictionaryValue:function(t,e){var n,i=this[t];if(void 0!==e&&void 0!==i[e])return i[e];if(void 0!==i.und)return i.und;if(void 0!==i["en-US"])return i["en-US"];for(n in i)if(i.hasOwnProperty(n))return i[n];return""},parseURL:function(t){function e(t){return decodeURIComponent(t.replace(s," "))}var n,i,r,o,s=/\+/g,a=/([^&=]+)=?([^&]*)/g;if(n=new RegExp(["^(https?:)//","(([^:/?#]*)(?::([0-9]+))?)","(/[^?#]*)","(\\?[^#]*|)","(#.*|)$"].join("")),(r={protocol:(i=t.match(n))[1],host:i[2],hostname:i[3],port:i[4],pathname:i[5],search:i[6],hash:i[7],params:{}}).path=r.protocol+"//"+r.host+r.pathname,""!==r.search)for(;o=a.exec(r.search.substring(1));)r.params[e(o[1])]=e(o[2]);return r},getServerRoot:function(t){var e=t.split("/");return e[0]+"//"+e[2]},getContentTypeFromHeader:function(t){return String(t).split(";")[0]},isApplicationJSON:function(t){return 0===TinCan.Utils.getContentTypeFromHeader(t).toLowerCase().indexOf("application/json")}}}(),function(){"use strict";var t=TinCan.LRS=function(t){this.log("constructor"),this.endpoint=null,this.version=null,this.auth=null,this.allowFail=!0,this.extended=null,this.init(t)};t.prototype={LOG_SRC:"LRS",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=TinCan.versions(),i=!1;if((t=t||{}).hasOwnProperty("alertOnRequestFailure")&&this.log("'alertOnRequestFailure' is deprecated (alerts have been removed) no need to set it now"),!t.hasOwnProperty("endpoint")||null===t.endpoint||""===t.endpoint)throw this.log("[error] LRS invalid: no endpoint"),{code:3,mesg:"LRS invalid: no endpoint"};if(this.endpoint=String(t.endpoint),"/"!==this.endpoint.slice(-1)&&(this.log("adding trailing slash to endpoint"),this.endpoint+="/"),t.hasOwnProperty("allowFail")&&(this.allowFail=t.allowFail),t.hasOwnProperty("auth")?this.auth=t.auth:t.hasOwnProperty("username")&&t.hasOwnProperty("password")&&(this.auth="Basic "+TinCan.Utils.getBase64String(t.username+":"+t.password)),t.hasOwnProperty("extended")&&(this.extended=t.extended),this._initByEnvironment(t),void 0!==t.version){for(this.log("version: "+t.version),e=0;e<n.length;e+=1)if(n[e]===t.version){i=!0;break}if(!i)throw this.log("[error] LRS invalid: version not supported ("+t.version+")"),{code:5,mesg:"LRS invalid: version not supported ("+t.version+")"};this.version=t.version}else this.version=n[0]},_initByEnvironment:function(){this.log("_initByEnvironment not overloaded - no environment loaded?")},_makeRequest:function(){this.log("_makeRequest not overloaded - no environment loaded?")},_IEModeConversion:function(){this.log("_IEModeConversion not overloaded - browser environment not loaded.")},sendRequest:function(t){this.log("sendRequest");var e,n=this.endpoint+t.url,i={};if(0===t.url.indexOf("http")&&(n=t.url),null!==this.extended)for(e in t.params=t.params||{},this.extended)this.extended.hasOwnProperty(e)&&(t.params.hasOwnProperty(e)||null!==this.extended[e]&&(t.params[e]=this.extended[e]));for(e in i.Authorization=this.auth,"0.9"!==this.version&&(i["X-Experience-API-Version"]=this.version),t.headers)t.headers.hasOwnProperty(e)&&(i[e]=t.headers[e]);return this._makeRequest(n,i,t)},about:function(i){var t,e,n;if(this.log("about"),t={url:"about",method:"GET",params:{}},void 0!==(i=i||{}).callback&&(n=function(t,e){var n=e;null===t&&(n=TinCan.About.fromJSON(e.responseText)),i.callback(t,n)},t.callback=n),e=this.sendRequest(t),!n)return null===e.err&&(e.xhr=TinCan.About.fromJSON(e.xhr.responseText)),e},saveStatement:function(t,e){var n,i;this.log("saveStatement"),e=e||{};try{i=t.asVersion(this.version)}catch(t){return this.allowFail?(this.log("[warning] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}return n={url:"statements",data:JSON.stringify(i),headers:{"Content-Type":"application/json"}},null!==t.id?(n.method="PUT",n.params={statementId:t.id}):n.method="POST",void 0!==e.callback&&(n.callback=e.callback),this.sendRequest(n)},retrieveStatement:function(t,i){var e,n,r;return this.log("retrieveStatement"),e={url:"statements",method:"GET",params:{statementId:t}},void 0!==(i=i||{}).callback&&(r=function(t,e){var n=e;null===t&&(n=TinCan.Statement.fromJSON(e.responseText)),i.callback(t,n)},e.callback=r),n=this.sendRequest(e),r||(n.statement=null)===n.err&&(n.statement=TinCan.Statement.fromJSON(n.xhr.responseText)),n},retrieveVoidedStatement:function(t,i){var e,n,r;return this.log("retrieveVoidedStatement"),i=i||{},e={url:"statements",method:"GET",params:{}},"0.9"===this.version||"0.95"===this.version?e.params.statementId=t:e.params.voidedStatementId=t,void 0!==i.callback&&(r=function(t,e){var n=e;null===t&&(n=TinCan.Statement.fromJSON(e.responseText)),i.callback(t,n)},e.callback=r),n=this.sendRequest(e),r||(n.statement=null)===n.err&&(n.statement=TinCan.Statement.fromJSON(n.xhr.responseText)),n},saveStatements:function(t,e){this.log("saveStatements");var n,i,r,o=[];if(e=e||{},0===t.length)return void 0!==e.callback?void e.callback(new Error("no statements"),null):{err:new Error("no statements"),xhr:null};for(r=0;r<t.length;r+=1){try{i=t[r].asVersion(this.version)}catch(t){return this.allowFail?(this.log("[warning] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}o.push(i)}return n={url:"statements",method:"POST",data:JSON.stringify(o),headers:{"Content-Type":"application/json"}},void 0!==e.callback&&(n.callback=e.callback),this.sendRequest(n)},queryStatements:function(i){var t,e,n;this.log("queryStatements"),(i=i||{}).params=i.params||{};try{t=this._queryStatementsRequestCfg(i)}catch(t){return this.log("[error] Query statements failed - "+t),void 0!==i.callback&&i.callback(t,{}),{err:t,statementsResult:null}}return void 0!==i.callback&&(n=function(t,e){var n=e;null===t&&(n=TinCan.StatementsResult.fromJSON(e.responseText)),i.callback(t,n)},t.callback=n),(e=this.sendRequest(t)).config=t,n||(e.statementsResult=null)===e.err&&(e.statementsResult=TinCan.StatementsResult.fromJSON(e.xhr.responseText)),e},_queryStatementsRequestCfg:function(t){this.log("_queryStatementsRequestCfg");var e,n,i={},r={url:"statements",method:"GET",params:i},o=["agent","actor","object","instructor"],s=["verb","activity"],a=["registration","context","since","until","limit","authoritative","sparse","ascending","related_activities","related_agents","format","attachments"],l={verb:!0,registration:!0,since:!0,until:!0,limit:!0,ascending:!0},u={.9:{supported:{actor:!0,instructor:!0,target:!0,object:!0,context:!0,authoritative:!0,sparse:!0}},"1.0.0":{supported:{agent:!0,activity:!0,related_activities:!0,related_agents:!0,format:!0,attachments:!0}}};for(n in u[.95]=u[.9],u["1.0.1"]=u["1.0.0"],t.params.hasOwnProperty("target")&&(t.params.object=t.params.target),t.params)if(t.params.hasOwnProperty(n)&&void 0===l[n]&&void 0===u[this.version].supported[n])throw"Unrecognized query parameter configured: "+n;for(e=0;e<o.length;e+=1)void 0!==t.params[o[e]]&&(i[o[e]]=JSON.stringify(t.params[o[e]].asVersion(this.version)));for(e=0;e<s.length;e+=1)void 0!==t.params[s[e]]&&(i[s[e]]=t.params[s[e]].id);for(e=0;e<a.length;e+=1)void 0!==t.params[a[e]]&&(i[a[e]]=t.params[a[e]]);return r},moreStatements:function(i){var t,e,n,r,o;return this.log("moreStatements: "+i.url),i=i||{},r=TinCan.Utils.parseURL(i.url),o=TinCan.Utils.getServerRoot(this.endpoint),0===r.path.indexOf("/statements")&&(r.path=this.endpoint.replace(o,"")+r.path,this.log("converting non-standard more URL to "+r.path)),0!==r.path.indexOf("/")&&(r.path="/"+r.path),t={method:"GET",url:o+r.path,params:r.params},void 0!==i.callback&&(n=function(t,e){var n=e;null===t&&(n=TinCan.StatementsResult.fromJSON(e.responseText)),i.callback(t,n)},t.callback=n),(e=this.sendRequest(t)).config=t,n||(e.statementsResult=null)===e.err&&(e.statementsResult=TinCan.StatementsResult.fromJSON(e.xhr.responseText)),e},retrieveState:function(i,r){this.log("retrieveState");var t,e,n={},o={};if(n={stateId:i,activityId:r.activity.id},"0.9"===this.version?n.actor=JSON.stringify(r.agent.asVersion(this.version)):n.agent=JSON.stringify(r.agent.asVersion(this.version)),void 0!==r.registration&&null!==r.registration&&("0.9"===this.version?n.registrationId=r.registration:n.registration=r.registration),o={url:"activities/state",method:"GET",params:n,ignore404:!0},void 0!==r.callback&&(e=function(t,e){var n=e;if(null===t)if(404===e.status)n=null;else if(n=new TinCan.State({id:i,contents:e.responseText}),void 0!==e.getResponseHeader&&null!==e.getResponseHeader("ETag")&&""!==e.getResponseHeader("ETag")?n.etag=e.getResponseHeader("ETag"):n.etag=TinCan.Utils.getSHA1String(e.responseText),void 0!==e.contentType?n.contentType=e.contentType:void 0!==e.getResponseHeader&&null!==e.getResponseHeader("Content-Type")&&""!==e.getResponseHeader("Content-Type")&&(n.contentType=e.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(n.contentType))try{n.contents=JSON.parse(n.contents)}catch(t){this.log("retrieveState - failed to deserialize JSON: "+t)}r.callback(t,n)},o.callback=e),t=this.sendRequest(o),!e&&(t.state=null)===t.err&&404!==t.xhr.status&&(t.state=new TinCan.State({id:i,contents:t.xhr.responseText}),void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("ETag")&&""!==t.xhr.getResponseHeader("ETag")?t.state.etag=t.xhr.getResponseHeader("ETag"):t.state.etag=TinCan.Utils.getSHA1String(t.xhr.responseText),void 0!==t.xhr.contentType?t.state.contentType=t.xhr.contentType:void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("Content-Type")&&""!==t.xhr.getResponseHeader("Content-Type")&&(t.state.contentType=t.xhr.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(t.state.contentType)))try{t.state.contents=JSON.parse(t.state.contents)}catch(t){this.log("retrieveState - failed to deserialize JSON: "+t)}return t},saveState:function(t,e,n){var i,r;return this.log("saveState"),void 0===n.contentType&&(n.contentType="application/octet-stream"),"object"==typeof e&&TinCan.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),void 0!==n.method&&"POST"===n.method||(n.method="PUT"),i={stateId:t,activityId:n.activity.id},"0.9"===this.version?i.actor=JSON.stringify(n.agent.asVersion(this.version)):i.agent=JSON.stringify(n.agent.asVersion(this.version)),void 0!==n.registration&&null!==n.registration&&("0.9"===this.version?i.registrationId=n.registration:i.registration=n.registration),r={url:"activities/state",method:n.method,params:i,data:e,headers:{"Content-Type":n.contentType}},void 0!==n.callback&&(r.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1&&(r.headers["If-Match"]=n.lastSHA1),this.sendRequest(r)},dropState:function(t,e){var n,i;return this.log("dropState"),n={activityId:e.activity.id},"0.9"===this.version?n.actor=JSON.stringify(e.agent.asVersion(this.version)):n.agent=JSON.stringify(e.agent.asVersion(this.version)),null!==t&&(n.stateId=t),void 0!==e.registration&&null!==e.registration&&("0.9"===this.version?n.registrationId=e.registration:n.registration=e.registration),i={url:"activities/state",method:"DELETE",params:n},void 0!==e.callback&&(i.callback=e.callback),this.sendRequest(i)},retrieveActivityProfile:function(i,r){this.log("retrieveActivityProfile");var t,e,n={};if(n={url:"activities/profile",method:"GET",params:{profileId:i,activityId:r.activity.id},ignore404:!0},void 0!==r.callback&&(e=function(t,e){var n=e;if(null===t)if(404===e.status)n=null;else if(n=new TinCan.ActivityProfile({id:i,activity:r.activity,contents:e.responseText}),void 0!==e.getResponseHeader&&null!==e.getResponseHeader("ETag")&&""!==e.getResponseHeader("ETag")?n.etag=e.getResponseHeader("ETag"):n.etag=TinCan.Utils.getSHA1String(e.responseText),void 0!==e.contentType?n.contentType=e.contentType:void 0!==e.getResponseHeader&&null!==e.getResponseHeader("Content-Type")&&""!==e.getResponseHeader("Content-Type")&&(n.contentType=e.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(n.contentType))try{n.contents=JSON.parse(n.contents)}catch(t){this.log("retrieveActivityProfile - failed to deserialize JSON: "+t)}r.callback(t,n)},n.callback=e),t=this.sendRequest(n),!e&&(t.profile=null)===t.err&&404!==t.xhr.status&&(t.profile=new TinCan.ActivityProfile({id:i,activity:r.activity,contents:t.xhr.responseText}),void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("ETag")&&""!==t.xhr.getResponseHeader("ETag")?t.profile.etag=t.xhr.getResponseHeader("ETag"):t.profile.etag=TinCan.Utils.getSHA1String(t.xhr.responseText),void 0!==t.xhr.contentType?t.profile.contentType=t.xhr.contentType:void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("Content-Type")&&""!==t.xhr.getResponseHeader("Content-Type")&&(t.profile.contentType=t.xhr.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(t.profile.contentType)))try{t.profile.contents=JSON.parse(t.profile.contents)}catch(t){this.log("retrieveActivityProfile - failed to deserialize JSON: "+t)}return t},saveActivityProfile:function(t,e,n){var i;return this.log("saveActivityProfile"),void 0===n.contentType&&(n.contentType="application/octet-stream"),void 0!==n.method&&"POST"===n.method||(n.method="PUT"),"object"==typeof e&&TinCan.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),i={url:"activities/profile",method:n.method,params:{profileId:t,activityId:n.activity.id},data:e,headers:{"Content-Type":n.contentType}},void 0!==n.callback&&(i.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1?i.headers["If-Match"]=n.lastSHA1:i.headers["If-None-Match"]="*",this.sendRequest(i)},dropActivityProfile:function(t,e){var n;return this.log("dropActivityProfile"),n={url:"activities/profile",method:"DELETE",params:{profileId:t,activityId:e.activity.id}},void 0!==e.callback&&(n.callback=e.callback),this.sendRequest(n)},retrieveAgentProfile:function(i,r){this.log("retrieveAgentProfile");var t,e,n={};if(n={method:"GET",params:{profileId:i},ignore404:!0},"0.9"===this.version?(n.url="actors/profile",n.params.actor=JSON.stringify(r.agent.asVersion(this.version))):(n.url="agents/profile",n.params.agent=JSON.stringify(r.agent.asVersion(this.version))),void 0!==r.callback&&(e=function(t,e){var n=e;if(null===t)if(404===e.status)n=null;else if(n=new TinCan.AgentProfile({id:i,agent:r.agent,contents:e.responseText}),void 0!==e.getResponseHeader&&null!==e.getResponseHeader("ETag")&&""!==e.getResponseHeader("ETag")?n.etag=e.getResponseHeader("ETag"):n.etag=TinCan.Utils.getSHA1String(e.responseText),void 0!==e.contentType?n.contentType=e.contentType:void 0!==e.getResponseHeader&&null!==e.getResponseHeader("Content-Type")&&""!==e.getResponseHeader("Content-Type")&&(n.contentType=e.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(n.contentType))try{n.contents=JSON.parse(n.contents)}catch(t){this.log("retrieveAgentProfile - failed to deserialize JSON: "+t)}r.callback(t,n)},n.callback=e),t=this.sendRequest(n),!e&&(t.profile=null)===t.err&&404!==t.xhr.status&&(t.profile=new TinCan.AgentProfile({id:i,agent:r.agent,contents:t.xhr.responseText}),void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("ETag")&&""!==t.xhr.getResponseHeader("ETag")?t.profile.etag=t.xhr.getResponseHeader("ETag"):t.profile.etag=TinCan.Utils.getSHA1String(t.xhr.responseText),void 0!==t.xhr.contentType?t.profile.contentType=t.xhr.contentType:void 0!==t.xhr.getResponseHeader&&null!==t.xhr.getResponseHeader("Content-Type")&&""!==t.xhr.getResponseHeader("Content-Type")&&(t.profile.contentType=t.xhr.getResponseHeader("Content-Type")),TinCan.Utils.isApplicationJSON(t.profile.contentType)))try{t.profile.contents=JSON.parse(t.profile.contents)}catch(t){this.log("retrieveAgentProfile - failed to deserialize JSON: "+t)}return t},saveAgentProfile:function(t,e,n){var i;return this.log("saveAgentProfile"),void 0===n.contentType&&(n.contentType="application/octet-stream"),void 0!==n.method&&"POST"===n.method||(n.method="PUT"),"object"==typeof e&&TinCan.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),i={method:n.method,params:{profileId:t},data:e,headers:{"Content-Type":n.contentType}},"0.9"===this.version?(i.url="actors/profile",i.params.actor=JSON.stringify(n.agent.asVersion(this.version))):(i.url="agents/profile",i.params.agent=JSON.stringify(n.agent.asVersion(this.version))),void 0!==n.callback&&(i.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1?i.headers["If-Match"]=n.lastSHA1:i.headers["If-None-Match"]="*",this.sendRequest(i)},dropAgentProfile:function(t,e){var n,i;return this.log("dropAgentProfile"),i={method:"DELETE",params:n={profileId:t}},"0.9"===this.version?(i.url="actors/profile",n.actor=JSON.stringify(e.agent.asVersion(this.version))):(i.url="agents/profile",n.agent=JSON.stringify(e.agent.asVersion(this.version))),void 0!==e.callback&&(i.callback=e.callback),this.sendRequest(i)}},t.syncEnabled=null}(),function(){"use strict";var n=TinCan.AgentAccount=function(t){this.log("constructor"),this.homePage=null,this.name=null,this.init(t)};n.prototype={LOG_SRC:"AgentAccount",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["name","homePage"];for(void 0!==(t=t||{}).accountServiceHomePage&&(t.homePage=t.accountServiceHomePage),void 0!==t.accountName&&(t.name=t.accountName),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(){this.log("toString");var t="";return null!==this.name||null!==this.homePage?(t+=null!==this.name?this.name:"-",t+=":",t+=null!==this.homePage?this.homePage:"-"):t="AgentAccount: unidentified",t},asVersion:function(t){this.log("asVersion: "+t);var e={};return"0.9"===(t=t||TinCan.versions()[0])?(e.accountName=this.name,e.accountServiceHomePage=this.homePage):(e.name=this.name,e.homePage=this.homePage),e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Agent=function(t){this.log("constructor"),this.name=null,this.mbox=null,this.mbox_sha1sum=null,this.openid=null,this.account=null,this.degraded=!1,this.init(t)};n.prototype={objectType:"Agent",LOG_SRC:"Agent",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n,i=["name","mbox","mbox_sha1sum","openid"];for(void 0!==(t=t||{}).lastName||void 0!==t.firstName?(t.name="",void 0!==t.firstName&&0<t.firstName.length&&(t.name=t.firstName[0],1<t.firstName.length&&(this.degraded=!0)),""!==t.name&&(t.name+=" "),void 0!==t.lastName&&0<t.lastName.length&&(t.name+=t.lastName[0],1<t.lastName.length&&(this.degraded=!0))):void 0===t.familyName&&void 0===t.givenName||(t.name="",void 0!==t.givenName&&0<t.givenName.length&&(t.name=t.givenName[0],1<t.givenName.length&&(this.degraded=!0)),""!==t.name&&(t.name+=" "),void 0!==t.familyName&&0<t.familyName.length&&(t.name+=t.familyName[0],1<t.familyName.length&&(this.degraded=!0))),"object"==typeof t.name&&null!==t.name&&(1<t.name.length&&(this.degraded=!0),t.name=t.name[0]),"object"==typeof t.mbox&&null!==t.mbox&&(1<t.mbox.length&&(this.degraded=!0),t.mbox=t.mbox[0]),"object"==typeof t.mbox_sha1sum&&null!==t.mbox_sha1sum&&(1<t.mbox_sha1sum.length&&(this.degraded=!0),t.mbox_sha1sum=t.mbox_sha1sum[0]),"object"==typeof t.openid&&null!==t.openid&&(1<t.openid.length&&(this.degraded=!0),t.openid=t.openid[0]),"object"==typeof t.account&&null!==t.account&&void 0===t.account.homePage&&void 0===t.account.name&&(0===t.account.length?delete t.account:(1<t.account.length&&(this.degraded=!0),t.account=t.account[0])),t.hasOwnProperty("account")&&(t.account instanceof TinCan.AgentAccount?this.account=t.account:this.account=new TinCan.AgentAccount(t.account)),e=0;e<i.length;e+=1)t.hasOwnProperty(i[e])&&null!==t[i[e]]&&(n=t[i[e]],"mbox"===i[e]&&-1===n.indexOf("mailto:")&&(n="mailto:"+n),this[i[e]]=n)},toString:function(){return this.log("toString"),null!==this.name?this.name:null!==this.mbox?this.mbox.replace("mailto:",""):null!==this.mbox_sha1sum?this.mbox_sha1sum:null!==this.openid?this.openid:null!==this.account?this.account.toString():this.objectType+": unidentified"},asVersion:function(t){this.log("asVersion: "+t);var e={objectType:this.objectType};return"0.9"===(t=t||TinCan.versions()[0])?(null!==this.mbox?e.mbox=[this.mbox]:null!==this.mbox_sha1sum?e.mbox_sha1sum=[this.mbox_sha1sum]:null!==this.openid?e.openid=[this.openid]:null!==this.account&&(e.account=[this.account.asVersion(t)]),null!==this.name&&(e.name=[this.name])):(null!==this.mbox?e.mbox=this.mbox:null!==this.mbox_sha1sum?e.mbox_sha1sum=this.mbox_sha1sum:null!==this.openid?e.openid=this.openid:null!==this.account&&(e.account=this.account.asVersion(t)),null!==this.name&&(e.name=this.name)),e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Group=function(t){this.log("constructor"),this.name=null,this.mbox=null,this.mbox_sha1sum=null,this.openid=null,this.account=null,this.member=[],this.init(t)};n.prototype={objectType:"Group",LOG_SRC:"Group",log:TinCan.prototype.log,init:function(t){var e;if(this.log("init"),t=t||{},TinCan.Agent.prototype.init.call(this,t),void 0!==t.member)for(e=0;e<t.member.length;e+=1)t.member[e]instanceof TinCan.Agent?this.member.push(t.member[e]):this.member.push(new TinCan.Agent(t.member[e]))},toString:function(t){this.log("toString");var e=TinCan.Agent.prototype.toString.call(this,t);return e!==this.objectType+": unidentified"&&(e=this.objectType+": "+e),e},asVersion:function(t){var e,n;if(this.log("asVersion: "+t),t=t||TinCan.versions()[0],e=TinCan.Agent.prototype.asVersion.call(this,t),0<this.member.length)for(e.member=[],n=0;n<this.member.length;n+=1)e.member.push(this.member[n].asVersion(t));return e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var r={"http://adlnet.gov/expapi/verbs/experienced":"experienced","http://adlnet.gov/expapi/verbs/attended":"attended","http://adlnet.gov/expapi/verbs/attempted":"attempted","http://adlnet.gov/expapi/verbs/completed":"completed","http://adlnet.gov/expapi/verbs/passed":"passed","http://adlnet.gov/expapi/verbs/failed":"failed","http://adlnet.gov/expapi/verbs/answered":"answered","http://adlnet.gov/expapi/verbs/interacted":"interacted","http://adlnet.gov/expapi/verbs/imported":"imported","http://adlnet.gov/expapi/verbs/created":"created","http://adlnet.gov/expapi/verbs/shared":"shared","http://adlnet.gov/expapi/verbs/voided":"voided"},n=TinCan.Verb=function(t){this.log("constructor"),this.id=null,this.display=null,this.init(t)};n.prototype={LOG_SRC:"Verb",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n,i=["id","display"];if("string"==typeof t){for(n in this.id=t,this.display={und:this.id},r)if(r.hasOwnProperty(n)&&r[n]===t){this.id=n;break}}else{for(t=t||{},e=0;e<i.length;e+=1)t.hasOwnProperty(i[e])&&null!==t[i[e]]&&(this[i[e]]=t[i[e]]);null===this.display&&void 0!==r[this.id]&&(this.display={und:r[this.id]})}},toString:function(t){return this.log("toString"),null!==this.display?this.getLangDictionaryValue("display",t):this.id},asVersion:function(t){var e;return this.log("asVersion"),"0.9"===(t=t||TinCan.versions()[0])?e=r[this.id]:(e={id:this.id},null!==this.display&&(e.display=this.display)),e},getLangDictionaryValue:TinCan.Utils.getLangDictionaryValue},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Result=function(t){this.log("constructor"),this.score=null,this.success=null,this.completion=null,this.duration=null,this.response=null,this.extensions=null,this.init(t)};n.prototype={LOG_SRC:"Result",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["completion","duration","extensions","response","success"];for((t=t||{}).hasOwnProperty("score")&&null!==t.score&&(t.score instanceof TinCan.Score?this.score=t.score:this.score=new TinCan.Score(t.score)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);"Completed"===this.completion&&(this.completion=!0)},asVersion:function(t){this.log("asVersion");var e,n={},i=["success","duration","response","extensions"],r=["score"];for(t=t||TinCan.versions()[0],e=0;e<i.length;e+=1)null!==this[i[e]]&&(n[i[e]]=this[i[e]]);for(e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]].asVersion(t));return null!==this.completion&&("0.9"===t?this.completion&&(n.completion="Completed"):n.completion=this.completion),n}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Score=function(t){this.log("constructor"),this.scaled=null,this.raw=null,this.min=null,this.max=null,this.init(t)};n.prototype={LOG_SRC:"Score",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["scaled","raw","min","max"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},asVersion:function(t){this.log("asVersion");var e,n={},i=["scaled","raw","min","max"];for(t=t||TinCan.versions()[0],e=0;e<i.length;e+=1)null!==this[i[e]]&&(n[i[e]]=this[i[e]]);return n}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.InteractionComponent=function(t){this.log("constructor"),this.id=null,this.description=null,this.init(t)};n.prototype={LOG_SRC:"InteractionComponent",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id","description"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},asVersion:function(t){this.log("asVersion");var e,n,i={id:this.id},r=["description"];for(t=t||TinCan.versions()[0],e=0;e<r.length;e+=1)null!==this[n=r[e]]&&(i[n]=this[n]);return i},getLangDictionaryValue:TinCan.Utils.getLangDictionaryValue},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var a={"http://adlnet.gov/expapi/activities/course":"course","http://adlnet.gov/expapi/activities/module":"module","http://adlnet.gov/expapi/activities/meeting":"meeting","http://adlnet.gov/expapi/activities/media":"media","http://adlnet.gov/expapi/activities/performance":"performance","http://adlnet.gov/expapi/activities/simulation":"simulation","http://adlnet.gov/expapi/activities/assessment":"assessment","http://adlnet.gov/expapi/activities/interaction":"interaction","http://adlnet.gov/expapi/activities/cmi.interaction":"cmi.interaction","http://adlnet.gov/expapi/activities/question":"question","http://adlnet.gov/expapi/activities/objective":"objective","http://adlnet.gov/expapi/activities/link":"link"},n=TinCan.ActivityDefinition=function(t){this.log("constructor"),this.name=null,this.description=null,this.type=null,this.moreInfo=null,this.extensions=null,this.interactionType=null,this.correctResponsesPattern=null,this.choices=null,this.scale=null,this.source=null,this.target=null,this.steps=null,this.init(t)};n.prototype={LOG_SRC:"ActivityDefinition",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n,i,r=["name","description","moreInfo","extensions","correctResponsesPattern"],o=[];if((t=t||{}).hasOwnProperty("type")&&null!==t.type){for(i in a)a.hasOwnProperty(i)&&a[i]===t.type&&(t.type=a[i]);this.type=t.type}if(t.hasOwnProperty("interactionType")&&null!==t.interactionType&&(this.interactionType=t.interactionType,"choice"===t.interactionType||"sequencing"===t.interactionType?o.push("choices"):"likert"===t.interactionType?o.push("scale"):"matching"===t.interactionType?(o.push("source"),o.push("target")):"performance"===t.interactionType&&o.push("steps"),0<o.length))for(e=0;e<o.length;e+=1)if(i=o[e],t.hasOwnProperty(i)&&null!==t[i])for(this[i]=[],n=0;n<t[i].length;n+=1)t[i][n]instanceof TinCan.InteractionComponent?this[i].push(t[i][n]):this[i].push(new TinCan.InteractionComponent(t[i][n]));for(e=0;e<r.length;e+=1)t.hasOwnProperty(r[e])&&null!==t[r[e]]&&(this[r[e]]=t[r[e]])},toString:function(t){return this.log("toString"),null!==this.name?this.getLangDictionaryValue("name",t):null!==this.description?this.getLangDictionaryValue("description",t):""},asVersion:function(t){this.log("asVersion");var e,n,i,r={},o=["name","description","interactionType","correctResponsesPattern","extensions"],s=["choices","scale","source","target","steps"];for(t=t||TinCan.versions()[0],null!==this.type&&(r.type="0.9"===t?a[this.type]:this.type),e=0;e<o.length;e+=1)null!==this[i=o[e]]&&(r[i]=this[i]);for(e=0;e<s.length;e+=1)if(null!==this[i=s[e]])for(r[i]=[],n=0;n<this[i].length;n+=1)r[i].push(this[i][n].asVersion(t));return 0!==t.indexOf("0.9")&&null!==this.moreInfo&&(r.moreInfo=this.moreInfo),r},getLangDictionaryValue:TinCan.Utils.getLangDictionaryValue},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Activity=function(t){this.log("constructor"),this.objectType="Activity",this.id=null,this.definition=null,this.init(t)};n.prototype={LOG_SRC:"Activity",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id"];for((t=t||{}).hasOwnProperty("definition")&&(t.definition instanceof TinCan.ActivityDefinition?this.definition=t.definition:this.definition=new TinCan.ActivityDefinition(t.definition)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(t){this.log("toString");var e="";return null!==this.definition&&""!==(e=this.definition.toString(t))?e:null!==this.id?this.id:"Activity: unidentified"},asVersion:function(t){this.log("asVersion");var e={id:this.id,objectType:this.objectType};return t=t||TinCan.versions()[0],null!==this.definition&&(e.definition=this.definition.asVersion(t)),e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.ContextActivities=function(t){this.log("constructor"),this.category=null,this.parent=null,this.grouping=null,this.other=null,this.init(t)};n.prototype={LOG_SRC:"ContextActivities",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n,i,r,o=["category","parent","grouping","other"];for(t=t||{},e=0;e<o.length;e+=1)if(i=o[e],t.hasOwnProperty(i)&&null!==t[i])if("[object Array]"===Object.prototype.toString.call(t[i]))for(n=0;n<t[i].length;n+=1)this.add(i,t[i][n]);else r=t[i],this.add(i,r)},add:function(t,e){if("category"===t||"parent"===t||"grouping"===t||"other"===t)return null===this[t]&&(this[t]=[]),e instanceof TinCan.Activity||(e="string"==typeof e?{id:e}:e,e=new TinCan.Activity(e)),this[t].push(e),this[t].length-1},asVersion:function(t){this.log("asVersion");var e,n,i={},r=["parent","grouping","other"];for(t=t||TinCan.versions()[0],e=0;e<r.length;e+=1)if(null!==this[r[e]]&&0<this[r[e]].length)if("0.9"===t||"0.95"===t)1<this[r[e]].length&&this.log("[warning] version does not support multiple values in: "+r[e]),i[r[e]]=this[r[e]][0].asVersion(t);else for(i[r[e]]=[],n=0;n<this[r[e]].length;n+=1)i[r[e]].push(this[r[e]][n].asVersion(t));if(null!==this.category&&0<this.category.length){if("0.9"===t||"0.95"===t)throw this.log("[error] version does not support the 'category' property: "+t),new Error(t+" does not support the 'category' property");for(i.category=[],e=0;e<this.category.length;e+=1)i.category.push(this.category[e].asVersion(t))}return i}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Context=function(t){this.log("constructor"),this.registration=null,this.instructor=null,this.team=null,this.contextActivities=null,this.revision=null,this.platform=null,this.language=null,this.statement=null,this.extensions=null,this.init(t)};n.prototype={LOG_SRC:"Context",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n,i,r=["registration","revision","platform","language","extensions"],o=["instructor","team"];for(t=t||{},e=0;e<r.length;e+=1)n=r[e],t.hasOwnProperty(n)&&null!==t[n]&&(this[n]=t[n]);for(e=0;e<o.length;e+=1)n=o[e],t.hasOwnProperty(n)&&null!==t[n]&&(void 0!==(i=t[n]).objectType&&"Person"!==i.objectType||(i.objectType="Agent"),"Agent"!==i.objectType||i instanceof TinCan.Agent?"Group"!==i.objectType||i instanceof TinCan.Group||(i=new TinCan.Group(i)):i=new TinCan.Agent(i),this[n]=i);t.hasOwnProperty("contextActivities")&&null!==t.contextActivities&&(t.contextActivities instanceof TinCan.ContextActivities?this.contextActivities=t.contextActivities:this.contextActivities=new TinCan.ContextActivities(t.contextActivities)),t.hasOwnProperty("statement")&&null!==t.statement&&(t.statement instanceof TinCan.StatementRef||t.statement instanceof TinCan.SubStatement?this.statement=t.statement:"StatementRef"===t.statement.objectType?this.statement=new TinCan.StatementRef(t.statement):"SubStatement"===t.statement.objectType?this.statement=new TinCan.SubStatement(t.statement):this.log("Unable to parse statement.context.statement property."))},asVersion:function(t){this.log("asVersion");var e,n={},i=["registration","revision","platform","language","extensions"],r=["instructor","team","contextActivities","statement"];if(t=t||TinCan.versions()[0],this.statement instanceof TinCan.SubStatement&&"0.9"!==t&&"0.95"!==t)throw this.log("[error] version does not support SubStatements in the 'statement' property: "+t),new Error(t+" does not support SubStatements in the 'statement' property");for(e=0;e<i.length;e+=1)null!==this[i[e]]&&(n[i[e]]=this[i[e]]);for(e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]].asVersion(t));return n}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.StatementRef=function(t){this.log("constructor"),this.id=null,this.init(t)};n.prototype={objectType:"StatementRef",LOG_SRC:"StatementRef",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(){return this.log("toString"),this.id},asVersion:function(t){this.log("asVersion");var e={objectType:this.objectType,id:this.id};return"0.9"===t&&(e.objectType="Statement"),e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.SubStatement=function(t){this.log("constructor"),this.actor=null,this.verb=null,this.target=null,this.result=null,this.context=null,this.timestamp=null,this.init(t)};n.prototype={objectType:"SubStatement",LOG_SRC:"SubStatement",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["timestamp"];for((t=t||{}).hasOwnProperty("object")&&(t.target=t.object),t.hasOwnProperty("actor")&&(void 0!==t.actor.objectType&&"Person"!==t.actor.objectType||(t.actor.objectType="Agent"),"Agent"===t.actor.objectType?t.actor instanceof TinCan.Agent?this.actor=t.actor:this.actor=new TinCan.Agent(t.actor):"Group"===t.actor.objectType&&(t.actor instanceof TinCan.Group?this.actor=t.actor:this.actor=new TinCan.Group(t.actor))),t.hasOwnProperty("verb")&&(t.verb instanceof TinCan.Verb?this.verb=t.verb:this.verb=new TinCan.Verb(t.verb)),t.hasOwnProperty("target")&&(t.target instanceof TinCan.Activity||t.target instanceof TinCan.Agent||t.target instanceof TinCan.Group||t.target instanceof TinCan.SubStatement||t.target instanceof TinCan.StatementRef?this.target=t.target:(void 0===t.target.objectType&&(t.target.objectType="Activity"),"Activity"===t.target.objectType?this.target=new TinCan.Activity(t.target):"Agent"===t.target.objectType?this.target=new TinCan.Agent(t.target):"Group"===t.target.objectType?this.target=new TinCan.Group(t.target):"SubStatement"===t.target.objectType?this.target=new TinCan.SubStatement(t.target):"StatementRef"===t.target.objectType?this.target=new TinCan.StatementRef(t.target):this.log("Unrecognized target type: "+t.target.objectType))),t.hasOwnProperty("result")&&(t.result instanceof TinCan.Result?this.result=t.result:this.result=new TinCan.Result(t.result)),t.hasOwnProperty("context")&&(t.context instanceof TinCan.Context?this.context=t.context:this.context=new TinCan.Context(t.context)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(t){return this.log("toString"),(null!==this.actor?this.actor.toString(t):"")+" "+(null!==this.verb?this.verb.toString(t):"")+" "+(null!==this.target?this.target.toString(t):"")},asVersion:function(t){this.log("asVersion");var e,n,i=["timestamp"],r=["actor","verb","result","context"];for(e={objectType:this.objectType},t=t||TinCan.versions()[0],n=0;n<i.length;n+=1)null!==this[i[n]]&&(e[i[n]]=this[i[n]]);for(n=0;n<r.length;n+=1)null!==this[r[n]]&&(e[r[n]]=this[r[n]].asVersion(t));return null!==this.target&&(e.object=this.target.asVersion(t)),"0.9"===t&&(e.objectType="Statement"),e}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.Statement=function(t,e){this.log("constructor"),void 0===(e="number"==typeof e?{storeOriginal:e}:e||{}).storeOriginal&&(e.storeOriginal=null),void 0===e.doStamp&&(e.doStamp=!0),this.id=null,this.actor=null,this.verb=null,this.target=null,this.result=null,this.context=null,this.timestamp=null,this.stored=null,this.authority=null,this.version=null,this.degraded=!1,this.voided=null,this.inProgress=null,this.originalJSON=null,this.init(t,e)};n.prototype={LOG_SRC:"Statement",log:TinCan.prototype.log,init:function(t,e){this.log("init");var n,i=["id","stored","timestamp","version","inProgress","voided"];for(t=t||{},e.storeOriginal&&(this.originalJSON=JSON.stringify(t,null,e.storeOriginal)),t.hasOwnProperty("object")&&(t.target=t.object),t.hasOwnProperty("actor")&&(void 0!==t.actor.objectType&&"Person"!==t.actor.objectType||(t.actor.objectType="Agent"),"Agent"===t.actor.objectType?t.actor instanceof TinCan.Agent?this.actor=t.actor:this.actor=new TinCan.Agent(t.actor):"Group"===t.actor.objectType&&(t.actor instanceof TinCan.Group?this.actor=t.actor:this.actor=new TinCan.Group(t.actor))),t.hasOwnProperty("authority")&&(void 0!==t.authority.objectType&&"Person"!==t.authority.objectType||(t.authority.objectType="Agent"),"Agent"===t.authority.objectType?t.authority instanceof TinCan.Agent?this.authority=t.authority:this.authority=new TinCan.Agent(t.authority):"Group"===t.authority.objectType&&(t.actor instanceof TinCan.Group?this.authority=t.authority:this.authority=new TinCan.Group(t.authority))),t.hasOwnProperty("verb")&&(t.verb instanceof TinCan.Verb?this.verb=t.verb:this.verb=new TinCan.Verb(t.verb)),t.hasOwnProperty("target")&&(t.target instanceof TinCan.Activity||t.target instanceof TinCan.Agent||t.target instanceof TinCan.Group||t.target instanceof TinCan.SubStatement||t.target instanceof TinCan.StatementRef?this.target=t.target:(void 0===t.target.objectType&&(t.target.objectType="Activity"),"Activity"===t.target.objectType?this.target=new TinCan.Activity(t.target):"Agent"===t.target.objectType?this.target=new TinCan.Agent(t.target):"Group"===t.target.objectType?this.target=new TinCan.Group(t.target):"SubStatement"===t.target.objectType?this.target=new TinCan.SubStatement(t.target):"StatementRef"===t.target.objectType?this.target=new TinCan.StatementRef(t.target):this.log("Unrecognized target type: "+t.target.objectType))),t.hasOwnProperty("result")&&(t.result instanceof TinCan.Result?this.result=t.result:this.result=new TinCan.Result(t.result)),t.hasOwnProperty("context")&&(t.context instanceof TinCan.Context?this.context=t.context:this.context=new TinCan.Context(t.context)),n=0;n<i.length;n+=1)t.hasOwnProperty(i[n])&&null!==t[i[n]]&&(this[i[n]]=t[i[n]]);e.doStamp&&this.stamp()},toString:function(t){return this.log("toString"),(null!==this.actor?this.actor.toString(t):"")+" "+(null!==this.verb?this.verb.toString(t):"")+" "+(null!==this.target?this.target.toString(t):"")},asVersion:function(t){this.log("asVersion");var e,n={},i=["id","timestamp"],r=["actor","verb","result","context","authority"];for(t=t||TinCan.versions()[0],e=0;e<i.length;e+=1)null!==this[i[e]]&&(n[i[e]]=this[i[e]]);for(e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]].asVersion(t));return null!==this.target&&(n.object=this.target.asVersion(t)),"0.9"!==t&&"0.95"!==t||null!==this.voided&&(n.voided=this.voided),"0.9"===t&&null!==this.inProgress&&(n.inProgress=this.inProgress),n},stamp:function(){this.log("stamp"),null===this.id&&(this.id=TinCan.Utils.getUUID()),null===this.timestamp&&(this.timestamp=TinCan.Utils.getISODateString(new Date))}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var o=TinCan.StatementsResult=function(t){this.log("constructor"),this.statements=null,this.more=null,this.init(t)};o.prototype={LOG_SRC:"StatementsResult",log:TinCan.prototype.log,init:function(t){this.log("init"),(t=t||{}).hasOwnProperty("statements")&&(this.statements=t.statements),t.hasOwnProperty("more")&&(this.more=t.more)}},o.fromJSON=function(t){o.prototype.log("fromJSON");var e,n,i,r=[];try{e=JSON.parse(t)}catch(t){o.prototype.log("fromJSON - JSON.parse error: "+t)}if(e){for(i=0;i<e.statements.length;i+=1){try{n=new TinCan.Statement(e.statements[i],4)}catch(t){o.prototype.log("fromJSON - statement instantiation failed: "+t+" ("+JSON.stringify(e.statements[i])+")"),n=new TinCan.Statement({id:e.statements[i].id},4)}r.push(n)}e.statements=r}return new o(e)}}(),function(){"use strict";var n=TinCan.State=function(t){this.log("constructor"),this.id=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};n.prototype={LOG_SRC:"State",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.ActivityProfile=function(t){this.log("constructor"),this.id=null,this.activity=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};n.prototype={LOG_SRC:"ActivityProfile",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for((t=t||{}).hasOwnProperty("activity")&&(t.activity instanceof TinCan.Activity?this.activity=t.activity:this.activity=new TinCan.Activity(t.activity)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.AgentProfile=function(t){this.log("constructor"),this.id=null,this.agent=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};n.prototype={LOG_SRC:"AgentProfile",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for((t=t||{}).hasOwnProperty("agent")&&(t.agent instanceof TinCan.Agent?this.agent=t.agent:this.agent=new TinCan.Agent(t.agent)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var n=TinCan.About=function(t){this.log("constructor"),this.version=null,this.init(t)};n.prototype={LOG_SRC:"About",log:TinCan.prototype.log,init:function(t){this.log("init");var e,n=["version"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])}},n.fromJSON=function(t){n.prototype.log("fromJSON");var e=JSON.parse(t);return new n(e)}}(),function(){"use strict";var LOG_SRC="Environment.Browser",nativeRequest,xdrRequest,requestComplete,__delay,__IEModeConversion,env={},log=TinCan.prototype.log;"undefined"!=typeof window?(window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(t){var e,n,i="";if(t instanceof Object){if(t.constructor===Array){for(e=0;e<t.length;e+=1)i+=this.stringify(t[e])+",";return"["+i.substr(0,i.length-1)+"]"}if(t.toString!==Object.prototype.toString)return'"'+t.toString().replace(/"/g,"\\$&")+'"';for(n in t)t.hasOwnProperty(n)&&(i+='"'+n.replace(/"/g,"\\$&")+'":'+this.stringify(t[n])+",");return"{"+i.substr(0,i.length-1)+"}"}return"string"==typeof t?'"'+t.replace(/"/g,"\\$&")+'"':String(t)}}),Date.now||(Date.now=function(){return+new Date}),env.hasCORS=!1,env.useXDR=!1,"undefined"!=typeof XMLHttpRequest&&void 0!==(new XMLHttpRequest).withCredentials?env.hasCORS=!0:"undefined"!=typeof XDomainRequest&&(env.hasCORS=!0,env.useXDR=!0),requestComplete=function(t,e,n){var i,r,o;return log("requestComplete: "+n.finished+", xhr.status: "+t.status,LOG_SRC),o=void 0===t.status?n.fakeStatus:1223===t.status?204:t.status,n.finished?i:(n.finished=!0,r=e.ignore404&&404===o,200<=o&&o<400||r?e.callback?void e.callback(null,t):i={err:null,xhr:t}:(i={err:o,xhr:t},log(0===o?"[warning] There was a problem communicating with the Learning Record Store. Aborted, offline, or invalid CORS endpoint ("+o+")":"[warning] There was a problem communicating with the Learning Record Store. ("+o+" | "+t.responseText+")",LOG_SRC),e.callback&&e.callback(o,t),i))},__IEModeConversion=function(t,e,n,i){var r;for(r in e)e.hasOwnProperty(r)&&n.push(r+"="+encodeURIComponent(e[r]));return void 0!==i.data&&n.push("content="+encodeURIComponent(i.data)),e["Content-Type"]="application/x-www-form-urlencoded",t+="?method="+i.method,i.method="POST",i.params={},0<n.length&&(i.data=n.join("&")),t},nativeRequest=function(t,e,n){log("sendRequest using XMLHttpRequest",LOG_SRC);var i,r,o,s,a=this,l=[],u={finished:!1,fakeStatus:null},c=void 0!==n.callback,h=t;for(r in log("sendRequest using XMLHttpRequest - async: "+c,LOG_SRC),n.params)n.params.hasOwnProperty(r)&&l.push(r+"="+encodeURIComponent(n.params[r]));if(0<l.length&&(h+="?"+l.join("&")),2048<=h.length){if(void 0!==e["Content-Type"]&&"application/json"!==e["Content-Type"])return s=new Error("Unsupported content type for IE Mode request"),void 0!==n.callback&&n.callback(s,null),{err:s,xhr:null};if(void 0===n.method)return s=new Error("method must not be undefined for an IE Mode Request conversion"),void 0!==n.callback&&n.callback(s,null),{err:s,xhr:null};t=__IEModeConversion(t,e,l,n)}else t=h;for(r in(i="undefined"!=typeof XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open(n.method,t,c),e)e.hasOwnProperty(r)&&i.setRequestHeader(r,e[r]);void 0!==n.data&&(n.data+=""),o=n.data,c&&(i.onreadystatechange=function(){log("xhr.onreadystatechange - xhr.readyState: "+i.readyState,LOG_SRC),4===i.readyState&&requestComplete.call(a,i,n,u)});try{i.send(o)}catch(t){log("sendRequest caught send exception: "+t,LOG_SRC)}return c?i:requestComplete.call(this,i,n,u)},xdrRequest=function(t,e,n){log("sendRequest using XDomainRequest",LOG_SRC);var i,r,o,s,a,l=this,u=[],c={finished:!1,fakeStatus:null};if(void 0!==e["Content-Type"]&&"application/json"!==e["Content-Type"])return a=new Error("Unsupported content type for IE Mode request"),n.callback?(n.callback(a,null),null):{err:a,xhr:null};for(o in t+="?method="+n.method,n.params)n.params.hasOwnProperty(o)&&u.push(o+"="+encodeURIComponent(n.params[o]));for(o in e)e.hasOwnProperty(o)&&u.push(o+"="+encodeURIComponent(e[o]));void 0!==n.data&&u.push("content="+encodeURIComponent(n.data)),r=u.join("&"),(i=new XDomainRequest).open("POST",t),n.callback?(i.onload=function(){c.fakeStatus=200,requestComplete.call(l,i,n,c)},i.onerror=function(){c.fakeStatus=400,requestComplete.call(l,i,n,c)},i.ontimeout=function(){c.fakeStatus=0,requestComplete.call(l,i,n,c)}):(i.onload=function(){c.fakeStatus=200},i.onerror=function(){c.fakeStatus=400},i.ontimeout=function(){c.fakeStatus=0}),i.onprogress=function(){},i.timeout=0;try{i.send(r)}catch(t){log("sendRequest caught send exception: "+t,LOG_SRC)}if(n.callback)return i;for(s=1e4+Date.now(),log("sendRequest - until: "+s+", finished: "+c.finished,LOG_SRC);Date.now()<s&&null===c.fakeStatus;)__delay();return requestComplete.call(l,i,n,c)},TinCan.LRS.prototype._initByEnvironment=function(t){var e,n,i;if(log("_initByEnvironment",LOG_SRC),t=t||{},this._makeRequest=nativeRequest,this._IEModeConversion=__IEModeConversion,null===(e=this.endpoint.toLowerCase().match(/([A-Za-z]+:)\/\/([^:\/]+):?(\d+)?(\/.*)?$/)))throw log("[error] LRS invalid: failed to divide URL parts",LOG_SRC),{code:4,mesg:"LRS invalid: failed to divide URL parts"};if(i=location.port,n=location.protocol.toLowerCase()===e[1],""===i&&(i="http:"===location.protocol.toLowerCase()?"80":"https:"===location.protocol.toLowerCase()?"443":""),!n||location.hostname.toLowerCase()!==e[2]||i!==(null!==e[3]&&void 0!==e[3]&&""!==e[3]?e[3]:"http:"===e[1]?"80":"https:"===e[1]?"443":""))if(env.hasCORS){if(env.useXDR&&n)this._makeRequest=xdrRequest;else if(env.useXDR&&!n){if(!t.allowFail)throw log("[error] LRS invalid: cross domain request for differing scheme in IE with XDR",LOG_SRC),{code:2,mesg:"LRS invalid: cross domain request for differing scheme in IE with XDR"};log("[warning] LRS invalid: cross domain request for differing scheme in IE with XDR (allowed to fail)",LOG_SRC)}}else{if(!t.allowFail)throw log("[error] LRS invalid: cross domain requests not supported in this browser",LOG_SRC),{code:1,mesg:"LRS invalid: cross domain requests not supported in this browser"};log("[warning] LRS invalid: cross domain requests not supported in this browser (allowed to fail)",LOG_SRC)}},__delay=function(){var t=new XMLHttpRequest,e=window.location+"?forcenocache="+TinCan.Utils.getUUID();t.open("GET",e,!1),t.send(null)},TinCan.LRS.syncEnabled=!0):log("'window' not defined",LOG_SRC)}()},function(t,e,_){"use strict";var n;void 0===(n=function(t){function e(t){var e=r.rest(arguments);return[t].concat(e).join("/")}var n,i,r=_(0),o=_(46),s=_(5),a=_(3),l=(_(10),_(12)),u=_(8),c=_(7),h=_(6).addWindowListener,d=0,f="SavePlayerData",p="SaveResume",v="GetResumeInfo",g="RefreshSession",m="GetSessionId",y=["<soap:Envelope ",'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ','xmlns:xsd="http://www.w3.org/2001/XMLSchema" ','xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">',"<soap:Body>"].join(""),A="</soap:Body></soap:Envelope>",b=window.location.origin,w=r.first(window.location.toString().split("#")),S="http://articulate.com",T="",E={GetResumeInfo:"sendResumeReady",GetSessionId:"onSessionId",RefreshSession:"dontDoAnything",SaveResume:"dontDoAnything",SavePlayerData:"dontDoAnything"},x={queue:[],priorityQueue:[],resumer:null,scoring:null,htmlUpdate:"",lastData:"",unloaded:!1,awaitingResponse:!1,initialize:function(t,e){if(window.globals.aoSupport)return this.activityId=t,this.scoring=e||{},this.sessionId=Date.now().toString(),h("pagehide",this.onBeforeUnload.bind(this)),this},setTotalSlides:function(t){this.totalSlides=t},setResumer:function(t){this.resumer=t,this.queueRequest(m)},interactionAnswered:function(){this.updateResults(),this.sendResultsData()},quizComplete:function(){this.updateResults(),this.sendResultsData()},courseComplete:function(){this.updateResults(),this.sendResultsData()},manualCourseComplete:function(){this.updateCompleteOnly(),this.sendResultsData()},courseStarted:r.noop,reportStatus:r.noop,viewedComplete:r.noop,slideViewed:function(){var e=[c.writeNode("viewdata",{total:this.totalSlides,viewed:this.resumer.getUniqueViewedSlides().length,viewedcomplete:this.resumer.getUniqueTotalSlides().length})];this.getViewedEls(this.resumer.viewedSlides).forEach(function(t){e.push(t)}),e.push(c.writeCloseNode("viewdata")),this.updateViewData(e.join("")),null!=this.scoring&&this.scoring.isView()&&(this.setViewedResults(),this.sendResultsData())},getViewedEls:function(t){return t.reduce(function(t,e){return t.push(c.writeNode("slide",{id:a.stripPlayer(e.absoluteId),viewgroupid:e.getViewGroupId()},!0)),t},[])},setViewedResults:function(){var t=[c.writeNode("results"),c.writeNode("summary",{slidesviewed:this.resumer.totalViewedSlides.length,slidestotal:this.totalSlides,duration:this.resumer.getCourseTime(),status:this.scoring.getViewedStatus()},!0),c.writeCloseNode("results")].join("");this.updateResultsData(t)},updateResults:function(){if(null!=this.scoring&&!this.scoring.isView()){var t=[c.writeNode("results"),c.writeNode("summary",this.getSummaryAttributes(),!0),c.writeNode("quizzes")];return null!=this.scoring.quiz&&t.push(this.scoring.quiz.getAoSoapXml()),t.push(c.writeCloseNode("quizzes"),c.writeCloseNode("results")),this.updateResultsData(t.join("")),this}},updateCompleteOnly:function(){return this.updateResultsData([c.writeNode("results"),c.writeNode("summary",{status:this.scoring.prop("Status")},!0),c.writeCloseNode("results")].join("")),this},getSummaryAttributes:function(t){return t={},null==this.scoring||this.scoring.isView()||(this.scoring.isType("quiz")&&(t.score=this.scoring.prop("PercentScore"),t.possibleScore=100),t.duration=this.resumer.getCourseTime(),t.status=this.scoring.prop("Status")),t},onSessionId:function(t){this.sessionId=t.querySelector("GetSessionIdResponse").textContent,this.createRefreshInterval()},killRefreshInterval:function(){this.onIntervalCompleteCall.kill(),this.onIntervalCompleteCall=null},createRefreshInterval:function(){this.onIntervalCompleteCall=l.delayedCall(60,this.onIntervalComplete,void 0,this)},onIntervalComplete:function(){this.queueRequest(g).createRefreshInterval()},dontDoAnything:r.noop,getItem:function(){return this.resumeDfd=u.Deferred(),this.queueRequest(v),this.resumeDfd.promise()},setItem:function(t,e){e!==this.lastData&&(this.lastData=e,this.updateResumeData(e))},sendResumeReady:function(t){var e=t.querySelector("GetResumeInfoResponse");this.resumeDfd.resolve(e.textContent)},getWrapperDiv:function(){return document.createElement("div")},updateResumeData:function(t){var e;n=["<resumeData>",c.xmlEncodeValue(t),"</resumeData>"].join(""),e=['<playerdata sessionid="',this.sessionId,'">',n,"</playerdata>"].join(""),this.killRefreshInterval(),this.queueRequest(p,e),this.createRefreshInterval(),this.prepareHtmlUpdate()},updateViewData:function(t){i=t,this.prepareHtmlUpdate()},updateResultsData:function(t){T=t,this.prepareHtmlUpdate()},getPlayerData:function(){return['<playerdata sessionid="',this.sessionId,'" ','sendcount="',d,'">',n,i,T,"</playerdata>"].join("")},sendResultsData:function(){var t=this.getPlayerData();d++,this.queueRequest(f,t,!0),this.scoring.markAttemptsSent()},prepareHtmlUpdate:function(){this.htmlUpdate=this.getPlayerData()},hasResultsData:function(){return/<(viewdata|results)/.test(this.htmlUpdate)},onBeforeUnload:function(){this.htmlUpdate.length&&null==this.hasEnded&&(this.hasEnded=!0,this[s.browser.isIE?"sendSyncRequest":"sendRequest"]({command:this.hasResultsData()?f:p,xmlData:this.htmlUpdate}))},queueRequest:function(t,e,n){var i=n?this.priorityQueue:this.queue,r={command:t,xmlData:e};return 0===this.queue.length&&0===this.priorityQueue.length&&!1===this.awaitingResponse?this.sendRequest(r):i.unshift(r),this},requestCallback:function(t,e,n){var i;this.awaitingResponse=!1,e||(i=(new window.DOMParser).parseFromString(n.text,"application/xml")),this[t](i),this.popQueue()},popQueue:function(){var t=this.priorityQueue.pop()||this.queue.pop();null!=t&&this.sendRequest(t)},sendRequest:function(t){s.browser.isIE&&this.hasEnded&&this.sendSyncRequest(t);var e=this.createBaseUrl("services/content/api.asmx"),n=this.createActionUrl("KnowledgeFlash/Services/Content/Api",t.command),i=this.createSoapRequest(t),r=E[t.command];this.awaitingResponse=!0,o.post(e).set("Content-Type","text/xml").set("soapaction",n).send(i).end(this.requestCallback.bind(this,r))},createActionUrl:r.partial(e,S),createBaseUrl:r.partial(e,b),createSoapRequest:function(t){return[y,"<command ".replace("command",t.command),'xmlns="serverUrl/KnowledgeFlash/Services/Content/Api">'.replace("serverUrl",S),"<contentUrl>",window.escape(w),"</contentUrl>",null!=t.xmlData?t.xmlData:"","</command>".replace("command",t.command),A].join("")},sendSyncRequest:function(t){var e=this.createBaseUrl("services/content/api.asmx"),n=this.createActionUrl("KnowledgeFlash/Services/Content/Api",t.command),i=this.createSoapRequest(t),r=new window.XMLHttpRequest;r.open("POST",e,!1),r.setRequestHeader("SOAPAction",n),r.send(i)}};return window.handleBeforeUnload=x.onBeforeUnload.bind(x),x}.call(e,_,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i;void 0===(i=function(t){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}return n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){var n=this;function i(){n.off(t,i),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e);return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length},n}.call(e,n,e,t))||(t.exports=i)},function(t,e,d){"use strict";var n;void 0===(n=function(t){var n=d(0),i=d(75),r=d(12),o=d(8),e=d(3),s=d(6).addWindowListener,a=d(18),l=void 0,u=void 0,c={complete:function(t){if(a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)){if(u)return;u=!0}t.api.SetReachedEnd()},incomplete:function(t){t.api.ResetStatus()},fail:function(t){if(a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)){if(u)return;u=!0}t.isCmi5&&t.api.SetReachedEnd(),t.api.SetFailed()},pass:function(t){if(a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)){if(u)return;u=!0}t.isCmi5&&t.api.SetReachedEnd(),t.api.SetPassed()}},h={queue:[],resumer:null,scorings:[],api:null,lessonCompleted:!1,setTotalSlides:n.noop,courseStarted:n.noop,quizComplete:n.noop,slideViewed:n.noop,initialize:function(t,e,n){var i=this.startWindow();return i&&(window.lmsAPI=window.parent,this.scorings=e,this.courseId=t,this.isCmi5=n,s("pagehide",this.lmsUnload.bind(this)),this.initCommitTimeout()),!0===i?this:i},startWindow:function(){this.api=window;var t=n.isFunction(this.api.Start);return t&&this.api.Start(),t},setResumer:function(t){this.resumer=t},getItem:function(t){var e;if(this.resumeDfd=this.resumeDfd||o.Deferred(),null!=this.api.IsLoaded&&this.api.IsLoaded()?(e=this.api.GetDataChunk(),this.resumeDfd.resolve(e),this.listenToResumer(),this.lessonCompleted=this.api.GetStatus()===this.api.LESSON_STATUS_COMPLETED):r.delayedCall(.5,this.getItem,void 0,this),null!=t)return this.resumeDfd.promise()},listenToResumer:function(){var t=this;this.resumer.resumeDfd.catch(function(){t.lastStatus="incomplete",c.incomplete(t)})},setItem:function(t,e){this.resumeData=e,this.sendDataCall||(this.sendDataCall=r.delayedCall(.5,this.sendData,void 0,this))},initCommitTimeout:function(){var t=parseInt(e.getPath(window,"FORCED_COMMIT_TIME",6e4),10);0<t&&r.delayedCall(e.toSeconds(t),this.onCommitDelayComplete,void 0,this)},onCommitDelayComplete:function(){this.commit().initCommitTimeout()},sendData:function(){return this.sendDataCall&&this.sendDataCall.kill(),(this.sendDataCall=null)!=this.resumeData&&this.api.SetDataChunk(this.resumeData),this},interactionAnswered:function(t,e){0<this.scorings.length&&(0,i[e.type()])(t,e,this.resumer.getCourseTime())},reportStatus:function(t){return this.updateScore(t),this.updateStatus(),this},updateStatus:function(){var t=this.scorings.getStatus(),e=c[t]||n.noop;return this.lastStatus&&this.lastStatus===t||(this.lastStatus=t,e(this)),this},updateScore:function(t){if((!a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)||!u)&&(null==t&&(t=this.scorings.guessCurrentScoring()),null!=t&&t.isType("quiz"))){var e=t.prop("PercentScore");this.lastScore!==e&&(l=t,this.lastScore=e,this.api.SetScore(e,100,0))}},viewedComplete:function(){return c[this.scorings.getStatus()](this),this.resumer.savePresentationData(),this.commit(),this},forceCommit:function(){return this.resumer.savePresentationData(),this.sendData().commit(),this},lmsUnload:function(t){null==this.unloaded&&(this.unloaded=!0,this.reportStatus(null),null!=this.sendDataCall&&this.forceCommit(),this.api.ConcedeControl(!0===t),this.api.Unload())},commit:function(){return this.api.CommitData(),this},courseComplete:function(t){return this.reportStatus(t).forceCommit(),this},quizRetried:function(t){a.hasFlag(a.constants.MULTIPLE_QUIZ_TRACKING)&&l==t&&(u=!1)},manualCourseComplete:function(t,e){h.courseComplete(e)}};return h}.call(e,d,e,t))||(t.exports=n)},function(t,e,s){"use strict";var n;void 0===(n=function(t){function l(t){return null==t&&(t=""),window.CreateResponseIdentifier(t.substr(0,1),t)}function u(t,e){return t.push(l(e)),t}function o(t,e,n){var i=e.statement.lmstext||e.statement,r=e.choice.lmstext||e.choice,o=window.CreateResponseIdentifier(n.toString(),i),s=window.CreateResponseIdentifier(i.charAt(0),r);return t.push(new window.MatchingResponse(o,s)),t}function c(t){return null==t.choice&&""===t?t="_":""===t.choice&&(t.choice="_"),t}function h(t){var e=f.first(t).toUpperCase();return n[e]||t}function i(t){return null!=t&&"true"===t.lmstext.toLowerCase()}function d(t,e){for(var n,i=e,r=[e.prop("AttemptCount")-1,t.getAttempts()];(n=i.get("lmsId"))&&r.push(n),i=i.parent;);return r.reverse().join("_")}var f=s(0),n=(s(4),{C:window.INTERACTION_RESULT_CORRECT,I:window.INTERACTION_RESULT_WRONG,W:window.INTERACTION_RESULT_WRONG,U:window.INTERACTION_RESULT_UNANTICIPATED,N:window.INTERACTION_RESULT_NEUTRAL}),r={truefalse:function(t,e,n){window.RecordTrueFalseInteraction(d(t,e),i(f.first(e.getResponseValues())),h(e.prop("Status")),i(f.first(e.getCorrectValues())),e.get("lmstext"),t.prop("Weight"),n,t.get("lmstext"))},multiEtc:function(t,e,n,i){var r,o,s,a;a=n.isType("sequence")?(o=function(t,e){return t.push(l(e.statement.lmstext),l(e.choice.lmstext)),t},s=n.getResponseValues().reduce(o,[]),c(n.getCorrectValues()).reduce(o,[])):(r=function(t){return f.isString(t)?t:null!=t.choice?t.choice.lmstext:t.lmstext},s=n.getResponseValues().map(r).reduce(u,[]),c(n.getCorrectValues().map(r)).reduce(u,[])),window[t](d(e,n),s,h(n.prop("Status")),a,n.get("lmstext"),e.prop("Weight"),i,e.get("lmstext"))},numeric:function(t,e,n,i){window.RecordFillInInteraction(d(t,e),e.getResponseValues(),h(e.prop("Status")),i||e.getCorrectValues(),e.get("lmstext"),t.prop("Weight"),n,t.get("lmstext"))},fillin:function(t,e,n){var i=e.getCorrectValues().map(function(t){return t.lmstext}).join("|#|");r.numeric(t,e,n,i)},matching:function(t,e,n){var i=e.getResponseValues().reduce(o,[]),r=e.getCorrectValues();r=c(r).reduce(o,[]),window.RecordMatchingInteraction(d(t,e),i,h(e.prop("Status")),r,e.get("lmstext"),t.prop("Weight"),n,t.get("lmstext"))},likert:function(t,e,n){var i=f.flatten(e.getResponseValues().map(function(t){return[t.statement.lmstext,t.choice.lmstext]})).join("|#|");window.RecordLikertInteraction(d(t,e),window.CreateResponseIdentifier(i.substr(0,1),i),h(e.prop("Status")),"",e.get("lmstext"),t.prop("Weight"),n,t.get("lmstext"))}};return r.wordbank=r.hotspot=r.multiplechoice=r.multipleresponse=f.partial(r.multiEtc,"RecordMultipleChoiceInteraction"),r.sequence=f.partial(r.multiEtc,"RecordSequencingInteraction"),r.essay=r.numeric,r}.call(e,s,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){function n(t){return t.split("=")}function i(t){return t[0]}var r=u(0),o=u(8),s="path=/",e={setCookie:function(t,e){var n=[t,e].join("=");return document.cookie=[n,["expires",new Date(Date.now()+31536e7).toGMTString()].join("="),s].join("; "),this},getCookies:function(e){return document.cookie.split("; ").map(n).filter(function(t){return 0===t[0].indexOf(e)})},getItem:function(t){var e=o.Deferred(),n=r(this.getCookies(t)).sortBy(i).reduce(function(t,e){return t+e[1]},"");return e.resolve(n),e.promise()},setItem:function(t,e){for(var n,i,r=0;0<e.length;)i=[t,r++].join("_"),n=e.slice(0,4048),this.setCookie(i,n),e=e.slice(4048);return this}},a={getItem:function(t){var e=o.Deferred(),n=window.localStorage.getItem(t);return e.resolve(n),e.promise()},setItem:function(t,e){var n;try{n=window.localStorage.setItem(t,e)}catch(t){console.warn(t)}return n}},l={setResumer:r.noop};return{hasStorage:function(){try{return null!=window.vInterfaceObject||!r.isUndefined(window.localStorage)}catch(t){return!1}},getStorage:function(){return r.extend(l,this.hasStorage()?a:e)}}}.call(e,u,e,t))||(t.exports=n)},function(t,e){!function(){"use strict";var H=10,j=16,B=4.5,U=1.5,W=[0,0,0,.5],o=!1,z={};(window.captionator=z).CaptionatorCueStructure=function(t,e){var a=this;this.isTimeDependent=!1,this.cueSource=t,this.options=e,this.processedCue=null,this.toString=function(o){if(!1===e.processCueHTML)return t;var s=function(t,e){if(null!==a.processedCue)return a.processedCue;var n,i,r="";for(n in t)n.match(/^\d+$/)&&t.hasOwnProperty(n)&&((i=t[n])instanceof Object&&i.children&&i.children.length?"v"===i.token?r+='<q data-voice="'+i.voice.replace(/[\"]/g,"")+"\" class='voice speaker-"+i.voice.replace(/[^a-z0-9]+/gi,"-").toLowerCase()+" webvtt-span' title=\""+i.voice.replace(/[\"]/g,"")+'">'+s(i.children,e+1)+"</q>":"c"===i.token?r+="<span class='webvtt-span webvtt-class-span "+i.classes.join(" ")+"'>"+s(i.children,e+1)+"</span>":0<i.timeIn?null==o||0<o&&o>=i.timeIn?r+="<span class='webvtt-span webvtt-timestamp-span' data-timestamp='"+i.token+"' data-timestamp-seconds='"+i.timeIn+"'>"+s(i.children,e+1)+"</span>":o<i.timeIn&&(r+="<span class='webvtt-span webvtt-timestamp-span webvtt-cue-future' aria-hidden='true' style='opacity: 0;' data-timestamp='"+i.token+"' data-timestamp-seconds='"+i.timeIn+"'>"+s(i.children,e+1)+"</span>"):r+=i.rawToken+s(i.children,e+1)+"</"+i.token+">":(i instanceof String||"string"==typeof i||"number"==typeof i)&&(r+=i));return a.isTimeDependent||0!==e||(a.processedCue=r),r};return s(this,0)},this.getPlain=function(o){if(!1===e.processCueHTML)return t.replace(/<[^>]*>/gi,"");var s=function(t,e){var n,i,r="";for(n in t)n.match(/^\d+$/)&&t.hasOwnProperty(n)&&((i=t[n])instanceof Object&&i.children&&i.children.length?0<i.timeIn&&null!=o&&!(0<o&&o>=i.timeIn)||(r+=s(i.children,e+1)):(i instanceof String||"string"==typeof i||"number"==typeof i)&&(r+=i));return r};return s(this,0)}},z.CaptionatorCueStructure.prototype=[],z.TextTrack=function(t,e,n,i,r,o){this.onload=function(){},this.onerror=function(){},this.oncuechange=function(){},this.id=t||"",this.internalMode=z.TextTrack.OFF,this.cues=new z.TextTrackCueList(this),this.activeCues=new z.ActiveTextTrackCueList(this.cues,this),this.kind=e||"subtitles",this.label=n||"",this.language=i||"",this.src=r||"",this.readyState=z.TextTrack.NONE,this.internalDefault=o||!1,this.getMode=function(){return this.internalMode},this.setMode=function(t){if(-1===[z.TextTrack.OFF,z.TextTrack.HIDDEN,z.TextTrack.SHOWING].indexOf(t))throw new Error("Illegal mode value for track: "+t);t!==this.internalMode&&(this.internalMode=t,this.readyState===z.TextTrack.NONE&&0<this.src.length&&t>z.TextTrack.OFF&&this.loadTrack(this.src,null),this.videoNode._captionator_dirtyBit=!0,z.rebuildCaptions(this.videoNode),t===z.TextTrack.OFF&&(this.cues.length=0,this.readyState=z.TextTrack.NONE))},this.getDefault=function(){return this.internalDefault},Object.prototype.__defineGetter__?(this.__defineGetter__("mode",this.getMode),this.__defineSetter__("mode",this.setMode),this.__defineGetter__("default",this.getDefault)):Object.defineProperty&&(Object.defineProperty(this,"mode",{get:this.getMode,set:this.setMode}),Object.defineProperty(this,"default",{get:this.getDefault})),this.loadTrack=function(t,n){var i,r=new XMLHttpRequest;if(this.readyState===z.TextTrack.LOADED)n instanceof Function&&n(i);else{this.src=t,this.readyState=z.TextTrack.LOADING;var o=this;r.open("GET",t,!0),r.onreadystatechange=function(t){if(4===r.readyState)if(200===r.status){var e=o.videoNode._captionatorOptions||{};"metadata"===o.kind&&(e.processCueHTML=!1,e.sanitiseCueHTML=!1),i=z.parseCaptions(r.responseText,e),o.readyState=z.TextTrack.LOADED,o.cues.loadCues(i),o.activeCues.refreshCues.apply(o.activeCues),o.videoNode._captionator_dirtyBit=!0,z.rebuildCaptions(o.videoNode),o.onload.call(this),n instanceof Function&&n.call(o,i)}else o.readyState=z.TextTrack.ERROR,o.onerror()};try{r.send(null)}catch(t){o.readyState=z.TextTrack.ERROR,o.onerror(t)}}},this.addCue=function(t){if(!(t&&t instanceof z.TextTrackCue))throw new Error("The argument is null or not an instance of TextTrackCue.");this.cues.addCue(t)},this.removeCue=function(){}},z.TextTrack.NONE=0,z.TextTrack.LOADING=1,z.TextTrack.LOADED=2,z.TextTrack.ERROR=3,z.TextTrack.OFF=0,z.TextTrack.HIDDEN=1,z.TextTrack.SHOWING=2,z.TextTrackCue=function(t,e,n,i,r,o,s){if(this.id=t,this.track=s instanceof z.TextTrack?s:null,this.startTime=parseFloat(e),this.endTime=parseFloat(n)>=this.startTime?parseFloat(n):this.startTime,this.text="string"==typeof i||i instanceof z.CaptionatorCueStructure?i:"",this.settings="string"==typeof r?r:"",this.intSettings={},this.pauseOnExit=!!o,this.wasActive=!1,this.direction="horizontal",this.snapToLines=!0,this.linePosition="auto",this.textPosition=50,this.size=0,this.alignment="middle",this.settings.length){var a=this.intSettings,l=this;(r=r.split(/\s+/).filter(function(t){return 0<t.length}))instanceof Array&&r.forEach(function(t){var e={D:"direction",L:"linePosition",T:"textPosition",A:"alignment",S:"size"};e[(t=t.split(":"))[0]]&&(a[e[t[0]]]=t[1]),e[t[0]]in l&&(l[e[t[0]]]=t[1])})}this.linePosition.match(/\%/)&&(this.snapToLines=!1),this.getCueAsSource=function(){return String(this.text)},this.getCueAsHTML=function(){var e=document.createDocumentFragment(),t=document.createElement("div");return t.innerHTML=String(this.text),Array.prototype.forEach.call(t.childNodes,function(t){e.appendChild(t.cloneNode(!0))}),e},this.isActive=function(){var t=0;if(this.track instanceof z.TextTrack&&(this.track.mode===z.TextTrack.SHOWING||this.track.mode===z.TextTrack.HIDDEN)&&this.track.readyState===z.TextTrack.LOADED)try{if(t=this.track.videoNode.currentTime,this.startTime<=t&&this.endTime>=t)return this.wasActive||(this.wasActive=!0,this.onenter()),!0}catch(t){return!1}return this.wasActive&&(this.wasActive=!1,this.onexit()),!1},Object.prototype.__defineGetter__?this.__defineGetter__("active",this.isActive):Object.defineProperty&&Object.defineProperty(this,"active",{get:this.isActive}),this.toString=function(){return"TextTrackCue:"+this.id+"\n"+String(this.text)},this.onenter=function(){},this.onexit=function(){}},z.TextTrackCueList=function(t){this.track=t instanceof z.TextTrack?t:null,this.getCueById=function(e){return this.filter(function(t){return t.id===e})[0]},this.loadCues=function(t){for(var e=0;e<t.length;e++)t[e].track=this.track,Array.prototype.push.call(this,t[e])},this.addCue=function(t){if(!(t&&t instanceof z.TextTrackCue))throw new Error("The argument is null or not an instance of TextTrackCue.");if(t.track!==this.track&&t.track)throw new Error("This cue is associated with a different track!");Array.prototype.push.call(this,t)},this.toString=function(){return"[TextTrackCueList]"}},z.TextTrackCueList.prototype=[],z.ActiveTextTrackCueList=function(t,r){this.refreshCues=function(){if(t.length){var e=this,n=!1,i=[].slice.call(this,0);if(this.length=0,t.forEach(function(t){t.active&&(e.push(t),e[e.length-1]!==i[e.length-1]&&(n=!0))}),n)try{r.oncuechange()}catch(t){}}},this.toString=function(){return"[ActiveTextTrackCueList]"},this.refreshCues()},z.ActiveTextTrackCueList.prototype=new z.TextTrackCueList(null);z.rebuildCaptions=function(i){var t,e=i.textTracks||[],r=(i._captionatorOptions instanceof Object&&i._captionatorOptions,i.currentTime),n=[],o=[];e.forEach(function(t,e){t.mode===z.TextTrack.SHOWING&&t.readyState===z.TextTrack.LOADED&&(o=(o=[].slice.call(t.activeCues,0)).sort(function(t,e){return t.startTime>e.startTime?-1:1}),n=n.concat(o))}),t=n.map(function(t){return t.track.id+"."+t.id+":"+t.text.toString(r).length}),z.compareArray(t,i._captionator_previousActiveCues)&&!i._captionator_dirtyBit||(i._captionator_dirtyBit=!1,i._captionator_availableCueArea=null,i._captionator_previousActiveCues=t,z.styleCueCanvas(i),[].slice.call(i._descriptionContainerObject.getElementsByTagName("div"),0).concat([].slice.call(i._containerObject.getElementsByTagName("div"),0)).forEach(function(t){t.cueObject&&!t.cueObject.active&&(t.cueObject.rendered=!1,t.cueObject.domNode=null,t.parentElement.removeChild(t))}),n.forEach(function(t){var e,n;"metadata"!==t.track.kind&&t.mode!==z.TextTrack.HIDDEN&&(t.rendered?(n=(e=t.domNode).getElementsByClassName("captionator-cue-inner")[0],t.text.toString(r)!==e.currentText&&(e.currentText=t.text.toString(r),n.innerHTML=e.currentText,n.spanified=!1)):(e=document.createElement("div"),(n=document.createElement("span")).className="captionator-cue-inner",e.id=String(t.id).length?t.id:z.generateID(),e.className="captionator-cue",e.appendChild(n),((e.cueObject=t).domNode=e).setAttribute("lang",t.track.language),e.currentText=t.text.toString(r),n.innerHTML=e.currentText,t.rendered=!0,"descriptions"===t.track.kind?i._descriptionContainerObject.appendChild(e):i._containerObject.appendChild(e)),"descriptions"!==t.track.kind&&z.styleCue(e,t,i))}))},z.captionify=function(t,e,n){var i=[],r=0;if((n=n instanceof Object?n:{}).minimumFontSize&&"number"==typeof n.minimumFontSize&&(H=n.minimumFontSize),n.minimumLineHeight&&"number"==typeof n.minimumLineHeight&&(j=n.minimumLineHeight),n.fontSizeVerticalPercentage&&"number"==typeof n.fontSizeVerticalPercentage&&(B=n.fontSizeVerticalPercentage),n.lineHeightRatio&&"number"!=typeof n.lineHeightRatio&&(U=n.lineHeightRatio),n.cueBackgroundColour&&n.cueBackgroundColour instanceof Array&&(W=n.cueBackgroundColour),HTMLVideoElement||t instanceof function(t){this.targetObject=t,this.currentTime=0;this.addEventListener=function(t,e,n){"timeupdate"===t&&e instanceof Function&&(this.timeupdateEventHandler=e)},this.attachEvent=function(t,e){"timeupdate"===t&&e instanceof Function&&(this.timeupdateEventHandler=e)},this.updateTime=function(t){isNaN(t)||(this.currentTime=t)}}||n.forceCaptionify){if("function"!=typeof document.createElement("video").addTextTrack&&"function"!=typeof document.createElement("video").addTrack||n.forceCaptionify){if(!o&&n.exportObjects&&(window.TextTrack=z.TextTrack,window.TextTrackCueList=z.TextTrackCueList,window.ActiveTextTrackCueList=z.ActiveTextTrackCueList,window.TextTrackCue=z.TextTrackCue,o=!0),t&&!1!==t&&null!=t)if(t instanceof Array)for(r=0;r<t.length;r++)"string"==typeof t[r]?i=i.concat([].slice.call(document.querySelectorAll(t[r]),0)):t[r].constructor===HTMLVideoElement&&i.push(t[r]);else"string"==typeof t?i=[].slice.call(document.querySelectorAll(t),0):t.constructor===HTMLVideoElement&&i.push(t);else i=[].slice.call(document.getElementsByTagName("video"),0);return!!i.length&&(i.forEach(function(u){u.addTextTrack=function(t,e,n,i,r,o,s){var a,l=["subtitles","captions","descriptions","captions","metadata","chapters"];l.slice(0,7);if(t="string"==typeof t?t:"",n="string"==typeof n?n:"",i="string"==typeof i?i:"",!l.filter(function(t){return e===t}).length)throw z.createDOMException(12,"DOMException 12: SYNTAX_ERR: You must use a valid kind when creating a TimedTextTrack.","SYNTAX_ERR");return!!(a=new z.TextTrack(t,e,n,i,r,null))&&(u.textTracks instanceof Array||(u.textTracks=[]),u.textTracks.push(a),a)},z.processVideoElement(i[r],e,n)}),!0)}return!1}return!1},z.parseCaptions=function(t,g){g=g instanceof Object?g:{};var m="",r=[],y="",A=[],b=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\,(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,w=/^(\d+)?:?(\d{2}):(\d{2})\.(\d+)\,(\d+)?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,S=/^(\d{2})?:?(\d{2}):(\d{2})[\.\,](\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})[\.\,](\d+)\s*(.*)/,p=/(\d{2})?:?(\d{2}):(\d{2})[\.\,](\d+)/,T=/^([\d\.]+)\s+\+([\d\.]+)\s*(.*)/,E=/^\[(\d{2})?:?(\d{2})\:(\d{2})\.(\d{2,3})\]\s*(.*?)$/,x=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,_=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,C=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g,i=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)/;if(t){var k=function(t){function e(t){return!!t.replace(/[^a-z0-9]+/gi,"").length}var n,i,r,o,s,a=new z.CaptionatorCueStructure(t,g),l=[],u=[],c=0;for(n in r=a,l=t.split(/(<\/?[^>]+>)/gi))if(l.hasOwnProperty(n))if("<"===(i=l[n]).substr(0,1)){if("/"===i.substr(1,1)){var h=i.substr(2).split(/[\s>]+/g)[0];if(0<u.length){var d=0;for(c=u.length-1;0<=c;c--){if(u[d=c][u[c].length-1].token===h)break}r=u[d],u=u.slice(0,d)}}else if(i.substr(1).match(p)||i.match(/^<v\s+[^>]+>/i)||i.match(/^<c[a-z0-9\-\_\.]+>/)||i.match(/^<(b|i|u|ruby|rt)>/)||!1!==g.sanitiseCueHTML){var f={token:i.replace(/[<\/>]+/gi,"").split(/[\s\.]+/)[0],rawToken:i,children:[]};"v"===f.token?f.voice=i.match(/^<v\s*([^>]+)>/i)[1]:"c"===f.token?f.classes=i.replace(/[<\/>\s]+/gi,"").split(/[\.]+/gi).slice(1).filter(e):(o=f.rawToken.match(p))&&(a.isTimeDependent=!0,s=o.slice(1),f.timeIn=parseInt(60*(s[0]||0)*60,10)+parseInt(60*(s[1]||0),10)+parseInt(s[2]||0,10)+parseFloat("0."+(s[3]||0))),r.push(f),u.push(r),r=f.children}}else!1!==g.sanitiseCueHTML&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\&/g,"&amp;"),g.ignoreWhitespace||(i=i.replace(/\n+/g,"<br />"))),r.push(i);return a},l=function(t){var e,n=0;return"string"!=typeof t?0:((e=i.exec(t))&&(e=e.slice(1),n=parseInt(60*(e[0]||0)*60,10)+parseInt(60*(e[1]||0),10)+parseInt(e[2]||0,10)+parseFloat("0."+(e[3]||0))),n)};if(r=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),/<tt\s+xml/gi.exec(t)){var e=document.createElement("ttml");return e.innerHTML=t,[].slice.call(e.querySelectorAll("[begin],[end]"),0).map(function(t,e){var n,i,r,o=String(t.getAttribute("begin")),s=String(t.getAttribute("end")),a=t.getAttribute("id")||e;return i=l(o),r=l(s),n=!1===g.processCueHTML?t.innerHTML:k(t.innerHTML),new z.TextTrackCue(a,i,r,n,{},!1,null)})}return t.split(/\n+/g).reduce(function(t,e,n,i){return t||!!E.exec(e)},!1)?(r=r.split(/\n+/g),m="LRC"):r=r.split(/\n\n+/g),r=r.filter(function(t){return t.match(/^WEBVTT(\s*FILE)?/gi)?!(m="WebVTT"):!!t.replace(/\s*/gi,"").length}).map(function(t,e){var n,i,r,o,s,a,l,u,c,h,d="";if(u=x.exec(t))return A=(A=u.slice(2).join("")).split(/\s+/g).filter(function(t){return t&&!!t.length}),null;if(u=_.exec(t))return y+=u[u.length-1],null;if(u=C.exec(t))return null;for(n="LRC"===m?[t.substr(0,t.indexOf("]")+1),t.substr(t.indexOf("]")+1)]:t.split(/\n/g);!n[0].replace(/\s+/gi,"").length&&0<n.length;)n.shift();for(l=n[0].match(/^\s*[a-z0-9\-]+\s*$/gi)?String(n.shift().replace(/\s*/gi,"")):e,a=0;a<n.length;a++){var f=n[a];(c=S.exec(f))||(c=b.exec(f))||(c=w.exec(f))?(s=c.slice(1),i=parseInt(60*(s[0]||0)*60,10)+parseInt(60*(s[1]||0),10)+parseInt(s[2]||0,10)+parseFloat("0."+(s[3]||0)),r=parseInt(60*(s[4]||0)*60,10)+parseInt(60*(s[5]||0),10)+parseInt(s[6]||0,10)+parseFloat("0."+(s[7]||0)),s[8]&&(d=s[8])):(c=T.exec(f))?(s=c.slice(1),r=(i=parseFloat(s[0]))+parseFloat(s[1]),s[2]&&(d=s[2])):(c=E.exec(f))&&(s=c.slice(1,c.length-1),r=i=parseInt(60*(s[0]||0)*60,10)+parseInt(60*(s[1]||0),10)+parseInt(s[2]||0,10)+parseFloat("0."+(s[3]||0))),n=n.slice(0,a).concat(n.slice(a+1));break}if(!i&&!r)return null;var p=A.reduce(function(t,e,n,i){return t[e.split(":")[0]]=e.split(":")[1],t},{});for(var v in p=d.split(/\s+/g).filter(function(t){return t&&!!t.length}).reduce(function(t,e,n,i){return t[e.split(":")[0]]=e.split(":")[1],t},p),d="",p)p.hasOwnProperty(v)&&(d+=d.length?" ":"",d+=v+":"+p[v]);return o=!1===g.processCueHTML?n.join("\n"):k(n.join("\n")),(h=new z.TextTrackCue(l,i,r,o,d,!1,null)).styleData=y,h}).filter(function(t){return null!==t}),"LRC"===m&&(r.forEach(function(t,e){var n,i=0;0<e&&(i=t.startTime,(n=r[--e]).endTime<i&&(n.endTime=i))}),r=r.filter(function(t){return 0<t.text.toString().replace(/\s*/,"").length})),r}throw new Error("Required parameter captionData not supplied.")},z.processVideoElement=function(r,o,s){var a=[],t=navigator.language||navigator.userLanguage;o||t.split("-")[0];if(s=s instanceof Object?s:{},!r.captioned){r._captionatorOptions=s,r.className+=(r.className.length?" ":"")+"captioned",r.captioned=!0,0===r.id.length&&(r.id=z.generateID());[].slice.call(r.querySelectorAll("track"),0).forEach(function(e){var t=null;t=0<e.querySelectorAll("source").length?e.querySelectorAll("source"):e.getAttribute("src");var n=r.addTextTrack(e.getAttribute("id")||z.generateID(),e.getAttribute("kind"),e.getAttribute("label"),e.getAttribute("srclang").split("-")[0],t,e.getAttribute("type"),e.hasAttribute("default"));(e.track=n).trackNode=e,n.videoNode=r,a.push(n);var i=!1;"subtitles"!==n.kind&&"captions"!==n.kind||o!==n.language||!s.enableCaptionsByDefault||a.filter(function(t){return("captions"===t.kind||"subtitles"===t.kind)&&o===t.language&&t.mode===z.TextTrack.SHOWING}).length||(i=!0),"chapters"===n.kind&&o===n.language&&(a.filter(function(t){return"chapters"===t.kind&&t.mode===z.TextTrack.SHOWING}).length||(i=!0)),"descriptions"===n.kind&&!0===s.enableDescriptionsByDefault&&o===n.language&&(a.filter(function(t){return"descriptions"===t.kind&&t.mode===z.TextTrack.SHOWING}).length||(i=!0)),!0===i&&a.forEach(function(t){t.trackNode.hasAttribute("default")&&t.mode===z.TextTrack.SHOWING&&(t.mode=z.TextTrack.HIDDEN)}),e.hasAttribute("default")&&(a.filter(function(t){return!(!t.trackNode.hasAttribute("default")||t.trackNode===e)}).length||(i=!0,n.internalDefault=!0)),!0===i&&(n.mode=z.TextTrack.SHOWING)}),r.addEventListener("timeupdate",function(t){var e=t.target;try{e.textTracks.forEach(function(t){t.activeCues.refreshCues.apply(t.activeCues)})}catch(t){}s.renderer instanceof Function?s.renderer.call(z,e):z.rebuildCaptions(e)},!1),window.addEventListener("resize",function(t){r._captionator_dirtyBit=!0,z.rebuildCaptions(r)},!1),!0===s.enableHighResolution&&window.setInterval(function(){try{r.textTracks.forEach(function(t){t.activeCues.refreshCues.apply(t.activeCues)})}catch(t){}s.renderer instanceof Function?s.renderer.call(z,r):z.rebuildCaptions(r)},20)}return r},z.getNodeMetrics=function(t){var e,n,i=window.getComputedStyle(t,null),r=t,o=t.offsetTop,s=t.offsetLeft,a=0;for(e=parseInt(i.getPropertyValue("width"),10),n=parseInt(i.getPropertyValue("height"),10);r=r.offsetParent;)o+=r.offsetTop,s+=r.offsetLeft;if(t.hasAttribute("controls")){var l=navigator.userAgent.toLowerCase();-1!==l.indexOf("chrome")?a=32:-1!==l.indexOf("opera")?a=25:-1!==l.indexOf("firefox")?a=28:-1!==l.indexOf("ie 9")||-1!==l.indexOf("ipad")?a=44:-1!==l.indexOf("safari")&&(a=25)}else if(t._captionatorOptions){var u=t._captionatorOptions;u.controlHeight&&(a=parseInt(u.controlHeight,10))}return{left:s,top:o,width:e,height:n,controlHeight:a}},z.applyStyles=function(t,e){for(var n in e)!{}.hasOwnProperty.call(e,n)||(t.style[n]=e[n])},z.checkDirection=function(t){var e="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿",n=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+e+"]");return new RegExp("^[^"+e+"]*[֑-߿יִ-﷽ﹰ-ﻼ]").test(t)?"rtl":n.test(t)?"ltr":""},z.styleCue=function(t,n,e){var i,r,o,s,a,u,l,c,h,d,f,p,v,g,m,y,A=0,b=0,w=0,S=0,T=0,E=0,x=0,_=0,C=0,k=0,O=0,M=e._captionatorOptions||{},R=50,I=0,L=0,P=!0,D="",N=(n.track.language,function(t){if(t.spanified)return t.characterCount;function e(t){return!!t.length}function n(t){l++,z.applyStyles(t,{display:"block",lineHeight:"auto",height:u+"px",width:p+"px",textAlign:"center"})}var i,r,o,s,a="<span class='captionator-cue-character'>",l=0;for(i in t.childNodes)t.childNodes.hasOwnProperty(i)&&!t.childNodes[i].nospan&&(3===(r=t.childNodes[i]).nodeType?(s=document.createDocumentFragment(),o=r.nodeValue,s.appendChild(document.createElement("span")),s.childNodes[0].innerHTML=a+o.split(/(.)/).filter(e).join("</span>"+a)+"</span>",[].slice.call(s.querySelectorAll("span.captionator-cue-character"),0).forEach(n),r.parentNode.replaceChild(s,r)):1===t.childNodes[i].nodeType&&(l+=N(t.childNodes[i])));return t.characterCount=l,t.spanified=!0,l});if(m=z.getNodeMetrics(e),e._captionator_availableCueArea||(e._captionator_availableCueArea={bottom:m.height-m.controlHeight,right:m.width,top:0,left:0,height:m.height-m.controlHeight,width:m.width}),"horizontal"===n.direction&&(z.applyStyles(t,{width:"auto",position:"static",display:"inline-block",padding:"1em"}),I=parseInt(t.offsetWidth,10),L=(L=Math.floor(I/e._captionator_availableCueArea.width*100))<=100?L:100),a=m.height*(B/100)/96*72,a=H<=a?a:H,u=Math.floor(a/72*96),l=Math.floor(a*U),l=j<l?l:j,f=Math.ceil(l/72*96),(p=f)*Math.floor(m.height/f)<m.height&&(f=Math.floor(m.height/Math.floor(m.height/f)),l=Math.ceil(f/96*72)),f*Math.floor(m.width/f)<m.width&&(p=Math.ceil(m.width/Math.floor(m.width/f))),h=Math.floor(e._captionator_availableCueArea.height/f),d=Math.floor(e._captionator_availableCueArea.width/p),0===parseFloat(String(n.size).replace(/[^\d\.]/gi,""))?!0===M.sizeCuesByTextBoundingBox?i=L:P=!(i=100):(P=!1,i=(i=parseFloat(String(n.size).replace(/[^\d\.]/gi,"")))<=100?i:100),o="horizontal"===n.direction?Math.floor(.01*m.width):0,s="horizontal"===n.direction?0:Math.floor(.01*m.height),"auto"===n.linePosition?n.linePosition="horizontal"===n.direction?h:d:String(n.linePosition).match(/\%/)&&(n.snapToLines=!1,n.linePosition=parseFloat(String(n.linePosition).replace(/\%/gi,""))),"horizontal"===n.direction)S=f,"auto"!==n.textPosition&&P&&(L<i-(R=parseFloat(String(n.textPosition).replace(/[^\d\.]/gi,"")))?i-=R:i=L),w=!0===n.snapToLines?e._captionator_availableCueArea.width*(i/100):m.width*(i/100),A="auto"===n.textPosition?(e._captionator_availableCueArea.right-w)/2+e._captionator_availableCueArea.left:(R=parseFloat(String(n.textPosition).replace(/[^\d\.]/gi,"")),(e._captionator_availableCueArea.right-w)*(R/100)+e._captionator_availableCueArea.left),b=!0===n.snapToLines?(h-1)*f+e._captionator_availableCueArea.top:(c=m.controlHeight+f+2*s,(m.height-c)*(n.linePosition/100));else{if(b=e._captionator_availableCueArea.top,A=e._captionator_availableCueArea.right-p,w=p,S=e._captionator_availableCueArea.height*(i/100),E=N(t),x=[].slice.call(t.querySelectorAll("span.captionator-cue-character"),0),T=Math.floor((S-2*s)/u),w=Math.ceil(E/T)*p,_=Math.ceil(E/T),C=(E-T*(_-1))*u,!0===n.snapToLines)A="vertical-lr"===n.direction?e._captionator_availableCueArea.left:e._captionator_availableCueArea.right-w;else{var V=w+2*o;A="vertical-lr"===n.direction?(m.width-V)*(n.linePosition/100):m.width-V-(m.width-V)*(n.linePosition/100)}b="auto"===n.textPosition?(e._captionator_availableCueArea.bottom-S)/2+e._captionator_availableCueArea.top:(n.textPosition=parseFloat(String(n.textPosition).replace(/[^\d\.]/gi,"")),(e._captionator_availableCueArea.bottom-S)*(n.textPosition/100)+e._captionator_availableCueArea.top),g=v=O=k=0,x.forEach(function(t,e){v="vertical-lr"===n.direction?p*k:w-p*(k+1),"start"===n.alignment||"start"!==n.alignment&&k<_-1?g=O*u+s:"end"===n.alignment?g=O*u-u+(S+2*s-C):"middle"===n.alignment&&(g=(S-2*s-C)/2+O*u),t.setAttribute("aria-hidden","true"),z.applyStyles(t,{position:"absolute",top:g+"px",left:v+"px"}),T-1<=O?(O=0,k++):O++}),t.accessified||(D=n.text.getPlain(e.currentTime),(y=document.createElement("div")).innerHTML=D,y.nospan=!0,t.appendChild(y),t.accessified=!0,z.applyStyles(y,{position:"absolute",overflow:"hidden",width:"1px",height:"1px",opacity:"0",textIndent:"-999em"}))}if("horizontal"===n.direction&&(r="rtl"===z.checkDirection(String(n.text))?{start:"right",middle:"center",end:"left"}[n.alignment]:{start:"left",middle:"center",end:"right"}[n.alignment]),z.applyStyles(t,{position:"absolute",overflow:"hidden",width:w+"px",height:S+"px",top:b+"px",left:A+"px",padding:s+"px "+o+"px",textAlign:r,backgroundColor:"rgba("+W.join(",")+")",direction:z.checkDirection(String(n.text)),lineHeight:l+"pt",boxSizing:"border-box"}),"vertical"===n.direction||"vertical-lr"===n.direction)A-e._captionator_availableCueArea.left-e._captionator_availableCueArea.left>=e._captionator_availableCueArea.right-(A+w)?e._captionator_availableCueArea.right=A:e._captionator_availableCueArea.left=A+w,e._captionator_availableCueArea.width=e._captionator_availableCueArea.right-e._captionator_availableCueArea.left;else{if(t.scrollHeight>1.2*t.offsetHeight)if(n.snapToLines){for(var F=0;t.scrollHeight>1.2*t.offsetHeight;)S+=f,t.style.height=S+"px",F++;b-=F*f,t.style.top=b+"px"}else{t.scrollHeight;S=t.scrollHeight+s,c=m.controlHeight+S+2*s,b=(m.height-c)*(n.linePosition/100),t.style.height=S+"px",t.style.top=b+"px"}b-e._captionator_availableCueArea.top-e._captionator_availableCueArea.top>=e._captionator_availableCueArea.bottom-(b+S)&&e._captionator_availableCueArea.bottom>b?e._captionator_availableCueArea.bottom=b:e._captionator_availableCueArea.top<b+S&&(e._captionator_availableCueArea.top=b+S),e._captionator_availableCueArea.height=e._captionator_availableCueArea.bottom-e._captionator_availableCueArea.top}},z.styleCueCanvas=function(t){var e,n,i,r,o,s,a=t._captionatorOptions instanceof Object?t._captionatorOptions:{};if(!(t instanceof HTMLVideoElement))throw new Error("Cannot style a cue canvas for a non-video node!");if(t._containerObject&&(o=(i=t._containerObject).id),t._descriptionContainerObject&&(s=(r=t._descriptionContainerObject).id),r?r.parentNode||document.body.appendChild(r):((r=document.createElement("div")).className="captionator-cue-descriptive-container",s=z.generateID(),r.id=s,(t._descriptionContainerObject=r).setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.setAttribute("role","region"),document.body.appendChild(r),z.applyStyles(r,{position:"absolute",overflow:"hidden",width:"1px",height:"1px",opacity:"0",textIndent:"-999em"})),i)i.parentNode||document.body.appendChild(i);else{if((i=document.createElement("div")).className="captionator-cue-canvas",o=z.generateID(),i.id=o,a.appendCueCanvasTo){var l=null;if(a.appendCueCanvasTo instanceof HTMLElement)l=a.appendCueCanvasTo;else if("string"==typeof a.appendCueCanvasTo)try{var u=document.querySelectorAll(a.appendCueCanvasTo);if(!(0<u.length))throw null;l=u[0]}catch(t){l=document.body,a.appendCueCanvasTo=!1}else l=document.body,a.appendCueCanvasTo=!1;l.appendChild(i)}else document.body.appendChild(i);t._containerObject=i}var c=z.getNodeMetrics(t);e=c.height*(B/100)/96*72,e=H<=e?e:H,n=Math.floor(e*U),n=j<n?n:j,z.applyStyles(i,{position:"absolute",overflow:"hidden",zIndex:100,height:c.height-c.controlHeight+"px",width:c.width+"px",top:(a.appendCueCanvasTo?0:c.top)+"px",left:(a.appendCueCanvasTo?0:c.left)+"px",color:"white",fontFamily:"Verdana, Helvetica, Arial, sans-serif",fontSize:e+"pt",lineHeight:n+"pt",boxSizing:"border-box"})},z.createDOMException=function(e,n,i){try{document.querySelectorAll("div/[]")}catch(t){var r=function(t,e,n){this.code=t,this.message=e,this.name=n};return r.prototype=t,new r(e,n,i)}},z.compareArray=function(t,e){if(t instanceof Array&&e instanceof Array){if(t.length!==e.length)return!1;for(var n in t)if(t.hasOwnProperty(n)&&t[n]!==e[n])return!1;return!0}return!1},z.generateID=function(t){var e="";for(t=t||10;e.length<t;)e+=String.fromCharCode(65+Math.floor(26*Math.random()));return"captionator"+e}}()},function(t,e){!function(){function t(t,e){return[].slice.call((e||document).querySelectorAll(t))}if(window.addEventListener){var c=window.StyleFix={link:function(n){try{if("stylesheet"!==n.rel||n.hasAttribute("data-noprefix"))return}catch(t){return}var e,i=n.href||n.getAttribute("data-href"),r=i.replace(/[^\/]+$/,""),o=(/^[a-z]{3,10}:/.exec(r)||[""])[0],s=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(r)||[""])[0],a=/^([^?]*)\??/.exec(i)[1],l=n.parentNode,u=new XMLHttpRequest;u.onreadystatechange=function(){4===u.readyState&&e()},e=function(){if((t=u.responseText)&&n.parentNode&&(!u.status||u.status<400||600<u.status)){if(t=c.fix(t,!0,n),r){var t=t.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(t,e,n){return/^([a-z]{3,10}:|#)/i.test(n)?t:/^\/\//.test(n)?'url("'+o+n+'")':/^\//.test(n)?'url("'+s+n+'")':/^\?/.test(n)?'url("'+a+n+'")':'url("'+r+n+'")'}),e=r.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");t=t.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+e,"gi"),"$1")}(e=document.createElement("style")).textContent=t,e.media=n.media,e.disabled=n.disabled,e.setAttribute("data-href",n.getAttribute("href")),l.insertBefore(e,n),l.removeChild(n),e.media=n.media}};try{u.open("GET",i),u.send(null)}catch(t){"undefined"!=typeof XDomainRequest&&((u=new XDomainRequest).onerror=u.onprogress=function(){},u.onload=e,u.open("GET",i),u.send(null))}n.setAttribute("data-inprogress","")},styleElement:function(t){if(!t.hasAttribute("data-noprefix")){var e=t.disabled;t.textContent=c.fix(t.textContent,!0,t),t.disabled=e}},styleAttribute:function(t){var e=t.getAttribute("style");e=c.fix(e,!1,t);t.setAttribute("style",e)},process:function(){t('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link),t("style").forEach(StyleFix.styleElement),t("[style]").forEach(StyleFix.styleAttribute)},register:function(t,e){(c.fixers=c.fixers||[]).splice(void 0===e?c.fixers.length:e,0,t)},fix:function(t,e,n){for(var i=0;i<c.fixers.length;i++)t=c.fixers[i](t,e,n)||t;return t},camelCase:function(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()}).replace("-","")},deCamelCase:function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}};setTimeout(function(){t('link[rel="stylesheet"]').forEach(StyleFix.link)},10),document.addEventListener("DOMContentLoaded",StyleFix.process,!1)}}(),function(a){function o(t,e,n,i,r){return(t=u[t]).length&&(t=RegExp(e+"("+t.join("|")+")"+n,"gi"),r=r.replace(t,i)),r}if(window.StyleFix&&window.getComputedStyle){var u=window.PrefixFree={prefixCSS:function(t,e,n){var i=u.prefix;if(-1<u.functions.indexOf("linear-gradient")&&(t=t.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(t,e,n,i){return e+(n||"")+"linear-gradient("+(90-i)+"deg"})),t=o("functions","(\\s|:|,)","\\s*\\(","$1"+i+"$2(",t),t=o("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+i+"$2$3",t),t=o("properties","(^|\\{|\\s|;)","\\s*:","$1"+i+"$2:",t),u.properties.length){var r=RegExp("\\b("+u.properties.join("|")+")(?!:)","gi");t=o("valueProperties","\\b",":(.+?);",function(t){return t.replace(r,i+"$1")},t)}return e&&(t=o("selectors","","\\b",u.prefixSelector,t),t=o("atrules","@","\\b","@"+i+"$1",t)),(t=t.replace(RegExp("-"+i,"g"),"-")).replace(/-\*-(?=[a-z]+)/gi,u.prefix)},property:function(t){return(0<=u.properties.indexOf(t)?u.prefix:"")+t},value:function(t,e){return t=o("functions","(^|\\s|,)","\\s*\\(","$1"+u.prefix+"$2(",t),t=o("keywords","(^|\\s)","(\\s|$)","$1"+u.prefix+"$2$3",t),0<=u.valueProperties.indexOf(e)&&(t=o("properties","(^|\\s|,)","($|\\s|,)","$1"+u.prefix+"$2$3",t)),t},prefixSelector:function(t){return t.replace(/^:{1,2}/,function(t){return t+u.prefix})},prefixProperty:function(t,e){var n=u.prefix+t;return e?StyleFix.camelCase(n):n}};!function(){function t(t){if("-"===t.charAt(0)){i.push(t);var e=(t=t.split("-"))[1];for(n[e]=++n[e]||1;3<t.length;)t.pop(),e=t.join("-"),StyleFix.camelCase(e)in r&&-1===i.indexOf(e)&&i.push(e)}}var n={},i=[],e=getComputedStyle(document.documentElement,null),r=document.createElement("div").style;if(0<e.length)for(var o=0;o<e.length;o++)t(e[o]);else for(var s in e)t(StyleFix.deCamelCase(s));var a,l;o=0;for(l in n)o<(e=n[l])&&(a=l,o=e);for(u.prefix="-"+a+"-",u.Prefix=StyleFix.camelCase(u.prefix),u.properties=[],o=0;o<i.length;o++)0===(s=i[o]).indexOf(u.prefix)&&(a=s.slice(u.prefix.length),StyleFix.camelCase(a)in r||u.properties.push(a));!("Ms"!=u.Prefix||"transform"in r||"MsTransform"in r)&&"msTransform"in r&&u.properties.push("transform","transform-origin"),u.properties.sort()}(),function(){function t(t,e){return r[e]="",r[e]=t,r[e]}var e={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};e["repeating-linear-gradient"]=e["repeating-radial-gradient"]=e["radial-gradient"]=e["linear-gradient"];var n={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display",grid:"display","inline-grid":"display","max-content":"width","min-content":"width","fit-content":"width","fill-available":"width"};u.functions=[],u.keywords=[];var i,r=document.createElement("div").style;for(i in e){var o,s=(o=e[i]).property;!t(o=i+"("+o.params+")",s)&&t(u.prefix+o,s)&&u.functions.push(i)}for(var a in n)!t(a,s=n[a])&&t(u.prefix+a,s)&&u.keywords.push(a)}(),function(){function t(t){return r.textContent=t+"{}",r.sheet.cssRules.length}var e={":read-only":null,":read-write":null,":any-link":null,"::selection":null},n={keyframes:"name",viewport:null,document:'regexp(".")'};u.selectors=[],u.atrules=[];var i,r=a.appendChild(document.createElement("style"));for(i in e){var o=i+(e[i]?"("+e[i]+")":"");!t(o)&&t(u.prefixSelector(o))&&u.selectors.push(i)}for(var s in n)!t("@"+(o=s+" "+(n[s]||"")))&&t("@"+u.prefix+o)&&u.atrules.push(s);a.removeChild(r)}(),u.valueProperties=["transition","transition-property"],a.className+=" "+u.prefix,StyleFix.register(u.prefixCSS)}}(document.documentElement)},function(t,e,c){"use strict";var n;void 0===(n=function(t){var s=c(7),e=(c(5),c(14),c(2)),n=c(1),i=c(6).addWindowListener,a=document.createElement("div");document.body.appendChild(a);var r=document.getElementById("focus-sink"),l=void 0,u=!window.globals.HAS_FRAME,o={initialize:function(){_.bindAll(this,"onSlideStarted","takeFocusOff"),n.on(e.slide.STARTED,this.onSlideStarted),i("resize",this.takeFocusOff)},setFocusRectOn:function(r,t,e){var o=2<arguments.length&&void 0!==e?e:0;if(!u)if(null!=r){var n=[];n=null==t?r.getClientRects():Array.isArray(t)?[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(t)):[t],n=_.map(n,function(t){var e={left:t.left,top:t.top,width:t.width,height:t.height,bottom:t.bottom,right:t.right};if(s.hasClass(r,"acc-shadow-el")){var n=DS.views.getTopNameSpace().slide.el.getBoundingClientRect();e.left=Math.max(e.left,n.left),e.top=Math.max(e.top,n.top),e.right=Math.min(e.right,n.right),e.bottom=Math.min(e.bottom,n.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}else e.bottom=e.right="";for(var i in e.left-=o,e.top-=o,e.width+=2*o,e.height+=2*o,e)e[i]+="px";return e}),a.innerHTML="",_.forEach(n,function(t){var e=document.createElement("div");e.className="tab-focus-box",a.appendChild(e),s.setStyles(e,t)}),l=r}else console.warn('cannot set focus rect on "null"')},takeFocusOff:function(t){null!=t&&t!==l||(a.innerHTML="")},reCenter:function(){document.body.focus(),this.takeFocusOff()},onSlideStarted:function(t,e){var n=this;if(!u&&null!=e.currView&&document.hasFocus()){var i=s.closest(e.currView.el,function(t){return"label"===t.firstElementChild.getAttribute("data-ref")});i.contains(document.activeElement)||(r.focus(),window.requestAnimationFrame(function(){return i.focus()})),window.setTimeout(function(){return n.setFocusRectOn(i)},16)}}};return o.initialize(),o}.call(e,c,e,t))||(t.exports=n)},function(t,e,o){"use strict";var n;function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}void 0===(n=function(t){var n=o(22),e=o(9),i=o(8),r=e.warn("fontHelper");return{loadFonts:function(t){if(null==n.loadFonts)return i.promiseToVow(Promise.all(Array.from(document.fonts).map(function(t){return t.load()})));var e=DS.frame.getFonts().reduce(function(t,i){return t.push.apply(t,s(i.files.map(function(t){var e=t.bold,n=t.italic;return{name:i.name,bold:e,italic:n}}))),t},[]);return n.loadFonts([].concat(s(t.get("fontLib")||[]),s(e)),r)}}}.call(e,o,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){var d=u(0),e=u(6),n=e.addWindowListener,i=e.addDocumentListener,f=e.addBodyListener,o=u(5),p=(u(2),u(1),u(3)),v=u(7),g=u(12),s=(u(4),u(23)),r=u(34),m=u(54),a=r.camelCase("transform"),l={doFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},styleIfExists:function(t,e,n){t&&(t.style[e]=n)},androidOrientation:function(){document.querySelector(".slide-controls"),document.querySelector(".option-pane");o.orientation.isPortrait?(this.styleIfExists(this.optionPane,"minHeight",null),this.styleIfExists(this.slideControls,"display","block")):(this.styleIfExists(this.optionPane,"minHeight",p.pxify(this.smallestSide)),this.styleIfExists(this.slideControls,"display","none"))},initAndroid:function(){this.doFullScreen(document.documentElement),this.smallestSide=Math.min(document.documentElement.clientHeight,document.documentElement.clientWidth),document.body.style.minHeight=o.smallestSide+"px"},initTouchableThemeAndPhone:function(){var t,i,r;document.body.style.height="120%",document.querySelector("#preso").style.position="fixed",10<=o.os.iOSVersion&&setInterval(function(){var t=document.querySelector(".controls"),e=window.innerHeight,n=document.documentElement.clientHeight;e<n?(i=n-e)!==r&&null!=t&&(t.style[a]=s.transformTranslate(p.pxify(0),p.pxify(-i)),r=i):null!=t&&""!==t.style[a]&&(t.style[a]="")},100),n("resize",function(){clearTimeout(t),t=setTimeout(function(){window.scrollTo(0,1)},30)})},initIOS:function(){var r=document.querySelector(".mobile-chrome-warning");r.innerHTML='<div class="mobile-chrome-warning-btn">\n      <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0px" y="0px" width="107px" height="78px" viewBox="0 0 107 78">\n\n        <g id="mobile-chrome-warning-arrow">\n          <path fill="white" stroke="none" d="\n          M 24.1 31.4\n          L 12.05 15.85 0 31.4 8.3 31.4 8.3 54 15.25 54 15.25 31.4 24.1 31.4 Z"></path>\n        </g>\n\n        <path id="mobile-chrome-warning-hand" stroke="white" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" fill="none" d="\n        M 37.55 16.1\n        Q 36.3 14.8 36.3 13.1 36.3 11.45 37.55 10.15 38.85 8.9 40.55 8.9 42.2 8.9 43.5 10.15\n        L 46.75 13.375 46.75 13.35\n        Q 45.5 12.05 45.5 10.35 45.5 8.7 46.75 7.4 48.05 6.15 49.75 6.15 51.4 6.15 52.7 7.4\n        L 57 11.65\n        Q 56.05 10.4828125 56.05 9 56.05 7.3 57.3 6 58.6 4.8 60.3 4.8 62 4.8 63.3 6\n        L 74.3 17\n        Q 76.3 19.05 77.5 21.55 78.75 24.05 79.1 26.9 79.4 29.7 80.65 32.25 81.85 34.75 83.85 36.75\n        L 85.6 38.5 69.5 54.6\n        Q 68.25 53.35 66.5 52.1 64.75 50.8 62.85 49.85 60.95 48.85 59.25 48.5\n        L 32 42.5\n        Q 31.15 42.3 30.45 41.8 29.1 40.8 28.85 39.3 28.6 37.85 29.35 36.55 30.05 35.25 31.65 34.7\n        L 31.9 34.65\n        Q 32.55 34.45 33.25 34.45\n        L 44.3 34.9 17.65 8.2\n        Q 16.4 6.9 16.4 5.2 16.4 3.55 17.65 2.25 18.95 1 20.65 1 22.3 1 23.6 2.25\n        L 37.55 16.1 39.2 17.75\n        M 58.95 13.65\n        L 58.075 12.775 57.3 12\n        Q 57.140234375 11.833984375 57 11.65\n        L 58.075 12.775\n        M 46.75 13.375\n        L 48.4 15"></path>\n\n      </svg>\n    </div>\n\n    <div class="mobile-chrome-warning-bubble">\n      Drag up for fullscreen\n    </div>';var t,o,s,a,e,l=document.querySelector(".mobile-chrome-warning-bubble"),u=document.querySelector(".mobile-chrome-warning-btn"),c=document.querySelector("#preso"),h=0;document.body.style.height="120%",i("touchstart",function(){o=!0}),i("touchend",function(){o=!1}),r.addEventListener("touchstart",function(){g.killTweensOf(l),g.killTweensOf(u),g.to(u,.05,{opacity:1,scaleX:.6,scaleY:.6}),g.to(l,.1,{opacity:1}),g.to(l,.3,{opacity:0,delay:3})}),setInterval(function(){var t=document.activeElement,e=window.innerHeight,n=document.documentElement.clientHeight,i=e<n;d.extend(c.style,{position:"fixed",left:"0px",top:"0px",zIndex:0}),t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName)||(i?("block"!==r.style.display&&"none"!==c.style.display&&(r.style.display="block",g.killTweensOf(l),g.killTweensOf(u),g.set(l,{opacity:0}),g.to(l,1,{opacity:1}),g.to(l,.8,{opacity:0,delay:3}),g.to(u,.35,{opacity:.85,delay:3.5,scaleX:.55,scaleY:.55,ease:"back.out"}),s=!0,h=Math.abs(window.innerHeight-document.body.clientHeight)),0===document.body.scrollTop||o||window.scrollTo(0,0)):"none"!==r.style.display&&"block"!==c.style.display&&(r.style.display="none",c.style.zIndex=null,s=!1))},100),n("resize",function(){clearTimeout(t),t=setTimeout(function(){window.scrollTo(0,1)},30)}),f("touchstart",function(t){1===t.touches.length&&(a=t.touches[0].clientY),s&&(h=Math.abs(window.innerHeight-document.body.clientHeight))});!function t(){if(s&&o){var e=Math.abs(Math.abs(window.innerHeight-document.body.clientHeight)-h)/88;r.style.opacity=1-e,r.style.height=p.pxify(75+150*e)}else o||(r.style.opacity=1,r.style.height="75px");window.requestAnimationFrame(t)}(),f("touchmove",function(t){var i,e=!1,n=t.target,r=v.parentNodesOf(n,function(t){return m.isScrollable(t)});m.isScrollable(n)&&r.unshift(n),s||(e=1!==t.touches.length||null==a||(i=t.touches[0].clientY,!d.isEmpty(r)&&r.every(function(t){var e=0===t.scrollTop&&a<i,n=t.scrollTop+t.offsetHeight===t.scrollHeight&&i<a;return e||n}))),e&&t.preventDefault()}),f("touchend",function(){a=null}),document.documentElement.addEventListener("touchstart",function(t){1===t.touches.length&&(e?t.preventDefault():(e=!0,setTimeout(function(){e=!1},500)))})}};return o.theme.isClassic&&o.device.isMobile&&window.addEventListener("scroll",function(){document.body.scrollTop<0&&(document.body.scrollTop=0)}),document.addEventListener("touchmove",function(t){1!==t.touches.length&&t.preventDefault()},{passive:!1}),o.env.isInIframe||o.deviceView.isTablet?l.init=d.noop:o.os.isAndroid&&!o.env.is360?l.init=l.initAndroid:o.os.isIOS&&o.device.isPhone?l.init=l.initTouchableThemeAndPhone:o.os.isIOS&&8<=o.os.iOSVersion?l.init=l.initIOS:l.init=d.noop,l}.call(e,u,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i,r;i=[n(0),n(9),n(1),n(2),n(10),n(24),n(4),n(3),n(17)],void 0===(r=function(i,t,s,a,n,e,l,r,o){function u(t){var e=n.resolvePath(r.prefixWithPlayer(t),{context:g,optional:!0});if(null==e)throw new Error(["No object exists at path ",r.doubleQuote(t)].join(""));return e}function c(t){f.postMessage(JSON.stringify(t),"*")}function h(){var t,e;t="notifyPreview",e=i.toArray(arguments),c({jsonrpc:"2.0",method:t,params:e})}function d(t){var e,n,i=JSON.parse(t.data);try{e=i.id,n=b[i.method].apply(this,i.params),c({jsonrpc:"2.0",id:e,result:n})}catch(t){!function(t,e){c({jsonrpc:"2.0",id:t,error:{code:-1,message:e}})}(i.id,t.message)}}var f,p,v,g,m=t.throwError("previewHelper"),y={kind:"adjustvar",operator:"set"},A={kind:"reset_player"},b={getValue:function(t){var e=u(t);return e.isVar?e.value():e},getCurrentTime:function(){return o.getCurrentWindowSlide().currentTimeline().elapsedTime()},setCurrentTime:function(t){o.getCurrentWindowSlide().currentTimeline().seek(t)},gotoSlide:function(t){s.trigger(a.request.NEXT_SLIDE,r.prefixWithPlayer(t))},overrideOrientations:function(t){v.set("orientations",t)},resetPlayer:function(t){p.executeAction(i.defaults({startslideid:r.prefixWithPlayer(t)},A),{context:g})},resetSlide:function(t){var e=u(t);if(!e.isSlide)throw new Error(["Object at",r.doubleQuote(t),"is not a slide"].join(" "));e.reset()},setVariable:function(t,e){var n=u(t);if(!n.isVar)throw new Error(["Object at",r.doubleQuote(t),"is not a variable"].join(" "));p.executeAction(i.defaults({variable:n.absoluteId,value:{type:n.type(),value:e}},y),{context:g})},setBackgroundColor:function(t){document.body.style.background=t},setStringTable:function(t){e.reInit(JSON.parse(t)),s.trigger(a.controlOptions.RESET),S(DS.frameModel.frame.controlOptions.controls.closed_captions)},setColorScheme:function(t){var e=DS.frameModel.frame.controlOptions.controls.closed_captions;w("player-preview-css",t),s.trigger(a.scheme.CHANGED,"player-preview-css"),s.trigger(a.controlOptions.RESET),S(e)},setFontScale:function(t){s.trigger(a.frame.FONT_SCALE,t),S(DS.frameModel.frame.controlOptions.controls.closed_captions)},setControlOptions:function(t,e){var n=JSON.parse(t),i=JSON.parse(e),r=DS.frameModel.outlineInSidebar,o=DS.frameModel.sidebarOpts.closed;s.trigger(a.controlLayout.UPDATE,DS.frameModel.frame.default_layout,l.refs.FRAME,i),s.trigger(a.controlOptions.CHANGED,n),!r&&DS.frameModel.outlineInSidebar||!i.outline.search?s.trigger(a.sidebar.HIDE_SEARCH):i.outline.search&&i.outline.enabled&&!DS.frameModel.outlineInSidebar&&s.trigger(a.sidebar.SHOW_SEARCH),o&&!DS.frameModel.sidebarOpts.closed?s.trigger(a.sidebar.OPEN):!o&&DS.frameModel.sidebarOpts.closed&&s.trigger(a.sidebar.CLOSE),S(n.controls.closed_captions)},setGlossaryData:function(t){var e=JSON.parse(t);s.trigger(a.glossary.UPDATE,e)},setNavData:function(t){var e=JSON.parse(t);s.trigger(a.navData.UPDATE,e),S(DS.frameModel.frame.controlOptions.controls.closed_captions)},setSkipNav:function(t){t!=DS.frameModel.frame.skip_nav_enabled&&(DS.frameModel.frame.skip_nav_enabled=t,DS.pubSub.trigger(DS.events.controlOptions.RESET),S(DS.frameModel.frame.controlOptions.controls.closed_captions))},setResources:function(t){var e=JSON.parse(t);s.trigger(a.resources.UPDATE,e)},setResourcesDescription:function(t){s.trigger(a.resources.UPDATE_DESCRIPTION,t)},setActiveTab:function(t){s.trigger(a.sidebar.ACTIVE_TAB_SET,t)},setChromeless:function(t){t!=DS.frameModel.frame.chromeless&&(DS.frameModel.frame.chromeless=t,s.trigger(a.frameModel.CHROMELESS_CHANGED,t),S(DS.frameModel.frame.controlOptions.controls.closed_captions))},setFont:function(t){w("player-preview-font-css",t),s.trigger(a.controlOptions.RESET),S(DS.frameModel.frame.controlOptions.controls.closed_captions)},setTextDirection:function(t){t!=DS.frameModel.frame.textdirection&&(DS.frameModel.frame.textdirection=t,DS.frameModel.rtl="rtl"===t,s.trigger(a.controlOptions.RESET),s.trigger(a.navData.REFRESH_VIEW),S(DS.frameModel.frame.controlOptions.controls.closed_captions))},setFrameSize:function(t,e){DS.presentation.updateTotalSize(t,e),DS.scaler.scale()}},w=function(t,e){var n=document.getElementById(t);null==n&&((n=document.createElement("style")).id=t,document.body.appendChild(n)),n.innerText=e},S=function(t){window.globals.HAS_SLIDE||(s.trigger(a.slide.STARTED,"dummySlide",g.getFirstSlide(),l.refs.FRAME),s.trigger(a.navData.SELECT_FIRST_SLIDE_LINK),t?s.trigger(a.captions.SHOW_BUTTON):s.trigger(a.captions.HIDE_BUTTON))};return{initialize:function(t,e,n){p=n,e.isPreview()&&(null!=window.parent&&window.parent!==window?(v=t,g=e,f=window.parent,window.document.getElementById(l.els.PRESO).addEventListener("click",function(){return h("PREVIEW_CLICKED")}),window.addEventListener("message",d),window.globals.HAS_SLIDE||S(DS.frameModel.frame.controlOptions.controls.closed_captions),s.on(a.preview.NOTIFY,h),h("PREVIEW_FRAME_READY")):m("initialize","Cannot load parent window"))}}}.apply(e,i))||(t.exports=r)},function(t,e,n){"use strict";var i;void 0===(i=function(t){var h=n(4);return{initialize:function(t){if(this.isInitialized=!0,t){var e=document.createElement("div");e.id="slide";var n=document.createElement("div");n.className="slide-container",e.appendChild(n),document.getElementById(h.els.PRESO).appendChild(e),DS.frame={createWindow:function(){return{el:e,captionEl:document.createElement("div"),id:h.refs.FRAME,x:function(){return 0},y:function(){return 0},getWinScale:function(){return DS.scaler.getScale()},onPinchZoom:function(){},getPinchZoomBounds:function(){}}}}}else{var i=this.getPreviewInfo(),r=i.totalWidth,o=i.totalHeight,s=this.getPreviewInfo(),a=s.slideWidth,l=s.slideHeight,u=s.slideDurationMs,c=s.text;DS.presentation={isPreview:function(){return!0},getFirstSlide:function(){return{props:{width:a,height:l},get:function(t){return this.props[t]},currentTimelineCompletedOnce:function(){return!1},currentTimeline:function(){return{on:function(){},off:function(){},progress:function(){return.5},timelineDuration:function(){return u},playbackState:function(){return"paused"},isPlaying:function(){return!1}}},on:function(){},off:function(){}}},updateTotalSize:function(t,e){r=t,o=e},display:function(){return{width:function(){return r},height:function(){return o},getWindowById:function(){}}},assetLib:function(){},slideMap:function(){}},DS.renderEngine={createWindowFor:function(){var t=document.getElementById("slide");t.className="placeholder";var e=document.createElement("div");return e.className="placeholder-text",e.style.fontSize="8vw",e.innerText=c,t.appendChild(e),t}}}},getPreviewInfo:function(){return{slideWidth:this.getPreviewInfoParameter("slideWidth",720,parseInt),slideHeight:this.getPreviewInfoParameter("slideHeight",540,parseInt),totalWidth:this.getPreviewInfoParameter("totalWidth",980,parseInt),totalHeight:this.getPreviewInfoParameter("totalHeight",658,parseInt),slideDurationMs:this.getPreviewInfoParameter("slideDurationMs",5e3,parseInt),text:this.getPreviewInfoParameter("text","SLIDE")}},getPreviewInfoParameter:function(t,e,n){if(null==window.globals.parsedParams)return e;var i=window.globals.parsedParams[t];return null==i?e:null==n?i:n(i)}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){"use strict";var i;void 0===(i=function(t){for(var o=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[e[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]+"CancelAnimationFrame"]||window[e[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var n=(new Date).getTime(),i=Math.max(0,16-(n-o)),r=window.setTimeout(function(){t(n+i)},i);return o=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}.call(e,n,e,t))||(t.exports=i)},function(t,e,y){"use strict";var n;void 0===(n=function(t){var n=y(0),r=y(6).addDocumentListener,i=y(7).isInput,o=y(14),s=y(18),a=y(52),l=y(5),u=y(19),c=y(1),h=y(2),d=y(13),f=[],p=void 0,v=void 0,g={submit:!0,prev:!0,next:!0},m={submit:!0,prev:!0,next:!0};return{enabled:!0,initialize:function(t){var e=this;v=t||function(t){return t},n.bindAll(this,"onTimelineChanged","onNavControlsChanged"),l.deviceView.isUnifiedDesktop&&!DS.presentation.isPreview()&&this.registerShortcut(v("togglezoom"),{key:"z",ctrl:!0,alt:!0},function(){o.enableZoomMode(!o.zoomMode)}),s.accTextEnabled&&l.deviceView.isDesktop&&(c.on(h.navcontrols.CHANGED,this.onNavControlsChanged),c.on(h.playbackControls.TIMELINE_CHANGED,this.onTimelineChanged),this.registerShortcut(v("acctext_shortcut"),{key:"t",ctrl:!0,alt:!0},function(){d.onToggleAccessibleText()}),this.registerShortcut(v("mute_shortcut"),{key:"m",ctrl:!0,alt:!0},function(){d.onToggleVolume()}),this.registerShortcut(v("closedcaptions_shortcut"),{key:"c",ctrl:!0,alt:!0},function(){u.toggleCaptioning()}),this.registerShortcut(v("replay_shortcut"),{key:"r",ctrl:!0,alt:!0},function(){e.currTimeline.reset()}),this.registerShortcut(v("playpause_shortcut"),{key:"p",ctrl:!0,alt:!0},function(){null!=e.currTimeline&&(1!==e.currTimeline.progress()?e.currTimeline.togglePlayback():l.theme.isUnified&&e.currTimeline.reset())}),this.registerShortcut(v("previous_shortcut"),{key:",",ctrl:!0,alt:!0},function(){e.onControlButtonShortcut("prev")}),this.registerShortcut(v("next_shortcut"),{key:".",ctrl:!0,alt:!0},function(){e.onControlButtonShortcut("next")}),this.registerShortcut(v("submit_shortcut"),{key:"s",ctrl:!0,alt:!0},function(){e.onControlButtonShortcut("submit")}))},onControlButtonShortcut:function(t){g[t]&&m[t]&&c.trigger(h.presentation.ON_OBJECT_EVENT,t+"_pressed")},onTimelineChanged:function(t){this.currTimeline=t},onNavControlsChanged:function(t){var e=t.name,n=t.enable,i=t.kind,r=t.visible;"set_window_control_visible"===i?m[e]=r:g[e]=n},closeShortcutWindow:function(){null!=p&&(p.close(),p=null)},registerShortcut:function(t,e,n){var i=this;this.listenerAdded||(this.listenerAdded=!0,r("keydown",function(t){return i.onKeyDown(t)}),this.registerShortcut(v("shortcuthelp"),{key:"?",shift:!0},function(){null==p?p=DS.frame.createWindow("ShortcutWnd"):i.closeShortcutWindow()})),f.push({name:t,keyInfo:e,cb:n})},enableShortcuts:function(t){this.enabled=t,c.trigger(DS.events.player.ENABLE_KEYBOARD_SHORTCUTS,t)},onKeyDown:function(t){var l=t.ctrlKey,u=t.shiftKey,c=t.altKey,h=t.key;if(!(i(document.activeElement)||a.keyPressHandlerExists(t)||!this.enabled&&"?"!==h)){var e=f.find(function(t){var e=t.keyInfo,n=e.key,i=e.ctrl,r=void 0!==i&&i,o=e.shift,s=void 0!==o&&o,a=e.alt;return r===l&&s===u&&(void 0!==a&&a)===c&&n.toLowerCase()===h.toLowerCase()});e&&e.cb()}},getShortcutList:function(){return[].concat(f)}}}.call(e,y,e,t))||(t.exports=n)},function(t,e,u){"use strict";var n;void 0===(n=function(t){function r(t){var e=t.viewed,n=t.total;return 0===n?"":(100*e/n).toFixed(0)+"%"}function i(){var t=A.getCurrentWindowSlide();if(null!=t){var e=t.getScene();if(!e.isMessageScene()){var n,i,r,o,s,a,l,u,c,h=b.slides[t.absoluteId],d=y.variables(),f=(i=(n=t).getScene(),r=b.slides[n.absoluteId].menuSection,o=new Set,s=new Set,a={total:0,viewed:0},l={total:0,viewed:0},u={total:0,viewed:0},c={total:0,viewed:0},v.forEach(b.slides,function(t){var e=t.slide.viewed;t.slide.includeInSlideCounts()&&(a.total++,e&&(a.viewed++,o.add(t.scene)),t.scene===i&&(l.total++,e&&l.viewed++)),null!=t.menuSection&&t.slide.includeInSlideCounts()&&(u.total++,e&&(u.viewed++,s.add(t.menuSection)),t.menuSection===r&&(c.total++,e&&c.viewed++))}),{viewedSceneCount:o.size,viewedSectionCount:s.size,project:a,scene:l,menu:u,section:c}),p={sceneNumber:e.sceneNumber(),menuInclude:null!=h.menuSection?function(t){return t}:function(t){return""},projectInclude:t.includeInSlideCounts()?function(t){return t}:function(t){return""},menuCountInclude:null!==h.menuSection&&t.includeInSlideCounts()?function(t){return t}:function(t){return""}};w.forEach(function(t){var e=t.name,n=t.update;return d.get(e).value(n(f,h,p))}),m.trigger(g.slide.SLIDE_NUMBERS_UPDATED)}}}function o(t,e){var i=0,r=0;function o(t,e){function n(t){var e=t.getSlideDraw();return null!=e?e.slideNumberInScene()+t.index():t.slideNumberInScene()}return n(t)-n(e)}b.slides={},t.scenes().forEach(function(e){if(!e.isMessageScene()){var n=0;e.getAllSlides().sort(o).forEach(function(t){b.slides[t.absoluteId]={slideNumberInProject:t.includeInSlideCounts()?++i:0,slideNumberInScene:t.includeInSlideCounts()?++n:0,slide:t,scene:e},b.scenes[e.absoluteId]={slideCount:n}}),0!==e.sceneNumber()&&r++}}),b.sceneCount=r;var a=0,n=0;(e||[]).forEach(function(t,e){(function n(t,i,r,o,s){var e=b.slides[t.slideid];return null!=e&&(e.menuSlideNumber=e.slide.includeInSlideCounts()?++a:0,e.menuSlideTitle=l.decodeHtml(t.displaytext),e.menuSlideReference=o,e.menuSectionSlideNumber=e.slide.includeInSlideCounts()?r++:0,e.menuSection=s),v.forEach(t.links,function(t,e){r=n(t,i+1,r,o+"."+(e+1),s)}),r})(t,1,1,n=e+1,n)}),b.menuTotalSections=n}var v=u(0),g=u(2),e=u(4),m=u(1),l=u(3),y=void 0,A=void 0,b={slides:{},scenes:{}},n=e.varTypes,s=n.NUM,a=n.STRING,w=[{name:"menuSlidesViewed",update:function(t){return t.menu.viewed},type:s},{name:"menuTotalSlides",update:function(t){return t.menu.total},type:s},{name:"menuProgress",update:function(t){var e=t.menu;return r(e)},type:s},{name:"menuSectionSlidesViewed",update:function(t,e,n){var i=t.section;return(0,n.menuInclude)(i.viewed)},type:s},{name:"menuSectionTotalSlides",update:function(t,e,n){var i=t.section;return(0,n.menuInclude)(i.total)},type:s},{name:"menuSectionProgress",update:function(t,e,n){var i=t.section;return(0,n.menuInclude)(r(i))},type:s},{name:"projectSlidesViewed",update:function(t){return t.project.viewed},type:s},{name:"projectTotalSlides",update:function(t){return t.project.total},type:s},{name:"projectProgress",update:function(t){var e=t.project;return r(e)},type:s},{name:"sceneSlidesViewed",update:function(t){return t.scene.viewed},type:s},{name:"sceneTotalSlides",update:function(t){return t.scene.total},type:s},{name:"sceneProgress",update:function(t){var e=t.scene;return r(e)},type:s},{name:"menuSectionsViewed",update:function(t){return t.viewedSectionCount},type:s},{name:"projectScenesViewed",update:function(t){return t.viewedSceneCount},type:s},{name:"menuSlideNumber",update:function(t,e,n){var i=e.menuSlideNumber;return(0,n.menuCountInclude)(i)},type:s},{name:"menuSlideTitle",update:function(t,e){return e.menuSlideTitle},type:a},{name:"menuSlideReference",update:function(t,e){return e.menuSlideReference},type:a},{name:"menuSectionNumber",update:function(t,e,n){var i=e.menuSection;return(0,n.menuInclude)(i)},type:s},{name:"menuSectionSlideNumber",update:function(t,e,n){var i=e.menuSectionSlideNumber;return(0,n.menuCountInclude)(i)},type:s},{name:"menuTotalSections",update:function(){return b.menuTotalSections},type:s},{name:"projectSlideNumber",update:function(t,e,n){var i=e.slideNumberInProject;return(0,n.projectInclude)(i)},type:s},{name:"projectSlideTitle",update:function(t,e){return e.slide.title()},type:a},{name:"projectSlideReference",update:function(t,e,n){var i=e.slideNumberInScene;return n.sceneNumber+"."+i},type:a},{name:"projectTotalScenes",update:function(){return b.sceneCount},type:s},{name:"projectSceneNumber",update:function(t,e,n){var i=n.sceneNumber;return 0===i?"":i},type:s},{name:"sceneSlideNumber",update:function(t,e,n){var i=e.slideNumberInScene;return(0,n.projectInclude)(i)},type:s}];return{initialize:function(t,e,n){y=e.playerVars(),A=t,o(e,n),m.on(g.slide.HAS_MOUNTED,i),m.on(g.window.CLOSING,i),m.on(g.draw.RESET_COMPLETE,function(){return o(e,n)})},getPlayerVariables:function(){return w.map(function(t){var e=t.name,n=t.type;return{kind:"variable",name:e,type:n,value:n===s?0:"",resume:!1}})}}}.call(e,u,e,t))||(t.exports=n)},function(t,e,d){"use strict";var n;void 0===(n=function(t){var e,g=d(0),m=d(7),y=d(3),n=d(1),A=d(13),i=(d(14),d(5)),r=d(9),o=d(2),s=d(4),a=d(6),l=a.addWindowListener,u=a.addDocumentListener,c={sidebarOpen:!0,tryToSelect:function(t,e){var n=t.querySelector(e);return null==n&&r.throwError("tabFocusBox","invalid focus rule selector: ",e),n},focusRuleConfig:{VectorSlideObject:function(t){return c.tryToSelect(t,"svg g")},ImageSlideObject:function(t){return c.tryToSelect(t,"img")},VideoSlideObject:function(t){return c.tryToSelect(t,".video-slide-object")},ResourcesList:function(t){return t.parentNode}},defaultOffsets:{x:0,y:0,width:0,height:0},focusOffsetConfig:{PlayPauseButton:{x:-1,y:-3,width:0,height:0},PlaybackResetButton:{x:0,y:-2,width:0,height:0},PlaybackProgress:{x:0,y:0,width:0,height:-5},SequenceCtrlDrop:{x:30,y:0,width:0,height:0}},onAncestorHidden:function(){this.hide()},listenForHide:function(e){"SlideObject"===e.displayName&&(e.props.model.forEachAncestor(function(t){"SlideObject"===y.getPath(this,"lastItemFocused.displayName")&&(this.lastItemFocused.stopListening(t,"hidden",h),this.lastItemFocused.stopListening(this.lastItemFocused.props.model,"hidden",h)),(t.isSlideObject||t.isSlideLayer)&&e.listenTo(t,{hidden:h})}.bind(this)),e.listenTo(e.props.model,{hidden:h}))},show:function(t){null!=t&&(i.theme.isClassic||(this.handleSearch(t),this.sidebarOpen||this.isInSidebar(t),this.handleTopTabsDrop(t)),this.update(t),this.listenForHide(t),this.lastItemFocused=t)},handleTopTabsDrop:function(t){t&&t.el&&m.hasClass(t.el,"topmenu-item")&&null!=t.el.parentNode&&m.hasClass(t.el.parentNode,"top-tabs-drop")&&n.trigger(o.topTabs.OPEN_DROPDOWN,t)},handleSearch:function(t){"INPUT"===y.getPath(t,"tagName")&&m.hasClass(t,"search-input-element")&&n.trigger(o.search.SHOW)},isInSidebar:function(t){var e;null!=t.parentNode?e=t:null!=y.getPath(t,"el.parentNode")&&(e=t.el),null==e||!m.closest(e,function(t){return m.hasClass(t,"area-secondary")})||(n.trigger(o.sidebar.FORCE_OPEN),setTimeout(function(){this.update(t)}.bind(this),s.ANIMATION_DURATION))},updateLastFocusItem:function(){this.lastItemFocused&&this.update(this.lastItemFocused)},hide:function(){null!=this.borderEl&&(this.borderEl.style.display="none"),this.lastItemFocused=null,this.isShown=!1},getOrCreateBorder:function(){return null!=this.borderEl||(this.borderEl=document.createElement("div"),this.borderEl.setAttribute("class","tab-focus-box"),m.setStyles(this.borderEl,{position:"absolute",left:0,top:0,border:"3px solid yellow","pointer-events":"none","z-index":99999})),this.borderEl},slideObjectShouldUseCss:function(t){return"TextInputSlideObject"===y.getPath(t,"refs.innard.displayName")||t.decorators&&null!=t.decorators.slideable||!i.theme.isClassic&&m.hasClass(t.el,"glossary-child")},domElShouldUseCss:function(t){return t.parentNode&&m.hasClass(t.parentNode,"search-clear")||m.hasClass(t,"lightbox-close-btn")||!i.theme.isClassic&&m.hasClass(t,"search-input-element")||m.closest(t,function(t){return m.hasClass(t,"lightbox")})},update:function(t){var e,n,i,r,o,s,a,l,u,c=this.getOrCreateBorder(),h=0,d=0,f={left:0,top:0},p=this.defaultOffsets,v=0;if(null!=t.displayName){if(h+=(p=this.focusOffsetConfig[t.displayName]||this.defaultOffsets).x,d+=p.y,this.slideObjectShouldUseCss(t))return void this.hide();e=t.el,a=null!=y.getPath(t,"refs.innard")?t.refs.innard.displayName:t.displayName,e=(this.focusRuleConfig[a]||g.identity)(e)}else{if(this.domElShouldUseCss(t))return void this.hide();e=t}i=e.getBoundingClientRect(),(r=m.isWithinSlide(e))?(f=(n=(s=A.windowManager.getCurrentWindow().getCurSlide()).el).getBoundingClientRect(),v=4,n.querySelector(".slide-top-container-main").appendChild(c)):((l=document.querySelector("#app-top-container")).appendChild(c),f=l.getBoundingClientRect()),0!==i.width&&0!==i.height?(o=2*v,(u=g.mapValues(this.constrainToSlide(r,s,{left:i.left-f.left+h-v,top:i.top-f.top+d-v,width:i.width+p.width+o,height:i.height+p.height+o}),y.pxify)).display="block",m.setStyles(c,u),this.isShown=!0):this.hide()},constrainToSlide:function(t,e,n){if(!t)return n;var i=e.props,r=e.props.winScale,o=i.model.get("width")*r,s=i.model.get("height")*r,a=n.left+n.width-o,l=n.top+n.height-s,u=n.left,c=n.top;return 0<a&&(n.width-=a-1.2),0<l&&(n.height-=l-1.2),u<0&&(n.width+=n.left,n.left=-1.2),c<0&&(n.height+=n.top,n.top=-1.2),n}},h=c.onAncestorHidden.bind(c);return i.theme.isClassic||(n.on(o.topbar.CLOSED_SIDEBAR,function(){c.sidebarOpen=!1}),n.on(o.topbar.OPENED_SIDEBAR,function(){c.sidebarOpen=!0}),u("mousedown",function(){clearTimeout(e),c.hide()}),l("resize",function(){clearTimeout(e),null!=c.borderEl&&(c.borderEl.style.display="none",e=setTimeout(function(){c.borderEl.style.display="block",c.updateLastFocusItem()},s.ANIMATION_DURATION))})),c}.call(e,d,e,t))||(t.exports=n)},function(t,e,J){"use strict";var n,K=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function $(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}void 0===(n=function(t){var c=J(55),f=J(3),h=J(89),e=J(1),n=J(2),i=J(57),s=(J(0),J(12)),p=J(7),r=J(10),o=J(24),a=J(96).createBackSpriteCanvas,d=J(97),l=J(4).math,u=(l.TWO_PI,l.HALF_PI),v=J(5).device.isMobile,g=J(36),m=g.angle,y=g.angleDiff,A=g.getPinchDistance,b=g.textureSettings,w=(g.backTextureSettings,g.isPanelBody),S=g.isPanelTitle,T=g.adjustVariable,E=(g.toScreenPosition,g.touchify),x=g.createBoundingBoxEl,_=J(15),C=(_.clickOrTouchEnd,_.downOrTouchStart),k=_.moveOrTouchMove,O=_.upOrTouchEnd,M=J(98),R=M.formatMessage,I=M.getSpanStyle,L=M.crosshairsSvg,P=M.bottomUi,D=M.BOTTOM_UI_HEIGHT,N=J(99),V=N.freeNavigation,F=N.guidedNavigtion,H="free",j="guided",B="none",U="default",W="addMarker",z="setInitialCameraAngle",q="setCropImageMedia",G="",X="crosshair";function Y(t){var d=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Y),this.onMarkerUpdated=function(t){null!=d.editorApi&&d.editorApi.onMarkerUpdated(t.getData())},this.onResize=function(){for(var t in d.sprites){d.sprites[t].userData.cssMarker.resize()}},this.renderSpriteBoundingBox=function(t,e){var n=e.scale.x*d.sceneRect.width/2,i=e.scale.y*d.sceneRect.height/2;d.spriteWidth=n,d.spriteHeight=i,Object.assign(d.boundingBox.style,{left:t.x-n/2+d.sceneRect.width/2+"px",top:t.y-i/2+d.sceneRect.height/2+"px",width:n+"px",height:i+"px"})},this.onBoxDown=function(t){if(null!=d.currMarker){var e=E(t,d),n=e.pageX,i=e.pageY,r=d.getBoxCenter(),o=r.cx,s=r.cy;d.handleData={isNonUniform:t.target.classList.contains("non-uniform"),dir:t.target.dataset.axis};var a=d.currMarker.scale.x,l=d.currMarker.scale.y,u=f.dist(n,i,o,s);d.scaleRatioX=a/u,d.scaleRatioY=l/u,document.addEventListener("mousemove",d.onBoxMove),document.addEventListener("mouseup",d.onBoxUp)}},this.onBoxMove=function(t){var e=E(t,d),n=e.pageX,i=e.pageY,r=d.getBoxCenter(),o=r.cx,s=r.cy,a=d.currMarker.userData.cssMarker,l=f.dist(n,i,o,s),u=void 0;if(d.handleData.isNonUniform)"x"===d.handleData.dir?(u=Math.max(50,l*d.scaleRatioX),a.scaleX(u)):"y"===d.handleData.dir&&(u=Math.max(50,l*d.scaleRatioY),a.scaleY(u));else if(d.currMarker.userData.cssMarker.isHotspot()){var c=Math.max(50,l*d.scaleRatioX),h=Math.max(50,l*d.scaleRatioY);a.scale(c,h)}else u=f.clamp(50,200,l*d.scaleRatioX),a.scale(u,u)},this.onBoxUp=function(t){d.handleData=null,document.removeEventListener("mousemove",d.onBoxMove),document.removeEventListener("mouseup",d.onBoxUp)},this.onSetInitialCamDone=function(){if(d.mode===z){d.setCamUi.threeLatLonTextEl.innerHTML="<div>\n        "+d.localizedText.initialViewSet+"\n      </div>";var t=document.createElement("div");p.setStyles(t,{position:"absolute",width:"100%",height:"100%",left:0,top:0,background:"white",opacity:1}),d.el.appendChild(t),s.to(t,.3,{opacity:0,onComplete:function(){d.el.removeChild(t)}}),d.hideCrosshairUi(),d.initialLat=d.lat,d.initialLon=d.lon,null!=d.editorApi&&d.editorApi.onInitialCameraAngleSet(d.lat,d.lon),d.setMode(U)}},this.goPrevGuided=function(){d.prevMarker=d.markersByIdx[d.guidedMarkerInView],d.nextMarker=d.markersByIdx[d.guidedMarkerInView-1],d.guidedMarkerInView--,d.hideShowGuidedArrows()},this.goNextGuided=function(){d.guidedMarkerInView++,d.prevMarker=d.markersByIdx[d.guidedMarkerInView-1],d.nextMarker=d.markersByIdx[d.guidedMarkerInView],d.hideShowGuidedArrows()},this.animate=function(t){var e=d.kpPanAnimation,n=Math.min(t-d.lastTimeStampMs,1/e);if(d.lastTimeStampMs=t,d.width==d.newWidth&&d.height==d.newHeight||d.changeSize(),d.panToCoord){if(d.phi+=e*(d.panCoord.phi-d.phi)*n,d.theta+=e*(d.panCoord.theta-d.theta)*n,d.lat=c.Math.radToDeg(u-d.phi),d.lon=c.Math.radToDeg(d.theta),Math.abs(d.phi-d.panCoord.phi)<.005&&Math.abs(d.theta-d.panCoord.theta)<.005){if(d.selectNextSprite&&setTimeout(function(){d.currMarker&&(d.displayBoundingBox(),d.showMarkerBounds(),d.boundingBox.style.display="block",d.selectNextSprite=!1)},300),null!=d.showNextSprite){var i=d.showNextSprite;i.userData.cssMarker.panel&&d.mode!==z&&(i.userData.cssMarker.panel.forcePlaceCenter=!0,window.requestAnimationFrame(function(){i.userData.cssMarker.panel.show(),i.userData.cssMarker.panel.hideSelectionBoxes()})),d.isNavigationPan&&(i.userData.cssMarker.setVisited(),d.navigation===j&&(i.userData.cssMarker.triggerEvent("onlinkrollout",i.userData.id),i.userData.cssMarker.triggerEvent("onlinkrelease",i.userData.id))),d.showNextSprite=null}d.isNavigationPan=!1}}else d.applyVelocity(),d.lat=Math.max(d.latMin,Math.min(d.latMax,d.lat)),d.phi=c.Math.degToRad(90-d.lat),d.theta=c.Math.degToRad(d.lon);d.targetX=d.radius*Math.sin(d.phi)*Math.cos(d.theta),d.targetY=d.radius*Math.cos(d.phi),d.targetZ=d.radius*Math.sin(d.phi)*Math.sin(d.theta),d.camera.target.set(d.targetX,d.targetY,d.targetZ),d.camera.lookAt(d.camera.target),d.renderer.render(d.scene,d.camera),d.cssRenderer.render(d.cssScene,d.camera),d.editMode&&(d.updateHotspotStrokes(),d.displayBoundingBox(),null!=d.currMarker&&d.showMarkerBounds(),d.mode===z&&d.updateLatLonUi()),d.revealHotspots&&null!=d.revealingHotspotById?d.hotspotProjectionById(d.revealingHotspotById):d.revealHotspots&&d.hotspotProjection(),d.animateId=window.requestAnimationFrame(d.animate)},this.onMouseDown=function(t){d.calcSceneRect();var e=E(t,d),n=e.pageX,i=e.pageY;if(e.gesture)d.pinch.startDistance=A(t);else{if(d.editMode&&d.mode===W)return t.stopPropagation(),d.placeMarker(n,i,d.upcomingMarkerData.props,d.upcomingMarkerData.id),void t.preventDefault();d.panToCoord=!1,d.mode!=z&&d.getMarkerIntersection(n,i,"over")?d.editMode&&(d.boundingBox.style.display="block",d.downOnMarker=!0):(d.setCurrMarker(null),d.boundingBox.style.display="none",d.hideMarkerBounds(),d.isDragging=!0,d.forcingCameraTarget=!1,d.downX=n,d.downY=i,d.locX=n,d.locY=i,d.locXvel=0,d.locYvel=0,d.downLon=d.lon,d.downLat=d.lat,d.locDist=0,d.moveCounter=0)}},this.onSelectionChange=function(){if(null!=d.editorApi){var t=d.getCurrInputElement(),e=d.getCurrMediaElementType(),n=d.getIsMediaShowing();if(null!=t){var i=document.getSelection();d.editorApi.onSelectionChanged({isCollapsed:i.isCollapsed,isRightToLeft:!1,supportsParagraphs:w(t),type:0<i.rangeCount?i.type.toLowerCase():"none",mediaType:e,isMediaShowing:n,spanStyle:0<i.rangeCount?I(t,i.getRangeAt(0)):null})}else d.editorApi.onSelectionChanged({isCollapsed:!0,isRightToLeft:!1,supportsParagraphs:!1,type:"none",mediaType:e,isMediaShowing:n,spanStyle:null})}},this.onMouseMove=function(t){var e=E(t,d),n=e.pageX,i=e.pageY;if(e.gesture)d.updateZoom(t);else if(d.moveCounter++,d.canDragMarker())d.checkHideHotspotPanel(),d.dragMarker(n,i);else if(d.isDragging){d.prevLocX=d.locX,d.prevLocY=d.locY;var r=E(t,d),o=r.pageX,s=r.pageY;d.locX=o,d.locY=s,d.locDist=f.dist(d.locX,d.locY,d.prevLocX,d.prevLocY),d.locTheta=m(d.locX,d.locY,d.prevLocX,d.prevLocY),d.locXvel=d.locDist*Math.cos(d.locTheta),d.locYvel=d.locDist*Math.sin(d.locTheta),d.setLonLat(d.locX,d.locY)}else d.getMarkerIntersection(n,i,"move")},this.onMouseUp=function(t){var e=E(t,d),n=e.pageX,i=e.pageY;d.lastUpX=n,d.lastUpY=i,d.hotspotReveal&&0===d.moveCounter&&"CANVAS"===t.target.tagName&&d.revealHotspotAnimation(),null!=d.pinch.currMatrix&&(d.pinch.scale=d.pinch.currMatrix.getScale().x-(1-.8),d.pinch.matrix=d.pinch.currMatrix),d.isDragging&&(d.isDragging=!1),d.downOnMarker&&(d.downOnMarker=!1,d.drag.started=!1,d.currMarker.userData.cssMarker.dragging=!1);d.getMarkerIntersection(n,i,"click")},this.model=t.model,this.el=t.el,this.cssEl=t.cssEl,this.overlaysEl=t.overlaysEl,this.editorApi=t.editorApi,null!=this.editorApi&&this.setEditMode(!0),this.localizedText=t.localizedText||{},this.isDragging=!1,this.forcingCameraTarget=!1,this.newWidth=t.width,this.newHeight=t.height,this.origWidth=t.width,this.origHeight=t.height,this.downX=0,this.downY=0,this.downLon=0,this.downLat=0,this.lastTimeStampMs=performance.now(),this.kpPanAnimation=.008,this.lon=0,this.lat=0,this.phi=0,this.theta=0,this.radius=21,this.latMin=-89.8,this.latMax=89.5,this.oldIntersections={},this.drag={},this.sprites={},this.markersByIdx={},this.markerCount=0,this.assetManager=t.assetManager,this.slideObject=t.slideObject,this.overlaySvgEl=t.overlaySvgEl,this.miscOverlaysEl=t.miscOverlaysEl,this.setHotspotColor(t.hotspotColor),this.setHotspotReveal(t.hotspotReveal),this.pulseMarkers=t.pulseMarkers,this.navigation=t.navigation||B,this.bind=t.bind,this.spherical=new c.Spherical,this.orientation=0,this.pinch={scale:1,matrix:new i},this.setupEditorMessages(),this.setMode(U),this.setupScene(t),this.setupDom(t),this.setupBackSpriteTex(),this.setupVelocityToss(),this.setupRaycasting(),this.setupMarkers(t.markerData),this.setMarkerPulse(t.pulseMarkers),this.initialLat=t.initialLat,this.initialLon=t.initialLon,this.setCameraTarget(t.initialLat,t.initialLon),this.setupVars(),this.setupNavigation(),window.addEventListener("resize",this.onResize),null!=this.editorApi&&e.on(n.threeSixtyImage.MARKER_UPDATED,this.onMarkerUpdated),this.ready()}return K(Y,[{key:"setupEditorMessages",value:function(){var t,e=this;this.editorMessages=($(t={updateText:function(t){return e.updateText(t)},updateMarker:function(t){return e.updateMarker(t)},updateMarkers:function(t){return e.updateMarkers(t)},removeMarker:function(t){return e.removeMarker(t.id)},panToMarker:function(t){return e.panToMarker(t.id)},selectMarker:function(t){return e.selectMarker(t)},setFocus:function(t){return e.setFocus(t)},showMedia:function(){return e.showMedia()},hideMedia:function(){return e.hideMedia()},setEffects:function(t){return e.setEffect(t)},duplicateMarker:function(t){return e.duplicateMarker(t.sourceId,t.duplicatedMarkerData)},pasteMarker:function(t){return e.pasteMarker(t)},resetMode:function(){return e.setMode(U)}},W,function(t){e.setMode(W),e.upcomingMarkerData=t}),$(t,z,function(t){return e.setMode(z)}),$(t,"saveInitialCameraAngle",function(){return e.onSetInitialCamDone()}),$(t,q,function(t){return e.setMode(q)}),$(t,"saveCropImageMedia",function(){return e.saveCropImageMedia()}),t)}},{key:"ready",value:function(){var t=this;window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){Object.values(t.sprites).forEach(function(t){null!=t&&t.userData.cssMarker.panoReady()})})})}},{key:"setMarkerPulse",value:function(n){this.pulseMarkers=n,Object.values(this.sprites).forEach(function(t){if(null!=t){var e=t.userData.cssMarker;e.isHotspot()||e.adjust({props:{animation:n?"pulse":"normal"}})}})}},{key:"setupBackSpriteTex",value:function(){var e=this,t=a("none",this.maxAnisotropy),n=t.canvas,i=t.tex,r=t.mat;t.render,this.backSpriteTex={normal:function(){return{canvas:n,tex:i,mat:r}},pulse:function(){e.pulseAnimation||(e.pulseAnimation=a("pulse",e.maxAnisotropy));var t=e.pulseAnimation;return{canvas:t.canvas,tex:t.tex,mat:t.mat}},empty:function(){e.emptyTexture||(e.emptyTexture=a("empty",e.maxAnisotropy));var t=e.emptyTexture;return{canvas:t.canvas,tex:t.tex,mat:t.mat}}}}},{key:"getMarker",value:function(t){var e=this.sprites[t];if(null!=e)return e.userData.cssMarker}},{key:"removeMarker",value:function(t){var e=this.getMarker(t);null!=e&&(e.remove(),this.boundingBox.style.display="none",this.cssScene.remove(e.object),this.scene.remove(e.sprite),this.scene.remove(e.backSprite),delete this.sprites[e.id],delete this.markersByIdx[e.idx],null!=this.editorApi&&this.editorApi.onMarkerRemoved(e.id))}},{key:"getCurrInputElement",value:function(){var t=document.activeElement;return null!=t&&t!==document.body&&(w(t)||S(t))?t:null}},{key:"getCurrMediaElementType",value:function(){var t=this.currMarker;if(null==t)return"none";var n=t.userData.cssMarker.panel;if(null==n)return"none";function e(t){if(null!=t){var e=n.getSelectionBox(t);return null!=e&&e.shown}}return e(n.mediaImageEl)?"image":e(n.mediaAudioEl)?"audio":e(n.mediaVideoPosterEl)?"video":"none"}},{key:"getIsMediaShowing",value:function(){var t=this.currMarker;if(null==t)return!1;var e=t.userData.cssMarker.panel;return null!=e&&e.mediaShowing}},{key:"updateText",value:function(t){if(null!=this.getMarker(t.id)){var e=this.getCurrInputElement();null!=e&&(R(e,t),this.onSelectionChange())}}},{key:"updateMarker",value:function(t){var e=this.getMarker(t.id);null!=e&&e.adjust(t)}},{key:"updateMarkers",value:function(t){for(var e in this.sprites)this.sprites[e].userData.cssMarker.adjustProps(t);null!=this.editorApi&&this.editorApi.onMarkersUpdated(this.getAllMarkerData())}},{key:"selectMarker",value:function(t){if(null!=this.currMarker){var e=this.currMarker.userData.cssMarker.panel;null!=e&&e.hide()}if(this.hideMarkerBounds(),null==t.id)this.selectNextSprite=!1,this.setCurrMarker(null);else{var n=this.getMarker(t.id);null!=n&&(this.selectNextSprite=!0,this.setCurrMarker(n.sprite),this.panToMarker(t.id))}}},{key:"setFocus",value:function(t){if(null!=this.currMarker){var e=this.currMarker.userData.cssMarker.panel;if(null!=e){var n=t.focus;"title"==n?(e.showSelectionBox(e.titleEl,!0),e.titleEl.focus()):"body"==n?(e.showSelectionBox(e.bodyEl.parentNode,!0),e.bodyEl.focus()):"image"==n?e.showSelectionBox(e.mediaImageEl,!0):"audio"==n?e.showSelectionBox(e.mediaAudioEl,!0):"video"==n?e.showSelectionBox(e.mediaVideoPosterEl,!0):e.hideSelectionBoxes()}}}},{key:"showMedia",value:function(){if(null!=this.currMarker){var t=this.currMarker.userData.cssMarker.panel;null!=t&&null!=t.showMedia&&t.showMedia()}}},{key:"hideMedia",value:function(){if(null!=this.currMarker){var t=this.currMarker.userData.cssMarker.panel;null!=t&&null!=t.hideMedia&&t.hideMedia()}}},{key:"setEffect",value:function(t){null!=t.color&&this.setHotspotColor(t.color),null!=t.reveal&&this.setHotspotReveal(t.reveal),null!=t.pulseMarkers&&this.setMarkerPulse(t.pulseMarkers)}},{key:"editorMessage",value:function(t,e){var n=1<arguments.length&&void 0!==e?e:{};this.editorMessages[t](n)}},{key:"setupDom",value:function(t){var e=this,n=t.width*t.scale,i=t.height*t.scale;this.renderer.setSize(n,i),this.renderer.domElement.style.pointerEvents="all",this.renderer.domElement.addEventListener(C,this.onMouseDown),this.cssRenderer.setSize(n,i),document.addEventListener(O,this.onMouseUp,!1),document.addEventListener(k,this.onMouseMove),this.el.appendChild(this.renderer.domElement),this.cssEl.appendChild(this.cssRenderer.domElement);var r=setInterval(function(){e.calcSceneRect(),0<e.sceneRect.width&&clearInterval(r)},16)}},{key:"toScreenPosition",value:function(t){var e=new c.Vector3;this.calcSceneRect();var n=this.sceneRect.width/2,i=this.sceneRect.height/2;return t.updateMatrixWorld(),e.setFromMatrixPosition(t.matrixWorld).project(this.camera),{x:e.x*n+n,y:-e.y*i+i}}},{key:"duplicateMarker",value:function(t,e){this.calcSceneRect();var n=this.sprites[t],i=this.toScreenPosition(n),r=this.scaleCoord(i.x,i.y),o=new c.Vector2(r.x,r.y);this.placeMarkerWithOffset(o,e)}},{key:"pasteMarker",value:function(t){this.calcSceneRect();var e=this.scaleCoord(this.sceneRect.width/2,this.sceneRect.height/2),n=new c.Vector2(e.x,e.y);this.placeMarkerWithOffset(n,t)}},{key:"placeMarkerWithOffset",value:function(t,e){for(var n=c.Math.degToRad(20),i=new c.Vector2(15*Math.cos(n),20*Math.sin(n)),r=.8*i.lengthSq();this.isScreenPositionNearbySprite(t,r);)t.add(i);this.placeMarker(t.x,t.y,e.props,e.id)}},{key:"isScreenPositionNearbySprite",value:function(t,e){for(var n in this.sprites){var i=this.sprites[n],r=this.toScreenPosition(i),o=this.scaleCoord(r.x,r.y);if(t.distanceToSquared(o)<e)return!0}return!1}},{key:"setHotspotColor",value:function(t){t=t||"#00ccff",this.hotspotColor=t,this.hotspotTransColor=f.rgbify(t,.4),Object.values(this.sprites).forEach(function(t){if(null!=t){var e=t.userData.cssMarker;e.isHotspot()&&e.updateHotspotColor()}})}},{key:"setHotspotReveal",value:function(t){this.hotspotReveal=t}},{key:"revealHotspotAnimation",value:function(){var t=this;this.editMode||(this.overlaySvgEl.style.opacity=0,this.revealHotspots=!0,s.killTweensOf(this.overlaySvgEl),s.to(this.overlaySvgEl,.3,{opacity:1,ease:"power4.out",onComplete:function(){s.to(t.overlaySvgEl,1.1,{opacity:0,delay:0,ease:"power4.out",onComplete:function(){t.revealHotspots=!1}})}}))}},{key:"hotspotProjection",value:function(){this.renderHotspots(function(t){return t.isHotspot()})}},{key:"hotspotProjectionById",value:function(e){this.renderHotspots(function(t){return t.id===e})}},{key:"renderHotspots",value:function(t){this.viewMatrix.copy(this.camera.matrixWorldInverse),this.viewProjectionMatrix.multiplyMatrices(this.camera.projectionMatrix,this.viewMatrix);var e=this.projector.projectScene(this.scene,this.camera).elements;this.normalViewMatrix.getNormalMatrix(this.camera.matrixWorldInverse),this.calcSceneRect();for(var n=this.overlaySvgEl.innerHTML="",i=0;i<e.length;i++){var r=e[i],o=f.getPath(r,"object.userData.cssMarker");if(null!=o&&t(o)){var s=r.scale.x*this.sceneRect.width/2,a=r.scale.y*this.sceneRect.height/2,l=r;l.x*=this.sceneRect.width/2,l.y*=-this.sceneRect.height/2;var u=l.x-s/2+this.sceneRect.width/2,c=l.y-a/2+this.sceneRect.height/2;n+='\n            <rect\n              stroke-width="2"\n              stroke="'+this.hotspotColor+'"\n              fill="'+this.hotspotTransColor+'"\n              x="'+u+'" y="'+c+'"\n              width="'+s+'" height="'+a+'" />\n          '}}this.overlaySvgEl.innerHTML=n}},{key:"projection",value:function(e,t){if(null!=e){this.viewMatrix.copy(this.camera.matrixWorldInverse),this.viewProjectionMatrix.multiplyMatrices(this.camera.projectionMatrix,this.viewMatrix),this.renderData=this.projector.projectScene(this.scene,this.camera),this.elements=this.renderData.elements,this.normalViewMatrix.getNormalMatrix(this.camera.matrixWorldInverse),this.calcSceneRect();var n=this.elements.find(function(t){return t.object===e});if(null!=n){var i=n;i.x*=this.sceneRect.width/2,i.y*=-this.sceneRect.height/2,t(i,n)}}}},{key:"displayBoundingBox",value:function(){this.currMarker&&(this.currMarker.userData.cssMarker.isHotspot()?this.boundingBox.classList.add("hotspot-bb"):this.boundingBox.classList.remove("hotspot-bb"),this.boundingBox.style.display="block",this.projection(this.currMarker,this.renderSpriteBoundingBox))}},{key:"displayBoundingBoxOnMarker",value:function(t){this.projection(t.sprite,this.renderSpriteBoundingBox)}},{key:"setupProjector",value:function(){this.projector=new c.Projector,this.viewMatrix=new c.Matrix4,this.viewProjectionMatrix=new c.Matrix4,this.normalViewMatrix=new c.Matrix3}},{key:"getBoxCenter",value:function(){var t=this.boundingBox,e=this.scaleCoord(parseFloat(t.style.left),parseFloat(t.style.top)),n=this.scaleCoord(parseFloat(t.style.width),parseFloat(t.style.height));return{cx:e.x+n.x/2,cy:e.y+n.y/2}}},{key:"setupScene",value:function(t){this.setupProjector(),this.scene=new c.Scene,this.cssScene=new c.Scene,this.camera=new c.PerspectiveCamera(75,t.width/t.height,1,5e3),this.camera.zoom=.8,this.camera.updateProjectionMatrix(),this.camera.target=new c.Vector3(0,0,0),this.renderer=new c.WebGLRenderer({antialias:!1}),this.renderer.setPixelRatio(window.devicePixelRatio||2),this.cssRenderer=new c.CSS3DRenderer,this.maxAnisotropy=this.renderer.capabilities.getMaxAnisotropy();var e=v?50:64;this.sphere=new c.SphereBufferGeometry(1e3,e,e),this.sphere.scale(-1,1,1),this.sphere.rotateY(u),null!=t.croppedHeight?this.croppedTextureSphere(t):this.createSphere(t.dataUri),this.overlaysEl.classList.add("three-sixty-overlay"),this.createBoundingBox()}},{key:"createBoundingBox",value:function(){this.boundingBox=x(),this.overlaysEl.appendChild(this.boundingBox),this.boundingBox.addEventListener("mousedown",this.onBoxDown)}},{key:"croppedTextureSphere",value:function(r){var o=this,s=new Image;s.src=r.dataUri,s.addEventListener("load",function t(){var e=s.width/r.croppedWidth,n=document.createElement("canvas"),i=n.getContext("2d");n.width=r.fullWidth*e,n.height=r.fullHeight*e,i.fillStyle="black",i.fillRect(0,0,n.width,n.height),i.drawImage(s,r.croppedX*e,r.croppedY*e),o.createSphere(n.toDataURL()),s.removeEventListener("load",t)})}},{key:"createSphere",value:function(t){var e=new c.MeshBasicMaterial;e.depthTest=!1;var n=(new c.TextureLoader).load(t);n.anisotropy=this.maxAnisotropy,e.map=n,this.sphereMesh=new c.Mesh(this.sphere,e),this.scene.add(this.sphereMesh)}},{key:"calcSceneRect",value:function(){this.sceneRect=this.renderer.domElement.getBoundingClientRect(),this.sceneScale=this.newWidth/this.origWidth}},{key:"scaleCoord",value:function(t,e){return{x:t*=window.innerWidth/this.sceneRect.width,y:e*=window.innerHeight/this.sceneRect.height}}},{key:"setEditMode",value:function(t){this.editMode=t,e.trigger(n.threeSixtyImage.EDIT_MODE_CHANGED),this.editMode?(this.mediaPanelOverlay=document.createElement("div"),this.mediaPanelOverlay.classList.add("three-sixty-image-media-panel-overlay"),p.setStyles(this.mediaPanelOverlay,{position:"fixed",left:0,top:0,zIndex:9999}),document.body.appendChild(this.mediaPanelOverlay),document.addEventListener("focusin",this.onSelectionChange),document.addEventListener("selectionchange",this.onSelectionChange),document.addEventListener("focusout",this.onSelectionChange)):(this.mediaPanelOverlay=null,document.removeEventListener("focusin",this.onSelectionChange),document.removeEventListener("selectionchange",this.onSelectionChange),document.removeEventListener("focusout",this.onSelectionChange))}},{key:"setMode",value:function(t){this.mode!==t&&(this.mode===z?this.cancelSetInitialCam():this.mode===q&&this.cancelCropImageMedia(),(this.mode=t)===U?this.el.style.cursor=G:t===W?this.el.style.cursor=X:t===z?this.setInitialCameraAngle():t===q&&this.setCropImageMedia())}},{key:"setupRaycasting",value:function(){this.raycaster=new c.Raycaster,this.mouseRay=new c.Vector2}},{key:"getBackSpriteMaterial",value:function(t,e){this.editMode||null!=e&&e.isVisited?t.animation="normal":this.pulseMarkers&&(t.animation="pulse");var n="hotspot"===t.type?"empty":t.animation;return this.backSpriteTex[n||"normal"]().mat}},{key:"initSprite",value:function(t,e){var n,i,r,o=void 0,s=void 0,a=void 0;return n=(o=document.createElement("canvas")).getContext("2d"),o.width=512,o.height=512,i=new c.CanvasTexture(o),r=new c.SpriteMaterial({map:i}),b(i,r,this.maxAnisotropy),(s=new c.Sprite(r)).material.opacity=1,s.renderOrder=10,(a=new c.Sprite(this.getBackSpriteMaterial(e))).renderOrder=1,a.dynamic=!0,a.userData.isBackSprite=!0,a.position.normalize(),a.scale.set(50,50,1),a.position.copy(t),{sprite:s,canvas:o,ctx:n,tex:i,mat:r,backSprite:a}}},{key:"createSprite",value:function(t,e,n){var i=this,r=this.initSprite(t,n),o=r.sprite,s=r.canvas,a=r.ctx,l=r.tex,u=(r.mat,r.backSprite);o.position.normalize(),o.scale.set(50,50,1),o.position.copy(t),o.userData.backSprite=u,this.scene.add(o),window.requestAnimationFrame(function(){return i.scene.add(u)});var c=new h({pano:this,loc:t,sprite:o,id:e,idx:this.markerCount++,canvas:s,backSprite:u,ctx:a,tex:l,props:DS._.merge({type:"normal"},n||{})});return o.userData.cssMarker=c,{sprite:this.sprites[e]=o,marker:this.markersByIdx[c.idx]=c}}},{key:"setupMarkers",value:function(t){var n=this;null!=t&&t.forEach(function(t){var e=new c.Vector3(t.xPos,t.yPos,t.zPos);n.createSprite(e,t.id,t.props).sprite.userData.id=t.id})}},{key:"setupVelocityToss",value:function(){this.locX=0,this.locY=0,this.prevLocX=0,this.prevLocY=0,this.locXvel=0,this.locYvel=0,this.enableVelocityDamping()}},{key:"enableVelocityDamping",value:function(){this.velDamp=.95}},{key:"disableVelocityDamping",value:function(){this.velDamp=0}},{key:"setLonLat",value:function(t,e){this.lon=.1*(this.downX-t)+this.downLon,this.lat=.1*(e-this.downY)+this.downLat}},{key:"stopVelocity",value:function(){this.locYvel=this.locXvel=0}},{key:"applyVelocity",value:function(){this.isDragging||this.forcingCameraTarget||this.downOnMarker||(this.locX+=this.locXvel,this.locY+=this.locYvel,this.locXvel*=this.velDamp,this.locYvel*=this.velDamp,this.setLonLat(this.locX,this.locY))}},{key:"destroy",value:function(){Object.values(this.sprites).forEach(function(t){null!=t&&t.userData.cssMarker.remove()}),this.el.removeChild(this.renderer.domElement),this.killAnimation(),window.removeEventListener("resize",this.onResize),null!=this.editorApi&&e.off(n.threeSixtyImage.MARKER_UPDATED,this.onMarkerUpdated)}},{key:"killAnimation",value:function(){window.cancelAnimationFrame(this.animateId)}},{key:"changeSize",value:function(){this.camera.aspect=this.newWidth/this.newHeight,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.newWidth,this.newHeight),this.cssRenderer.setSize(this.newWidth,this.newHeight),this.width=this.newWidth,this.height=this.newHeight}},{key:"updateLatLonUi",value:function(){var t=Math.round(this.lat),e=f.normalizeDeg(Math.round(this.lon));this.setCamUi.threeLatLonTextEl.innerHTML="<div>\n      "+this.localizedText.initialView+" "+t+"&#176;, "+e+"&#176;\n      </div>"}},{key:"resetCropImageMedia",value:function(){this.cancelCropImageMedia(),this.setCropImageMedia(!0)}},{key:"cancelCropImageMedia",value:function(){null!=this.cropTool&&(this.cropTool.hide(),this.cropTool=null),this.cropToolShown=!1,this.bottomCropUiEl.style.display="none";var t=this.currMarker.userData.cssMarker.panel;null!=t&&t.cancelCrop(),null!=this.editorApi&&null!=this.editorApi.restoreFit&&this.editorApi.restoreFit()}},{key:"saveCropImageMedia",value:function(){if(this.cropToolShown){var t=this.cropTool.getCropRect();t.markerId=this.currMarker.userData.cssMarker.id,this.currMarker.userData.cssMarker.panel.saveCrop(t),this.cancelCropImageMedia(),null!=this.editorApi&&this.editorApi.onImageMediaCrop(t)}}},{key:"setCropImageMedia",value:function(t){var e=this,n=0<arguments.length&&void 0!==t&&t;if(!this.cropToolShown){null!=this.cropTool&&(this.cropTool.hide(),this.cropTool=null);var i=this.currMarker.userData.cssMarker.panel,r=i.prepCrop(),o=n?null:i.marker.getEditorVar("imageMediaCropRectangle");if(this.cropTool=new d(".panel-image-container"),this.cropTool.show(),null!=o&&this.cropTool.setCropRect(o),this.cropToolShown=!0,!this.bottomCropUiEl){var s=this.localizedText,a=s.cropReset,l=s.cropCancel,u=s.cropDone;this.bottomCropUiEl=document.createElement("div"),this.bottomCropUiEl.innerHTML=P({reset:a,cancel:l,done:u}),this.bottomCropUiEl=this.bottomCropUiEl.firstElementChild,this.bottomCropUiEl.style.zIndex=1e4,this.setCropUiBottom={},p.selectAllByRef(this.setCropUiBottom,this.bottomCropUiEl);var c=document.querySelector("#wrapper");null!=c&&c.appendChild(this.bottomCropUiEl),this.setCropUiBottom.threeBottomUiResetEl.addEventListener("click",function(){e.resetCropImageMedia()}),this.setCropUiBottom.threeBottomUiDoneEl.addEventListener("click",function(){e.saveCropImageMedia(),e.setMode(U)}),this.setCropUiBottom.threeBottomUiCancelEl.addEventListener("click",function(){e.cancelCropImageMedia(),e.setMode(U),null!=e.editorApi&&e.editorApi.onCancelImageMediaCrop()})}null!=this.editorApi&&null!=this.editorApi.forceFitInWindow&&this.editorApi.forceFitInWindow(),r(),this.bottomCropUiEl.style.display="block",this.updateSize(this.newWidth,this.newHeight),this.positionCropUi()}}},{key:"hideCrosshairUi",value:function(t,e){var n=0<arguments.length&&void 0!==t?t:.2,i=1<arguments.length&&void 0!==e?e:.8;null!=this.editorApi&&null!=this.editorApi.restoreFit&&this.editorApi.restoreFit(),s.to(this.setCamUi.threeCrosshairsEl,n,{opacity:0}),this.bottomCamUiEl.style.display="none",s.to(this.setCamUi.threeLatLonPillEl,n,{opacity:0,delay:i}),this.el.parentNode.classList.remove("three-setting-intial-camera"),this.enableVelocityDamping()}},{key:"cancelSetInitialCam",value:function(){this.hideCrosshairUi(0,0)}},{key:"setupVars",value:function(){this.bind,null!=this.bind&&null!=this.navigation&&(this.vars={visitedPath:this.bind.visited,total:r.resolvePath(this.bind.total),visited:r.resolvePath(this.bind.visited)})}},{key:"hasNavigationVars",value:function(){return null!=this.bind&&null!=this.vars&&null!=this.vars.visitedPath&&null!=this.vars.total&&null!=this.vars.visited}},{key:"resumeVisitedMarkers",value:function(){for(var t=this.model.indexValues,e=0;e<t.length;e++)this.markersByIdx[t[e]].resumeVisited()}},{key:"getNavigationText",value:function(){var t=o.getString("three_image_item"),e=o.getString("three_image_items"),n=o.getString("three_image_viewed"),i=o.getString("three_image_of"),r=this.vars.total.value();return this.navigation===H?0!==this.visitedMarkers?this.visitedMarkers+" "+i+" "+r+" "+n:r+" "+(1!==r?e:t):this.navigation===j?Math.min(this.guidedMarkerInView+1,r)+" "+i+" "+r:void 0}},{key:"updateNavigationText",value:function(){null!=this.navUi&&(this.navUi.threeNavContentEl.innerHTML=this.getNavigationText())}},{key:"setupNavigation",value:function(){this.hasNavigationVars()&&(T(this.bind.total,Object.keys(this.sprites).length,this),this.navigation===H?(this.navigationEl=this.miscOverlaysEl,null!=this.navigationEl&&(this.navigationEl.innerHTML=V(),this.navUi={},p.selectAllByRef(this.navUi,this.navigationEl),this.updateNavigationText())):this.navigation===j&&(this.navigationEl=this.miscOverlaysEl,null!=this.navigationEl&&(this.setupGuidedUi(),this.goFirstGuidedMarker(),this.updateNavigationText())))}},{key:"visitedMarkersChanged",value:function(){this.navigation===j&&this.updateGuidedArrows()}},{key:"setupGuidedUi",value:function(){this.navigationEl.innerHTML=F(),this.navUi={},p.selectAllByRef(this.navUi,this.navigationEl),s.from(this.navUi.threeNavigationEl,.4,{opacity:0,delay:.4}),Object.values(this.markersByIdx).forEach(function(t){t.hide()}),this.navUi.threeGuidedLeftBtnEl.addEventListener("click",this.goPrevGuided),this.navUi.threeGuidedRightBtnEl.addEventListener("click",this.goNextGuided)}},{key:"goFirstGuidedMarker",value:function(){var e=this;this.slideObject.afterHtmlReady(function(){if(e.navigation===j){var t=e.markersByIdx[e.guidedMarkerInView];null!=t&&(e.isNavigationPan=!0,t.show(),e.panToMarker(t.id),e.updateGuidedArrows(),e.updateNavigationText())}})}},{key:"updateGuidedArrows",value:function(){-1!=this.model.indexValues.indexOf(this.guidedMarkerInView)&&this.guidedMarkerInView<this.vars.total.value()-1?this.navUi.threeGuidedRightBtnEl.classList.remove("three-guided-disabled"):this.navUi.threeGuidedRightBtnEl.classList.add("three-guided-disabled"),0<this.guidedMarkerInView?this.navUi.threeGuidedLeftBtnEl.classList.remove("three-guided-disabled"):this.navUi.threeGuidedLeftBtnEl.classList.add("three-guided-disabled")}},{key:"hideShowGuidedArrows",value:function(){null!=this.prevMarker&&this.prevMarker.hide(),null!=this.nextMarker&&(this.nextMarker.show(),this.isNavigationPan=!0,this.panToMarker(this.nextMarker.id)),this.updateNavigationText(),this.updateGuidedArrows()}},{key:"positionInitialCamUi",value:function(){if(this.mode===z){var t=document.querySelector("#container");if(null!=t){var e=t.getBoundingClientRect();this.bottomCamUiEl.style.top=e.bottom+"px",this.bottomCamUiEl.style.left=e.left+"px",this.bottomCamUiEl.style.width=e.width+"px"}}}},{key:"positionCropUi",value:function(){if(this.mode===q){var t=document.querySelector(".panel-image-frame");if(null!=t){var e=t.getBoundingClientRect(),n={left:e.left,top:e.top,bottom:e.bottom,width:e.width};if(n.width<410){var i=((n.width=410)-e.width)/2;n.left=e.left-i}this.bottomCropUiEl.style.top=n.bottom+"px",this.bottomCropUiEl.style.left=n.left+"px",this.bottomCropUiEl.style.width=n.width+"px"}}}},{key:"setInitialCameraAngle",value:function(){var t=this;if(this.deselectMarker(),this.el.parentNode.classList.add("three-setting-intial-camera"),this.disableVelocityDamping(),this.panToCoord=!1,this.setCameraTarget(this.initialLat,this.initialLon),Object.values(this.sprites).forEach(function(t){if(null!=t){var e=t.userData.cssMarker;null!=e.panel&&e.panel.shown&&e.panel.hide()}}),null!=this.editorApi&&null!=this.editorApi.forceFitInWindow&&this.editorApi.forceFitInWindow(),this.crossHairsEl)this.crossHairsEl.style.display="block",this.setCamUi.threeCrosshairsEl.style.opacity=1,this.setCamUi.threeLatLonPillEl.style.opacity=1,this.bottomCamUiEl.style.display="block";else{this.bottomCamUiEl=document.createElement("div");var e=this.localizedText,n=e.initialCameraReset,i=e.initialCameraCancel,r=e.initialCameraDone;this.bottomCamUiEl.innerHTML=P({reset:n,cancel:i,done:r}),this.bottomCamUiEl=this.bottomCamUiEl.firstElementChild,this.setCamUiBottom={},p.selectAllByRef(this.setCamUiBottom,this.bottomCamUiEl);var o=document.querySelector("#wrapper");null!=o&&o.appendChild(this.bottomCamUiEl),this.crossHairsEl=document.querySelector(".three-misc-overlays"),null!=this.crossHairsEl&&(this.crossHairsEl.innerHTML=L()),this.setCamUi={},p.selectAllByRef(this.setCamUi,this.crossHairsEl),this.setCamUiBottom.threeBottomUiDoneEl.addEventListener("click",this.onSetInitialCamDone),this.setCamUiBottom.threeBottomUiResetEl.addEventListener("click",function(){t.panToCoord=!1,t.deselectMarker(),t.setCameraTarget(0,0)}),this.setCamUiBottom.threeBottomUiCancelEl.addEventListener("click",function(){null!=t.editorApi&&null!=t.editorApi.onCancelInitialCameraAngleSet&&t.editorApi.onCancelInitialCameraAngleSet(),t.setMode(U)})}this.positionInitialCamUi(),this.updateSize(this.newWidth,this.newHeight),s.from(this.setCamUi.threeCrosshairsEl,.2,{opacity:0})}},{key:"updateHotspotStrokes",value:function(){(.005<Math.abs(this.locXvel)||.005<Math.abs(this.locYvel))&&Object.values(this.sprites).forEach(function(t){if(null!=t){var e=t.userData.cssMarker;e.isHotspot()&&e.displayBounds()}})}},{key:"showMarkerBounds",value:function(){var t=this.currMarker.userData.cssMarker.displayBounds();t!=this.currMarkerBounds&&(this.hideMarkerBounds(),this.currMarkerBounds=t)}},{key:"hideMarkerBounds",value:function(){null!=this.currMarkerBounds&&(this.currMarkerBounds.hideShowControlPoints(!1),this.currMarkerBounds.isHotspot()||(this.currMarkerBounds.boundsEl.style.display="none"),this.currMarkerBounds=null)}},{key:"triggerEvent",value:function(t,e){this.model.executeFilteredPlayerEvent(function(t){return t.triggerid===e},t)}},{key:"executeMarkerEvent",value:function(t,e){"click"===e?this.triggerEvent("onlinkrelease",t.userData.id):"move"!==e||t.userData.isOver?"out"===e&&(this.triggerEvent("onlinkrollout",t.userData.id),t.userData.isOver=!1):(this.triggerEvent("onlinkrollover",t.userData.id),t.userData.isOver=!0)}},{key:"getMarkerIntersection",value:function(t,e,n){var i=this,r=!1;this.mouseRay.x=t/window.innerWidth*2-1,this.mouseRay.y=2*-(e/window.innerHeight)+1,this.raycaster.setFromCamera(this.mouseRay,this.camera);var o=this.scene.children.filter(function(t){return!t.userData.isBackSprite}),s=this.raycaster.intersectObjects(o),a={};return s.forEach(function(t){"Sprite"===t.object.type&&(r=!0,a[t.object.userData.id]=t.object,"over"===n&&i.setCurrMarker(t.object))}),r}},{key:"deselectMarker",value:function(){this.setCurrMarker(null),this.boundingBox.style.display="none",this.hideMarkerBounds(),this.forcingCameraTarget=!1}},{key:"setCurrMarker",value:function(t){this.currMarker=t,this.editMode&&null!=this.editorApi&&this.editorApi.onMarkerSelected(null!=this.currMarker?this.currMarker.userData.cssMarker.id:null)}},{key:"panToMarker",value:function(t){var e=this.sprites[t];if(null!=e){var n=e.userData.cssMarker.isHotspot();if(this.isNavigationPan&&!this.hotspotReveal&&n)return e.userData.cssMarker.el.style.opacity=0,void e.userData.cssMarker.show();var i=e.position;this.spherical.setFromCartesianCoords(i.x,i.y,i.z),this.panCoord=this.spherical;var r=u-this.panCoord.theta,o=y(this.theta,r);this.panCoord.theta=this.theta+o,this.panToCoord=!0,this.showNextSprite=e}}},{key:"getMarkerData",value:function(t){var e=this.getMarker(t);if(null!=e)return e.getData()}},{key:"getAllMarkerData",value:function(t){var e=[];for(var n in this.sprites){var i=this.sprites[n].userData.cssMarker;null!=t&&!t.includes(i.id)||e.push(i.getData())}return e}},{key:"mouseIntersect",value:function(t,e){return this.mouseRay.x=t/window.innerWidth*2-1,this.mouseRay.y=2*-(e/window.innerHeight)+1,this.raycaster.setFromCamera(this.mouseRay,this.camera),this.raycaster.intersectObject(this.sphereMesh)}},{key:"placeMarker",value:function(t,e,n,i){var r=2<arguments.length&&void 0!==n?n:{},o=i,s=this.mouseIntersect(t,e);if(0<s.length){var a=s[0].point;a.lerp(new c.Vector3(0,0,0),.05);var l=this.createSprite(a,o,r);this.stopVelocity(),this.hideMarkerBounds(),null!=this.editorApi&&this.editorApi.onMarkerPlaced(l.marker.getData()),this.setCurrMarker(l.sprite);var u=l.sprite.userData.cssMarker.panel;null!=u&&(u.show(),this.setFocus({focus:"title"}))}this.setMode(U)}},{key:"dragMarker",value:function(t,e){this.boundingBox.style.display="block",this.mouseRay.x=t/window.innerWidth*2-1,this.mouseRay.y=2*-(e/window.innerHeight)+1,this.raycaster.setFromCamera(this.mouseRay,this.camera);var n=this.raycaster.intersectObject(this.sphereMesh);if(0<n.length){var i=n[0].point;i.lerp(new c.Vector3(0,0,0),.05),this.drag.started||(this.drag.startX=i.x-this.currMarker.position.x,this.drag.startY=i.y-this.currMarker.position.y,this.drag.startZ=i.z-this.currMarker.position.z,this.drag.started=!0,this.drag.count=0),this.drag.started&&(i.set(i.x-this.drag.startX,i.y-this.drag.startY,i.z-this.drag.startZ),this.drag.count++),this.currMarker.position.copy(i),this.currMarker.userData.cssMarker.updateLoc(i)}}},{key:"canDragMarker",value:function(){return this.editMode&&this.downOnMarker&&null!=this.currMarker&&this.mode!=z}},{key:"updateZoom",value:function(t){var e=A(t)/this.pinch.startDistance;e=Math.max(1/this.pinch.scale,Math.min(e,3/this.pinch.scale)),this.pinch.zoom=e,this.pinch.currMatrix=this.pinch.matrix.copy().scale(e,e),this.camera.zoom=this.pinch.currMatrix.getScale().x-(1-.8),this.camera.updateProjectionMatrix()}},{key:"checkHideHotspotPanel",value:function(){if(this.drag.started&&4<this.drag.count){var t=this.currMarker.userData.cssMarker;t.isHotspot()&&t.panel.shown&&t.panel.hide(!0)}}},{key:"updateSize",value:function(t,e){var n=this;if(this.mode===z||this.mode===q){var i=(e-D)/e;t*=i,e*=i,window.ResizeContainer(t,e),document.getElementById("container").scrollIntoView({inline:"center",block:"center"}),this.calcSceneRect()}if(this.positionInitialCamUi(),this.positionCropUi(),clearTimeout(this.uiPositionId),this.uiPositionId=setTimeout(function(){n.positionInitialCamUi(),n.positionCropUi()},100),this.newWidth=t,this.newHeight=e,null!=this.currMarker){var r=this.currMarker.userData.cssMarker;null!=r.panel&&r.panel.shown&&window.requestAnimationFrame(function(){return r.panel.update()})}}},{key:"setCameraTarget",value:function(t,e){this.forcingCameraTarget=!0,this.lat=t||0,this.lon=e||0}},{key:"visitedMarkers",set:function(t){this.vars&&(T(this.vars.visitedPath,t,this),this.updateNavigationText())},get:function(){if(this.vars)return r.resolvePath(this.vars.visitedPath).value()}},{key:"guidedMarkerInView",set:function(t){this.model.prop("MarkerInView",t)},get:function(){return this.model.prop("MarkerInView")}}]),Y}.call(e,J,e,t))||(t.exports=n)},function(t,e,k){"use strict";var n,O=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===(n=function(t){var n=k(0),i=k(55),d=k(90),r=k(12),f=(k(7),k(1)),p=k(2),e=k(35),w=e.imgBufferCtx,S=e.imgBuffer,o=e.svgHtmlIcon,u=e.svgImageIcon,s=(e.convertDeprecatedIconToBase64,e.unpackHex),T=e.packRgb,E=e.easeColor,v=(e.setColor,k(36).touchify),a=k(15),l=a.enterOrTouchStart,c=a.leaveOrTouchEnd,g=(a.clickOrTouchEnd,a.downOrTouchStart),h=a.moveOrTouchMove,m=a.upOrTouchEnd,y=k(5).device.isMobile,x=k(4).math.TWO_PI,A='url("Move.cur"), auto',b=document.createElement("div");b.classList.add("offscreen");var _="data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgd2lkdGg9IjI1NiIgaGVpZ2h0PSIyNTYiIGNsYXNzPSJpY29uIj48ZyBzdHJva2U9Im5vbmUiIGZpbGw9ImJsYWNrIiAvPjwvc3ZnPg==";function C(t){var r=this,e=t.pano,n=t.loc,i=t.sprite,o=t.backSprite,s=t.id,a=t.idx,l=t.canvas,u=t.ctx,c=t.tex,h=t.props;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,C),this.onEditMode=function(t){r.editMode=r.pano.editMode,r.editableMarker(),r.setupPanel(),r.editableLabel(),r.editableTooltip(),r.editableHotspot()},this.onEditLabel=function(){var t=50+(0<r.labelText.clientWidth?35+r.labelText.clientWidth:0);r.bg.style.width=t+"px",r.props.label.width=t},this.onMouseEnter=function(){r.pano.editMode||(r.setState("over"),r.enterAnimation(),r.enterToolTip(),r.enterLabel(),r.triggerEvent("onlinkrollover",r.sprite.userData.id))},this.onMouseLeave=function(){r.pano.editMode||(r.setState("normal"),r.leaveAnimation(),r.leaveToolTip(),r.leaveLabel(),r.triggerEvent("onlinkrollout",r.sprite.userData.id))},this.onReleaseOutsideLabel=function(t){r.el.contains(t.target)||r.props.hasPanel&&r.panel.el.contains(t.target)||(r.hideLabel(),r.disableActive(),document.removeEventListener(g,r.onReleaseOutside))},this.onMouseDown=function(t){if(r.sprite.visible){var e=v(t,r.pano),n=e.pageX,i=e.pageY;e.gesture;r.lastX=n,r.lastY=i,r.pano.editMode&&(r.dragging=!0),d.hideLast(),r.downPano(),r.downActiveState(),r.downShowHidePanel(),r.downEditMode(),r.downLabel(),r.hideToolTip(),r.setVisited(),r.freeHotspotFlash()}},this.onMouseMove=function(t){if(r.sprite.visible){var e=v(t,r.pano),n=e.pageX,i=e.pageY;e.gesture;r.lastX=n,r.lastY=i}},this.onMouseUp=function(){r.sprite.visible&&r.triggerEvent("onlinkrelease",r.sprite.userData.id)},this.editMode=e.editMode,this.pano=e,this.sprite=i,this.backSprite=o,this.id=s,this.idx=a,this.canvas=l,this.ctx=u,this.tex=c,this.createDefaults(h),this.setProperties(h),this.setupPanel(),this.createGraphics(),this.createSprite(n),f.on(p.threeSixtyImage.EDIT_MODE_CHANGED,this.onEditMode)}return O(C,[{key:"drawSprite",value:function(t,p,v,g,e){var m=this;"none"===g&&(g="transparent"),"none"===v&&(v="transparent"),"none"===p&&(p="transparent"),p=s(p),v=s(v),g=s(g),e=s(e);var y=this.canvas.width/2,A=this.canvas.height/2,b=this.canvas.width/2-22;window.cancelAnimationFrame(this.renderId),t(function(h){var d=m.ctx,f=m.canvas;m.initialColorsSet&&m.texStyle||(m.texStyle={bgFill:p,bgStroke:v,iconStroke:g,iconFill:e},m.initialColorsSet=!0),function t(){d.globalCompositeOperation="source-over",d.clearRect(0,0,f.width,f.height);var e=E(m.texStyle.bgFill,p),n=E(m.texStyle.bgStroke,v),i=E(m.texStyle.iconStroke,g),r=e&&n&&i;d.fillStyle=T(m.texStyle.bgFill),d.strokeStyle=T(m.texStyle.bgStroke),d.lineWidth=30,d.beginPath(),d.arc(y,A,b,0,x,!1),d.fill(),d.shadowColor="transparent",d.stroke();var o=w;o.globalCompositeOperation="source-over",o.fillStyle="black",o.fillRect(0,0,f.width,f.height),o.globalCompositeOperation="source-in",o.drawImage(h,0,0),o.fillStyle=T(m.texStyle.iconStroke),o.fillRect(0,0,f.width,f.height);var s=m.props.iconScale||1,a=f.width*s,l=a/2,u=f.width/2-l,c=f.height/2-l;d.drawImage(S,u,c,a,a),m.renderId=window.requestAnimationFrame(t),r&&window.cancelAnimationFrame(m.renderId),m.tex.needsUpdate=!0}()})}},{key:"editableLabel",value:function(){null!=this.labelText&&(this.labelText.contentEditable="true",this.labelText.addEventListener("input",this.onEditLabel))}},{key:"editableTooltip",value:function(){null!=this.tooltip&&(this.tooltip.contentEditable=!0,this.tooltip.spellcheck=!1)}},{key:"remove",value:function(){this.teardown(),f.off(p.threeSixtyImage.EDIT_MODE_CHANGED,this.onEditMode),null!=this.panel&&this.panel.remove(),null!=this.labelText&&this.labelText.removeEventListener("input",this.onEditLabel)}},{key:"resize",value:function(){null!=this.panel&&this.panel.resize()}},{key:"updateLoc",value:function(t){this.updatePosition(t.x,t.y,t.z),this.panel&&this.panel.update()}},{key:"setupPanel",value:function(){(this.props.hasPanel||this.pano.editMode)&&(this.panel=new d({pano:this.pano,marker:this,data:this.props.panel,disabled:!this.props.hasPanel}))}},{key:"generateStates",value:function(t,e){return{normal:{bgStroke:t,bgStrokeWidth:2,bgFill:t,iconStroke:e,iconFill:"none"},over:{bgStroke:e,bgStrokeWidth:2,bgFill:t,iconStroke:e,iconFill:"none"},active:{bgStroke:t,bgStrokeWidth:2,bgFill:e,iconStroke:t,iconFill:"none"}}}},{key:"createDefaults",value:function(t){this.bgScale="tiny"===t.type?7.5:2.5;var e="hotspot"===t.type?400:100;this.defaults={states:this.generateStates("#ffffff","#007cb2"),type:"normal",hasPanel:!0,hasTooltip:!1,hasLabel:!1,scaleX:e,scaleY:e,iconScale:.6,boxShadow:"0 0 20px rgba(0, 0, 0, 0.2)",panel:{hasArrow:!0,padding:23,borderRadius:5,maxWidth:260,boxShadow:"0 0px 10px rgba(0, 0, 0, 0.25)",fill:"#ffffff",stroke:"transparent",strokeWidth:0,title:this.createPanelElementDefaults("Open Sans","19.5"),body:this.createPanelElementDefaults("Open Sans","13")}}}},{key:"createPanelElementDefaults",value:function(t,e){return{innerHTML:"",style:{fontFamily:t,fontSize:e,fontThemeType:"none"}}}},{key:"setEditorVar",value:function(t,e){this.props.editorVars[t]=e}},{key:"getEditorVar",value:function(t){if(null!=this.props.editorVars)return this.props.editorVars[t];this.props.editorVars={}}},{key:"getData",value:function(){this.panel&&(this.props.panel=this.panel.getData());var t=this.object,e=n.cloneDeep(this.props);delete e.states,delete e.animation;try{e.editorVars=JSON.stringify(e.editorVars)}catch(t){console.warn("Malformed 'editorVars' "+e.editorVars)}return{id:this.id,xPos:t.position.x,yPos:t.position.y,zPos:t.position.z,props:e}}},{key:"simpleColors",value:function(){null!=this.props.bgColor&&null!=this.props.fgColor&&(this.props.states=this.generateStates(this.props.bgColor,this.props.fgColor))}},{key:"adjust",value:function(t){var e=t.xPos,n=t.yPos,i=t.zPos,r=t.props;this.updatePosition(e,n,i),this.adjustProps(r),f.trigger(p.threeSixtyImage.MARKER_UPDATED,this)}},{key:"adjustProps",value:function(t){this.props=n.merge(this.props,t),this.simpleColors(),this.updateProps()}},{key:"updateProps",value:function(){this.updateIcon(),this.editMode&&(this.initialColorsSet=!1),this.setState(this.currentState,!0),this.updateType(),this.updatePanel(),this.updateLabel(),this.updateScale(),this.updateAnimation()}},{key:"updateType",value:function(){var t=this.props.type;"hotspot"===t?(this.ctx.globalCompositeOperation="source-over",this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.tex.needsUpdate=!0,this.hideShowControlPoints(!1)):(this.hideShowControlPoints(!0,!0),"hotspot"===this.lastType&&this.scale(100,100)),this.lastType=t,this.panoReady()}},{key:"updateAnimation",value:function(){null!=this.props.animation&&(this.backSprite.material=this.pano.getBackSpriteMaterial(n.cloneDeep(this.props)))}},{key:"updateLabel",value:function(){this.props.hasLabel}},{key:"updateIcon",value:function(){this.canvas&&this.setState(this.currentState);var t=o(this.getIconSource());this.icon.outerHTML=t,this.icon=this.el.querySelector(".icon"),this.icon.style.transform="scale("+(this.props.iconScale||1)+")"}},{key:"getIconSource",value:function(){if(this.props.iconSource){var t=this.props.iconSource.content||null!=this.pano.assetManager&&this.pano.assetManager.getAssetUrl(this.props.iconSource.assetId);if(t)return t}return _}},{key:"updatePanel",value:function(){null!=this.panel?this.props.hasPanel?(this.panel.forcePlaceCenter=!0,this.panel.enable(),this.wasDisabled&&(this.panel.show(),this.wasDisabled=!1),this.panel.forcePlaceCenter=!0,this.panel.adjust(this.props.panel)):(this.wasDisabled=!0,this.panel.disable()):this.props.hasPanel&&this.setupPanel()}},{key:"isHotspot",value:function(){return"hotspot"===this.props.type}},{key:"initEditorVars",value:function(){if(null!=this.props.editorVars)try{this.props.editorVars=JSON.parse(this.props.editorVars)}catch(t){console.warn("Malformed 'editorVars' "+this.props.editorVars)}}},{key:"setProperties",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.props=n.merge(this.defaults,e),this.initEditorVars(),this.isHotspot()||(null==this.props.states.over&&(this.props.states.over=this.props.states.normal),this.simpleColors())}},{key:"setState",value:function(t,e){var n=this;if(!this.isHotspot()&&(this.active&&(t="active"),this.pano.editMode&&(t="normal"),this.props.states[t]||e)){var i=this.props.states[t],r=i.bgStroke,o=i.bgStrokeWidth,s=i.bgFill,a=i.iconStroke,l=i.iconFill;this.bg.style.border=o*this.bgScale*.5+"px solid "+r,null!=this.props.boxShadow&&(this.bg.style.boxShadow=this.props.boxShadow),this.bg.style.background=s,this.icon.setAttribute("stroke",a),this.icon.setAttribute("fill",l),this.currentState=t,null!=this.canvas&&this.drawSprite(function(t){return u(n.getIconSource(),t)},s,r,a,l)}}},{key:"addLabel",value:function(t){if(this.props.hasLabel){var e=document.createElement("div");e.classList.add("marker-label-container"),e.innerHTML="\n          <div class='marker-label'>\n            enter text...\n          </div>\n        ",this.el.appendChild(e),this.bg.classList.add("has-label"),this.labelEl=e,this.labelEl.style.left="50px",this.labelEl.style.width=0,this.labelEl.style.height="50px",this.labelText=this.labelEl.firstElementChild,this.labelText.style.color=this.props.label.textColor,this.labelText.innerHTML=this.props.label.html,this.editMode&&this.editableLabel()}}},{key:"showLabel",value:function(t){var e=this;if(null!=this.labelEl){var n=this.props.label.width||(0<this.labelText.clientWidth?35+function(t){var e=document.createElement("div");e.setAttribute("class",t.getAttribute("class")),e.innerHTML=t.innerHTML,b.innerHTML="",b.appendChild(e),document.body.appendChild(b);var n=e.clientWidth;return document.body.removeChild(b),n}(this.labelText):0);this.labelShown=!0;var i=t?0:.3;r.to(this.bg,i,{ease:"power4.out",width:n,height:50}),r.to(this.bg,.3,{scaleX:1.05,scaleY:1.05,overwrite:!1}),r.to(this.labelEl,i,{ease:"power4.out",width:n-50,onComplete:function(){e.labelEl.style.width="auto"}})}}},{key:"hide",value:function(){this.el.style.visibility="hidden",this.sprite.visible=!1,this.backSprite.visible=!1}},{key:"show",value:function(){this.el.style.visibility="visible",this.sprite.visible=!0,this.backSprite.visible=!0}},{key:"hideLabel",value:function(){this.props.label&&null!=this.labelEl&&(this.labelShown=!1,r.to(this.bg,.3,{ease:"power4.out",width:50,height:50,scaleX:1,scaleY:1}),r.to(this.labelEl,.3,{ease:"power4.out",width:0}))}},{key:"hideShowControlPoints",value:function(e,t){(this.isHotspot()||t)&&[this.ctrlTl,this.ctrlTr,this.ctrlBr,this.ctrlBl].forEach(function(t){t.style.display=e?"block":"none"})}},{key:"displayBounds",value:function(){var t=this.pano.spriteWidth,e=this.pano.spriteHeight;if(this.isHotspot()){var n=this.el.getBoundingClientRect();t=n.width,e=n.height}if(0!=t&&0!=e){var i=t/50,r=1/i,o=e/50,s=1/o,a=Math.min(r,s);Math.min(i,o),this.hideShowControlPoints(!1),this.isHotspot()?(this.hbT.setAttribute("stroke-width",4*s),this.hbR.setAttribute("stroke-width",4*r),this.hbB.setAttribute("stroke-width",4*s),this.hbL.setAttribute("stroke-width",4*r)):this.boundsRect.setAttribute("stroke-width",this.isHotspot()?4*a:a),this.ctrlTl.setAttribute("stroke-width",a),this.ctrlTl.setAttribute("transform","scale("+r+", "+s+")");var l=50*i,u=50*o,c="scale("+r+", "+s+")";return this.ctrlTr.setAttribute("stroke-width",a),this.ctrlTr.setAttribute("transform",c+" translate("+l+", 0)"),this.ctrlBr.setAttribute("stroke-width",a),this.ctrlBr.setAttribute("transform",c+" translate("+l+", "+u+")"),this.ctrlBl.setAttribute("stroke-width",a),this.ctrlBl.setAttribute("transform",c+" translate(0, "+u+")"),this.boundsEl.style.display="block",this}}},{key:"controlPoints",value:function(){var n=this;return["tl","tr","br","bl"].reduce(function(t,e){return'<rect class="marker-ctrl-'+e+'"\n          style="display:'+(n.isHotspot()?"none":"block")+'"\n          stroke="blue" fill="white" stroke-width="1"\n          x="'+-3.5+'" y="'+-3.5+'"\n          width="7" height="7"\n          vector-effect="non-scaling-stroke"/>'+t},"")}},{key:"editableHotspot",value:function(){this.isHotspot()&&(this.boundsEl.style.display=this.editMode?"block":"none")}},{key:"hotspotBorder",value:function(){var t=this.pano.hotspotColor;return'\n        <g class="hot-borders">\n          <path class="hot-border-t" d="M 0 0 L 50 0" stroke-width="1" stroke="'+t+'" />\n          <path class="hot-border-r" d="M 50 0 L 50 50" stroke-width="1" stroke="'+t+'" />\n          <path class="hot-border-b" d="M 50 50 L 0 50" stroke-width="1" stroke="'+t+'" />\n          <path class="hot-border-l" d="M 0 50 L 0 0" stroke-width="1" stroke="'+t+'" />\n        </g>\n      '}},{key:"updateHotspotColor",value:function(){var e=this;[this.hbT,this.hbR,this.hbB,this.hbL].forEach(function(t){t.setAttribute("stroke",e.pano.hotspotColor)}),this.boundsEl.firstElementChild.setAttribute("fill",this.pano.hotspotTransColor)}},{key:"editableMarker",value:function(){this.el.style.cursor=this.pano.editMode?A:null}},{key:"panoReady",value:function(){var t="guided"===this.pano.navigation;if(this.editMode||t){var e=this.boundsEl.firstElementChild;this.isHotspot()?(e.setAttribute("fill",this.pano.hotspotTransColor),e.setAttribute("stroke","none"),this.boundsEl.classList.add("hotspot-bounds"),this.boundsEl.style.display="block",this.boundsEl.style.overflow="hidden",this.displayBounds(),this.hotBordersEl.style.display="block"):(this.boundsEl.classList.remove("hotspot-bounds"),e.setAttribute("fill","none"),e.setAttribute("stroke","white"),this.boundsEl.style.overflow="visible",this.hotBordersEl.style.display="none")}}},{key:"createGraphics",value:function(){this.el=document.createElement("div"),this.el.classList.add("marker-el");var t=o(_);this.el.innerHTML='\n        <div class="marker-content">\n          <div class="bg"></div>\n          '+t+'\n        </div>\n        <svg class="marker-bounds" style="display:none;">\n          <rect\n            class="marker-bounds-rect" stroke="white" fill="none" stroke-width="1"\n            x=0 y="0" width="50" height="50" />\n\n          '+this.hotspotBorder()+"\n          "+this.controlPoints()+"\n        </div>\n      ",this.boundsEl=this.el.querySelector(".marker-bounds"),this.boundsRect=this.el.querySelector(".marker-bounds-rect"),this.ctrlTl=this.el.querySelector(".marker-ctrl-tl"),this.ctrlTr=this.el.querySelector(".marker-ctrl-tr"),this.ctrlBr=this.el.querySelector(".marker-ctrl-br"),this.ctrlBl=this.el.querySelector(".marker-ctrl-bl"),this.hotBordersEl=this.el.querySelector(".hot-borders"),this.hbT=this.el.querySelector(".hot-border-t"),this.hbR=this.el.querySelector(".hot-border-r"),this.hbB=this.el.querySelector(".hot-border-b"),this.hbL=this.el.querySelector(".hot-border-l"),this.bg=this.el.querySelector(".bg"),this.bg.classList.add(this.props.type+"-type"),this.addLabel(),this.createToolTip(),this.content=this.el.querySelector(".marker-content"),null!=this.canvas&&(this.content.style.opacity=0),this.bgRect=this.bg.querySelector(".bg-rect"),this.icon=this.el.querySelector(".icon"),this.currentState="normal",this.updateProps(),this.panoReady(),this.editableMarker()}},{key:"createToolTip",value:function(){this.props.hasTooltip&&(this.tooltip=document.createElement("div"),this.tooltip.classList.add("tooltip-el"),this.tooltip.classList.add(this.props.type+"-marker"),this.bg.classList.add("has-tooltip"),null!=this.props.scale&&(this.tooltip.style.transform="scale("+3*this.props.scale+")"),this.el.prepend(this.tooltip),this.tooltip.innerHTML=this.props.toolTipHtml||"enter text...",this.editMode?this.editableTooltip():this.hideToolTip())}},{key:"hideToolTip",value:function(){var t=this;this.props.hasTooltip&&(this.tooltip.style.opacity=0,clearTimeout(this.hideTooltipId),this.hideTooltipId=setTimeout(function(){t.tooltip.style.display="none"},250))}},{key:"showToolTip",value:function(){clearTimeout(this.hideTooltipId),this.tooltip.style.display="block",this.tooltip.style.opacity=1}},{key:"enterAnimation",value:function(){"moveUp"===this.props.animation&&(this.bg.style.boxShadow="0 5px 20px rgba(0, 0, 0, 0.3)",r.to(this.content,.5,{y:-5,ease:"power4.out"})),"scaleUp"===this.props.animation&&(this.bg.style.boxShadow="0 0 20px rgba(0, 0, 0, 0.3)",r.to(this.content,.5,{scaleX:1.05,scaleY:1.05,ease:"power4.out"}))}},{key:"enterToolTip",value:function(){this.props.hasTooltip&&this.showToolTip()}},{key:"enterLabel",value:function(){this.props.hasLabel&&"hover"===this.props.label.showOn&&this.showLabel()}},{key:"leaveAnimation",value:function(){"moveUp"===this.props.animation&&(r.to(this.content,.2,{y:0,ease:"power4.out"}),this.bg.style.boxShadow=this.props.boxShadow),"scaleUp"===this.props.animation&&(r.to(this.content,.5,{scaleX:1,scaleY:1,ease:"power4.out"}),this.bg.style.boxShadow=this.props.boxShadow)}},{key:"leaveToolTip",value:function(){!this.pano.editMode&&this.props.hasTooltip&&this.hideToolTip()}},{key:"leaveLabel",value:function(){this.props.hasLabel&&"hover"===this.props.label.showOn&&this.hideLabel()}},{key:"disableActive",value:function(t){this.active&&(this.active=!1,this.setState(t||"normal"))}},{key:"downPano",value:function(){this.pano.setCurrMarker(this.sprite),this.pano.downOnMarker=!0,this.pano.stopVelocity()}},{key:"downActiveState",value:function(){var t=this;null!=this.props.states.active&&(this.active=!0,this.setState("active"),this.props.hasLabel||window.requestAnimationFrame(function(){document.addEventListener(g,t.onReleaseOutsideLabel)}))}},{key:"downShowHidePanel",value:function(){null==this.panel||this.labelShown||(this.panel.shown?(this.panel.hide(),this.disableActive("over")):(this.panel.show(),this.panel.hideSelectionBoxes()))}},{key:"downEditMode",value:function(){if(this.pano.editMode)return this.pano.displayBoundingBox(),void(this.pano.boundingBox.style.display="block")}},{key:"downLabel",value:function(){this.props.hasLabel&&"down"===this.props.label.showOn&&(this.showLabel(),document.addEventListener(g,this.onReleaseOutsideLabel))}},{key:"disablePulse",value:function(){this.backSprite.material=this.pano.getBackSpriteMaterial(n.cloneDeep(this.props),this)}},{key:"setVisited",value:function(){this.isVisited||null==this.pano.model||this.pano.model.addVisitedMarker(this.idx),this.visited=!0,this.disablePulse()}},{key:"resumeVisited",value:function(){this.isVisited=!0,this.disablePulse()}},{key:"freeHotspotFlash",value:function(){var t=this;"free"===this.pano.navigation&&this.isHotspot()&&(this.pano.revealingHotspotById=this.id,r.killTweensOf(this.pano.overlaySvgEl),this.pano.overlaySvgEl.style.opacity=0,r.to(this.pano.overlaySvgEl,.2,{opacity:1,onComplete:function(){r.to(t.pano.overlaySvgEl,.1,{opacity:0,delay:.4,onComplete:function(){t.pano.revealingHotspotById===t.id&&(t.pano.revealingHotspotById=null)}})}}))}},{key:"teardown",value:function(){var t=this.object.element;t.removeEventListener(l,this.onMouseEnter),t.removeEventListener(c,this.onMouseLeave),document.removeEventListener(h,this.onMouseMove),t.removeEventListener(m,this.onMouseUp)}},{key:"updateScale",value:function(){null!=this.object&&this.scale(this.props.scale)}},{key:"scale",value:function(t,e){null!=t&&null!=e&&(this.scaleX(t),this.scaleY(e))}},{key:"scaleX",value:function(t){null!=t&&(this.sprite.scale.x=t,this.object.scale.x=t/50,this.props.scaleX=t,this.backSprite.scale.x=this.backSprite.scale.y=Math.min(3*this.props.scaleX,3*this.props.scaleY))}},{key:"scaleY",value:function(t){null!=t&&(this.sprite.scale.y=t,this.object.scale.y=t/50,this.props.scaleY=t,this.backSprite.scale.x=this.backSprite.scale.y=Math.min(3*this.props.scaleX,3*this.props.scaleY))}},{key:"updatePosition",value:function(t,e,n){null!=t&&(this.object.position.x=t,this.sprite.position.x=t,this.backSprite.position.x=t),null!=e&&(this.object.position.y=e,this.sprite.position.y=e,this.backSprite.position.y=e),null!=n&&(this.object.position.z=n,this.sprite.position.z=n,this.backSprite.position.z=n)}},{key:"createSprite",value:function(t){var e=new i.CSS3DSprite(this.el);(this.object=e).position.x=t.x,e.position.y=t.y,e.position.z=t.z,this.pano.cssScene.add(e),e.element.style.pointerEvents="all",y||e.element.addEventListener(l,this.onMouseEnter),e.element.addEventListener(c,this.onMouseLeave),e.element.addEventListener(g,this.onMouseDown),document.addEventListener(h,this.onMouseMove),e.element.addEventListener(m,this.onMouseUp),"number"==typeof this.props.scale&&(this.props.scale=[this.props.scale,this.props.scale]),null!=this.props.scaleX&&null!=this.props.scaleY?this.scale(this.props.scaleX,this.props.scaleY):this.isHotspot()?this.scale(400,400):this.scale(100,100)}},{key:"triggerEvent",value:function(t,e){this.editMode||this.pano.model.executeFilteredPlayerEvent(function(t){return t.triggerid===e},t)}},{key:"dragging",set:function(t){this.pano.editMode&&(this.el.style.cursor=t?'url("Moving.cur"), auto':A),this.isDragging=t},get:function(){return this.isDragging}},{key:"visited",set:function(t){this.isVisited||(null!=this.pano.vars&&this.pano.visitedMarkers<this.pano.vars.total.value()&&this.pano.visitedMarkers++,this.isVisited=t)},get:function(){return this.isVisited}}]),C}.call(e,k,e,t))||(t.exports=n)},function(t,e,v){"use strict";var n,A=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===(n=function(t){var g=v(0),i=v(15).downOrTouchStart,m=v(5).device.isMobile,d=v(7),o=v(1),s=v(2),r=v(53),a=v(91),l=v(92),u=v(94),n=v(95),e=v(35),c=e.parseFontFamily,h=e.parseFontThemeType,y=v(3),f=(A(p,[{key:"addSelectionBox",value:function(t){if(null==this.getSelectionBox(t.targetEl)){var e=new n(t);this.selections.push(e),this.selectionBoxes.set(t.targetEl,e)}}},{key:"removeSelectionBox",value:function(t){var e=this.getSelectionBox(t);null!=e&&(this.selections=g.without(this.selections,e),this.selectionBoxes.delete(t),e.destroy(),this.pano.onSelectionChange())}},{key:"getSelectionBox",value:function(t){return null!=this.selectionBoxes?this.selectionBoxes.get(t):null}},{key:"showSelectionBox",value:function(t,e){var n=this.getSelectionBox(t);return null!=n&&n.show(),e&&null!=this.selections&&this.selections.forEach(function(t){t!=n&&t.hide()}),this.pano.onSelectionChange(),n}},{key:"isEmptyOrWhitespace",value:function(t){return""===t.innerText.trim()&&!/\<(span|ol|ul|li|blockquote)\/?\>/i.test(t.innerHTML)}},{key:"clearWhitespace",value:function(t){this.isEmptyOrWhitespace(t)&&(t.innerHTML="")}},{key:"hideSelectionBox",value:function(t){var e=this.getSelectionBox(t);null!=e&&(e.hide(),this.pano.onSelectionChange())}},{key:"hideSelectionBoxes",value:function(){null!=this.selections&&(this.selections.forEach(function(t){t.hide()}),this.pano.onSelectionChange())}},{key:"destroySelectionBoxes",value:function(){this.selections.forEach(function(t){return t.destroy()}),this.selections=null,this.selectionBoxes=null,this.pano.onSelectionChange()}},{key:"showPlaceholderSelectionBoxes",value:function(){this.isEmptyOrWhitespace(this.titleEl)&&this.showSelectionBox(this.titleEl,!1),this.isEmptyOrWhitespace(this.bodyEl)&&this.showSelectionBox(this.bodyEl.parentNode,!1)}},{key:"inputElementEventListeners",value:function(){function t(t,e){return{eventName:t,eventHandler:e}}return[t("input",this.onContentChanged),t("keydown",this.onEditorKeyDown),t("paste",this.onContentPasted),t("formatMessage",this.onContentChanged),t("focusin",this.onFocusIn),t("focusout",this.onFocusOut)]}},{key:"setupInputElement",value:function(t){t.contentEditable=!0,t.spellcheck=!0;var e=this.inputElementEventListeners(),n=!0,i=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;t.addEventListener(a.eventName,a.eventHandler)}}catch(t){i=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw r}}}},{key:"teardownInputElement",value:function(t){var e=this.inputElementEventListeners(),n=!0,i=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;t.removeEventListener(a.eventName,a.eventHandler)}}catch(t){i=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw r}}}},{key:"remove",value:function(){null!=this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.checkRemoveMedia("all",{cleanup:!0}),o.off(s.threeSixtyImage.EDIT_MODE_CHANGED,this.onEditMode),this.teardownInputElement(this.titleEl),this.teardownInputElement(this.bodyEl),this.destroySelectionBoxes()}},{key:"updateScrollPadding",value:function(t,e){e.scrollHeight!=e.clientHeight?(t.padding.bottom=0,t.update()):0===t.padding.bottom&&(t.padding.bottom=-15,t.update())}},{key:"updateSelectionBoxes",value:function(){if(this.pano.editMode&&null!=this.selections)for(var t=0;t<this.selections.length;t++){var e=this.selections[t];e.targetEl===this.bodyEl&&this.updateScrollPadding(e,e.targetEl.parentNode),e.update()}}},{key:"resize",value:function(){this.shown&&this.hide()}},{key:"createDefaults",value:function(){this.defaults={}}},{key:"setData",value:function(t){this.data=g.merge(this.defaults,t)}},{key:"setupMediaModal",value:function(){return!this.mediaShowing&&(this.mediaShowing=!0,document.addEventListener("keydown",this.onMediaModalKeydown),this.pano.onSelectionChange(),!0)}},{key:"teardownMediaModal",value:function(){this.mediaShowing=!1,document.removeEventListener("keydown",this.onMediaModalKeydown),this.pano.onSelectionChange()}},{key:"verticalOffset",value:function(t){this.panelBubbleEl.style.top=t+"px",this.bubbleArrowEl.style.top="calc(50% - "+t+"px)"}},{key:"calcVerticalPos",value:function(){var t=this.el.parentNode.getBoundingClientRect(),e=this.el.getBoundingClientRect(),n=e.height/2-10;this.verticalOffset(.2*e.height);var i=t.bottom-20,r=t.top+20;if(e.bottom>i){var o=Math.min(n,e.bottom-i);this.verticalOffset(-o)}else if(e.top<r){var s=Math.min(n,r-e.top);this.verticalOffset(s)}}},{key:"getHotspotSizeInfo",value:function(){var t=this.pano.sceneRect,e=this.pano.mouseIntersect(this.marker.lastX,this.marker.lastY);this.shownByEditor&&(e=this.pano.mouseIntersect(100,100),this.shownByEditor=!1);var n=0,i=0;if(0<e.length){var r=t.width/2,o=t.height/2,s=e[0].point;s.project(this.pano.camera),s.x=s.x*r+r,s.y=-s.y*o+o,n=s.x,i=s.y}return{width:0,height:0,x:n,y:i}}},{key:"calcSmartScale",value:function(){var t=.5*this.pano.sceneScale,e=.8*this.pano.sceneScale,n=.6*this.pano.sceneScale;if(this.marker.isHotspot())this.scale=.4+t;else{var i=Math.max(this.marker.props.scaleX,this.marker.props.scaleY),r=Math.min(i,150)/200;this.scale=t+r*e}this.scale<n&&(this.scale=n)}},{key:"update",value:function(t){t||this.pano.projection(this.marker.sprite,this.positionPanel),this.updateSelectionBoxes()}},{key:"show",value:function(){!this.disabled&&this.marker.sprite.visible&&this.marker.props.hasPanel&&(p.last!=this&&p.hideLast(),this.scale=this.pano.sceneScale,this.el.style.visibility="visible",this.el.classList.add("panel-shown"),this.shown=!0,clearTimeout(this.hideTimeout),this.useAnchor=!1,this.update(),this.scroller.update(!0),this.marker.setState("active"),this.pano.editMode&&this.showPlaceholderSelectionBoxes(),p.last=this,document.addEventListener(i,this.onReleaseOutside))}},{key:"adjust",value:function(t){this.data=g.merge(this.data,t),this.updateStyles(),this.updateSelectionBoxes()}},{key:"updateStyles",value:function(){var i=this,t=this.data,e=t.borderRadius,n=t.boxShadow,r=t.fill,o=t.textColor,s=t.stroke,a=t.strokeWidth,l=t.padding,u=t.width,c=t.hasArrow;if(null!=e&&(this.bubbleEl.style.borderRadius=e+"px"),null!=n&&(this.bubbleEl.style.boxShadow=n),null!=r){this.bubbleEl.style.background=r,this.bubbleCornerRectEl.setAttribute("fill",r);var h=y.rgbify(r,0),d=m?"-webkit-gradient(linear, 0% 0%, 0% 100%, from("+h+"), to("+r+"))":"linear-gradient(180deg, transparent, "+r+")";this.panelContentGradBottomEl.style.background=d}if(null!=o&&(this.bubbleEl.style.color=o),null!=l){var f=Math.max(23,l);this.bubbleEl.style.padding=f+"px "+f+"px 3px "+f+"px";var p=y.getPath(this.scroller,"scrollBar");null!=p&&(p.style.right="-"+(f+3)+"px")}null!=u&&(this.bubbleEl.style.width=u+"px"),null!=s&&null!=a&&(this.bubbleEl.style.border=a+"px solid "+s),null!=c&&(this.panelCornerEl.style.display=c?"block":"none"),this.updatePanelElementStyles(this.titleEl,this.data.title),this.updatePanelElementStyles(this.bodyEl,this.data.body);var v=void 0;null!=this.data.media?(this.lastMedia!==JSON.stringify(this.data.media)&&(v=!0,["audio","video","image"].forEach(function(t){var e=i["createOrUpdate"+g.capitalize(t)],n=i.data.media[t];null!=n?e(n):i.checkRemoveMedia(t)})),this.lastMedia=JSON.stringify(this.data.media)):(this.checkRemoveMedia("all"),this.lastMedia=null),this.disabled=!1,this.update(v)}},{key:"updatePanelElementStyles",value:function(t,e){null!=e&&null!=t&&(t.innerHTML=e.innerHTML,t.style.fontFamily="'"+e.style.fontFamily+"'",t.style.fontSize=e.style.fontSize+"px",t.dataset.fontThemeType=e.style.fontThemeType)}},{key:"checkRemoveMedia",value:function(t,e){var n=1<arguments.length&&void 0!==e?e:{};"image"!==t&&"all"!==t||null==this.mediaImageEl||this.destroyImage(n),"audio"!==t&&"all"!==t||null==this.mediaAudioEl||this.destroyAudio(n),"video"!==t&&"all"!==t||null==this.mediaVideoPosterEl||this.destroyVideo(n)}},{key:"hide",value:function(t){var e=this,n=0<arguments.length&&void 0!==t&&t;this.disabled||(this.shown=!1,this.el.classList.remove("panel-shown"),clearTimeout(this.hideTimeout),n?this.el.style.visibility="hidden":this.hideTimeout=setTimeout(function(){e.el.style.visibility="hidden"},100),this.marker.setState("normal"),this.pano.editMode&&this.hideSelectionBoxes(),document.removeEventListener(i,this.onReleaseOutside))}},{key:"disable",value:function(){this.hide(),this.disabled=!0,this.el.style.display="none"}},{key:"enable",value:function(){this.disabled&&(this.disabled=!1,this.show(),this.el.style.display="block")}},{key:"getData",value:function(){return this.data}},{key:"updateTextData",value:function(t,e){t.innerHTML=e.innerHTML,t.style.fontFamily=c(e.style.fontFamily),t.style.fontSize=parseFloat(e.style.fontSize),t.style.fontThemeType=h(e.dataset.fontThemeType)}},{key:"createGraphics",value:function(){var t=this,e=.62*this.pano.origHeight,n=this.pano.localizedText||{title:"",body:""};this.panelContent='\n      <div class="panel-bubble-arrow">\n      \n    <svg class="panel-corner" width="8" height="16">\n      <rect class="panel-corner-rect" x="4" y="1" width="11" height="11" fill="blue" transform="rotate(45, 7, 6) "></rect>\n    </svg>\n  \n      </div>\n      <div class="panel-head">\n        <h2 class="panel-title panel-content" placeholder="'+n.title+'"></h2>\n      </div>\n      <div class="panel-body-outer">\n        <div class="panel-body-container" style="max-height:'+e+'px;">\n          <div class="panel-body-top"></div>\n          <div class="panel-body panel-content" placeholder="'+n.body+'"></div>\n      </div>\n      <div class="panel-content-grad-bottom"></div>\n      </div>\n      ',this.el=document.createElement("div"),this.el.classList.add("panel-el"),this.el.innerHTML='\n        <div class="panel-bubble">\n          '+this.panelContent+"\n        </div>\n      ",this.panelBubbleEl=this.el.querySelector(".panel-bubble"),this.titleEl=this.el.querySelector(".panel-title"),this.addSelectionBox({targetEl:this.titleEl,showCallback:function(){return t.titleEl.focus()},hideCallback:function(){return t.titleEl.blur()},panel:this,showPlaceholder:!0}),this.bodyEl=this.el.querySelector(".panel-body"),this.panelBodyContainerEl=this.el.querySelector(".panel-body-container"),this.bubbleEl=this.el.querySelector(".panel-bubble"),this.bubbleArrowEl=this.el.querySelector(".panel-bubble-arrow"),this.panelCornerEl=this.el.querySelector(".panel-corner"),this.bubbleCornerRectEl=this.el.querySelector(".panel-corner-rect"),this.panelBodyTopEl=this.el.querySelector(".panel-body-top"),this.panelContentEl=this.el.querySelector(".panel-content"),this.panelContentGradBottomEl=this.el.querySelector(".panel-content-grad-bottom"),this.addSelectionBox({targetEl:this.panelBodyContainerEl,boundsEl:this.bodyEl,maskBounds:{bottomCalc:function(){return t.el.getBoundingClientRect().bottom+15},topCalc:function(){return t.panelBodyContainerEl.getBoundingClientRect().top}},showCallback:function(){return t.bodyEl.focus()},hideCallback:function(){return t.bodyEl.blur()},panel:this,showPlaceholder:!0,paddingOffsets:{bottom:-15}}),this.el.style.visibility="hidden",this.overlaysEl.appendChild(this.el),this.scroller=new r(this.panelBodyContainerEl),this.scroller.updateScroll=this.updateScroll,this.updateStyles(),this.editMode&&this.onEditMode()}}]),p);function p(t){var h=this,e=t.pano,n=t.marker,i=t.data,r=t.disabled;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),this.onEditMode=function(t){h.setupInputElement(h.titleEl),h.setupInputElement(h.bodyEl)},this.onFocusOut=function(t){var e=t.currentTarget===h.bodyEl?t.currentTarget.parentNode:t.currentTarget;h.hideSelectionBox(e)},this.onFocusIn=function(t){var e=t.currentTarget===h.bodyEl?t.currentTarget.parentNode:t.currentTarget;h.showSelectionBox(e,!0)},this.onContentPasted=function(t){t.preventDefault();var e=(t.clipboardData||window.clipboardData).getData("Text");t.currentTarget===h.titleEl&&(e=e.replace(/(\r\n|\n|\r)/gm," "));var n=document.getSelection(),i=n.getRangeAt(0);i.deleteContents();var r=document.createTextNode(e);i.insertNode(r),i.selectNodeContents(r),i.collapse(!1),n.removeAllRanges(),n.addRange(i),h.onContentChanged(t)},this.onContentChanged=function(t){h.updateTextData(h.data.title,h.titleEl),h.updateTextData(h.data.body,h.bodyEl),h.data.hasArrow&&h.bubbleArrowEl.classList.contains("panel-dir-left")&&(h.useAnchor=!0),h.scroller.update(),h.clearWhitespace(t.currentTarget),h.updateSelectionBoxes();var e=t.currentTarget===h.bodyEl?t.currentTarget.parentNode:t.currentTarget;h.showSelectionBox(e,!0),o.trigger(s.threeSixtyImage.MARKER_UPDATED,h.marker)},this.onEditorKeyDown=function(t){var e=66===t.which||85===t.which||73===t.which||67===t.which||88===t.which||86===t.which||90===t.which,n=13===t.which,i=t.currentTarget===h.titleEl;(t.ctrlKey&&e||n&&i)&&t.preventDefault(),t.currentTarget===h.mediaImageEl&&t.preventDefault()},this.onMediaModalKeydown=function(t){h.mediaShowing&&9==t.which&&t.preventDefault()},this.onReleaseOutside=function(t){if(!h.mediaShowing){var e=d.isWithin(t.target,"panel-el"),n=d.isWithin(t.target,"marker-el");e||n||h.hide()}},this.positionPanel=function(t,e){h.pano.calcSceneRect();var n=h.pano.sceneRect,i=e.scale.x*n.width/2,r=e.scale.y*n.height/2,o=!1;if(h.marker.isHotspot()){var s=document.elementsFromPoint(d.mouseX,d.mouseY).find(function(t){return t.classList.contains("marker-bounds-rect")});null==s||null==y.getPath(h,"marker.el")||h.marker.el.contains(s)||(i=r=0,o=!0)}var a=h.marker.isHotspot()&&!o?h.getHotspotSizeInfo():{width:i,height:r,x:t.x+n.width/2,y:t.y+n.height/2},l=a.x,u=a.y,c=a.width;a.height;h.useAnchor?(l=h.lastAnchor.x,u=h.lastAnchor.y):h.lastAnchor={x:l,y:u},0!==l&&0!==u&&!h.forcePlaceCenter||(l=t.x+n.width/2,u=t.y+n.height/2,h.forcePlaceCenter=!1),h.calcSmartScale(),l<h.pano.width/2?(l+=c/2+15*h.scale,h.el.style.transformOrigin="0 0",h.data.hasArrow&&h.bubbleArrowEl.classList.remove("panel-dir-left"),h.cornerScale=1.5*h.scale):(h.el.style.transformOrigin="100% 0",l-=c/2+15*h.scale+h.el.offsetWidth,h.data.hasArrow&&h.bubbleArrowEl.classList.add("panel-dir-left"),h.cornerScale=1.5*-h.scale),h.el.style.transform="translate("+l+"px, "+u+"px) scale("+h.scale+") translateY(-50%)",h.bubbleArrowEl.style.transform="translateY(-50%) scale("+h.cornerScale+")"},this.createOrUpdateImage=function(t){null!=h.destroyImage&&h.destroyImage(),h.destroyImage=u(h,t)},this.createOrUpdateVideo=function(t){null!=h.destroyVideo&&h.destroyVideo(),h.destroyVideo=l(h,t)},this.createOrUpdateAudio=function(t){null!=h.destroyAudio&&h.destroyAudio(),h.destroyAudio=a(h,t)},this.onLeftLink=function(){h.hide();var t=h.data.navigation,e=h.pano.getMarker(t.leftLink);h.pano.selectNextSprite=!0,h.pano.setCurrMarker(e.sprite),h.pano.panToMarker(t.leftLink)},this.onRightLink=function(){h.hide();var t=h.data.navigation,e=h.pano.getMarker(t.rightLink);h.pano.selectNextSprite=!0,h.pano.setCurrMarker(e.sprite),h.pano.panToMarker(t.rightLink)},this.updateScroll=function(){null!=h.selections&&h.selections.forEach(function(t){return t.update()})},this.pano=e,this.marker=n,this.overlaysEl=this.pano.overlaysEl,this.editMode=e.editMode,this.shown=!1,this.scale=1,this.selectionBoxes=new WeakMap,this.selections=[],this.disabled=r,this.createDefaults(),this.setData(i),this.createGraphics(),o.on(s.threeSixtyImage.EDIT_MODE_CHANGED,this.onEditMode)}return f.hideLast=function(){null!=f.last&&f.last.shown&&f.last.hide()},f}.call(e,v,e,t))||(t.exports=n)},function(t,e,l){"use strict";var n,b=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}void 0===(n=function(t){var u=l(7),c=l(3),h=l(5),r=l(1),o=l(2),d=l(10),e=l(15),f=(e.clickOrTouchEnd,e.downOrTouchStart),p=e.moveOrTouchMove,v=e.upOrTouchEnd,g=5;function m(s){var a=void 0,l=!1,e=!1;function t(t){a=s.panelAudioSeekEl.getBoundingClientRect(),l=!0,e=s.audioPlayer.playing,i(t)}function n(t){e&&s.shown&&s.audioPlayer.play(),l=!1}function i(t){if(l){var e=(o=t,(h.device.isMobile?o.touches[0]&&o.touches[0].clientX:o.clientX)+g);if(null!=e){var n=s.audioPlayer,i=(r=e,c.clamp(0,1,(r-a.left)/a.width)*n.model.getDuration());n.pause(),n.seek(i),n.displayTime(c.toSeconds(i))}}var r,o}return s.panelAudioSeekEl.addEventListener(f,t),document.addEventListener(p,i),document.addEventListener(v,n),function(){s.panelAudioSeekEl.removeEventListener(f,t),document.removeEventListener(p,i),document.removeEventListener(v,n)}}var y=(b(n,[{key:"play",value:function(){var t=this;this.playing=!0;var e=this.getAudioPlayer();e.onActionPlay({},{}),clearInterval(this.audioInterval),this.audioInterval=setInterval(function(){e.state.isPlaying||(t.pause(),t.resetPlayBtn()),t.displayTime()},30)}},{key:"pause",value:function(){this.playing=!1,this.getAudioPlayer().onActionPause({},{}),clearInterval(this.audioInterval)}},{key:"seek",value:function(t){var e=this.getAudioPlayer();e.seek(t),e.currentTime=c.toSeconds(t),this.displayTime()}}]),n);function n(){var t=this;w(this,n),this.destroy=function(){clearInterval(t.audioInterval)},window.requestAnimationFrame(function(){t.displayTime()})}var i=(b(s,[{key:"onActionPlay",value:function(){this.audio.play(),this.state.isPlaying=!0}},{key:"onActionPause",value:function(){this.audio.pause(),this.state.isPlaying=!1}},{key:"seek",value:function(t){this.audio.currentTime=c.toSeconds(t)}},{key:"getDuration",value:function(){return c.toMilliseconds(this.audio.duration)}},{key:"destroy",value:function(){this.audio.removeEventListener("timeupdate",this.onPlaying)}}]),s);function s(t){var e=this;w(this,s),this.onPlaying=function(){e.currentTime=e.audio.currentTime},this.audio=new Audio(t),this.state={isPlaying:!1},this.currentTime=0,this.audio.addEventListener("timeupdate",this.onPlaying)}var A=(b(a,[{key:"getDuration",value:function(){return this.currView.getDuration()}},{key:"destroy",value:function(){this.currView.audio.removeEventListener("canplaythrough",this.onUpdate)}}]),a);function a(t,e){var n=this;w(this,a),this.onUpdate=function(){n.player.displayTime()},this.currView=new i(t),this.currView.audio.addEventListener("canplaythrough",this.onUpdate),this.isEditModeAudio=!0,this.player=e}return function(s,t){var a=s.audioPlayer;null==a&&(a=s.audioPlayer=new y);var l=null==t.url?d.resolvePath(t.path,s.pano.model):new A(t.url,a);if(a.model=l,a.displayTime=function(t){var e=c.toSeconds(l.getDuration()),n=c.formatSecondsAsTime(e),i=null!=t?t:a.getAudioPlayer().currentTime,r=i/e*100,o=c.formatSecondsAsTime(i);s.panelAudioSeekFillEl.style.width=r+"%",u.setAttributes(s.panelAudioSeekFillEl,{"aria-valuenow":i,"aria-valuemax":e}),-1==(o+" / "+n).indexOf("NaN")&&(s.panelAudioTimeEl.innerHTML=o+" / "+n)},a.getAudioPlayer=function(){return null!=l&&l.currView},null==s.mediaAudioEl){s.mediaAudioEl=document.createElement("div"),s.mediaAudioEl.classList.add("panel-audio");var e='\n        <div class="panel-audio-pill">\n          <button class="panel-audio-play" data-ref>\n    <svg class="panel-audio-play-icon" width="10" height="12" >\n      <path d="M9 5.705882L1 11V1z" fill="#7d7d7d" stroke="#7d7d7d" stroke-width="2" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>\n      <rect x="0" y="0" width="4" height="11" fill="#7d7d7d">\n      </rect>\n      <rect x="6" y="0" width="4" height="11" fill="#7d7d7d">\n      </rect>\n    </svg>\n  </button>\n          <div class="panel-audio-seek" data-ref>\n            <div class="panel-audio-seek-fill"\n              role="slider"\n              aria-valuemin="0"\n              aria-valuenow="0"\n              aria-valuemax="0"\n              style="background:'+s.marker.props.states.normal.iconStroke+'" data-ref></div>\n          </div>\n          <div class="panel-audio-time" data-ref>00:00 / 00:00</div>\n        </div>\n        <style class="panel-audio-dot-style">\n          .panel-audio-seek-fill:after {\n            background: '+s.marker.props.states.normal.iconStroke+" !important;\n          }\n        </style>\n      ";s.mediaAudioEl.innerHTML=e,s.onClickAudioMedia=function(t){var e=s.getSelectionBox(t.currentTarget),n=null!=e&&e.shown;s.pano.editMode&&!n&&s.showSelectionBox(t.currentTarget,!0)},s.addSelectionBox({targetEl:s.mediaAudioEl,showCallback:function(){s.panelAudioPlayEl.style.pointerEvents="all",s.panelAudioSeekEl.style.pointerEvents="all"},hideCallback:function(){s.panelAudioPlayEl.style.pointerEvents="none",s.panelAudioSeekEl.style.pointerEvents="none"},shouldAutoHide:!0,panel:s,showPlaceholder:!1,paddingOffsets:{top:-5,bottom:-15}}),s.mediaAudioEl.addEventListener("click",s.onClickAudioMedia),u.selectAllByRef(s,s.mediaAudioEl);var n=function(){s.panelAudioPlayEl.firstElementChild.classList.remove("audio-is-playing")};a.resetPlayBtn=n,s.stopMedia=function(){n(),a.pause()},s.destroySeek=m(s),s.onClickPlay=function(t){var e=t.currentTarget.firstElementChild;a.playing?(a.pause(),e.classList.remove("audio-is-playing")):(a.play(),e.classList.add("audio-is-playing"))},s.panelAudioPlayEl.addEventListener("click",s.onClickPlay),s.pano.editMode&&(s.panelAudioPlayEl.style.pointerEvents="none",s.panelAudioSeekEl.style.pointerEvents="none"),s.bubbleEl.appendChild(s.mediaAudioEl)}function i(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(s.pano.editMode||t.cleanup)&&(s.audioPlayer.destroy(),s.audioPlayer=null,l.isEditModeAudio&&l.destroy(),s.stopMedia(),s.destroySeek(),s.panelAudioPlayEl.removeEventListener("click",s.onClickPlay),null!=s.mediaAudioEl&&(s.mediaAudioEl.removeEventListener("click",s.onClickAudioMedia),s.bubbleEl.removeChild(s.mediaAudioEl),s.removeSelectionBox(s.mediaAudioEl),s.mediaAudioEl=null),r.off(o.slide.WILL_CHANGE,i))}return r.on(o.slide.WILL_CHANGE,i),i}}.call(e,l,e,t))||(t.exports=n)},function(t,e,i){"use strict";var n;void 0===(n=function(t){var p=i(7),u=(i(10),i(5)),c=i(3),v=i(1),g=i(2),m=i(19),y=i(93),e=i(15),A=e.clickOrTouchEnd,o=e.downOrTouchStart,h=e.moveOrTouchMove,d=e.upOrTouchEnd,n=i(56),b=n.Z_INDEX_MID,w=n.PAD_SCALE,f=5;function S(s,e){var a=void 0,l=!1,n=!1;function t(t){a=s.panelVideoSeekEl.getBoundingClientRect(),l=!0,n=e.playing,r(t)}function i(t){l=!1,n&&s.shown&&s.panelVideoEl.play()}function r(t){if(l){var e=(o=t,(u.device.isMobile?o.touches[0]&&o.touches[0].clientX:o.clientX)+f);if(null!=e){var n=s.videoPlayer,i=(r=e,c.clamp(0,1,(r-a.left)/a.width)*s.panelVideoEl.duration);s.panelVideoEl.pause(),s.panelVideoEl.currentTime=i,n.updateSeek(i),null!=s.captionsConnector&&s.captionsConnector.clearCaptions()}}var r,o}return s.panelVideoSeekEl.addEventListener(o,t),document.addEventListener(h,r),document.addEventListener(d,i),function(){s.panelVideoSeekEl.removeEventListener(o,t),document.removeEventListener(h,r),document.removeEventListener(d,i)}}return function(s,t){null==s.videoPlayer&&(s.videoPlayer={playing:!1});var a=s.videoPlayer,e=void 0,o=void 0;if(null!=t.url)o=t.url;else{e=s.pano.assetManager.getAsset(t.assetId),o=e.url();var n=m.getCaptions(t.assetId);if(null!=n){var i=s.pano.slideObject.props.parent.props.model.getSlide(),r=i.id;s.captionsConnector=new y({type:"video",slideId:r[0],assetId:t.assetId,slideOwner:i,captions:n,parentEl:s,mediaElName:"panelVideoEl"})}}a.updateSeek=function(t){null!=s.captionsConnector&&(s.captionsConnector.setCurrentTime(t),s.captionsConnector.adjustCaptions());var e=s.panelVideoEl.duration,n=null!=t?t:s.panelVideoEl.currentTime,i=n/e*100;s.panelVideoSeekFillEl.style.width=i+"%",p.setAttributes(s.panelVideoSeekFillEl,{"aria-valuenow":n,"aria-valuemax":e})};var l=t.posterUrl||null!=s.pano.assetManager&&s.pano.assetManager.getAssetUrl(t.posterAssetId);if(null==s.mediaVideoPosterEl){var u=document.querySelector(".panel-video-play-icon-shadow");null==u&&((u=document.createElement("div")).classList.add="panel-video-play-icon-shadow",u.innerHTML='\n    <svg width="0" height="0" style="position:absolute;" focusable="false">\n      <defs>\n        <filter x="-25%" y="-25%" width="150%" height="150%" filterUnits="objectBoundingBox" id="panel-image-shadow">\n          <feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/>\n          <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"/>\n          <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/>\n          <feMerge>\n            <feMergeNode in="shadowMatrixOuter1"/>\n            <feMergeNode in="SourceGraphic"/>\n          </feMerge>\n        </filter>\n      </defs>\n    </svg>\n  ',document.body.appendChild(u));var c='\n        <div class="panel-video-poster">\n          <img src="'+l+'" alt="" draggable="false" />\n          \n    <svg width="30%" height="30%" viewBox="0 0 56 56" class="panel-video-play" data-ref>\n      <g filter="url(#panel-image-shadow)" transform="translate(4 2)" fill="none" fill-rule="evenodd">\n        <circle fill="#007CB2" cx="24" cy="24" r="24"/>\n        <path stroke="#FFF" stroke-width="2.8" fill="#FFF" stroke-linecap="round" stroke-linejoin="round" d="M32 24l-13 9V16z"/>\n      </g>\n    </svg>\n  \n        </div>\n      ';s.mediaVideoPosterEl=document.createElement("div"),s.mediaVideoPosterEl.innerHTML=c,s.addSelectionBox({targetEl:s.mediaVideoPosterEl,shouldAutoHide:!0,panel:s,showPlaceholder:!1,paddingOffsets:{top:-10,bottom:-25}}),s.panelBodyTopEl.appendChild(s.mediaVideoPosterEl)}else s.mediaVideoPosterEl.querySelector("img").src=l;function h(t){var e=s.getSelectionBox(t.currentTarget),n=null!=e&&e.shown;if(!s.pano.editMode||n){if(s.setupMediaModal()){var i,r=document.createElement("div");r.classList.add("three-sixty-image-media-panel-overlay"),p.setStyles(r,{position:"fixed",width:"100%",height:"100%",zIndex:b}),document.body.appendChild(r),s.overlayEl=r,null==s.overlayEl&&(s.overlayEl=document.createElement("div"),s.overlayEl.classList.add("three-sixty-image-media-panel-overlay")),s.overlayEl.innerHTML=(i=s.marker.props.states.normal.iconStroke,'\n    <div class="panel-video-player panel-media-overlay" data-ref>\n      <div class="panel-video-container" data-ref>\n        <video src="'+o+'" class="panel-video" data-ref playsinline></video>\n        <div class="panel-video-controls">\n          <button class="panel-video-play" data-ref>\n    <svg class="panel-video-play-icon" width="10" height="12">\n      <path d="M9 5.705882L1 11V1z" fill="#fff" stroke="#fff" stroke-width="2" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>\n      <rect x="0" y="0" width="4" height="11" fill="#fff">\n      </rect>\n      <rect x="6" y="0" width="4" height="11" fill="#fff">\n      </rect>\n    </svg>\n  </button>\n          <div class="panel-video-seek" data-ref>\n            <div class="panel-video-seek-fill"\n              role="slider"\n              aria-valuemin="0"\n              aria-valuenow="0"\n              aria-valuemax="0"\n              style="background:'+(i||"red")+'" data-ref></div>\n          </div>\n          <div class="panel-player-ui-end">\n          </div>\n        </div>\n      </div>\n      <button class="panel-media-close">\n    <svg class="panel-media-icon-close" width="20" height="20" viewBox="0 0 36 36" focusable="false" data-ref>\n      <polygon fill="white" points="36,2.826 33.174,0 18,15.174 2.826,0 0,2.826 15.174,18 0,33.174 2.826,36 18,20.826 33.174,36 36,33.174 20.826,18" />\n    </svg>\n  </button>\n      <style class="panel-audio-dot-style">\n        .panel-video-seek-fill:after {\n          background: '+i+" !important;\n        }\n      </style>\n    </div>\n  "),null!=s.destroyControls&&s.destroyControls(),null!=s.destroySeek&&s.destroySeek(),p.selectAllByRef(s,s.overlayEl),s.panelVideoEl.addEventListener("canplay",function t(){function e(t){var e=t.currentTarget.firstElementChild;o.playing?(r.panelVideoEl.pause(),null!=r.captionsConnector&&r.captionsConnector.clearCaptions(),o.playing=!1,e.classList.remove("video-is-playing")):(r.panelVideoEl.play(),o.playing=!0,e.classList.add("video-is-playing"))}function n(){o.updateSeek(r.panelVideoEl.currentTime)}function i(t){r.overlayEl.parentNode.removeChild(r.overlayEl),r.teardownMediaModal(),r.panelVideoEl.pause(),o.playing=!1,r.panelVideoPlayEl.removeEventListener(A,e),null!=r.destroySeek&&(r.destroySeek(),r.destroySeek=null),null!=r.captionsConnector&&r.captionsConnector.destroy(),r.overlayEl.innerHTML="",r.panelMediaIconCloseEl.removeEventListener(A,i),r.panelVideoEl.removeEventListener("timeupdate",n),r.pano.editMode&&window.requestAnimationFrame(function(){r.showSelectionBox(r.mediaVideoPosterEl,!0)})}var r,o;d(),s.destroyControls=(o=a,(r=s).panelVideoEl.play(),o.playing=!0,r.panelVideoPlayEl.firstElementChild.classList.add("video-is-playing"),r.panelVideoPlayEl.addEventListener(A,e),r.panelVideoEl.addEventListener("timeupdate",n),r.panelMediaIconCloseEl.addEventListener(A,i),function(){r.panelMediaIconCloseEl.removeEventListener(A,i),r.panelVideoPlayEl.removeEventListener(A,e),r.teardownMediaModal(),null!=r.destroySeek&&(r.destroySeek(),r.destroySeek=null)}),s.destroySeek=S(s,a),s.panelVideoEl.removeEventListener("canplay",t)})}}else s.showSelectionBox(t.currentTarget,!0)}function d(){if(s.overlayEl){var t={w:window.innerWidth,h:window.innerHeight},e=s.panelVideoPlayerEl;e.style.width=t.w+"px",e.style.height=t.h+"px";var n=s.panelVideoEl,i=Math.min(parseFloat(t.w)*w/n.videoWidth,parseFloat(t.h)*w/n.videoHeight),r=s.panelVideoContainerEl;r.style.width=n.videoWidth*i+"px",r.style.height=n.videoHeight*i+"px"}}function f(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(s.pano.editMode||t.cleanup)&&(window.removeEventListener("resize",d),null!=s.mediaVideoPosterEl&&(s.mediaVideoPosterEl.removeEventListener(A,h),s.mediaVideoPosterEl.parentNode.removeChild(s.mediaVideoPosterEl),s.removeSelectionBox(s.mediaVideoPosterEl),s.mediaVideoPosterEl=null),null!=s.overlayEl&&(s.overlayEl.innerHTML=""),null!=s.destroyControls&&s.destroyControls(),null!=s.destroySeek&&s.destroySeek(),v.off(g.slide.WILL_CHANGE,f))}return s.mediaVideoPosterEl.addEventListener(A,h),window.addEventListener("resize",d),v.on(g.slide.WILL_CHANGE,f),f}}.call(e,i,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i,a=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===(i=function(t){var r=n(0),o=n(2),e=n(19),s=n(3);n(1);function l(t){var e=t.type,n=t.slideId,i=t.assetId,r=t.slideOwner,o=t.captions,s=t.parentEl,a=t.mediaElName;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),this.type=e,this.assetId=i,this.slideId=n,this.slideOwner=r,this.parentEl=s,this.mediaElName=a,this.captions=o,this.currentCaptions=[],this.init()}return a(l,[{key:"setCurrentTime",value:function(t){this.currTime=t}},{key:"getCurrentTime",value:function(){return this.currTime}},{key:"isVideo",value:function(){return"video"===this.type}},{key:"ended",value:function(){var t=this.parentEl[this.mediaElName];if(null!=t)return t.ended}},{key:"getAssetId",value:function(){return this.assetId}},{key:"init",value:function(){e.mount(this,this.slideId)}},{key:"destroy",value:function(){this.clearCaptions(),e.unmount(this,this.slideId)}},{key:"adjustCaptions",value:function(){var e=this,n=this.slideOwner.currView.props.slideContainer;if(null!=n){var i=this.getCurrentTime();0<this.currentCaptions.length&&(this.currentCaptions=this.currentCaptions.reduce(function(t,e){return s.isWithinRange(e.startTime,e.endTime,i)?t.push(e):n.trigger(o.captions.REMOVE,e.getCueAsHTML()),t},[])),r.difference(this.captions,this.currentCaptions).forEach(function(t){s.isWithinRange(t.startTime,t.endTime,i)&&(e.currentCaptions.push(t),n.trigger(o.captions.ADD,t.getCueAsHTML()))})}return this}},{key:"clearCaptions",value:function(){var e=this.slideOwner.currView.props.slideContainer;return null!=e&&0<this.currentCaptions.length&&this.currentCaptions.forEach(function(t){e.trigger(o.captions.REMOVE,t.getCueAsHTML())}),this.currentCaptions=[],this}}]),l}.call(e,n,e,t))||(t.exports=i)},function(t,e,i){"use strict";var n;void 0===(n=function(t){var a=i(7),l=(i(10),i(5),i(3),i(1)),u=i(2),c=i(12),e=i(15),h=e.clickOrTouchEnd,n=(e.downOrTouchStart,e.moveOrTouchMove,e.upOrTouchEnd,i(56)),v=n.Z_INDEX_MID,g=n.PAD_SCALE;function m(t,e,n,i){var r=e.naturalWidth,o=e.naturalHeight,s=t.marker.getEditorVar("imageMediaCropRectangle");n.setAttribute("width",r),n.setAttribute("height",o),null!=s?(i.setAttribute("width",s.width),i.setAttribute("height",s.height),i.setAttribute("viewBox",s.left+" "+s.top+" "+s.width+" "+s.height)):(i.setAttribute("width",r),i.setAttribute("height",o),i.setAttribute("viewBox","0 0 "+r+" "+o)),t.updateSelectionBoxes(),t.scroller.update()}return function(d,t){var i=t.url||null!=d.pano.assetManager&&d.pano.assetManager.getAssetUrl(t.assetId);if(null==d.mediaImageEl){d.mediaImageEl=document.createElement("div"),d.mediaImageEl.innerHTML='\n        <svg class="panel-image-thumb" data-ref\n          style="position:relative;width:100%;height:100%;overflow:hidden;" width="100%" height="100%">\n          <image style="pointer-events: auto;" class="panel-framed-image-thumb" data-ref xlink:href="'+i+'" />\n        </svg>\n      ',a.selectAllByRef(d,d.mediaImageEl),d.panelImageThumbEl.style.cursor=d.pano.editMode?null:"zoom-in";var e=new Image;e.src=i,e.addEventListener("load",function(){m(d,e,d.panelFramedImageThumbEl,d.panelImageThumbEl)}),d.mediaImageEl=d.mediaImageEl.firstElementChild,d.mediaImageEl.setAttribute("draggable",!1),d.panelBodyTopEl.appendChild(d.mediaImageEl),d.addSelectionBox({targetEl:d.mediaImageEl,maskBounds:{bottomCalc:function(){return d.el.getBoundingClientRect().bottom},topCalc:function(){return d.panelBodyContainerEl.getBoundingClientRect().top}},showCallback:function(){return d.mediaImageEl.style.cursor="zoom-in"},hideCallback:function(){return d.mediaImageEl.style.cursor=null},shouldAutoHide:!0,panel:d,showPlaceholder:!1})}else d.mediaImageEl.src=i;function r(){d.mediaShowing&&(d.overlayEl.parentNode.removeChild(d.overlayEl),d.teardownMediaModal(),d.overlayEl.innerHTML="",d.panelMediaIconCloseEl.removeEventListener(h,r),d.pano.editMode&&window.requestAnimationFrame(function(){d.showSelectionBox(d.mediaImageEl,!0)}))}function o(){m(d,d.panelImageEl,d.panelFramedImageEl,d.panelImageFrameEl),p()}function n(){var t=d.getSelectionBox(d.mediaImageEl),e=null!=t&&t.shown;if(!d.pano.editMode||e){if(d.setupMediaModal()){var n=document.createElement("div");n.classList.add("three-sixty-image-media-panel-overlay"),a.setStyles(n,{position:"fixed",width:"100%",height:"100%",zIndex:v}),document.body.appendChild(n),d.overlayEl=n,d.overlayEl.innerHTML='\n        <div class="panel-media-overlay" data-ref>\n          <div class="panel-image-container" data-ref>\n            <svg class="panel-image-frame" data-ref\n              style="position:absolute;width:100%;height:100%;overflow:hidden;" width="100%" height="100%">\n              <image class="panel-framed-image" data-ref xlink:href="'+i+'" />\n            </svg>\n            <img class="panel-image" src='+i+' data-ref style="display:none"/>\n\n          </div>\n        </div>\n        <button class="panel-media-close">\n    <svg class="panel-media-icon-close" width="20" height="20" viewBox="0 0 36 36" focusable="false" data-ref>\n      <polygon fill="white" points="36,2.826 33.174,0 18,15.174 2.826,0 0,2.826 15.174,18 0,33.174 2.826,36 18,20.826 33.174,36 36,33.174 20.826,18" />\n    </svg>\n  </button>\n      ',a.selectAllByRef(d,d.overlayEl),d.panelImageEl.addEventListener("load",o),d.panelMediaIconCloseEl.addEventListener(h,r)}}else d.showSelectionBox(d.mediaImageEl,!0)}d.hideMedia=r,d.showMedia=n,d.mediaImageEl.addEventListener(h,n);var f=void 0;function p(t){if(d.overlayEl){var e=window.innerWidth,n=window.innerHeight,i=d.panelMediaOverlayEl;i.style.width=e+"px",i.style.height=n+"px";var r=d.panelImageFrameEl.viewBox.baseVal;if(null!=r){var o=r.width,s=r.height;if(0!==o&&0!==s){var a=Math.min(parseFloat(e-40)/o,parseFloat(n-40-(d.pano.editMode?100:0))/s),l=d.pano.editMode?1:g,u=d.panelImageContainerEl,c=o*a*l,h=s*a*l;u.style.width=c+"px",u.style.height=h+"px",d.panelImageFrameEl.setAttribute("width",c),d.panelImageFrameEl.setAttribute("height",h),null!=d.pano.cropTool&&d.pano.cropTool.updateTransformControls(c/d.pano.cropTool.image.naturalWidth),null!=t&&(clearTimeout(f),f=setTimeout(function(){p()},300))}}}}function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(d.pano.editMode||t.cleanup)&&(window.removeEventListener("resize",p),null!=d.panelImageEl&&d.panelImageEl.removeEventListener("load",o),null!=d.hideMedia&&(d.hideMedia(),d.hideMedia=null),null!=d.showMedia&&(d.showMedia=null),null!=d.mediaImageEl&&(d.mediaImageEl.removeEventListener(h,n),d.mediaImageEl.parentNode.removeChild(d.mediaImageEl),d.removeSelectionBox(d.mediaImageEl),d.mediaImageEl=null,d.marker.setEditorVar("imageMediaCropRectangle",null)),l.off(u.slide.WILL_CHANGE,s))}return d.prepCrop=function(){var t=d.panelImageEl.naturalWidth,e=d.panelImageEl.naturalHeight;return d.panelFramedImageEl.setAttribute("width",t),d.panelFramedImageEl.setAttribute("height",e),d.panelImageFrameEl.setAttribute("viewBox","0 0 "+t+" "+e),d.panelImageFrameEl.setAttribute("width",t),d.panelImageFrameEl.setAttribute("height",e),p(),p},d.cancelCrop=function(){m(d,d.panelImageEl,d.panelFramedImageEl,d.panelImageFrameEl),p()},d.saveCrop=function(t){d.marker.setEditorVar("imageMediaCropRectangle",t),m(d,d.panelImageEl,d.panelFramedImageThumbEl,d.panelImageThumbEl);var r=d.panelImageFrameEl.viewBox.baseVal;c.to(r,.5,{x:t.left,y:t.top,width:t.width,height:t.height,ease:"power4.out",onUpdate:function(){var t=r.x,e=r.y,n=r.width,i=r.height;d.panelImageFrameEl.setAttribute("viewBox",t+" "+e+" "+n+" "+i),p()}})},window.addEventListener("resize",p),l.on(u.slide.WILL_CHANGE,s),s}}.call(e,i,e,t))||(t.exports=n)},function(t,e,n){"use strict";var i,r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===(i=function(t){function h(t){var e=this,n=t.targetEl,i=t.boundsEl,r=t.showCallback,o=t.hideCallback,s=t.shouldAutoHide,a=t.panel,l=t.showPlaceholder,u=t.paddingOffsets,c=t.maskBounds;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),this.onCheckHide=function(t){if(e.targetEl!=t.target&&!e.targetEl.contains(t.target)){if(e.panel.mediaShowing)return;e.panel.hideSelectionBox(e.targetEl)}},this.targetEl=n,this.boundsEl=i,this.showCallback=r,this.hideCallback=o,this.shouldAutoHide=s,this.boxEl=document.createElement("div"),this.boxEl.classList.add("panel-selection-box"),this.boxEl.style.display="none",this.panel=a,this.pano=a.pano,this.pano.overlaysEl.appendChild(this.boxEl),this.showPlaceholder=l,this.padding={left:0,top:0,bottom:0,right:0},Object.assign(this.padding,u||{}),this.maskBounds=c}return r(h,[{key:"update",value:function(){var t=this.targetEl,e=this.boundsEl,n=this.boxEl,i=this.pano,r=this.padding;if(this.shown){if(e&&(t=e),this.showPlaceholder){var o=this.panel.isEmptyOrWhitespace(t);o!=this.isPlaceholder&&(this.isPlaceholder=o)}var s=t.getBoundingClientRect();if(null!=this.maskBounds){var a={left:s.left,top:s.top,right:s.right,bottom:s.bottom};if(null!=this.maskBounds.bottomCalc){var l=this.maskBounds.bottomCalc();s.bottom>l&&(a.bottom=l-6)}if(null!=this.maskBounds.topCalc){var u=this.maskBounds.topCalc();s.top<u&&(a.top=u)}(s=a).width=s.right-s.left,s.height=s.bottom-s.top}var c=s.left-i.sceneRect.left-3-r.left,h=s.top-i.sceneRect.top-3-r.top,d=i.sceneRect.width-(c+s.width+6+r.right),f=i.sceneRect.height-(h+s.height+6+r.bottom);Object.assign(n.style,{left:c+"px",top:h+"px",right:d+"px",bottom:f+"px"}),n.clientHeight<3?n.style.visibility="hidden":n.style.visibility="visible"}}},{key:"show",value:function(){this.panel.shown&&!this.shown&&(this.shown=!0,this.update(),this.boxEl.style.display="block",this.boxEl.style.visibility="visible",null!=this.showCallback&&this.showCallback(),this.shouldAutoHide&&document.addEventListener("click",this.onCheckHide))}},{key:"hide",value:function(){this.panel.shown&&this.isPlaceholder?null!=this.hideCallback&&this.hideCallback():this.shown&&(this.shown=!1,this.boxEl.style.display="none",this.boxEl.style.visibility="hidden",null!=this.hideCallback&&this.hideCallback(),this.shouldAutoHide&&document.removeEventListener("click",this.onCheckHide))}},{key:"destroy",value:function(){document.removeEventListener("click",this.onCheckHide),this.pano.overlaysEl.removeChild(this.boxEl)}},{key:"isPlaceholder",set:function(t){this.placeHolder=t,this.boxEl.classList[t?"add":"remove"]("panel-selection-placeholder")},get:function(){return this.placeHolder}}]),h}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createBackSpriteCanvas=void 0;var v=n(36),i=n(4).math,g=i.TWO_PI;i.HALF_PI,e.createBackSpriteCanvas=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=new THREE.CanvasTexture(n);n.width=512,n.height=512;function o(){i.clearRect(0,0,512,512),i.shadowColor="rgba(0, 0, 0, 0.85)",i.shadowBlur=40,i.shadowOffsetY=10,i.shadowOffsetX=5,i.fillStyle="rgba(0, 0, 0, 1)",i.beginPath(),i.arc(a,l,s,0,g,!1),i.fill()}var s=n.width/4-50,a=n.width/2,l=n.height/2;if("pulse"===t){var u=0,c=void 0,h=void 0,d=window.performance.now(),f=1;window.requestAnimationFrame(function t(e){o(),i.shadowColor="rgba(0, 0, 0, 0)",i.shadowBlur=0,i.shadowOffsetY=0,f=(e-d)/16,d=e,c=60+25*Math.sin(u),h=10*Math.sin(u+g),u+=.025*f,i.fillStyle="transparent",i.strokeStyle="rgba(255, 255, 255, 0.5)",i.lineWidth=35+h/2,i.beginPath(),i.arc(a,l,s+c,0,g,!1),i.stroke(),r.needsUpdate=!0,window.requestAnimationFrame(t)})}else"empty"===t?i.clearRect(0,0,512,512):o();var p=new THREE.SpriteMaterial({map:r});return(0,v.backTextureSettings)(r,p,e),{canvas:n,tex:r,mat:p}}},function(t,e,n){"use strict";var i,r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}void 0===(i=function(t){function d(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function c(t,e){var n=e.ownerSVGElement,i=t.touches,r=u(i=void 0===i?[t]:i,1)[0],o=r.clientX,s=r.clientY,a=n.createSVGPoint();a.x=o,a.y=s;var l=a.matrixTransform(e.getScreenCTM().inverse());return{pageX:l.x,pageY:l.y}}var f=n(7),p="#ffffff",v={lc:'url("CropLeftMiddle.cur"), auto',tc:'url("CropTopCenter.cur"), auto',rc:'url("CropRightMiddle.cur"), auto',bc:'url("CropBottomCenter.cur"), auto',tl:'url("CropTopLeft.cur"), auto',tr:'url("CropTopRight.cur"), auto',br:'url("CropBottomRight.cur"), auto',bl:'url("CropBottomLeft.cur"), auto'};function i(t,e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.onDown=function(t){t.currentTarget.dataset.dragRect?n.startDragRect(t):n.startDragControl(t),document.addEventListener("mouseup",n.onUp),document.addEventListener("touchend",n.onUp)},this.onMove=function(t){n.downDragRect?n.moveRectangle(t):n.downControl&&n.moveControl(t)},this.onUp=function(t){n.downControl=!1,n.downDragRect=!1,n.targetControl=null,document.removeEventListener("mouseup",n.onUp),document.removeEventListener("touchend",n.onUp)},this.container=document.querySelector(t),null==this.container&&console.warn("ImageCrop: no container found"),this.image=this.container.querySelector("img"),0!==this.image.width&&0!==this.image.height||console.warn("ImageCrop: image is not loaded"),this.createSvg(),this.x=0,this.y=0,this.right=this.image.naturalWidth,this.bottom=this.image.naturalHeight,this.edges={x:this.x,y:this.y,right:this.right,bottom:this.bottom},this.controls=[],this.controlXY={lc:{propX:"x",propY:null},tc:{propY:"y",propX:null},rc:{propX:"right",propY:null},bc:{propX:null,propY:"bottom"},tl:{propX:"x",propY:"y"},tr:{propX:"right",propY:"y"},br:{propX:"right",propY:"bottom"},bl:{propX:"x",propY:"bottom"}},document.addEventListener("mousemove",this.onMove),document.addEventListener("touchmove",this.onMove)}return r(i,[{key:"createSvg",value:function(){var t="0 0 "+parseFloat(this.image.naturalWidth)+" "+parseFloat(this.image.naturalHeight);this.svgLayer=document.createElement("div"),f.setStyles(this.svgLayer,{position:"absolute",left:0,top:0,width:"100%",height:"100%"}),this.svgLayer.innerHTML='\n        <svg class="crop-tool" style="width: 100%; height: 100%;overflow:hidden;" viewBox="'+t+'">\n          <g class="overlay-layer"><g>\n        </svg>\n      ',this.overlayLayer=this.svgLayer.querySelector(".overlay-layer"),this.container.appendChild(this.svgLayer)}},{key:"render",value:function(){this.adjustRect(),this.adjustPath(),this.adjustControls()}},{key:"setCropRect",value:function(t){var e=t.left,n=t.top,i=t.right,r=t.bottom,o=t.width,s=t.height;this.x=e,this.y=n,this.right=i,this.bottom=r,null!=o&&(this.right=this.x+o),null!=s&&(this.bottom=this.y+s),this.render()}},{key:"getCropRect",value:function(){var t=this.x-.5,e=this.y-.5,n=this.right+.5,i=this.bottom+.5,r={left:t,top:e,right:n,bottom:i,width:n-t,height:i-e};for(var o in r)r[o]=Math.abs(Math.round(r[o]));return r}},{key:"adjustRect",value:function(){f.setAttributes(this.dragRect,{x:this.x,y:this.y,width:this.right-this.x,height:this.bottom-this.y})}},{key:"adjustPath",value:function(){f.setAttributes(this.path,{d:"\n          M "+(this.edges.x-50)+" "+(this.edges.y-50)+"\n          L "+(this.edges.right+50)+" "+(this.edges.y-50)+"\n          "+(this.edges.right+50)+" "+(this.edges.bottom+50)+"\n          "+(this.edges.x-50)+" "+(this.edges.bottom+50)+"\n          M "+this.x+" "+this.y+"\n          L "+this.right+" "+this.y+"\n            "+this.right+" "+this.bottom+"\n            "+this.x+" "+this.bottom+"\n            "+this.x+" "+this.y+"z\n        "})}},{key:"updateTransformControls",value:function(t){var o=this,s=1/(0<arguments.length&&void 0!==t?t:1)*.7;["tl","tr","br","bl"].forEach(function(t){var e=o.controls[t],n=e.lastElementChild.dataset.rot;e.lastElementChild.setAttribute("transform",n+" scale("+s+")"),e.firstElementChild.setAttribute("transform","scale("+s+")")}),["tc","rc","bc","lc"].forEach(function(t){var e=o.controls[t].firstElementChild,n=e.firstElementChild,i=e.lastElementChild,r=e.dataset.trans.replace("15",(15*s).toFixed(4));e.setAttribute("transform",r),n.setAttribute("transform","scale("+s+")"),i.setAttribute("transform","scale("+s+")")})}},{key:"adjustControls",value:function(){f.setAttributes(this.controls.tl,{"data-x":this.x,"data-y":this.y,transform:"translate("+this.x+" "+this.y+")"}),f.setAttributes(this.controls.tr,{"data-x":this.right,"data-y":this.y,transform:"translate("+this.right+" "+this.y+")"}),f.setAttributes(this.controls.br,{"data-x":this.right,"data-y":this.bottom,transform:"translate("+this.right+" "+this.bottom+")"}),f.setAttributes(this.controls.bl,{"data-x":this.x,"data-y":this.bottom,transform:"translate("+this.x+" "+this.bottom+")"});var t=this.x,e=this.y+(this.bottom-this.y)/2;f.setAttributes(this.controls.lc,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"}),t=this.right,f.setAttributes(this.controls.rc,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"}),t=this.x+(this.right-this.x)/2,e=this.y,f.setAttributes(this.controls.tc,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"}),e=this.bottom,f.setAttributes(this.controls.bc,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"})}},{key:"createCenterHandle",value:function(t,e,n,i){var r=3<arguments.length&&void 0!==i?i:"",o=d("g"),s=d("rect"),a=d("rect"),l=d("g");o.dataset.type=n,f.setAttributes(s,{x:0,y:0,width:15,height:30,fill:"transparent"}),f.setAttributes(a,{x:0,y:0,width:10,height:30,fill:"#000000","stroke-width":1,"vector-effect":"non-scaling-stroke",stroke:p}),f.setAttributes(l,{"data-trans":r,transform:r}),f.setAttributes(o,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"}),o.classList.add("drag-control"),o.style.cursor=v[n],l.appendChild(s),l.appendChild(a),o.appendChild(l),this.controls.push(o),this.controls[n]=o,this.el.appendChild(o),o.addEventListener("mousedown",this.onDown),o.addEventListener("touchstart",this.onDown)}},{key:"createCornerHandle",value:function(t,e,n,i,r,o){var s=3<arguments.length&&void 0!==i?i:0,a=4<arguments.length&&void 0!==r?r:0,l=5<arguments.length&&void 0!==o?o:0,u=d("g"),c=d("rect"),h=d("path");u.dataset.type=n,f.setAttributes(c,{x:20*-a,y:20*-l,width:20,height:20,fill:"transparent"}),f.setAttributes(h,{d:"M 0 0 L 36 0 36 9 9 9 9 36 0 36z",transform:"rotate("+s+")","data-rot":"rotate("+s+")",fill:"#000000","stroke-width":1,"vector-effect":"non-scaling-stroke",stroke:p}),f.setAttributes(u,{"data-x":t,"data-y":e,transform:"translate("+t+" "+e+")"}),u.classList.add("drag-control"),u.appendChild(c),u.appendChild(h),u.style.cursor=v[n],this.controls.push(u),this.controls[n]=u,this.el.appendChild(u),u.addEventListener("mousedown",this.onDown),u.addEventListener("touchstart",this.onDown)}},{key:"startDragRect",value:function(t){var e=c(t,this.overlayLayer),n=e.pageX,i=e.pageY;this.targetControl=t.currentTarget,this.downDragRect=!0,this.startX=n-this.x,this.startY=i-this.y,this.startRight=n-this.right,this.startBottom=i-this.bottom,this.startWidth=this.right-this.x,this.startHeight=this.bottom-this.y}},{key:"startDragControl",value:function(t){var e=c(t,this.overlayLayer),n=e.pageX,i=e.pageY;this.targetControl=t.currentTarget,this.downControl=!0,this.startX=n-parseFloat(this.targetControl.dataset.x),this.startY=i-parseFloat(this.targetControl.dataset.y)}},{key:"moveRectangle",value:function(t){var e=c(t,this.overlayLayer),n=e.pageX,i=e.pageY;this.x=n-this.startX,this.y=i-this.startY,this.right=n-this.startRight,this.bottom=i-this.startBottom,this.x<=this.edges.x&&(this.x=this.edges.x,this.right=this.x+this.startWidth),this.y<=this.edges.y&&(this.y=this.edges.y,this.bottom=this.y+this.startHeight),this.right>=this.edges.right&&(this.x=this.edges.right-this.startWidth,this.right=this.edges.right),this.bottom>=this.edges.bottom&&(this.y=this.edges.bottom-this.startHeight,this.bottom=this.edges.bottom),this.adjustRect(),this.adjustPath(),this.adjustControls()}},{key:"moveControl",value:function(t){var e=c(t,this.overlayLayer),n=e.pageX,i=e.pageY,r=n-this.startX,o=i-this.startY,s=this.targetControl.dataset.type,a=this.controlXY[s],l=a.propX,u=a.propY;null!=this[l]&&(this[l]=r),null!=this[u]&&(this[u]=o),"x"===l?(this.x<=this.edges.x&&(r=this.x=this.edges.x),this.x>=this.right-100&&(r=this.x=this.right-100)):"right"===l&&(this.right>=this.edges.right&&(r=this.right=this.edges.right),this.right<=this.x+100&&(r=this.right=this.x+100)),"y"===u?(this.y<=this.edges.y&&(o=this.y=this.edges.y),this.y>=this.bottom-100&&(o=this.y=this.bottom-100)):"bottom"===u&&(this.bottom>=this.edges.bottom&&(o=this.bottom=this.edges.bottom),this.bottom<=this.y+100&&(o=this.bottom=this.y+100)),this.adjustControls(),this.adjustPath(),this.adjustRect()}},{key:"setupDragRect",value:function(){this.dragRect=d("rect"),this.dragRect.style.pointerEvents="all",this.dragRect.addEventListener("mousedown",this.onDown),this.dragRect.addEventListener("touchstart",this.onDown),f.setAttributes(this.dragRect,{"data-drag-rect":!0,x:0,y:0,width:0,height:0,fill:"transparent"}),this.dragRect.classList.add("drag-control"),this.adjustRect(),this.el.appendChild(this.dragRect)}},{key:"setupPath",value:function(){var t;this.path=d("path"),this.d="M 0 0 L 0 0",f.setAttributes(this.path,(s(t={stroke:p,"vector-effect":"non-scaling-stroke","stroke-width":1},"vector-effect","non-scaling-stroke"),s(t,"fill","rgba(0, 0, 0, 0.3)"),s(t,"fill-rule","evenodd"),t)),this.adjustPath(),this.el.appendChild(this.path)}},{key:"setupControls",value:function(){this.createCornerHandle(this.x,this.y,"tl"),this.createCornerHandle(this.right,this.y,"tr",90,1),this.createCornerHandle(this.right,this.bottom,"br",180,1,1),this.createCornerHandle(this.x,this.bottom,"bl",270,0,1),this.createCenterHandle(this.x+(this.right-this.x)/2,this.y,"tc","translate(15 0) rotate(90)","ns-resize"),this.createCenterHandle(this.x,this.y+(this.bottom-this.y)/2,"lc","translate(0 -15)","ew-resize"),this.createCenterHandle(this.right,this.y+(this.bottom-this.y)/2,"rc","translate(0 15) rotate(180)","ew-resize"),this.createCenterHandle(this.x+(this.right-this.x)/2,this.bottom,"bc","translate(-15 0) rotate(-90)","ns-resize")}},{key:"setupElement",value:function(){this.container.appendChild(this.svgLayer),this.el=d("g"),this.overlayLayer.appendChild(this.el),this.setupDragRect(),this.setupPath(),this.setupControls()}},{key:"show",value:function(){document.body.classList.add("crop-tool-shown"),this.setupElement()}},{key:"hide",value:function(){var e=this;document.body.classList.remove("crop-tool-shown"),this.svgLayer.parentNode.removeChild(this.svgLayer),this.el.parentNode.removeChild(this.el),document.removeEventListener("mousemove",this.onMove),document.removeEventListener("touchmove",this.onMove),this.controls.forEach(function(t){t.removeEventListener("mousedown",e.onDown),t.removeEventListener("touchstart",e.onDown)})}}]),i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatMessage=function(t,e){var n=e.cmd;"fontSize"===n?t.style.fontSize=e.val+"px":"fontFamily"===n?(t.style.fontFamily="'"+e.val+"'",t.dataset.fontThemeType=e.fontThemeType):(document.execCommand("styleWithCSS",!1,!0),document.execCommand(n,!1,e.val));t.dispatchEvent(new Event("formatMessage"))},e.getSpanStyle=function(t,e){var n={};function i(e){n[e]=function(t){return t["text-decoration-line"].includes(e)}}i(c.UNDERLINE_TEXT_DECORATION),i(c.STRIKEOUT_TEXT_DECORATION);var r=function(t,e,n){var i=document.createNodeIterator(t.commonAncestorContainer,NodeFilter.SHOW_TEXT),r={},o=!0,s=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;r[c]=void 0}}catch(t){s=!0,a=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw a}}var h=void 0,d=!1;for(;i.nextNode();){if(!d){if(i.referenceNode!==t.startContainer)continue;d=!0}var f=window.getComputedStyle(i.referenceNode.parentElement);for(var p in r){var v=n.hasOwnProperty(p)?n[p](f):f[p];void 0===r[p]?r[p]=v:r[p]!=v&&(r[p]=null)}for(var g=!1,m=i.referenceNode.parentNode;null!=m&&!g;){if(m.nodeType===Node.ELEMENT_NODE){"OL"===m.nodeName?(void 0===h?h=A.ORDERED:h!==A.ORDERED&&(h=A.NONE),g=!0):"UL"===m.nodeName&&(void 0===h?h=A.UNORDERED:h!==A.UNORDERED&&(h=A.NONE),g=!0)}m=m.parentNode}if(g||(h=A.NONE),i.referenceNode===t.endContainer)break}return r[y]=h,r}(e,Object.values(c),n);function o(t,e){var n=r[t];return null==n?null:e(n)}var s=u(t.dataset.fontThemeType);{if(e.collapsed){var a=window.getComputedStyle(t);return{fontFamily:l(a["font-family"]),fontThemeType:s,fontSize:parseFloat(a["font-size"]),fontIsBold:document.queryCommandState("bold"),fontIsItalic:document.queryCommandState("italic"),fontIsUnderline:document.queryCommandState("underline"),fontIsStrikeout:document.queryCommandState("strikeThrough"),underlineStyle:void 0,foregroundColor:r[c.FOREGROUND_COLOR],backgroundColor:r[c.BACKGROUND_COLOR],underlineColor:r[c.TEXT_DECORATION_COLOR],listType:r[y]}}return{fontFamily:l(r[c.FONT_FAMILY]),fontThemeType:s,fontSize:o(c.FONT_SIZE,function(t){return parseFloat(t)}),fontIsBold:o(c.FONT_WEIGHT,function(t){return"700"===t}),fontIsItalic:o(c.FONT_STYLE,function(t){return"italic"===t}),fontIsUnderline:o(c.UNDERLINE_TEXT_DECORATION,function(t){return t}),fontIsStrikeout:o(c.STRIKEOUT_TEXT_DECORATION,function(t){return t}),underlineStyle:void 0,foregroundColor:r[c.FOREGROUND_COLOR],backgroundColor:r[c.BACKGROUND_COLOR],underlineColor:r[c.TEXT_DECORATION_COLOR],listType:r[y]}}},e.bottomUi=function(t){var e=t.reset,n=t.cancel,i=t.done;return'\n    <div class="three-bottom-ui">\n      <style>\n        .three-bottom-ui {\n          position: fixed;\n          width: 100%;\n          min-height: 20px;\n          padding-top: 20px;\n          background: none;\n          pointer-events: all;\n        }\n\n        .three-bottom-btn {\n          display: inline;\n          color: white;\n          border-radius: 20px;\n          padding: 1em;\n          border: none;\n          background: #949da5;\n          margin-left: 1em;\n          cursor: pointer;\n          min-width: 75px;\n          text-transform: uppercase;\n        }\n\n        .three-bottom-btn:hover {\n          background: #aab4bc;\n        }\n\n        .three-bottom-blue {\n          background: #4e82c7;\n        }\n\n        .three-bottom-blue:hover {\n          background: #329ae0;\n        }\n\n        .three-bottom-middle {\n          text-align: right;\n          width: calc(100% - 65px - 1em);\n          float: left;\n        }\n\n        .three-bottom-ui-reset {\n          float:left;\n          margin-left: 0;\n        }\n\n      </style>\n\n      <button class="three-bottom-ui-reset three-bottom-btn" data-ref>\n        <span>'+e+'</span>\n      </button>\n      <div class="three-bottom-middle">\n        <button class="three-bottom-ui-cancel three-bottom-btn" data-ref>\n          '+n+'\n        </button>\n\n        <button class="three-bottom-ui-done three-bottom-btn three-bottom-blue" data-ref>\n          '+i+"\n        </button>\n      </div>\n    </div>\n    "},e.crosshairsSvg=function(){return'\n  <style>\n    .three-crosshairs {\n      position: absolute;\n      left: 50%;\n      top: 50%;\n      transform: translate(-50%, -50%);\n      width: 40%;\n    }\n    .three-crosshairs path {\n      vector-effect: non-scaling-stroke;\n    }\n\n    .three-lat-lon-pill {\n      position: absolute;\n      bottom: 30px;\n      left: 50%;\n      height: 32px;\n      padding: 0em;\n      border-radius: 500px;\n      transform: translateX(-50%);\n      background: rgba(0, 0, 0, 0.8);\n      color: white;\n      display: flex;\n      pointer-events: all;\n    }\n\n    .three-lat-lon-pill > div {\n      flex-grow: 1;\n      pointer-events: all;\n    }\n\n    .three-lat-lon-pill > div > div {\n      position: relative;\n      top: 50%;\n      transform: translateY(-50%);\n    }\n\n    .three-lat-lon-text {\n      flex-grow: 100;\n      text-align: center;\n      font-family: sans-serif;\n      text-shadow: 2px 2px rgba(0, 0, 0, 0.3);\n      margin-left: 1.5em;\n      margin-right: 1.5em;\n    }\n  </style>\n  <div class="three-crosshairs" data-ref>\n    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" viewBox="0 0 218 150">\n      <g fill="none" fill-rule="evenodd">\n        <g stroke-linecap="square" transform="translate(-555 -428)">\n          <path d="M664 537c-18.777681 0-34-15.222319-34-34s15.222319-34 34-34 34 15.222319 34 34-15.222319 34-34 34zm0-11c12.702549 0 23-10.297451 23-23s-10.297451-23-23-23-23 10.297451-23 23 10.297451 23 23 23z"/>\n          <path stroke="#FFF" d="M664 537.5c-19.053824 0-34.5-15.446176-34.5-34.5s15.446176-34.5 34.5-34.5 34.5 15.446176 34.5 34.5-15.446176 34.5-34.5 34.5zm0-12c12.426407 0 22.5-10.073593 22.5-22.5s-10.073593-22.5-22.5-22.5-22.5 10.073593-22.5 22.5 10.073593 22.5 22.5 22.5z"/>\n          <path stroke="#000" stroke-linejoin="square" d="M664 536.5c18.501539 0 33.5-14.998461 33.5-33.5s-14.998461-33.5-33.5-33.5-33.5 14.998461-33.5 33.5 14.998461 33.5 33.5 33.5zm0-10c-12.978692 0-23.5-10.521308-23.5-23.5s10.521308-23.5 23.5-23.5 23.5 10.521308 23.5 23.5-10.521308 23.5-23.5 23.5z"/>\n        </g>\n        <g fill="#000" stroke="#FFF">\n          <path d="M3.5 3.5v28h-3V.5h31v3h-28zM214.5 3.5v28h3V.5h-31v3h28z"/>\n        </g>\n        <g fill="#000" stroke="#FFF">\n          <path d="M3.5 146.5v-28h-3v31h31v-3h-28zM214.5 146.5v-28h3v31h-31v-3h28z"/>\n        </g>\n        <path fill="#FFF" stroke="#000" d="M110.5 74.5h6v2h-6v6h-2v-6h-6v-2h6v-6h2v6z"/>\n      </g>\n    </svg>\n    </div>\n    <div class="three-lat-lon-pill" data-ref>\n      <div class="three-lat-lon-text" data-ref>\n        <div>Initial View: 0°, 0°</div>\n      </div>\n      <div class="three-lat-lon-line"></div>\n    </div>\n  '};var i=n(35),l=i.parseFontFamily,u=i.parseFontThemeType,c={FONT_FAMILY:"font-family",FONT_SIZE:"font-size",FONT_WEIGHT:"font-weight",FONT_STYLE:"font-style",FOREGROUND_COLOR:"color",BACKGROUND_COLOR:"background-color",UNDERLINE_TEXT_DECORATION:"underline",STRIKEOUT_TEXT_DECORATION:"line-through",TEXT_DECORATION_COLOR:"text-decoration-color"},y="list-type",A={NONE:"none",ORDERED:"ordered",UNORDERED:"unordered"};e.BOTTOM_UI_HEIGHT=120},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.freeNavigation=function(){return'\n    <style>\n      .three-free {\n        position: absolute;\n        bottom: 30px;\n        left: 50%;\n        height: 40px;\n        padding: 0em;\n        border-radius: 500px;\n        transform: translateX(-50%);\n        background: rgba(49, 50, 49, 1);\n        color: white;\n        display: flex;\n        pointer-events: all;\n        box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.24);\n        padding: 1em;\n      }\n    </style>\n    <div class="three-navigation three-free">\n      <div class="three-nav-content" data-ref>\n        1 of 5 viewed\n      </div>\n    </div>\n  '},e.guidedNavigtion=function(){return'\n    <style>\n      .three-guided {\n        position: absolute;\n        bottom: 30px;\n        height: 44px;\n        left: 50%;\n        transform: translateX(-50%);\n        color: #555;\n        background: white;\n        min-width: 135px;\n        border-radius: 20px;\n        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.33);\n        display: flex;\n        pointer-events: all;\n      }\n\n      .three-guided div {\n        flex-grow: 1;\n      }\n\n      .three-guided svg {\n        display: inline-block !important;\n        margin-top: 2px;\n      }\n\n      .three-guided div > div {\n        position: relative;\n        text-align:center;\n        top: 50%;\n        transform: translateY(-50%);\n      }\n\n      .three-guided-left-btn svg {\n        transform: scale(-1);\n      }\n\n      .three-guided-left-btn,\n      .three-guided-right-btn {\n        min-width: 30px;\n        cursor: pointer;\n        pointer-events: all;\n        transition: all 100ms ease-out;\n      }\n\n      .three-guided-left-btn:hover,\n      .three-guided-right-btn:hover {\n        transform: translateY(1px) scale(1.2);\n      }\n\n      .three-guided-left-btn path,\n      .three-guided-right-btn path {\n        stroke: #047EB3 !important;\n      }\n\n      .three-guided-disabled {\n        cursor: normal;\n        pointer-events: none;\n      }\n\n      .three-guided-disabled path {\n        cursor: normal;\n        pointer-events: none;\n        stroke: #777 !important;\n      }\n    </style>\n    <div class="three-navigation three-guided" data-ref>\n      <div class="three-guided-left-btn" data-ref>\n        <div>'+i+'</div>\n      </div>\n      <div class="three-guided-nav-text">\n        <div class="three-nav-content" data-ref>1 of 5 viewed</div>\n      </div>\n      <div class="three-guided-right-btn" data-ref>\n        <div>'+i+"</div>\n      </div>\n    </div>\n  "};var i='\n  <svg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path opacity="0.6" d="M1.71347 12.2864L7.28638 6.78638L1.71347 1.28638" stroke="#777" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n  </svg>\n'},function(t,e,n){"use strict";var i;void 0===(i=function(t){var i,r=n(0),o=(n(11),n(2)),s=n(1),a=n(22),l=n(4);return r.extend({initialize:function(t){i=t,s.on(o.window.OPEN_EXTERNAL,this.onOpenWindow.bind(this))},onOpenWindow:function(t,e){var n=this.openWindowByAction.bind(this,t),i=n;null!=a.onOpenWindow&&(i=a.onOpenWindow.bind(a,t,e,n)),i()},openWindowByAction:function(t){var e={},n=t.windowsize,i="open_video"===t.kind;switch(n){case"fullscreen":e.width=window.screen.availWidth,e.height=window.screen.availHeight;break;case"custom":e.width=t.width,e.height=t.height}t.usedefaultcontrols||"default"===n||(e.status=+t.status,e.toolbar=+t.toolbar,e.location=+t.location,e.menubar=+t.menubar,e.scrollbars=+t.scrollbars,e.resizable=+t.resizable),this.open({url:i?l.STORY_CONTENT_URL+t.url:t.url,window:t.window,specs:e,previewNotification:i?"PREVIEW_OPEN_VIDEO":"PREVIEW_OPEN_URL"})},open:function(t){var e,n={previewNotification:"PREVIEW_OPEN_URL",specs:{},window:"_blank"};r.extend(n,t),i.isPreview()?s.trigger(o.preview.NOTIFY,n.previewNotification):window.open(n.url,n.window,(e=n.specs,r.pairs(e).map(function(t){return t.join("=")}).join(", ")))}})}.call(e,n,e,t))||(t.exports=i)},function(t,e,r){"use strict";var n;void 0===(n=function(t){var e=r(22),n=r(1),i=r(2);(e.detectVisibilityChange||function(){document.addEventListener("visibilitychange",function(t){n.trigger(i.detection["VISIBILITY_"+(document.hidden?"HIDDEN":"SHOWN")])},!1)})()}.call(e,r,e,t))||(t.exports=n)}]);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists