!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).ImageViewer=e()}(this,function(){"use strict";var F="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=function(t){return t&&t.Math==Math&&t},m=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof F&&F)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},f=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,d={f:i&&!n.call({1:2},1)?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},r={}.toString,o=function(t){return r.call(t).slice(8,-1)},a="".split,I=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?a.call(t,""):Object(t)}:Object,l=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},u=function(t){return I(l(t))},c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},h=function(t,e){if(!c(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!c(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!c(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!c(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},p={}.hasOwnProperty,_=function(t,e){return p.call(t,e)},v=m.document,g=c(v)&&c(v.createElement),y=function(t){return g?v.createElement(t):{}},b=!f&&!s(function(){return 7!=Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a}),S=Object.getOwnPropertyDescriptor,T={f:f?S:function(t,e){if(t=u(t),e=h(e,!0),b)try{return S(t,e)}catch(t){}if(_(t,e))return E(!d.f.call(t,e),t[e])}},w=/#|\.prototype\./,x=function(t,e){var n=P[A(t)];return n==O||n!=L&&("function"==typeof e?s(e):!!e)},A=x.normalize=function(t){return String(t).replace(w,".").toLowerCase()},P=x.data={},L=x.NATIVE="N",O=x.POLYFILL="P",C=x,D={},M=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},N=function(i,r,t){if(M(i),void 0===r)return i;switch(t){case 0:return function(){return i.call(r)};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)}},R=function(t){if(!c(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,V={f:f?k:function(t,e,n){if(R(t),e=h(e,!0),R(n),b)try{return k(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}},z=f?function(t,e,n){return V.f(t,e,E(1,n))}:function(t,e,n){return t[e]=n,t},B=T.f,H=function(i){var t=function(t,e,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,e)}return new i(t,e,n)}return i.apply(this,arguments)};return t.prototype=i.prototype,t},G=function(t,e){var n,i,r,o,s,a,l,u,c=t.target,h=t.global,p=t.stat,f=t.proto,d=h?m:p?m[c]:(m[c]||{}).prototype,v=h?D:D[c]||(D[c]={}),g=v.prototype;for(r in e)n=!C(h?r:c+(p?".":"#")+r,t.forced)&&d&&_(d,r),s=v[r],n&&(a=t.noTargetGet?(u=B(d,r))&&u.value:d[r]),o=n&&a?a:e[r],n&&typeof s==typeof o||(l=t.bind&&n?N(o,m):t.wrap&&n?H(o):f&&"function"==typeof o?N(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&z(l,"sham",!0),v[r]=l,f&&(_(D,i=c+"Prototype")||z(D,i,{}),D[i][r]=o,t.real&&g&&!g[r]&&z(g,r,o)))},j=Math.ceil,X=Math.floor,U=function(t){return isNaN(t=+t)?0:(0r;)_(i,n=e[r++])&&(~tt(o,n)||o.push(n));return o},nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],it=Object.keys||function(t){return et(t,nt)},rt={f:Object.getOwnPropertySymbols},ot=function(t){return Object(l(t))},st=Object.assign,at=Object.defineProperty,lt=!st||s(function(){if(f&&1!==st({b:1},st(at({},"a",{enumerable:!0,get:function(){at(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=st({},t)[n]||it(st({},e)).join("")!=i})?function(t,e){for(var n=arguments,i=ot(t),r=arguments.length,o=1,s=rt.f,a=d.f;or;)Le(i,n=e[r++])&&(~Sn(o,n)||o.push(n));return o},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return Tn(t,xn)}},Pn={f:Object.getOwnPropertySymbols},Ln=dn("Reflect","ownKeys")||function(t){var e=An.f(ke(t)),n=Pn.f;return n?e.concat(n(t)):e},On=function(t,e){for(var n=Ln(e),i=ze.f,r=Re.f,o=0;o")}),si="$0"==="a".replace(/./,"$0"),ai=ii("replace"),li=!!/./[ai]&&""===/./[ai]("a","$0"),ui=!de(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),ci=function(n,t,e,i){var r=ii(n),o=!de(function(){var t={};return t[r]=function(){return 7},7!=""[n](t)}),s=o&&!de(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[ri]=function(){return e},e.flags="",e[r]=/./[r]),e.exec=function(){return t=!0,null},e[r](""),!t});if(!o||!s||"replace"===n&&(!oi||!si||li)||"split"===n&&!ui){var a=/./[r],l=e(r,""[n],function(t,e,n,i,r){return e.exec===Zn?o&&!r?{done:!0,value:a.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}},{REPLACE_KEEPS_$0:si,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:li}),u=l[0],c=l[1];hn(String.prototype,n,u),hn(RegExp.prototype,r,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}i&&Fe(RegExp.prototype[r],"sham",!0)},hi=ii("match"),pi=function(t){var e;return xe(t)&&(void 0!==(e=t[hi])?!!e:"RegExp"==Ie(t))},fi=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},di=ii("species"),vi=function(a){return function(t,e){var n,i,r=String(Te(t)),o=mn(e),s=r.length;return o<0||s<=o?a?"":void 0:(n=r.charCodeAt(o))<55296||56319>>0;if(0===i)return[];if(void 0===t)return[n];if(!pi(t))return y.call(n,t,i);for(var r,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,c=new RegExp(t.source,l+"g");(r=Zn.call(c,n))&&!(u<(o=c.lastIndex)&&(a.push(n.slice(u,r.index)),1=i));)c.lastIndex===r.index&&c.lastIndex++;return u===n.length?!s&&c.test("")||a.push(""):a.push(n.slice(u)),a.length>i?a.slice(0,i):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y,[function(t,e){var n=Te(this),i=null==t?void 0:t[r];return void 0!==i?i.call(t,n,e):I.call(String(n),t,e)},function(t,e){var n=E(I,t,this,e,I!==y);if(n.done)return n.value;var i,r,o,s=ke(t),a=String(this),l=(i=RegExp,void 0===(o=ke(s).constructor)||null==(r=ke(o)[di])?i:fi(r)),u=s.unicode,c=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(bi?"y":"g"),h=new l(bi?s:"^(?:"+s.source+")",c),p=void 0===e?Ii:e>>>0;if(0===p)return[];if(0===a.length)return null===_i(h,a)?[a]:[];for(var f=0,d=0,v=[];dir;)er(nr[ir++]);(Ki.constructor=tr).prototype=Ki,hn(fe,"RegExp",tr)}Fi=dn("RegExp"),Bi=ze.f,ve&&Fi&&!Fi[ji]&&Bi(Fi,ji,{configurable:!0,get:function(){return this}});var rr="toString",or=RegExp.prototype,sr=or[rr],ar=de(function(){return"/a/b"!=sr.call({source:"a",flags:"b"})}),lr=sr.name!=rr;(ar||lr)&&hn(RegExp.prototype,rr,function(){var t=ke(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in or)?Bn.call(t):n)},{unsafe:!0}),ci("match",1,function(i,u,c){return[function(t){var e=Te(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=c(u,t,this);if(e.done)return e.value;var n=ke(t),i=String(this);if(!n.global)return _i(n,i);for(var r,o=n.unicode,s=[],a=n.lastIndex=0;null!==(r=_i(n,i));){var l=String(r[0]);""===(s[a]=l)&&(n.lastIndex=mi(i,yn(n.lastIndex),o)),a++}return 0===a?null:s}]});var ur=function(t){return Object(Te(t))},cr=Math.max,hr=Math.min,pr=Math.floor,fr=/\$([$&'`]|\d\d?|<[^>]*>)/g,dr=/\$([$&'`]|\d\d?)/g;ci("replace",2,function(r,I,b,t){var S=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=t.REPLACE_KEEPS_$0,w=S?"$":"$0";return[function(t,e){var n=Te(this),i=null==t?void 0:t[r];return void 0!==i?i.call(t,n,e):I.call(String(n),t,e)},function(t,e){if(!S&&T||"string"==typeof e&&-1===e.indexOf(w)){var n=b(I,t,this,e);if(n.done)return n.value}var i=ke(t),r=String(this),o="function"==typeof e;o||(e=String(e));var s=i.global;if(s){var a=i.unicode;i.lastIndex=0}for(var l=[];;){var u=_i(i,r);if(null===u)break;if(l.push(u),!s)break;""===String(u[0])&&(i.lastIndex=mi(r,yn(i.lastIndex),a))}for(var c,h="",p=0,f=0;f"+t+""},Wo=function(){try{Vo=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Wo=Vo?function(t){t.write(Uo("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Vo):((e=y("iframe")).style.display="none",Bo.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Uo("document.F=Object")),t.close(),t.F);for(var n=nt.length;n--;)delete Wo[Ho][nt[n]];return Wo()};J[jo]=!0;var qo=Object.create||function(t,e){var n;return null!==t?(Xo[Ho]=R(t),n=new Xo,Xo[Ho]=null,n[jo]=t):n=Wo(),void 0===e?n:Fo(n,e)},Yo={};Yo[Lr("toStringTag")]="z";var Ko="[object z]"===String(Yo),$o=Lr("toStringTag"),Zo="Arguments"==o(function(){return arguments}()),Qo=Ko?o: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:Zo?o(e):"Object"==(i=o(e))&&"function"==typeof e.callee?"Arguments":i},Jo=Ko?{}.toString:function(){return"[object "+Qo(this)+"]"},ts=V.f,es=Lr("toStringTag"),ns=function(t,e,n,i){if(t){var r=n?t:t.prototype;_(r,es)||ts(r,es,{configurable:!0,value:e}),i&&!Ko&&z(r,"toString",Jo)}},is=zo.IteratorPrototype,rs=function(){return this},os=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}}(),function(t,e,n,i){i&&i.enumerable?t[e]=n:z(t,e,n)}),ss=zo.IteratorPrototype,as=zo.BUGGY_SAFARI_ITERATORS,ls=Lr("iterator"),us="values",cs="entries",hs=function(){return this},ps=function(t,e,n,i,r,o,s){var a,l,u;l=i,u=e+" Iterator",(a=n).prototype=qo(is,{next:E(1,l)}),ns(a,u,!1,!0),ho[u]=rs;var c,h,p,f=function(t){if(t===r&&_)return _;if(!as&&t in g)return g[t];switch(t){case"keys":case us:case cs:return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",v=!1,g=t.prototype,m=g[ls]||g["@@iterator"]||r&&g[r],_=!as&&m||f(r),y="Array"==e&&g.entries||m;if(y&&(c=Ro(y.call(new t)),ss!==Object.prototype&&c.next&&(ns(c,d,!0,!0),ho[d]=hs)),r==us&&m&&m.name!==us&&(v=!0,_=function(){return m.call(this)}),s&&g[ls]!==_&&z(g,ls,_),ho[e]=_,r)if(h={values:f(us),keys:o?_:f("keys"),entries:f(cs)},s)for(p in h)!as&&!v&&p in g||os(g,p,h[p]);else G({target:e,proto:!0,forced:as||v},h);return h},fs="Array Iterator",ds=Co.set,vs=Co.getterFor(fs);ps(Array,"Array",function(t,e){ds(this,{type:fs,target:u(t),index:0,kind:e})},function(){var t=vs(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");ho.Arguments=ho.Array;var gs=Lr("toStringTag");for(var ms in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _s=m[ms],ys=_s&&_s.prototype;ys&&Qo(ys)!==gs&&z(ys,gs,ms),ho[ms]=ho.Array}var Es=Nr.forEach,Is=dt("forEach"),bs=_t("forEach"),Ss=Is&&bs?[].forEach:function(t){return Es(this,t,1s[0]&&e[1]"+t+""},ma=function(){try{sa=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ma=sa?function(t){t.write(ga("")),t.close();var e=t.parentWindow.Object;return t=null,e}(sa):((e=De("iframe")).style.display="none",ha.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ga("document.F=Object")),t.close(),t.F);for(var n=wn.length;n--;)delete ma[pa][wn[n]];return ma()};nn[da]=!0;var _a=Object.create||function(t,e){var n;return null!==t?(va[pa]=ke(t),n=new va,va[pa]=null,n[da]=t):n=ma(),void 0===e?n:ca(n,e)},ya="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Ea=RegExp("^"+ya+ya+"*"),Ia=RegExp(ya+ya+"*$"),ba=function(n){return function(t){var e=String(Te(t));return 1&n&&(e=e.replace(Ea,"")),2&n&&(e=e.replace(Ia,"")),e}},Sa={start:ba(1),end:ba(2),trim:ba(3)},Ta=An.f,wa=Re.f,xa=ze.f,Aa=Sa.trim,Pa="Number",La=fe[Pa],Oa=La.prototype,Ca=Ie(_a(Oa))==Pa,Da=function(t){var e,n,i,r,o,s,a,l,u=Ae(t,!1);if("string"==typeof u&&2ka;ka++)Le(La,Ma=Ra[ka])&&!Le(Na,Ma)&&xa(Na,Ma,wa(La,Ma));(Na.prototype=Oa).constructor=Na,hn(fe,Pa,Na)}var Va=so.trim,za=m.parseInt,Fa=/^[+-]?0[Xx]/,Ba=8!==za(eo+"08")||22!==za(eo+"0x16")?function(t,e){var n=Va(String(t));return za(n,e>>>0||(Fa.test(n)?16:10))}:za;G({global:!0,forced:parseInt!=Ba},{parseInt:Ba});var Ha=D.parseInt,Ga=Lr("isConcatSpreadable"),ja=9007199254740991,Xa="Maximum allowed index exceeded",Ua=51<=zr||!s(function(){var t=[];return t[Ga]=!1,t.concat()[0]!==t}),Wa=Br("concat"),qa=function(t){if(!c(t))return!1;var e=t[Ga];return void 0!==e?!!e:mr(t)};G({target:"Array",proto:!0,forced:!Ua||!Wa},{concat:function(t){var e,n,i,r,o,s=arguments,a=ot(this),l=Cr(a,0),u=0;for(e=-1,i=arguments.length;e=n.length?{value:void 0,done:!0}:(t=el(n,i),e.index+=t.length,{value:t,done:!1})});var ol=Za.f("iterator"),sl=nt.concat("length","prototype"),al={f:Object.getOwnPropertyNames||function(t){return et(t,sl)}},ll=al.f,ul={}.toString,cl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hl={f:function(t){return cl&&"[object Window]"==ul.call(t)?function(t){try{return ll(t)}catch(t){return cl.slice()}}(t):ll(u(t))}},pl=Nr.forEach,fl=Io("hidden"),dl="Symbol",vl="prototype",gl=Lr("toPrimitive"),ml=Co.set,_l=Co.getterFor(dl),yl=Object[vl],El=m.Symbol,Il=Ti("JSON","stringify"),bl=T.f,Sl=V.f,Tl=hl.f,wl=d.f,xl=Er("symbols"),Al=Er("op-symbols"),Pl=Er("string-to-symbol-registry"),Ll=Er("symbol-to-string-registry"),Ol=Er("wks"),Cl=m.QObject,Dl=!Cl||!Cl[vl]||!Cl[vl].findChild,Ml=f&&s(function(){return 7!=qo(Sl({},"a",{get:function(){return Sl(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=bl(yl,e);i&&delete yl[e],Sl(t,e,n),i&&t!==yl&&Sl(yl,e,i)}:Sl,Nl=function(t,e){var n=xl[t]=qo(El[vl]);return ml(n,{type:dl,tag:t,description:e}),f||(n.description=e),n},Rl=wr?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof El},kl=function(t,e,n){t===yl&&kl(Al,e,n),R(t);var i=h(e,!0);return R(n),_(xl,i)?(n.enumerable?(_(t,fl)&&t[fl][i]&&(t[fl][i]=!1),n=qo(n,{enumerable:E(0,!1)})):(_(t,fl)||Sl(t,fl,E(1,{})),t[fl][i]=!0),Ml(t,i,n)):Sl(t,i,n)},Vl=function(e,t){R(e);var n=u(t),i=it(n).concat(Hl(n));return pl(i,function(t){f&&!zl.call(n,t)||kl(e,t,n[t])}),e},zl=function(t){var e=h(t,!0),n=wl.call(this,e);return!(this===yl&&_(xl,e)&&!_(Al,e))&&(!(n||!_(this,e)||!_(xl,e)||_(this,fl)&&this[fl][e])||n)},Fl=function(t,e){var n=u(t),i=h(e,!0);if(n!==yl||!_(xl,i)||_(Al,i)){var r=bl(n,i);return!r||!_(xl,i)||_(n,fl)&&n[fl][i]||(r.enumerable=!0),r}},Bl=function(t){var e=Tl(u(t)),n=[];return pl(e,function(t){_(xl,t)||_(J,t)||n.push(t)}),n},Hl=function(t){var e=t===yl,n=Tl(e?Al:u(t)),i=[];return pl(n,function(t){!_(xl,t)||e&&!_(yl,t)||i.push(xl[t])}),i};if(Tr||(os((El=function(){if(this instanceof El)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Sr(t),n=function(t){this===yl&&n.call(Al,t),_(this,fl)&&_(this[fl],e)&&(this[fl][e]=!1),Ml(this,e,E(1,t))};return f&&Dl&&Ml(yl,e,{configurable:!0,set:n}),Nl(e,t)})[vl],"toString",function(){return _l(this).tag}),os(El,"withoutSetter",function(t){return Nl(Sr(t),t)}),d.f=zl,V.f=kl,T.f=Fl,al.f=hl.f=Bl,rt.f=Hl,Za.f=function(t){return Nl(Lr(t),t)},f&&Sl(El[vl],"description",{configurable:!0,get:function(){return _l(this).description}})),G({global:!0,wrap:!0,forced:!Tr,sham:!Tr},{Symbol:El}),pl(it(Ol),function(t){Ja(t)}),G({target:dl,stat:!0,forced:!Tr},{for:function(t){var e=String(t);if(_(Pl,e))return Pl[e];var n=El(e);return Pl[e]=n,Ll[n]=e,n},keyFor:function(t){if(!Rl(t))throw TypeError(t+" is not a symbol");if(_(Ll,t))return Ll[t]},useSetter:function(){Dl=!0},useSimple:function(){Dl=!1}}),G({target:"Object",stat:!0,forced:!Tr,sham:!f},{create:function(t,e){return void 0===e?qo(t):Vl(qo(t),e)},defineProperty:kl,defineProperties:Vl,getOwnPropertyDescriptor:Fl}),G({target:"Object",stat:!0,forced:!Tr},{getOwnPropertyNames:Bl,getOwnPropertySymbols:Hl}),G({target:"Object",stat:!0,forced:s(function(){rt.f(1)})},{getOwnPropertySymbols:function(t){return rt.f(ot(t))}}),Il){var Gl=!Tr||s(function(){var t=El();return"[null]"!=Il([t])||"{}"!=Il({a:t})||"{}"!=Il(Object(t))});G({target:"JSON",stat:!0,forced:Gl},{stringify:function(t,e,n){for(var i,r=arguments,o=[t],s=1;arguments.length>s;)o.push(r[s++]);if((c(i=e)||void 0!==t)&&!Rl(t))return mr(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Rl(e))return e}),o[1]=e,Il.apply(null,o)}})}El[vl][gl]||z(El[vl],gl,El[vl].valueOf),ns(El,dl),J[fl]=!0,Ja("asyncIterator"),Ja("hasInstance"),Ja("isConcatSpreadable"),Ja("match"),Ja("matchAll"),Ja("replace"),Ja("search"),Ja("species"),Ja("split"),Ja("toPrimitive"),Ja("toStringTag"),Ja("unscopables"),ns(Math,"Math",!0),ns(m.JSON,"JSON",!0);var jl=D.Symbol;Ja("asyncDispose"),Ja("dispose"),Ja("observable"),Ja("patternMatch"),Ja("replaceAll");var Xl=jl,Ul=t(function(e){function n(t){return e.exports=n="function"==typeof Xl&&"symbol"==typeof ol?function(t){return typeof t}:function(t){return t&&"function"==typeof Xl&&t.constructor===Xl&&t!==Xl.prototype?"symbol":typeof t},n(t)}e.exports=n});function Wl(t){return $s([]).call(t)}function ql(t){return t&&t.constructor===Array}function Yl(t){return t&&!t.nodeType&&"object"===Ul(t)&&!ql(t)}function Kl(n){for(var t,e=arguments,i=[],r=1;ri;)n.push(e[i++]);return rc[++ic]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},Xu(ic),ic},Ju=function(t){delete rc[t]},"process"==o(tc)?Xu=function(t){tc.nextTick(ac(t))}:nc&&nc.now?Xu=function(t){nc.now(ac(t))}:ec&&!$u?(Wu=(Uu=new ec).port2,Uu.port1.onmessage=lc,Xu=N(Wu.postMessage,Wu,1)):!m.addEventListener||"function"!=typeof postMessage||m.importScripts||s(uc)?Xu=oc in y("script")?function(t){Bo.appendChild(y("script"))[oc]=function(){Bo.removeChild(this),sc(t)}}:function(t){setTimeout(ac(t),0)}:(Xu=uc,m.addEventListener("message",lc,!1)));var cc,hc,pc,fc,dc,vc,gc,mc,_c={set:Qu,clear:Ju},yc=T.f,Ec=_c.set,Ic=m.MutationObserver||m.WebKitMutationObserver,bc=m.process,Sc=m.Promise,Tc="process"==o(bc),wc=yc(m,"queueMicrotask"),xc=wc&&wc.value;xc||(cc=function(){var t,e;for(Tc&&(t=bc.domain)&&t.exit();hc;){e=hc.fn,hc=hc.next;try{e()}catch(t){throw hc?fc():pc=void 0,t}}pc=void 0,t&&t.enter()},fc=Tc?function(){bc.nextTick(cc)}:Ic&&!$u?(dc=!0,vc=document.createTextNode(""),new Ic(cc).observe(vc,{characterData:!0}),function(){vc.data=dc=!dc}):Sc&&Sc.resolve?(gc=Sc.resolve(void 0),mc=gc.then,function(){mc.call(gc,cc)}):function(){Ec.call(m,cc)});var Ac,Pc,Lc,Oc,Cc,Dc=xc||function(t){var e={fn:t,next:void 0};pc&&(pc.next=e),hc||(hc=e,fc()),pc=e},Mc=function(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=M(n),this.reject=M(i)},Nc={f:function(t){return new Mc(t)}},Rc=function(t,e){if(R(t),c(e)&&e.constructor===t)return e;var n=Nc.f(t);return(0,n.resolve)(e),n.promise},kc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Vc=_c.set,zc=Lr("species"),Fc="Promise",Bc=Co.get,Hc=Co.set,Gc=Co.getterFor(Fc),jc=Du,Xc=m.TypeError,Uc=m.document,Wc=m.process,qc=(Ti("fetch"),Nc.f),Yc=qc,Kc="process"==o(Wc),$c=!!(Uc&&Uc.createEvent&&m.dispatchEvent),Zc="unhandledrejection",Qc=C(Fc,function(){if(!(mo(jc)!==String(jc))){if(66===zr)return!0;if(!Kc&&"function"!=typeof PromiseRejectionEvent)return!0}if(!jc.prototype.finally)return!0;if(51<=zr&&/native code/.test(jc))return!1;var t=jc.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[zc]=e,!(t.then(function(){})instanceof e)}),Jc=Qc||!qu(function(t){jc.all(t).catch(function(){})}),th=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},eh=function(h,p,f){if(!p.notified){p.notified=!0;var d=p.reactions;Dc(function(){for(var t=p.value,e=1==p.state,n=0;d.length>n;){var i,r,o,s=d[n++],a=e?s.ok:s.fail,l=s.resolve,u=s.reject,c=s.domain;try{a?(e||(2===p.rejection&&oh(h,p),p.rejection=1),!0===a?i=t:(c&&c.enter(),i=a(t),c&&(c.exit(),o=!0)),i===s.promise?u(Xc("Promise-chain cycle")):(r=th(i))?r.call(i,l,u):l(i)):u(t)}catch(t){c&&!o&&c.exit(),u(t)}}p.reactions=[],p.notified=!1,f&&!p.rejection&&ih(h,p)})}},nh=function(t,e,n){var i,r;$c?((i=Uc.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),m.dispatchEvent(i)):i={promise:e,reason:n},(r=m["on"+t])?r(i):t===Zc&&function(t,e){var n=m.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},ih=function(n,i){Vc.call(m,function(){var t,e=i.value;if(rh(i)&&(t=kc(function(){Kc?Wc.emit("unhandledRejection",e,n):nh(Zc,n,e)}),i.rejection=Kc||rh(i)?2:1,t.error))throw t.value})},rh=function(t){return 1!==t.rejection&&!t.parent},oh=function(t,e){Vc.call(m,function(){Kc?Wc.emit("rejectionHandled",t):nh("rejectionhandled",t,e.value)})},sh=function(e,n,i,r){return function(t){e(n,i,t,r)}},ah=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,eh(t,e,!0))},lh=function(n,i,t,e){if(!i.done){i.done=!0,e&&(i=e);try{if(n===t)throw Xc("Promise can't be resolved itself");var r=th(t);r?Dc(function(){var e={done:!1};try{r.call(t,sh(lh,n,e,i),sh(ah,n,e,i))}catch(t){ah(n,e,t,i)}}):(i.value=t,i.state=1,eh(n,i,!1))}catch(t){ah(n,{done:!1},t,i)}}};Qc&&(jc=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,jc,Fc),M(t),Ac.call(this);var e=Bc(this);try{t(sh(lh,this,e),sh(ah,this,e))}catch(t){ah(this,e,t)}},(Ac=function(t){Hc(this,{type:Fc,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:os(t,i,e[i],n);return t}(jc.prototype,{then:function(t,e){var n=Gc(this),i=qc(Ku(this,jc));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=Kc?Wc.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&eh(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Pc=function(){var t=new Ac,e=Bc(t);this.promise=t,this.resolve=sh(lh,t,e),this.reject=sh(ah,t,e)},Nc.f=qc=function(t){return t===jc||t===Lc?new Pc(t):Yc(t)}),G({global:!0,wrap:!0,forced:Qc},{Promise:jc}),ns(jc,Fc,!1,!0),Oc=Ti(Fc),Cc=V.f,f&&Oc&&!Oc[Mu]&&Cc(Oc,Mu,{configurable:!0,get:function(){return this}}),Lc=Ti(Fc),G({target:Fc,stat:!0,forced:Qc},{reject:function(t){var e=qc(this);return e.reject.call(void 0,t),e.promise}}),G({target:Fc,stat:!0,forced:!0},{resolve:function(t){return Rc(this===Lc?jc:this,t)}}),G({target:Fc,stat:!0,forced:Jc},{all:function(t){var a=this,e=qc(a),l=e.resolve,u=e.reject,n=kc(function(){var i=M(a.resolve),r=[],o=0,s=1;Bu(t,function(t){var e=o++,n=!1;r.push(void 0),s++,i.call(a,t).then(function(t){n||(n=!0,r[e]=t,--s||l(r))},u)}),--s||l(r)});return n.error&&u(n.value),e.promise},race:function(t){var n=this,i=qc(n),r=i.reject,e=kc(function(){var e=M(n.resolve);Bu(t,function(t){e.call(n,t).then(i.resolve,r)})});return e.error&&r(e.value),i.promise}}),G({target:"Promise",stat:!0},{allSettled:function(t){var a=this,e=Nc.f(a),l=e.resolve,n=e.reject,i=kc(function(){var i=M(a.resolve),r=[],o=0,s=1;Bu(t,function(t){var e=o++,n=!1;r.push(void 0),s++,i.call(a,t).then(function(t){n||(n=!0,r[e]={status:"fulfilled",value:t},--s||l(r))},function(t){n||(n=!0,r[e]={status:"rejected",reason:t},--s||l(r))})}),--s||l(r)});return i.error&&n(i.value),e.promise}});var uh=!!Du&&s(function(){Du.prototype.finally.call({then:function(){}},function(){})});G({target:"Promise",proto:!0,real:!0,forced:uh},{finally:function(e){var n=Ku(this,Ti("Promise")),t="function"==typeof e;return this.then(t?function(t){return Rc(n,e()).then(function(){return t})}:e,t?function(t){return Rc(n,e()).then(function(){throw t})}:e)}});var ch=D.Promise;function hh(t){return void 0===t}var ph=function(){var t=function(){function t(){this._eventHandler={},this.options={}}var e=t.prototype;return e.trigger=function(t,e){var n=arguments;void 0===e&&(e={});var i=this._eventHandler[t]||[];if(!(0this.data.length-1)return this.index;var n=Number(this.index);return n===t||e?-1:(this.index=t,this.trigger(Ct.INDEX_CHANGE,{oldIndex:n,newIndex:t,dataSet:this.dataSet}),this.index)},s.prototype.getComputedIndex=function(){return this.index<0?0:this.index},s.prototype.getNotCumputedIndex=function(){return this.index},s.prototype.movePrev=function(t){return this.setIndex(this.index-1,t)},s.prototype.moveNext=function(t){return this.setIndex(this.index+1,t)},s.prototype.isFirst=function(){return 0===this.index},s.prototype.isLast=function(){return this.index+1===this.length},s.prototype.add=function(t,e){var n,i,r=bh(t||[],this.vodServiceId);Eh(i=this.data).apply(i,$a(n=[e,0]).call(n,r)),this.trigger(Ct.DATA_CHANGE,{dataList:r})},s.prototype.get=function(t){return this.data[t]||null},s.prototype.getIndexByUrl=function(t){for(var e=0;e=this.data.length&&this.setIndex(this.data.length-1),this.trigger(Ct.DATA_CHANGE)},s.prototype.getData=function(){return this.data},s.prototype.getCurrent=function(){return this.get(this.index)},fh(s.prototype,"length",{get:function(){return this.data.length},enumerable:!0,configurable:!0}),fh(s.prototype,"dataSet",{get:function(){var t=this.getComputedIndex();return{prev:this.data[t-1]||null,current:this.data[t],next:this.data[t+1]||null}},enumerable:!0,configurable:!0}),s.prototype.resetIndex=function(){this.index=-1},s.prototype.setDominantColor=function(e,n){var t;Ps(t=this.data).call(t,function(t){t.thumbUrl===e&&(t.dominantColor=n.join("|"))})},s}(ph),wh=function(t){var e="string"==typeof t,l=e?new Image:t,u=e?t:l.getAttribute("data-src");return new ch(function(t,e){var n,i=Th.loadImageTimeout,r=function(){clearTimeout(n),l.removeAttribute("data-src"),a(),t(u)},o=function(){clearTimeout(n),a(),e(u)},s=function(t){t.addEventListener("load",r),t.addEventListener("error",o)},a=function(){l.removeEventListener("load",r),l.removeEventListener("error",o)};null!==u&&(s(l),l.src=u,n=Ci(function(){var t=new Image;s(t),t.src=u,l.src=t.src},i))})},xh=function(){var t,e=la(),n=e.isAndroid,i=e.version;if(n&&i<5)return!1;var r=document.createElement("canvas");return r.width=r.height=1,!!r.toDataURL&&5===to(t=r.toDataURL("image/webp")).call(t,"image/webp")}();function Ah(t,e){var n;if(void 0===e&&(e=xh),ql(t)){var i=$s(t).call(t);n=2===i.length?xh?i.shift():i.pop():i.shift()}else n=t;return n}var Ph,Lh,Oh,Ch=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cs(i,t),i.start=function(t,e,n){return wh(i.loadingSrc=t).then(function(t){i.loadingSrc=null,e(t)}).catch(function(){i.loadingSrc=null,n&&n()})},i.getCurrentImageSrc=function(){return i.loadingSrc},i.loadingSrc=null,i}(ph);(Oh=Lh||(Lh={})).NAVI_BTN="navi_btn",Oh.NORMAL_MODE="normal_mode",Oh.FULL_MODE="full_mode";var Dh,Mh,Nh,Rh,kh=Kl(Lh,Dt);(Mh=Dh||(Dh={})).LEFT="left",Mh.RIGHT="right",Mh.OUTTER="out",(Rh=Nh||(Nh={})).SHOW="VIEWER_SHOW",Rh.HIDE="VIEWER_HIDE",Rh.NAVI_PREV="VIEWER_NAVI_PREV",Rh.NAVI_NEXT="VIEWER_NAVI_NEXT",Rh.MODE_VIEWER="MODE_VIEWER",Rh.MODE_PICTURE="MODE_PICTURE",Rh.MODE_INDEX="MODE_INDEX",Rh.TOGGLE_FULL_VIEW="TOGGLE_FULL_VIEW",Rh.SCALE_INCREASE="SCALE_INCREASE",Rh.SCALE_DECREASE="SCALE_DECREASE",Rh.SCALE_INIT="SCALE_INIT",Rh.TOGGLE_SIDE_INDEX="TOGGLE_SIDE_INDEX",Rh.DOWN_LOAD_IMAGE="DOWN_LOAD_IMAGE",Rh.FULL_MODE_MOUSE_MOVE="FULL_MODE_MOUSE_MOVE";var Vh,zh,Fh={IMAGE_INDEX_AREA:Mt+"_index",INDEX_INDICATOR:Mt+"__index_count",CLOSE_BUTTON:Mt+"__custom--top__btn--close",NAVI_PREV_BTN:Mt+"__navi_btn--prev",NAVI_NEXT_BTN:Mt+"__navi_btn--next",PANEL_WRAPER:Mt+"_wrap",FULL_SCREEN_MODE:Mt+"__full_screen",FULL_SCREEN_CLOSE:Mt+"__header__btn--close",SCALE_CONTROL:Mt+"__scale_controller",SCALE_PERCENT_CONTROL:Mt+"__scale_percent_controller",SCALE_INCREASE_BTN:Mt+"__controller_btn--plus",SCALE_DECREASE_BTN:Mt+"__controller_btn--minus",SCALE_PERCENT_DISPLAY:Mt+"__controller_percent",SCALE_MAX:Mt+"__is_maximum",VIEWER_CLOSE_BTN:Mt+"__viewer_close",FULL_MODE_INDICATE:Mt+"__is_on",VIEW_MODE_FULL_BUTTON:Mt+"__header__btn--full",IMAGE_INDEX_TOGGLE_BTM:Mt+"__index_toggle_btn",TOGGLE_INDEX_CLASS:Mt+"__open_side",EXCEPTION_LAYER:Mt+"__placeholder--error",RELOAD_BTN:Mt+"__error_btn"},Bh=Pt(Ph=ht(Fh)).call(Ph,function(t,e){return t[e]="."+Fh[e],t},{}),Hh=Kl({},Nt,Fh),Gh=Kl({},Bt,Bh),jh=te,Xh=function(e){function t(){var t=e.call(this)||this;return t.visibility=!0,t.eventNameMap=null,t.publishEventMap=null,t.freezeLayout=!1,t.notInstalled=!1,t.isActiveLayout=!0,t.isEventBind=!1,t._dummyData=null,ou(t,"activate",function(){return!(t.freezeLayout=!1)}),ou(t,"deactivate",function(){return t.freezeLayout=!0}),t}return Cs(t,e),t.prototype.activate=function(){this.bindEvent()},t.prototype.deactivate=function(){this.unBindEvent()},t.prototype.bindEvent=function(){this.isEventBind=!0},t.prototype.unBindEvent=function(){this.isEventBind=!1},t.prototype.destroy=function(){this.unBindEvent()},t.prototype._isActivePlugin=function(t,e){var n=!(!t||e&&!1===e.activate);return this.freezeLayout=!n,this.visibility=n,this.isActiveLayout=n},t.applyStyle=function(t,e,n,i){void 0===n&&(n=!1),n?Su(i,e,t):pu(i,t)},t.prototype.isVisiblity=function(){return this.visibility},t.prototype.getEventMap=function(){return this.eventNameMap},t.prototype.getLayoutId=function(){if(!this.layoutId)throw new Error("LayerId not defined. LayerId is Requerd!!!");return this.layoutId},t.prototype.refresh=function(t){this._dummyData=t},t}(ph),Uh=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cs(i,t),i.prototype.initialize=function(t){var e=t.querySelector(Bt.HEADER);return this.layoutId=Dt.HEADER,this.el=e,this.visibility=!0,e},i.prototype.defineCustomEvent=function(){this.eventNameMap=null,this.publishEventMap=null},i.prototype.updateBgColor=function(t,e){void 0===e&&(e=!1);var n=t.join(",");i.applyStyle({backgroundImage:"linear-gradient(to bottom, rgba("+n+", 0.5), rgba("+n+", 0))"},Nt.BACKGROUND_TWEEN,e,this.el)},i}(Xh),Wh=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cs(i,t),i.prototype.initialize=function(t){this.layoutId=Dt.BACKGROUND,this.el=t,this.visibility=!0},i.prototype.defineCustomEvent=function(){this.eventNameMap=null,this.publishEventMap=null},i.prototype.updateBgColor=function(t,e){void 0===e&&(e=!1);var n={backgroundColor:"rgba("+t.join(",")+", 1)"};i.applyStyle(n,Nt.BACKGROUND_TWEEN,e,this.el)},i}(Xh),qh=Array.isArray||function(t){return"Array"==Ie(t)},Yh=ii("species"),Kh=function(t,e){var n;return qh(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!qh(n.prototype)?xe(n)&&null===(n=n[Yh])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},$h=[].push,Zh=function(f){var d=1==f,v=2==f,g=3==f,m=4==f,_=6==f,y=5==f||_;return function(t,e,n,i){for(var r,o,s=ur(t),a=Se(s),l=function(i,r,t){if(fi(i),void 0===r)return i;switch(t){case 0:return function(){return i.call(r)};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)}}(e,n,3),u=yn(a.length),c=0,h=i||Kh,p=d?h(t,u):v?h(t,0):void 0;cu||r.right>c||r.left]*)>/);if(r){var o=document.createElement("div");o.innerHTML=t,i=l(o.childNodes)}else i=l(document.querySelectorAll(t));n||(i=1<=i.length?i[0]:void 0)}else t===window?i=t:!t.nodeName||1!==t.nodeType&&9!==t.nodeType?"jQuery"in window&&t instanceof jQuery||t.constructor.prototype.jquery?i=n?t.toArray():t.get(0):Array.isArray(t)&&(i=t.map(function(t){return e(t)}),n||(i=1<=i.length?i[0]:void 0)):i=t;return i},e.getWindowRect=function(){return{top:0,left:0,bottom:document.documentElement.clientHeight||document.body.clientHeight,right:document.documentElement.clientWidth||document.body.clientWidth}},e.hasClass=function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},e.addEvent=function(t,e,n,i){if(s){var r=i||!1;"object"===(void 0===i?"undefined":o(i))&&(r=!!a&&i),t.addEventListener(e,n,r)}else t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},e.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null};var s=!!("addEventListener"in document),a=function(){var t=!1;try{s&&Object.defineProperty&&document.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(t){}return t}();function l(t){var e=[];if(t)for(var n=0,i=t.length;n\n \n \n \n
\n \n \n \n
\n '}).join("")),this.currentIndex=this._currentIndex,this.calcPaging()):(this.scrollArea.innerHTML="",this.currentIndex=0),this._visibleChecker.refresh(),this._visibleChecker.check(),this._isLoadStyleValue=!1,this.setElementSize())},enumerable:!0,configurable:!0}),r.prototype.appendListData=function(t){var e;if(t||0!==t.length){var n=$a(e=this._itemDataList).call(e,t);this.itemDataList=n}},r.prototype.calcPaging=function(){if(!1!==this._scrollPagingMode){var t=this._itemDataList?this._itemDataList.length:0,e=t/this._scrollUnit,n=this.currentIndex+1;this._scrollTotalPage=Math.floor(e+(0]*)>/)}function rd(t,e){var n,i;if(void 0===e&&(e=!1),"string"!=typeof t)return yd(t)?n=t:(i=t,"function"==typeof wf.jQuery&&i instanceof wf.jQuery||i.constructor.prototype.jquery&&i.toArray?n=e?rd(t.toArray(),!0):rd(t.get(0),!1):Array.isArray(t)?(n=t.map(function(t){return rd(t)}),e||(n=1<=n.length?n[0]:void 0)):n=!t.nodeName||1!==t.nodeType&&9!==t.nodeType?[].slice.call(n):t),n;if(id(t)){var r=Pf.createElement("div");r.innerHTML=t,n=r.childNodes}else n=Pf.querySelectorAll(t);return e?nd(n):n&&n[0]}function od(t,e,n,i){if(Cf){var r=i||!1;"object"==typeof i&&(r=!!Df&&i),t.addEventListener(e,n,r)}else t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function sd(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function ad(t){return(Of?wf.getComputedStyle(t):t.currentStyle)||{}}function ld(t,e,n){if(yd(t))return wf["inner"+e]||Pf.body["client"+e];if(9===t.nodeType){var i=t.documentElement,r=t.body;return Math.max(r["scroll"+e],i["scroll"+e],r["offset"+e],i["offset"+e],i["client"+e])}var o=0;if(n){var s=t.getBoundingClientRect();o="Width"===e?s.right-s.left:s.bottom-s.top}else o=t["client"+e]||t["offset"+e];if(o)return o;var a=ad(t)[e.toLowerCase()];return~a.indexOf("px")&&parseFloat(a)||0}function ud(t){return ld(t,"Width",!1)}function cd(t){return ld(t,"Height",!1)}function hd(t){return ld(t,"Width",!0)}function pd(t){return ld(t,"Height",!0)}function fd(t){return{width:hd(t),height:pd(t)}}var dd={vertical:{startPos1:"top",endPos1:"bottom",size1:"height",startPos2:"left",endPos2:"right",size2:"width"},horizontal:{startPos1:"left",endPos1:"right",size1:"width",startPos2:"top",endPos2:"bottom",size2:"height"}};function vd(t){return dd[t?Ff:zf]}function gd(n){for(var t=arguments,e=[],i=1;ithis.scrollTopPos&&rthis.elIndexList.scrollTop+n&&(this.elIndexList.scrollTop=r-n+o+100):r/g,">").replace(/\"/g,""")))},t.prototype.toggleCaptionDesc=function(t){var e=this.el.querySelector(Bt.CAPTION_DESC),n=document.querySelector(".civ__HiddenCaption");if(n){n.innerHTML=t;var i=n.clientHeight;Ha(e.style.height,10)!==i&&(e.style.height=i+"px")}},fh(t.prototype,"isCaptionEmpty",{get:function(){return this._isCaptionEmpty},enumerable:!0,configurable:!0}),t.prototype.show=function(){this._isCaptionEmpty||(this.isVlisible=!0,cu(this.el),fu(this.el,Nt.HIDE,!1),this.updateBg(this.el.parentElement))},t.prototype.hide=function(){this.isVlisible=!1,fu(this.el,Nt.HIDE,!0),hu(this.el)},t.prototype.updateBg=function(t){var e=t.getAttribute("data-bg");e&&(pu(t,{backgroundColor:e}),t.removeAttribute("data-bg"))},t.prototype.resize=function(){var t=this.el.querySelector(Bt.CAPTION_DESC);this.toggleCaptionDesc(t.innerText)},t.prototype.isVisiblity=function(){return this.isVlisible},Ms([kp],t.prototype,"refresh",null),Ms([kp],t.prototype,"show",null),Ms([kp],t.prototype,"hide",null),Ms([kp],t.prototype,"updateBg",null),Ms([kp],t.prototype,"resize",null),t}(Xh),Hd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cs(e,t),e.prototype.activate=function(){this.bindEvent(),pu(this.el,{opacity:"1",pointerEvents:""}),!1===this.visibility&&this.show&&this.show()},e.prototype.deactivate=function(){this.unbindEvent(),pu(this.el,{opacity:"0.2",pointerEvents:"none"}),!0===this.visibility&&this.hide&&this.hide()},e}(Xh),Gd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onClick=function(t){gp(t),e.trigger(Ct.CLOSE)},e}return Cs(e,t),e.prototype.initialize=function(t){var e=t.querySelector(Bt.CLOSE_BUTTON);this.el=e,this.visibility=!0,this.bindEvent()},e.prototype.defineCustomEvent=function(){var t;this.eventNameMap=((t={})[Ct.CLOSE]=Ct.CLOSE,t)},e.prototype.bindEvent=function(){vu(this.el,"click",this.onClick)},e.prototype.unbindEvent=function(){gu(this.el,"click",this.onClick)},Ms([Vp],e.prototype,"bindEvent",null),Ms([zp],e.prototype,"unbindEvent",null),e}(Hd),jd=function(n){function t(t){var e=n.call(this)||this;return e._options=null,e.onClick=function(t){gp(t),e._options.onClick&&e._options.onClick(t)},e._options=t,e.layoutId=Dt.SHARE_BTN,e}return Cs(t,n),t.prototype.initialize=function(t){var e=this._options,n=t.querySelector(Bt.SHARE_BTN_AREA),i=n.querySelector(Bt.SHARE_BUTTON),r=e.render?e.render():null;n&&("string"==typeof r&&(n.innerHTML=r,r=n.firstChild),r&&"object"===Ul(r)&&r.tagName?n.appendChild(r):i&&(cu(i),r=i),e.initialize(r),this.el=r,this.activate())},t.prototype.defineCustomEvent=function(){this.eventNameMap={}},t.prototype.bindEvent=function(){vu(this.el,"click",this.onClick)},t.prototype.unbindEvent=function(){gu(this.el,"click",this.onClick)},t.prototype.show=function(){cu(this.el)},t.prototype.hide=function(){this._options.onClose&&this._options.onClose(this.el)},t.prototype.activate=function(){this.bindEvent(),this.show()},t.prototype.deactivate=function(){this.unbindEvent(),this.hide()},Ms([Vp],t.prototype,"bindEvent",null),Ms([zp],t.prototype,"unbindEvent",null),t}(Hd),Xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentIndex=0,e.onClick=function(t){gp(t),e.trigger(ue.TOGGLE)},e}return Cs(e,t),e.prototype.initialize=function(t,e){var n=t.querySelector(Bt.H_INDEX_INDICATOR)||t.querySelector(Bt.INDEX_INDICATOR);this.el=n,!1!==this._isActivePlugin(this.el,e)?(this.currentNumEL=n.querySelector(Bt.INDEX_INDICATOR_CURRENT),this.totalNumEL=n.querySelector(Bt.INDEX_INDICATOR_TOTAL),this.visibility=!0,this.activate()):hu(this.el)},e.prototype.defineCustomEvent=function(){this.eventNameMap=ue},e.prototype.refresh=function(t){if(null!==t){var e=t.index;this.currentIndex=e,this.renderIndex(t)}},e.prototype.renderIndex=function(t){var e=t.index,n=t.total;this.currentNumEL.innerHTML=Number(e).toString(),this.totalNumEL.innerHTML=Number(n).toString()},e.prototype.toggle=function(t){var e=document.querySelector(Bt.INDEX_HEADER_BTN);e&&fu(e,"civ__open",!t)},e.prototype.bindEvent=function(){vu(this.el,"click",this.onClick)},e.prototype.unbindEvent=function(){gu(this.el,"click",this.onClick)},e.prototype.activate=function(){this.bindEvent()},e.prototype.deactivate=function(){this.unbindEvent()},Ms([kp],e.prototype,"refresh",null),Ms([kp],e.prototype,"toggle",null),Ms([Vp],e.prototype,"bindEvent",null),Ms([zp],e.prototype,"unbindEvent",null),e}(Hd),Ud=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._linkData=null,n.moveLink=function(t){var e=n.el.getAttribute("href");gp(t),window.open(e)},n}return Cs(e,t),e.prototype.initialize=function(t,e){var n=t.querySelector(Bt.LINK);return this.el=n,!1===this._isActivePlugin(this.el,e)&&hu(this.el),this.linkTemplate=Zl(e,"template"),this.visibility=!1,this.elWrapper=t.querySelector(Bt.LINK_WRAP),this.displayEl=this.linkTemplate?n:this.elWrapper,this.activate(),n},e.prototype.defineCustomEvent=function(){this.eventNameMap={}},e.prototype.activate=function(){this.bindEvent()},e.prototype.deactivate=function(){this.unBindEvent()},e.prototype.bindEvent=function(){vu(this.el,"click",this.moveLink)},e.prototype.unBindEvent=function(){gu(this.el,"click",this.moveLink)},e.prototype.refresh=function(t){var e=Zl(t,"link"),n=function(t){if(!t)return{};var e=t.match(/^(?:https?:)?(?:\/\/)?([^\/\?]+)/);return e?{href:t,host:e[1]}:{href:t,host:t}}(e).host,i=this.el;(this._linkData=e)&&""!==e?(i.setAttribute("href",e),i.innerHTML=this.linkTemplate?this.linkTemplate(n):function(t){void 0===t&&(t="");var e=Nt.LINK_TEXT;return'\n '+t+'\n \n '}(n)):this.hide()},e.prototype.show=function(){this._linkData&&""!==this._linkData&&(fu(this.displayEl,Nt.HIDDEN,!1),this.visibility=!0)},e.prototype.hide=function(){fu(this.displayEl,Nt.HIDDEN,!0),this.visibility=!1},Ms([kp],e.prototype,"activate",null),Ms([Vp],e.prototype,"bindEvent",null),Ms([zp],e.prototype,"unBindEvent",null),Ms([kp],e.prototype,"refresh",null),Ms([kp],e.prototype,"show",null),Ms([kp],e.prototype,"hide",null),e}(Xh);(Vd=kd||(kd={}))[Vd.TOP=Bt.CUSTOM_LAYOUT_POSITION_TOP]="TOP",Vd[Vd.LEFT=Bt.CUSTOM_LAYOUT_POSITION_LEFT]="LEFT",Vd[Vd.RIGHT=Bt.CUSTOM_LAYOUT_POSITION_RIGHT]="RIGHT",Vd[Vd.BOTTOM=Bt.CUSTOM_LAYOUT_POSITION_BOTTOM]="BOTTOM";var Wd=function(n){function t(t){var e=n.call(this)||this;return e._options=t,e}return Cs(t,n),t.prototype.initialize=function(t){var e,n,i=this._options,r=i.position,o=i.position?t.querySelector(r):null,s=null!==o?o:t,a=iu(e=i.initialize).call(e,this);this.layoutId=i.id,this.clickFunction=iu(n=i.onClick).call(n,this),this.el=a(s),this.parentElement=s,this.selector=r,this.activate(),this.visibility=!0},t.prototype.defineCustomEvent=function(){this.eventNameMap=this._options.customEvents},t.prototype.bindEvent=function(){vu(this.el,"click",this.clickFunction)},t.prototype.unbindEvent=function(){gu(this.el,"click",this.clickFunction)},t.prototype.listenViewerEvent=function(t){var e=t.eventName,n=t.eventData,i=this._options.onListenViewerEvent;i&&i(e,n)},t.prototype.show=function(){var t=this.selector,e=this.parentElement,n=this.el;cu(n),this.visibility=!0,t===kd.BOTTOM||t===kd.TOP?e.style.height=n.offsetHeight+"px":t!==kd.RIGHT&&t!==kd.LEFT||(e.style.width=n.offsetWidth+"px")},t.prototype.hide=function(){hu(this.el),this.visibility=!1},t.prototype.toggle=function(){uu(this.el,this.visibility)},t.prototype.refresh=function(t){var e=this._options.onDataUpdate;e&&e(t)},t.prototype.activate=function(){this.show(),this.bindEvent()},t.prototype.deactivate=function(){this.unbindEvent(),this.hide()},Ms([Vp],t.prototype,"bindEvent",null),Ms([zp],t.prototype,"unbindEvent",null),t}(Xh),qd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cs(e,t),e}(ph);G({target:"Array",stat:!0},{isArray:mr});var Yd,Kd=D.Array.isArray,$d=function(){function t(){this.isForward=!1}return t.prototype.forward=function(t){this.isForward=!0,la().isUnbackableBrowser?(this.prevLocation=location.href,window.history.replaceState(null,null,t)):window.history.pushState(null,null,t)},t.prototype.back=function(){!1!==this.isForward&&(la().isUnbackableBrowser?window.history.replaceState(null,null,this.prevLocation):window.history.back())},t.prototype.replace=function(t){window.history.replaceState(null,null,t)},t}(),Zd={scrollY:0,centerY:0,width:0,height:0,isPlaying:!1,elRootOverflow:null,fullScreen:!1,open:!1,resizeTimer:null},Qd=null,Jd={set scrollY(t){Zd.scrollY=t},get scrollY(){return Zd.scrollY},set centerY(t){Zd.centerY=t},get centerY(){return Zd.centerY},set width(t){Zd.width=t},get width(){return Zd.width},set height(t){Zd.height=t},get height(){return Zd.height},set isPlaying(t){Zd.isPlaying=t},get isPlaying(){return Zd.isPlaying},set elRootOverflow(t){Zd.elRootOverflow=t},get elRootOverflow(){return Zd.elRootOverflow},set fullScreen(t){Zd.fullScreen=t},get fullScreen(){return Zd.fullScreen},set open(t){Zd.open=t},get open(){return Zd.open},set resizeTimer(t){Zd.resizeTimer=t},get resizeTimer(){return Zd.resizeTimer}},tv=function(){return Jd},ev=function(t){Qd=t},nv=function(){return Qd},iv=function(n){function t(t){var e,o=n.call(this)||this;return o.bypassEvent=function(t,e){var n=e||t.eventType,i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r]);o.trigger(n,i)},o.isNotSupportBrowser=!la().supportBrowser,o._options=Kl({preFixClass:"civ",elRoot:document.body,elScrollBody:null,elItemList:document.body,itemData:[],urlCallback:null,useScrollSync:!0,useImgDownload:!0,loadImageTimeout:2e3,dominantColor:{useColor:!1,paramName:"cors",paramValue:"image_viewer"}},t||{}),e=o._options.preFixClass,Mt=e,o.initalize(),o.creatViewer(),o}return Cs(t,n),t.prototype.initalize=function(){var t=new $d,e=new Th(this._options.itemData,{vodServiceId:this._options.vodServiceId,loadImageTimeout:this._options.loadImageTimeout});this.itemModelData=e,ev(e),this.historyManager=t},t.prototype.open=function(t,e){if(void 0===e&&(e=!0),this.isNotSupportBrowser)this.unsupportViewer.open();else if(!tv().isPlaying){var n="number"==typeof t?t:this.itemModelData.getIndexByUrl(t.src);this._options.urlCallback&&e&&this.historyManager.forward(this._options.urlCallback(String(n))),this.viewer.open(n)}},t.prototype.close=function(t){this.isNotSupportBrowser&&this.unsupportViewer.close(),this.viewer.close(t)},t.prototype.getCurrent=function(){this.isNotSupportBrowser||this.itemModelData.getCurrent()},t.prototype.addData=function(t){if(!this.isNotSupportBrowser){var e=Kd(t)?t:[t],n=this.itemModelData.length||0;this.itemModelData.add(e,n)}},t.prototype.removeData=function(t){this.isNotSupportBrowser||this.itemModelData.remove(t)},t.prototype.addLayout=function(t){this.isNotSupportBrowser||this.viewer.addLayout(t)},t.prototype.removeLayout=function(t){this.isNotSupportBrowser||this.viewer.removeLayout(t)},t.prototype.getBypassEvents=function(t){var n=this;return Pt(t).call(t,function(t,e){return t[e]=n.bypassEvent,t},{})},t.prototype.destroy=function(){this.viewer.destroy()},t}(ph),rv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cs(e,t),e.prototype.addLayout=function(t){this.injectData.layoutPool.addLayout(t)},e.prototype.triggerViewerEvent=function(t,e){this.injectData.customLayoutsProxy.listenViewerEvent(t,e),this.trigger(t,e)},e.prototype.removeLayout=function(t){this.injectData.layoutPool.removeLayout(t)},e}(ph),ov='\n \n \n \n \n \n \n',sv='\n \n \n \n \n \n \n',av='\n \n \n \n \n \n',lv='\n\n \n \n \n \n\n';function uv(t){return'\n \n \n \n \n \n \n \n\n '+t+""}var cv,hv,pv,fv,dv,vv,gv,mv="BROWSER_EXCEPTION",_v="IMAGE_EXCEPTION",yv=function(t){var e,n=t.type,i=t.message,r=t.btnText;return n===_v?e=lv:n===mv&&(e='\n\n \n \n \n \n\n\n'),'\n
\n
\n '+e+'\n

'+i+"

\n "+(r?''+r+"":"")+"\n
\n
\n "},Ev=function(t){return'
\n \n \n \n
'},Iv=function(t){var e=t.thumbUrl,n=t.title,i=t.index,r=t.imgType;return'
  • \n \n
    \n \n
    \n \n
    \n
  • "},bv='\n\x3c!--[D]\n - 전체화면일 경우 civ__full_screen 추가\n - 전체화면에서 인덱스영역을 열때는 civ__is_side_open 추가\n - 전체화면에서 인덱스 영역 토글할때 애니메이션을 적용하려면 civ__with_animation 추가\n--\x3e\n\n";(gv=vv||(vv={})).RESIZE="resize",gv.KEYDOWN="keydown",gv.POPSTATE="popstate",gv.WHEEL="wheel";var Sv,Tv,wv=function(){function t(t,e,n){var i;void 0===e&&(e=!1);var r=this;this.dummyFunction=function(){},this.eventFunctionMap=((i={})[vv.RESIZE]=this.dummyFunction,i[vv.KEYDOWN]=this.dummyFunction,i[vv.POPSTATE]=this.dummyFunction,i[vv.WHEEL]=this.dummyFunction,i),this.onPopState=function(t){r.urlCallback&&r.eventFunctionMap[vv.POPSTATE](t)},this.browserInfo=la(),this.urlCallback=e,this.globalEl=t;var o=this.eventFunctionMap;this.eventFunctionMap=Kl(o,n)}return t.prototype.bindEvent=function(){var t=this.eventFunctionMap;this.globalEl.addEventListener("orientationchange",[vv.RESIZE]),this.globalEl.addEventListener("resize",t[vv.RESIZE]),this.globalEl.addEventListener("keydown",t[vv.KEYDOWN]),this.globalEl.addEventListener("wheel",t[vv.WHEEL]),this.globalEl.addEventListener("popstate",this.onPopState),this.browserInfo.isIOS&&this.globalEl.addEventListener("gesturestart",gp),this.browserInfo.isIOS&&this.globalEl.addEventListener("webkitmouseforcewillbegin",gp)},t.prototype.unbindEvent=function(){var t=this.eventFunctionMap;this.globalEl.removeEventListener("popstate",this.onPopState),this.globalEl.removeEventListener("keydown",t[vv.KEYDOWN]),this.globalEl.removeEventListener("resize",t[vv.RESIZE]),this.globalEl.removeEventListener("wheel",t[vv.WHEEL]),this.globalEl.removeEventListener("orientationchange",t[vv.RESIZE]),this.browserInfo.isIOS&&this.globalEl.removeEventListener("gesturestart",gp),this.browserInfo.isIOS&&this.globalEl.removeEventListener("webkitmouseforcewillbegin",gp)},t}();(Tv=Sv||(Sv={})).INDEX_CHANGE="index_change",Tv.DATA_CHANGE="data_change";var xv=function(){function t(t,e){var n;this.eventMap=((n={})[Sv.INDEX_CHANGE]=function(){},n[Sv.DATA_CHANGE]=function(){},n),this.itemModel=t,this.eventMap=Kl(this.eventMap,e)}return t.prototype.bindEvent=function(){var t,e=this.eventMap,n=e[Sv.INDEX_CHANGE],i=e[Sv.DATA_CHANGE];this.itemModel.on(((t={})[Ct.INDEX_CHANGE]=n,t[Ct.DATA_CHANGE]=i,t))},t.prototype.unbindEvent=function(){this.itemModel.off()},t}(),Av=[],Pv=Av.sort,Lv=s(function(){Av.sort(void 0)}),Ov=s(function(){Av.sort(null)}),Cv=dt("sort");G({target:"Array",proto:!0,forced:Lv||!Ov||!Cv},{sort:function(t){return void 0===t?Pv.call(ot(this)):Pv.call(ot(this),M(t))}});wt("Array").sort;var Dv=d.f,Mv=function(a){return function(t){for(var e,n=u(t),i=it(n),r=i.length,o=0,s=[];o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=o.console&&(o.console.warn||o.console.log);return n&&n.call(o.console,r,e),i.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){var e=arguments;if(t===v||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;ie[n]}):i.sort()),i}function L(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;og(u.y)?u.x:u.y,e.scale=s?(p=s.pointers,f=i,nt(f[0],f[1],K)/nt(p[0],p[1],K)):1,e.rotation=s?(c=s.pointers,h=i,it(h[1],h[0],K)+it(c[1],c[0],K)):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=F&&(kg(c.y)?c.x:c.y,o=et(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var c,h;var p,f;var d=t.element;S(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Q(t){for(var e=[],n=0;n=g(e)?t<0?H:G:e<0?j:X}function nt(t,e,n){n||(n=Y);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function it(t,e,n){n||(n=Y);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(C(this.element),this.evWin,this.domHandler)}};var rt={mousedown:V,mousemove:2,mouseup:z},ot="mousedown",st="mousemove mouseup";function at(){this.evEl=ot,this.evWin=st,this.pressed=!1,$.apply(this,arguments)}d(at,$,{handler:function(t){var e=rt[t.type];e&V&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=z),this.pressed&&(e&z&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var lt={pointerdown:V,pointermove:2,pointerup:z,pointercancel:F,pointerout:F},ut={2:R,3:"pen",4:"mouse",5:"kinect"},ct="pointerdown",ht="pointermove pointerup pointercancel";function pt(){this.evEl=ct,this.evWin=ht,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(ct="MSPointerDown",ht="MSPointerMove MSPointerUp MSPointerCancel"),d(pt,$,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=lt[i],o=ut[t.pointerType]||t.pointerType,s=o==R,a=x(e,t.pointerId,"pointerId");r&V&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(z|F)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var ft={touchstart:V,touchmove:2,touchend:z,touchcancel:F};function dt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}d(dt,$,{handler:function(t){var e=ft[t.type];if(e===V&&(this.started=!0),this.started){var n=function(t,e){var n=A(t.touches),i=A(t.changedTouches);e&(z|F)&&(n=P(n.concat(i),"identifier",!0));return[n,i]}.call(this,t,e);e&(z|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:t})}}});var vt={touchstart:V,touchmove:2,touchend:z,touchcancel:F},gt="touchstart touchmove touchend touchcancel";function mt(){this.evTarget=gt,this.targetIds={},$.apply(this,arguments)}d(mt,$,{handler:function(t){var e=vt[t.type],n=function(t,e){var n=A(t.touches),i=this.targetIds;if(e&(2|V)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=A(t.changedTouches),a=[],l=this.target;if(o=n.filter(function(t){return S(t.target,l)}),e===V)for(r=0;re.threshold&&r&e.direction},attrTest:function(t){return Nt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Dt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(kt,Nt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Tt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(Vt,Ot,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(z|F)&&!r)this.reset();else if(t.eventType&V)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&z)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&z?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),d(zt,Nt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Tt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),d(Ft,Nt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:U|W,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(U|W)?e=t.overallVelocity:n&U?e=t.overallVelocityX:n&W&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&g(e)>this.options.velocity&&t.eventType&z},emit:function(t){var e=Dt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(Bt,Ot,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[St]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance=pg(e)?t<0?Mg:Ng:e<0?Rg:kg}function Qg(t,e,n){return{x:e/t||0,y:n/t||0}}function Jg(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Yg(e)),1pg(y.y)?y.x:y.y,e.scale=p?(v=p.pointers,Kg((g=i)[0],g[1],Hg)/Kg(v[0],v[1],Hg)):1,e.rotation=p?(m=p.pointers,$g((_=i)[1],_[0],Hg)+$g(m[1],m[0],Hg)):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==Cg&&(Pgpg(c.y)?c.x:c.y,o=Zg(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var E,I=t.element,b=e.srcEvent;Wg(E=b.composedPath?b.composedPath()[0]:b.path?b.path[0]:b.target,I)&&(I=E),e.target=I}function tm(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&Lg&&i-r==0,s=e&(Og|Cg)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Jg(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function em(t){return t.trim().split(/\s+/g)}function nm(e,t,n){Gg(em(t),function(t){e.addEventListener(t,n,!1)})}function im(e,t,n){Gg(em(t),function(t){e.removeEventListener(t,n,!1)})}function rm(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var om=function(){function t(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){jg(e.options.enable,[e])&&n.handler(t)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&nm(this.element,this.evEl,this.domHandler),this.evTarget&&nm(this.target,this.evTarget,this.domHandler),this.evWin&&nm(rm(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&im(this.element,this.evEl,this.domHandler),this.evTarget&&im(this.target,this.evTarget,this.domHandler),this.evWin&&im(rm(this.element),this.evWin,this.domHandler)},t}();function sm(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;ie[n]}):i.sort()),i}var dm={touchstart:Lg,touchmove:2,touchend:Og,touchcancel:Cg},vm=function(e){function n(){var t;return n.prototype.evTarget="touchstart touchmove touchend touchcancel",(t=e.apply(this,arguments)||this).targetIds={},t}return rg(n,e),n.prototype.handler=function(t){var e=dm[t.type],n=function(t,e){var n,i,r=pm(t.touches),o=this.targetIds;if(e&(2|Lg)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=pm(t.changedTouches),a=[],l=this.target;if(i=r.filter(function(t){return Wg(t.target,l)}),e===Lg)for(n=0;ne.threshold&&r&e.direction},e.attrTest=function(t){return Am.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},e.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Pm(t.direction);e&&(t.additionalEvent=this.options.event+e),n.prototype.emit.call(this,t)},t}(Am),Om={domEvents:!1,touchAction:mg,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Cm(n,i){var r,o=n.element;o.style&&(Gg(n.options.cssProps,function(t,e){r=dg(o.style,e),o.style[r]=i?(n.oldCssProps[r]=o.style[r],t):n.oldCssProps[r]||""}),i||(n.oldCssProps={}))}var Dm=function(){function t(t,e){var n,i=this;this.options=ag({},Om,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(Tg?hm:wg?vm:Sg?Im:mm))(n,tm),this.touchAction=new Ug(this,this.options.touchAction),Cm(this,!0),Gg(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return ag(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,r,e),i.apply(this,arguments)}}var Nm=Mm(function(t,e,n){for(var i=Object.keys(e),r=0;re[1]}function Hm(t,e,n){return n[1]&&t>e[1]||n[0]&&t=n[e]-1e-6&&t<=n[e]+1e-6?n[e]:Jm(t,i.getRoundUnit(t,e))})},e.getRoundUnit=function(t,e){var n,i=this.options.round,r=null;if(!i){var o=this.axm.getAxisOptions(e);n=Math.max(e_(o.range[0]),e_(o.range[1]),e_(t)),r=1/Math.pow(10,n)}return r||i},e.getUserControll=function(t){var e=t.setTo();return e.destPos=this.axm.get(e.destPos),e.duration=n_(e.duration,this.options.minimumDuration,this.options.maximumDuration),e},e.animateTo=function(t,e,n){var i=this,r=this.createAnimationParam(t,e,n),o=zm({},r.depaPos),s=this.em.triggerAnimationStart(r),a=this.getUserControll(r);if(!s&&this.axm.every(a.destPos,function(t,e){return Hm(t,e.range,e.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),s&&!Zm(a.destPos,o)){var l=n&&n.event||null;this.animateLoop({depaPos:o,destPos:a.destPos,duration:a.duration,delta:this.axm.getDelta(o,a.destPos),isTrusted:!!l,inputEvent:l,input:n&&n.input||null},function(){return i.animationEnd()})}},e.easing=function(t){return 1]*)>/)){var r=document.createElement("div");r.innerHTML=t,i=jm(r.childNodes)}else i=jm(document.querySelectorAll(t));n||(i=1<=i.length?i[0]:void 0)}else t===Vm?i=t:!t.nodeName||1!==t.nodeType&&9!==t.nodeType?"jQuery"in Vm&&t instanceof jQuery||t.constructor.prototype.jquery?i=n?t.toArray():t.get(0):Array.isArray(t)&&(i=t.map(function(t){return e(t)}),n||(i=1<=i.length?i[0]:void 0)):i=t;return i}(t),this.options=zm({inputType:["touch","mouse","pointer"],scale:[1,1],thresholdAngle:45,threshold:0,hammerManagerOptions:{cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",userDrag:"none"}}},e),this.onHammerInput=this.onHammerInput.bind(this),this.onPanmove=this.onPanmove.bind(this),this.onPanend=this.onPanend.bind(this)}var e=t.prototype;return e.mapAxes=function(t){var e=!!t[0],n=!!t[1];this._direction=e&&n?Fg:e?Vg:n?zg:Dg,this.axes=t},e.connect=function(t){var e={direction:this._direction,threshold:this.options.threshold};if(this.hammer)this.removeRecognizer(),this.dettachEvent();else{var n=this.element[p_];n||(n=String(Math.round(Math.random()*(new Date).getTime())));var i=function(t){void 0===t&&(t=[]);var e=!1,n=!1,i=!1;return t.forEach(function(t){switch(t){case"mouse":n=!0;break;case"touch":e=h_;break;case"pointer":i=c_}}),i?hm:e&&n?Im:e?vm:n?mm:null}(this.options.inputType);if(!i)throw new Error("Wrong inputType parameter!");this.hammer=function(t,e){try{return new Dm(t,zm({},e))}catch(t){return null}}(this.element,zm({inputClass:i},this.options.hammerManagerOptions)),this.element[p_]=n}return this.panRecognizer=new Lm(e),this.hammer.add(this.panRecognizer),this.attachEvent(t),this},e.disconnect=function(){return this.removeRecognizer(),this.hammer&&this.dettachEvent(),this._direction=Dg,this},e.destroy=function(){this.disconnect(),this.hammer&&0===this.hammer.recognizers.length&&this.hammer.destroy(),delete this.element[p_],this.element=null,this.hammer=null},e.enable=function(){return this.hammer&&(this.hammer.get("pan").options.enable=!0),this},e.disable=function(){return this.hammer&&(this.hammer.get("pan").options.enable=!1),this},e.isEnable=function(){return!(!this.hammer||!this.hammer.get("pan").options.enable)},e.removeRecognizer=function(){this.hammer&&this.panRecognizer&&(this.hammer.remove(this.panRecognizer),this.panRecognizer=null)},e.onHammerInput=function(t){this.isEnable()&&(t.isFirst?this.observer.hold(this,t):t.isFinal&&this.onPanend(t))},e.onPanmove=function(t){var e=function(t,e){if(e<0||90 license @egjs/flicking JavaScript library https://github.com/naver/egjs-flicking @version 2.4.4 */ function m_(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}var __=(v_="undefined"==typeof window?{document:{},navigator:{userAgent:""}}:window).document,y_={$:function(t){var n=null;if("string"==typeof t){var e=t.match(/^<([a-z]+)\s*([^>]*)>/);e?(n=__.createElement(e[1]),3===e.length&&e[2].split(" ").forEach(function(t){var e=t.split("=");n.setAttribute(e[0],e[1].trim().replace(/(^["']|["']$)/g,""))})):(n=__.querySelectorAll(t)).length?1===n.length&&(n=n[0]):n=null}else t.nodeName&&1===t.nodeType&&(n=t);return n},toArray:function(t){return[].slice.call(t)},isArray:function(t){return t&&t.constructor===Array},isObject:function(t){return t&&!t.nodeType&&"object"==typeof t&&!this.isArray(t)},extend:function(n){for(var t=arguments,i=this,e=arguments.length,r=new Array(1'))),function(t,e){var n=this._getDataByDirection([this._conf.panel.size*e+"px",0]);y_.css(t,{left:n[0],top:n[1]})})},e._adjustContainerCss=function(t,e){var n,i=this._conf,r=i.panel,o=this.options,s=o.useTranslate,a=o.horizontal,l=o.previewPadding[0],u=this.$container,c=e;if(!s)if(c||(c=-r.size*r.index),"start"===t)u=u.style,n=parseFloat(u[a?"left":"top"]),a?n&&(u.left="0px"):n!==l&&(u.top="0px"),this._setTranslate([-c,0]);else if("end"===t){var h;c=this._getCoordsValue([c,0]),y_.css(u,((h={left:c.x,top:c.y})[b_.name]=y_.translate(0,0,i.useLayerHack),h)),i.$dummyAnchor&&i.$dummyAnchor.focus()}},e._setAxes=function(t,e,n){return this._axesInst[t]({flick:e},n)},e._setHint=function(){var t={willChange:"transform"};y_.css(this.$container,t),y_.css(this._conf.panel.$list,t)},e._getDataByDirection=function(t){var e=t.concat();return!this.options.horizontal&&e.reverse(),e},e._arrangePanelPosition=function(t,e){var n=t===this._conf.dirData[0];this._movePanelPosition(Math.abs(e||1),n)},e._getBasePositionIndex=function(){return Math.floor(this._conf.panel.count/2-.1)},e._bindEvents=function(t){var e=this.options,n=this.$wrapper,i=this._axesInst;t?(this._panInput=new g_(n,{inputType:e.inputType,thresholdAngle:e.thresholdAngle,scale:this._getDataByDirection([-1,0])}),i.on({hold:this._holdHandler.bind(this),change:this._changeHandler.bind(this),release:this._releaseHandler.bind(this),animationStart:this._animationStartHandler.bind(this),animationEnd:this._animationEndHandler.bind(this)}).connect(this._getDataByDirection(["flick",""]),this._panInput)):(this.disableInput(),i.off())},e._setAdaptiveHeight=function(t){var e,n,i=this._conf,r=i.indexToMove,o=0===r?this["get"+((t===u_.DIRECTION_LEFT?"Next":t===u_.DIRECTION_RIGHT&&"Prev")||"")+"Element"]():i.panel.$list[i.panel.currIndex+r],s=o.querySelector(":first-child");s&&((n=s.getAttribute(A_))||(e=o.children,0<(n=y_.outerHeight(1n?e.no=0:e.no<0&&(e.no=n)},e._setPointerEvents=function(t){var e,n=this.$container,i=y_.css(n,"pointerEvents");t&&t.holding&&t.inputEvent&&t.inputEvent.preventSystemEvent&&"none"!==i?e="none":t||"auto"===i||(e="auto"),e&&y_.css(n,{pointerEvents:e})},e._getCoordsValue=function(t){var e=this._getDataByDirection(t);return{x:y_.getUnitValue(e[0]),y:y_.getUnitValue(e[1])}},e._setTranslate=function(t){var e=this._getCoordsValue(t);this._setMoveStyle(this.$container,[e.x,e.y])},e._isMovable=function(){var t,e,n=this.options,i=this._axesInst,r=Math.abs(this._conf.touch.distance)>=n.threshold;return!(!n.circular&&r&&(t=i.axis.flick.range[1],(e=i.get().flick)<0||t=s.origCount||u===s.no||s.animating||o.touch.holding||(i=u-(a?s.no:l),n===u_.DIRECTION_RIGHT&&i<0?i+=s.origCount:n===u_.DIRECTION_LEFT&&0(r?s.count-(l+1):l)&&(r=0<(i+=(r?-1:1)*s.count)),this._setPanelNo(a?{no:u}:{no:u,index:u}),this._conf.indexToMove=i,this._setValueToMove(r),this._movePanelByPhase(a?"setBy":"setTo",s.size*(a?i:u),e)),this},e.resize=function(){var t,e=this._conf,n=this.options,i=e.panel,r=n.horizontal,o=n.useTranslate;if(!this.isPlaying()){var s;if(y_.isArray(n.previewPadding)&&"number"==typeof+n.previewPadding.join("")?(this._setPadding(n.previewPadding.concat()),t=i.size):r&&(t=i.size=y_.css(this.$wrapper,"width",!0)),y_.css(i.$list,((s={})[r?"width":"height"]=y_.getUnitValue(t),s)),n.adaptiveHeight){var a=this.$container.querySelectorAll("["+A_+"]");a.length&&(y_.toArray(a).forEach(function(t){return t.removeAttribute(A_)}),this._setAdaptiveHeight())}this._axesInst.axis.flick.range=[0,t*(i.count-1)],this._setAxes("setTo",t*i.index,0),o||(this._applyPanelsPos(),this._adjustContainerCss("end"))}return this},e.restore=function(t){var e,n=this._conf,i=n.panel,r=this._axesInst.get().flick,o=t;return r!==i.currIndex*i.size?(n.customEvent.restoreCall=!0,o=y_.getNumValue(o,this.options.duration),this._revertPanelNo(),e=i.size*i.index,this._triggerBeforeRestore({depaPos:r,destPos:e}),this._setAxes("setTo",e,o),o||(this._adjustContainerCss("end"),this._triggerRestore())):i.changed&&(this._revertPanelNo(),n.touch.distance=n.indexToMove=0),this},e.enableInput=function(){return this._panInput.enable(),this},e.disableInput=function(){return this._panInput.disable(),this},e.getStatus=function(t){var e=this._conf.panel,n=/((?:-webkit-)?transform|left|top|will-change|box-sizing|width):[^;]*;/g,i={panel:{index:e.index,no:e.no,currIndex:e.currIndex,currNo:e.currNo},$list:e.$list.map(function(t){return{style:t.style.cssText.replace(n,"").trim(),className:t.className,html:t.innerHTML}})};return t?JSON.stringify(i):i},e.setStatus=function(t){var e=this._conf.panel,n=this.options.adaptiveHeight,s="string"==typeof t?JSON.parse(t):t;if(s){for(var i in s.panel)i in e&&(e[i]=s.panel[i]);e.$list.forEach(function(t,e){var n=s.$list[e],i=n.style,r=n.className,o=n.html;i&&(t.style.cssText+=i),r&&(t.className=r),o&&(t.innerHTML=o)}),n&&this._setAdaptiveHeight()}},e.destroy=function(){var e=this,t=this._conf.origPanelStyle,n=t.wrapper,i=t.container,r=t.list;this._bindEvents(!1),this.off(),this._axesInst.destroy(),this._panInput.destroy();var o=this.$wrapper;o.setAttribute("class",n.className),o[n.style?"setAttribute":"removeAttribute"]("style",n.style);var s=this.$container,a=[].slice.call(s.children);t.container.className?(s.setAttribute("class",i.className),s[i.style?"setAttribute":"removeAttribute"]("style",i.style)):(a.forEach(function(t){return o.appendChild(t)}),s.parentNode.removeChild(s));for(var l,u=0;l=a[u];u++)if(u>r.length-1)l.parentNode.removeChild(l);else{var c=r[u].className,h=r[u].style;l[c?"setAttribute":"removeAttribute"]("class",c),l[h?"setAttribute":"removeAttribute"]("style",h)}for(var p in this.plugins.forEach(function(t){e.plugins[t].$componentWillUnmount()}),this)this[p]=null},e.plugin=function(t){var n=this;return t.forEach(function(e){0===n.plugins.filter(function(t){return t.constructor===e.constructor}).length&&n.plugins.push(e.$componentWillMount(n))}),this},t}((t=ph,new E_(t)).with(O_));return e.utils=y_,e.VERSION="2.4.4",e.consts={EVENTS:I_,TRANSFORM:b_,SUPPORT_WILLCHANGE:w_,IS_ANDROID2:x_},e.DIRECTION_NONE=u_.DIRECTION_NONE,e.DIRECTION_LEFT=u_.DIRECTION_LEFT,e.DIRECTION_RIGHT=u_.DIRECTION_RIGHT,e.DIRECTION_UP=u_.DIRECTION_UP,e.DIRECTION_DOWN=u_.DIRECTION_DOWN,e.DIRECTION_HORIZONTAL=u_.DIRECTION_HORIZONTAL,e.DIRECTION_VERTICAL=u_.DIRECTION_VERTICAL,e.DIRECTION_ALL=u_.DIRECTION_ALL,e}();(T_=S_||(S_={}))[T_.Next=2]="Next",T_[T_.Prev=4]="Prev";var D_=function(r){function t(t,e,n){void 0===n&&(n=null);var o=r.call(this)||this;o.elRoot=t,o._preventNextFlick=!1,o._preventPrevFlick=!1,o._inputDisabled=!1,o._padding=0,o.usePadding=!0,o._width=0,o.isPlugSet=!1,o.isDesktop=!1,o.onFlick=function(t){if(o.isEndOfPanel(t))return t.stop(),void Ci(function(){o._flick.restore(0)},0);var e=o._options.flickPanelPadding;if(t.holding)o.usePadding&&(o.padding=e);else{var n=t.direction===S_.Prev?-1:1;o.padding=Math.max(0,Math.min(20,e-e*t.distance*n/o._width))}o.trigger("flick",t)},o.isEndOfPanel=function(t){var e=t.distance,n=t.direction,i=o._preventPrevFlick&&(e<0&&n===S_.Prev||o.stopFlick),r=o._preventNextFlick&&(0e.bottom||(t.lefte.right))}function N_(t,e){if(!M_(t,e))return null;var n,i,r,o,s,a=(n=Math.max(0,e.top-t.top),i=Math.max(0,e.left-t.left),r=Math.min(0,e.bottom-t.bottom),o=Math.min(0,e.right-t.right),(s=new Hv).top=n,s.left=i,s.bottom=r,s.right=o,s);return 0p&&(this.transform.x+=u*c),s.height>f&&(this.transform.y+=l*h),this.updateTransform()},o.prototype.handlePanEnd=function(t,e){var n=R_(t,e),i=n[0],r=n[1];this.trigger("exitgestureEnd",{gestureEvent:e,translate:Math.max(0,wu(r,i).y)})},o.prototype.throwImage=function(t){var i=this,e=t.length;if(0!==e){var n=this._options,r=n.friction,o=n.boundingFriction,s=Pt(t).call(t,function(t,e){var n=t[0],i=t[1];return[n+e[0],i+e[1]]},[0,0]),a=s[0],l=s[1],u=F_(this.originRect,this.transform);(a/=e)>this._options.maxVelocityThrowing&&(a=this._options.maxVelocityThrowing),u.width<=this._viewport.width&&(a=0),(l/=e)>this._options.maxVelocityThrowing&&(l=this._options.maxVelocityThrowing),u.height<=this._viewport.height&&(l=0),Zv.start(),Ep.fromEvent(Zv.shared,"tick").takeUntil("stop").subscribe(function(t){i._state.isPlayingAnimation||(i._state.isPlayingAnimation=!0,i._state.timeAnimStarted=t.time);var e=(t.time-i._state.timeAnimStarted)/i._options.durationOnThrowing,n=Math.max(Math.min(1,1-e),0);M_(i.viewport,F_(i.originRect,i.transform))&&(a*=o,l*=o),a*=r,l*=r,a*=n,l*=n,i.transform.x+=a,i.transform.y+=l,i.updateTransform(),(Math.abs(a)<1&&Math.abs(l)<1||1<=e)&&Zv.stop()},function(){i._state.isPlayingAnimation=!1,i.alignAnimate()})}},o.prototype.handlePinch=function(t,e,n,i,r,o){void 0===o&&(o=this._options.elasticMod);var s=r.scale-n,a=this.scale+s<1,l=this.scale+s>this.maxScalePinch,u=a||l?o:1*e;this.scale+=u*s,this.handleImageDrag(t,i,r.center)},o.prototype.handlePinchEnd=function(){if(this.scale=Math.max(1,Math.min(this.maxScalePinch,this.scale)),1this.viewport.width||this.originRect.height+1>this.viewport.height},enumerable:!0,configurable:!0}),fh(o.prototype,"isVerticalImageNeedToFit",{get:function(){return this.isImageLargerThanViewport&&this.originRect.width=this.scaleRule.time3||this.handleScaleTransform(this.getViewportCenter(),this.getIncreaseScale())},o.prototype.decreaseScale=function(){1!==this.scale&&(1!==this.getDecreaseScale()?this.handleScaleTransform(this.getViewportCenter(),this.getDecreaseScale()):this.reset({silently:!1,alignAnimate:!1}))},o.prototype.setViewePortTarget=function(t){this.viewPortTarget=t},o.prototype.initScale=function(){this.handleScaleTransform(this.getViewportCenter(),1)},o.prototype.destroy=function(){this.hammer.destroy()},o.isIOS=la().isIOS,o.isDesktop=la().isDeskTop,o}(ph),H_=function(t,e){var n,o=e.getData(),s=o.eventProxy,a=t.close,l=t.resize;return(n={})[vv.KEYDOWN]=function(t){var e=o.itemModel,n=o.flicking,i=o.fullModeLayout,r=o.state.fullScreen;switch(gp(t),r&&i.showLayouts(),t.keyCode){case _p.ESC:a();break;case _p.LEFT:!e.isFirst()&&n.movePrev(0);break;case _p.UP:r&&!e.isFirst()&&n.movePrev(0);break;case _p.SPACE:case _p.RIGHT:!e.isLast()&&n.moveNext(0);break;case _p.DOWN:r&&!e.isLast()&&n.moveNext(0);break;case _p.PLUS:case _p.PLUS_E:i.scaleIncreaseAction();break;case _p.MIUNS:case _p.MINUS_E:i.scaleDecreaseAction();break;case _p.ENTER:s.trigger(Ft.TOGGLE_VIDEO_PLAY)}},n[vv.POPSTATE]=function(){a(null,!1)},n[vv.RESIZE]=function(){var t=o.hrImageIndexLayout,e=o.vrImageIndexLayout,n=o.flicking,i=o.elRoot,r=o.state;r.resizeTimer&&window.clearTimeout(r.resizeTimer),n.restore(0),r.resizeTimer=window.setTimeout(function(){l(!0)},100),t.updateVisibleWidth(),e.resizeIndexList(),pu(i,"opacity")<1&&a()},n},G_=function(e,r,t){var n,o=t.getData();return(n={})[Sv.DATA_CHANGE]=function(t){e(t)},n[Sv.INDEX_CHANGE]=function(t){var e=o.itemModel,n=o.wrapViewUnit,i=t.newIndex+1;n.update(i,e.length,e.getCurrent()),r(t.newIndex)},n};function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X_(e,n,t){var i=t.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(j_(i)));var r=!1;return{configurable:!0,get:function(){if(r||this===e.prototype||this.hasOwnProperty(n)||"function"!=typeof i)return i;var t=i.bind(this);return r=!0,Object.defineProperty(this,n,{configurable:!0,get:function(){return t},set:function(t){i=t,delete this[n]}}),r=!1,t},set:function(t){i=t}}}var U_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cs(e,t),e.prototype.initElementPosition=function(){var t,e=this.injectData.elItemList;Ps(t=Wl(e.querySelectorAll("img"))).call(t,function(t){t.dataset&&(t.dataset.top=t.getBoundingClientRect().top)})},e}(ph),W_=function(i){function t(t,e){void 0===t&&(t={});var n=i.call(this)||this;return n._options=t,n.eventProxy=e,n}return Cs(t,i),t.prototype.load=function(r,o,s,a){return Ns(this,void 0,void 0,function(){var e,n,i;return Rs(this,function(t){switch(t.label){case 0:e=r===o,this.panel=s,this.videoButtons=s.querySelector(Bt.VIDEO_BUTTONS),this.initPanel(a),e&&this.setLoadingEl(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.loadItem(r,o,a)];case 2:return n=t.sent(),this.trigger("itemLoaded"),e&&this.hideLoadingEl(),[2,n];case 3:return i=t.sent(),e&&this.hideLoadingEl(),this.trigger("itemLoaded"),[2,ch.reject(i)];case 4:return[2]}})})},t.prototype.hideLoadingEl=function(){hu(this.panel.querySelector(Bt.IMAGE_PANEL_LOADING))},t}(ph),q_=function(i){function c(t,e){void 0===t&&(t={});var n=i.call(this,t,e)||this;return n.afterLoadImage=function(t,e){var n=t.imageEl,i=t.isApplyFadeAction;t.isDisplayPanel&&(c.USE_EFFECT_OFF=!1),n.removeAttribute("width"),c.afterLoadAction(i,n),e(c.getAfterLoadData(t))},n._options=t,n}return Cs(c,i),c.prototype.initPanel=function(){var t=this.panel.querySelector(Bt.VIDEO_WRAP),e=this.panel.querySelector(Bt.IMAGE_WRAP),n=this.panel.querySelector(Bt.IMAGE_PANEL_LOADING);cu(e),hu(t),hu(n)},c.prototype.setLoadingEl=function(){cu(this.panel.querySelector(Bt.IMAGE_PANEL_LOADING))},c.prototype.loadItem=function(t,e,n){var i=this,r=n.imgSrc,o=this.panel.querySelector("img"),s=t===e,a=!0===s&&!0===this._options.useFadeEffect&&!1===c.USE_EFFECT_OFF,l={imageEl:o,data:n,itemModelIndex:e,isDisplayPanel:s,isApplyFadeAction:a},u=!1;try{u=decodeURIComponent(o.src)===decodeURIComponent(r)}catch(t){}return new ch(function(t,e){u?i.afterLoadImage(l,t):(o.setAttribute("data-src",r),i.setCss(o,a),wh(o).then(function(){i.afterLoadImage(l,t)}).catch(function(){o.src=Lt,i.afterLoadImage(l,e)}))})},c.prototype.setCss=function(t,e){var n={};e?n.opacity="0":n.display="none",n.transform="translate3d(0px, 0px, 0px) scale3d(1, 1, 1)",pu(t,n)},c.getAfterLoadData=function(t){var e=t.data;return{itemModelIndex:t.itemModelIndex,itemType:e.itemType}},c.afterLoadAction=function(t,e,n){t?(n&&pu(e,{opacity:"0"}),c.onFadeAction(e)):c.defaultImageLoadAction(e)},c.onFadeAction=function(t){Su(t,"__dummy1",{opacity:"1",display:"inline-block"},function(){t.style.transition=""})},c.defaultImageLoadAction=function(t){pu(t,{display:"inline-block",opacity:"1"})},c.USE_EFFECT_OFF=!1,c}(W_),Y_=function(){function t(t){this.injectData=t.getData(),this.eventProxy=this.injectData.eventProxy,this.fadeEffect=new Gv,this.switchPanelEffect=new jv}return t.prototype.gestureExitProcess=function(t,e,n,i){var r=this.injectData,o=r.image,s=r.elBase,a=r.ghostImageLayout,l=r.state,u={imageTimeout:r.options.loadImageTimeout,loadImage:o,baseElement:s,ghostImageLayout:a,opacity:0};this.fadeEffect.setup(u).fadeOutWithBaseElement(t,l.height,e,n,i)},t.prototype.guestureExitComplete=function(t,e,n){var i=this.injectData,r=i.image,o=i.elBase,s=i.ghostImageLayout,a={imageTimeout:i.options.loadImageTimeout,loadImage:r,baseElement:o,ghostImageLayout:s,opacity:0};this.fadeEffect.setup(a).hideToUp(t,e,n)},t.prototype.gestureHideProcess=function(t,e,n){var i=this.injectData,r=i.image,o=i.elBase,s=i.ghostImageLayout,a=i.state,l={imageTimeout:i.options.loadImageTimeout,loadImage:r,baseElement:o,ghostImageLayout:s,opacity:0};this.fadeEffect.setup(l).hideToDown(t,a.centerY,e.gestureDistance,n)},t.prototype.gestureSwipeVerticalBehavior=function(t){var e=this.injectData.hrImageIndexLayout,n=e.isVisiblity();n&&t?e.toggle(!1):n||t||e.toggle(!0)},t.prototype.buildIn=function(t,e,n,i){var r=this.injectData,o=r.image,s=r.elBase,a=r.ghostImageLayout,l=r.flicking,u=r.options,c=l.getElement().querySelector(Bt.IMAGE_PANEL_LOADING),h={imageTimeout:u.loadImageTimeout,isMobile:!1,loadImage:o,baseElement:s,ghostImageLayout:a,opacity:1};q_.USE_EFFECT_OFF=!0,this.fadeEffect.setup(h).fadeIn(t,c,0,n,i,e)},t.prototype.buildOut=function(t,e){var n=this.injectData,i=n.image,r=n.elBase,o=n.ghostImageLayout,s={imageTimeout:n.options.loadImageTimeout,isMobile:!1,loadImage:i,baseElement:r,ghostImageLayout:o,opacity:0};this.fadeEffect.setup(s).fadeOut(t,e)},t.prototype.cover=function(){var t=this.injectData,e=t.state,n={image:t.image,imageList:t.elItemList,useScrollSync:t.options.useScrollSync,cssProperty:{overflow:"hidden"}};this.switchPanelEffect.setup(n).on(e.scrollY)},t.prototype.uncover=function(t){var e=this.injectData,n=e.state,i=e.elItemList,r=e.options,o=r.elScrollBody,s={image:null,imageList:i,useScrollSync:r.useScrollSync,cssProperty:{overflow:"auto"}},a=o?o.scrollTop:n.scrollY;n.centerY=this.switchPanelEffect.setup(s).off(t,n.height,a)},t}(),K_=function(){function t(t){this.injectData=t.getData(),this.eventProxy=this.injectData.eventProxy,this.resizeShapeUnit=new Bv}return t.prototype.resizeModue=function(){var t=this.injectData,e=t.flicking,n=t.hrImageIndexLayout,i=t.vrImageIndexLayout;e&&e.resize(),n.refresh(),i.refresh()},t.prototype.afterResizeHeight=function(){this.injectData.gestureProxy.gesture.reset({silently:!1,alignAnimate:!1})},t.prototype.initStyleImagePanel=function(){var t=this.injectData,e=t.itemPanel,n=t.options;Bv.applyPanelStyle(n.useImgDownload,e)},t.prototype.resizeLayout=function(t,e){var n,i=this.injectData,r=i.elBase,o=i.browserInfo,s=iu(n=this.afterResizeHeight).call(n,this);r&&(this.calculateSize(),this.resizeModue(),e(),this.resizeShapeUnit.resizeViewer(r,t,o.isIOS,s))},t.prototype.openFullScreenViewer=function(){var f=this;return new ch(function(t){var e=f.injectData,n=e.gestureProxy,i=e.image,r=e.state,o=e.fullModeLayout,s=e.normalModeLayout,a=e.vrImageIndexLayout,l=e.hrImageIndexLayout,u=e.navigatorLayout,c=e.flicking,h=n.gesture,p=c.getElement().querySelector(Bt.IMAGE_WRAP);!1===a.isActiveLayout?o.hideSideMenu():(a.activate(),a.setFullScreen(!0)),u.togglePrevBtn({isShow:!1}),u.toggleNextBtn({isShow:!1}),l.unvisible(),o.openFullScreen(),s.deactivate(),r.fullScreen=!0,a.refresh(),i.style.transform=null,h.updateFullScreenMode(!0),h.setViewePortTarget(p),h.activate(),h.setTargetImage(i),t(!0),f.eventProxy.trigger(Ct.CHANGE_FULL_MODE)})},t.prototype.closeFullScreenViewer=function(){var h=this;return new ch(function(t){var e=h.injectData,n=e.gestureProxy,i=e.state,r=e.fullModeLayout,o=e.normalModeLayout,s=e.hrImageIndexLayout,a=e.vrImageIndexLayout,l=e.navigatorLayout,u=e.flicking,c=n.gesture;a.deactivate(),c.updateFullScreenMode(!1),c.reset(),c.deactivate(),i.fullScreen=!1,r.closeFullScreen(),o.activate(),o.awakePanelEvent(),l.togglePrevBtn({isShow:u.prevFlick,isOpacity:!0}),l.toggleNextBtn({isShow:u.nextFlick,isOpacity:!0}),s.activate(),s.visible(),a.setFullScreen(!1),t(!0),h.eventProxy.trigger(Ct.CHANGE_NORMAL_MODE)})},t.prototype.settingNormalMode=function(){var t=this.injectData,e=t.fullModeLayout;t.normalModeLayout.activate(),e.closeFullScreen()},t.prototype.toggleFullScreen=function(t,e){var n=this.injectData.state,i=n.fullScreen;(i=void 0!==e?e:!i)?(this.openFullScreenViewer(),t(!0)):(this.closeFullScreenViewer(),t(!1)),n.fullScreen=i},t.prototype.calculateSize=function(){var t=this.injectData.state;t.width=window.innerWidth,t.height=window.innerHeight},t}(),$_=function(n){function t(t){var e=n.call(this)||this;return e.di=t,e.injectData=e.di.getData(),e.eventProxy=e.injectData.eventProxy,e}return Cs(t,n),t.prototype.initialize=function(){this.initElementPosition(),this.initService(),this.initLayoutEventBind(),this.imageService.applyDominantColor()},t.prototype.getHrImageIndexEventSet=function(){var t,e,n,r=this,i=jh.HIDE,o=jh.CLICK,s=jh.TOGGLE,a=jh.HIDED,l=jh.NEXT_CLICK,u=jh.PREV_CLICK;return(n={})[jh.SHOW]=iu(t=this.onVisibleHrIndex).call(t,this),n[i]=iu(e=this.onVisibleHrIndex).call(e,this),n[a]=function(){},n[o]=function(t){var e=t.listIndex;r.loadIndexData(e),r.eventProxy.trigger(Ct.H_INDEX_CLICK,t)},n[l]=function(){r.eventProxy.trigger(Ct.H_INDEX_NEXT_MOVE)},n[u]=function(){r.eventProxy.trigger(Ct.H_INDEX_PREV_MOVE)},n[s]=function(){var t=r.injectData,e=t.flicking,n=t.gestureProxy,i=r.isImageIndexVisible();n.gesture.resetIdentityPosition(),e.setPanelPadding(i)},n},t.prototype.getVrImageIndexEventSet=function(){var t,e,n,i=this,r=ne,o=ie,s=se,a=ae,l=le;return(n={})[ee]=iu(t=this.onVisibleVrIndex).call(t,this),n[r]=iu(e=this.onVisibleVrIndex).call(e,this),n[o]=function(t){var e=t.listIndex;i.loadIndexData(e),i.eventProxy.trigger(Ct.V_INDEX_CLICK,t)},n[s]=function(){i.resizeLayout(!1)},n[a]=function(){var t=i.injectData,e=t.normalModeLayout;t.gestureProxy.gesture.deactivate(),e.freezePanelEvent()},n[l]=function(){var t=i.injectData,e=t.normalModeLayout;t.gestureProxy.gesture.activate(),e.awakePanelEvent()},n},t.prototype.onVisibleVrIndex=function(){var t=this.injectData.vrImageIndexLayout.isVisiblity()?Ct.V_INDEX_OPEN:Ct.V_INDEX_CLOSE;this.eventProxy.trigger(t)},t.prototype.onVisibleHrIndex=function(){var t=this.injectData,e=t.normalModeLayout,n=t.hrImageIndexLayout,i=this.isImageIndexVisible(),r=i?Ct.H_INDEX_OPEN:Ct.H_INDEX_CLOSE;i?(n.moveScrollPage(),e.applyIndexMode()):e.applyViewerMode(),this.eventProxy.trigger(r)},t.prototype.initLayoutEventBind=function(){var t,a=this,e=Kl({},this.getHrImageIndexEventSet(),this.getVrImageIndexEventSet(),((t={})[Nh.NAVI_PREV]=function(){var t=a.injectData.flicking;t.prevFlick&&t.movePrev(0),a.eventProxy.trigger(Ct.PREV_MOVE)},t[Nh.NAVI_NEXT]=function(){var t=a.injectData.flicking;t.nextFlick&&t.moveNext(0),a.eventProxy.trigger(Ct.NEXT_MOVE)},t[Nh.MODE_PICTURE]=function(){var t=a.injectData.hrImageIndexLayout;a.isImageIndexVisible()&&t.hide()},t[Nh.TOGGLE_FULL_VIEW]=function(){a.toggleFullScreen()},t[Nh.DOWN_LOAD_IMAGE]=function(){!function(t){var e,n=t.split("/").pop().split("?").shift();if(Di.ActiveXObject||"ActiveXObject"in Di){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){var t=new Blob([i.response],{type:"application/octet-stream"});navigator.msSaveOrOpenBlob(t,n)},i.send()}else(e=Mi.createElement("a")).style.display="none",e.setAttribute("href",t),e.setAttribute("download",n),Mi.body.appendChild(e),e.click(),Ci(function(){Mi.body.removeChild(e)},100)}(a.injectData.itemModel.getCurrent().imgSrc)},t[Nh.SCALE_INCREASE]=function(){a.injectData.gestureProxy.gesture.increaseScale()},t[Nh.SCALE_DECREASE]=function(){a.injectData.gestureProxy.gesture.decreaseScale()},t[Nh.SCALE_INIT]=function(){var t=a.injectData,e=t.gestureProxy,n=t.image;e.gesture.setTargetImage(n)},t[Nh.TOGGLE_SIDE_INDEX]=function(t){var e=a.injectData,n=e.vrImageIndexLayout,i=e.itemModel,r=t.isOpen,o=t.isAnimation,s=i.getComputedIndex();n.toggle(r,o,s)},t[Nh.FULL_MODE_MOUSE_MOVE]=function(t){var e=a.injectData,n=e.navigatorLayout,i=e.flicking;switch(t.mouseArea){case Dh.LEFT:n.togglePrevBtn({isShow:i.prevFlick}),n.toggleNextBtn({isShow:!1});break;case Dh.RIGHT:n.togglePrevBtn({isShow:!1}),n.toggleNextBtn({isShow:i.nextFlick})}},t[Jt.REFRESH]=function(){a.imageService.loadPanelItem()},t));this.eventProxy.on(e)},t.prototype.initService=function(){this.imageService=new ng(this.di),this.shapeService=new K_(this.di),this.animationService=new Y_(this.di)},t.prototype.buildIn=function(t,e){var n=this,i=this.injectData,r=i.image,o=i.itemPanel;this.animationService.buildIn(t,function(){n.imageService.failItemLoad(Rt.IMAGE,{loadImage:r,currentImage:r,itemPanel:o})},null,e)},t.prototype.buildOut=function(t,e){this.animationService.buildOut(t,e)},t.prototype.showView=function(t,e){void 0===e&&(e=!0);var n=this.injectData,i=n.state,r=n.elBase,o=n.options,s=!1===e,a=n.flicking.getElement().querySelector(Bt.IMAGE_WRAP).querySelector("img");this.di.regist({image:a}),pu(a,{visibility:"hidden"}),pu(document.body,{overflow:"hidden"}),i.scrollY=Eu().scrollTop,this.hideExceptionLayout(),pu(r,{visibility:"visible",display:Zl(o,"styleOption.canvasDisplay")||"block",opacity:s?"1":"0",top:i.scrollY+"px"}),this.loadIndexData(t),this.resizeLayout(!1),this.setDisplayView()},t.prototype.setDisplayView=function(){var t=this.injectData,e=t.normalModeLayout,n=t.fullModeLayout,i=t.options,r=t.hrImageIndexLayout,o=!n.isActiveLayout||!!i.useOpenFullScreen,s=!i.useImgDownload;e.hideButton({fullMode:o,useDownload:s}),r.visible(),r.refresh(),i.useOpenFullScreen?this.toggleFullScreen(!0):this.shapeService.settingNormalMode()},t.prototype.afterHide=function(t,e){var n=this.injectData,i=n.elItemList,r=n.elBase,o=n.state,s=n.image,a=n.browserInfo,l=n.options,u=n.itemLoader,c=l.elScrollBody;pu(t,{visibility:"visible"}),pu(i,{transform:null}),pu(r,{transform:null,display:"none",opacity:0}),pu(document.body,{overflow:"auto"}),c?c.scrollTop=o.centerY:window.scrollTo(0,o.centerY),s.src=Lt,this.eventProxy.trigger(Nh.HIDE,e),a.isNaverApp&&(location.href=Ot),u.reset(),o.isPlaying=!1},t.prototype.hideView=function(t,e){var n,i=iu(n=this.afterHide).call(n,this,t,e),r=0!==e.gestureDistance,o=this.injectData,s=o.ghostImageLayout,a=o.state;if(r){var l=s.getElement();this.animationService.gestureHideProcess(l,e,function(){s.hide(),i()})}else i();!0===a.fullScreen&&this.toggleFullScreen(!1)},t.prototype.toggleFullScreen=function(t){this.shapeService.toggleFullScreen(this.onChangeFullScreen,t)},t.prototype.onChangeFullScreen=function(){var t=this;Zv.shared.once({tick:function(){t.resizeLayout(!1)}}),Zv.start()},t.prototype.resizeLayout=function(t){var e=this;this.shapeService.resizeLayout(t,function(){e.imageService.shrinkImageLayout()})},t.prototype.activate=function(){var t=this.injectData,e=t.hrImageIndexLayout,n=t.normalModeLayout,i=t.wrapViewUnit;this.cover(),n.activate(),i.activate(),e.activate()},t.prototype.deactivate=function(){var t=this.injectData,e=t.hrImageIndexLayout,n=t.vrImageIndexLayout,i=t.exceptionLayout,r=t.wrapViewUnit,o=t.toastLayout,s=t.normalModeLayout,a=t.fullModeLayout;r.deactivate(),e.deactivate(),n.deactivate(),i.hide(),s.deactivate(),a.deactivate(),o.hide()},t.prototype.updateDataList=function(t){var e=this.injectData,n=e.navigatorLayout,i=e.fullModeLayout,r=e.hrImageIndexLayout,o=e.vrImageIndexLayout,s=1<=(t?t.length:0);n.setActiveToggle(s),n.togglePrevBtn({isShow:s}),n.toggleNextBtn({isShow:s}),i.setActivateAreaEvent(s),r.itemDataList=t,o.itemDataList=t},t.prototype.loadIndexData=function(t){var e=this.injectData,n=e.itemModel,i=e.image,r=e.gestureProxy,o=n.getNotCumputedIndex(),s=r.gesture;if(t!==o){var a="number"==typeof t?t:o;this.imageService.loadPanelItem(a,function(){s.setTargetImage(i)})}},t.prototype.getImgFromList=function(t){return this.imageService.getImgFromList(t)},t.prototype.cover=function(){this.animationService.cover()},t.prototype.uncover=function(){var t=this.imageService.getImgFromList();this.animationService.uncover(t)},t.prototype.isImageIndexVisible=function(){return this.injectData.hrImageIndexLayout.isVisiblity()},t.prototype.isExceptionVisible=function(){return this.injectData.exceptionLayout.isVisiblity()},t.prototype.hideExceptionLayout=function(){this.injectData.exceptionLayout.hide()},t.prototype.hideImageIndexLayout=function(){return this.injectData.hrImageIndexLayout.hide()},t.prototype.destroy=function(){this.injectData.layoutPool.destroy()},Ms([X_],t.prototype,"onChangeFullScreen",null),t}(U_),Z_=function(e){function t(t){var c=e.call(this)||this;return c.isZoomed=!1,c._beforeFlickStart=function(t){var e=c.injectData.itemModel,n=t.direction;n===S_.Next?e.moveNext():n===S_.Prev&&e.movePrev()},c._onFlick=function(){var t=c.injectData.state;t.resizeTimer&&window.clearTimeout(t.resizeTimer)},c._onFlickEnd=function(t){var e=c.injectData,n=e.hrImageIndexLayout,i=e.vrImageIndexLayout,r=e.itemModel,o=e.flicking,s=e.state,a=o.getElement().querySelector(Bt.IMAGE_WRAP),l=a.querySelector("img");if(!1!==s.open){c.gestureService.setViewePortTarget(a),c.gestureService.setTargetImage(l),c.changeActivePanel(),c.di.regist({image:l}),c.imageService.loadPanelItem();var u=r.getComputedIndex();c.eventProxy.trigger(Ct.FLICK,{direction:t.dirctionStr,index:u}),n.currentIndex=u,i.currentIndex=u}},c.onPinchComplete=function(){c.imageService.changeThumbToOrgImg(),c.isZoomed||(c.isZoomed=!0,c.eventProxy.trigger(Ct.ZOOM_ENTER))},c.onResetGesture=function(){var t=c.injectData,e=t.flicking,n=t.state,i=t.fullModeLayout,r=t.normalModeLayout;e.enableInput(),n.resizeTimer&&window.clearTimeout(n.resizeTimer),i.updateScale({percent:100,isMax:!1,isMin:!0}),r.awakePanelEvent()},c.onLockFlicking=function(){c.injectData.flicking.disableInput(!0)},c.onUnlockFlicking=function(){c.injectData.flicking.enableInput()},c.changeScale=function(t){var e=c.injectData,n=e.fullModeLayout,i=e.normalModeLayout,r=e.image,o=t.scale,s=o===t.scaleRule.time3,a=1===o;c.isZoomed=!1===a;var l={percent:100*o,isMax:s,isMin:a};!1===a?c.imageService.changeThumbToOrgImg():r.removeAttribute("width"),c.isZoomed?i.freezePanelEvent():i.awakePanelEvent(),n.updateScale(l),a?c.eventProxy.trigger(Ct.ZOOM_MIN):a?c.eventProxy.trigger(Ct.ZOOM_MAX):c.eventProxy.trigger(Ct.ZOOM_SCALE,{scale:o})},c.di=t,c.injectData=c.di.getData(),c.eventProxy=c.injectData.eventProxy,c.state=c.injectData.state,c}return Cs(t,e),t.prototype.initialize=function(){this.initService(),this.initFlicking(),this.initGesture()},t.prototype.initService=function(){this.shapeService=new K_(this.di),this.imageService=new ng(this.di),this.animationService=new Y_(this.di)},t.prototype.initFlicking=function(){var t,e,n,i=this.injectData.flicking;i.on({beforeFlickStart:iu(t=this._beforeFlickStart).call(t,this),flick:iu(e=this._onFlick).call(e,this),flickEnd:iu(n=this._onFlickEnd).call(n,this)}),i.disableInput(),this.shapeService.initStyleImagePanel(),this.changeActivePanel()},t.prototype.changeActivePanel=function(){var t=this.injectData.flicking.panel,e=t.current,n=t.prev,i=t.next;fu(e,Nt.FLICK_PANEL_ACTIVE,!0),fu(n,Nt.FLICK_PANEL_ACTIVE,!1),fu(i,Nt.FLICK_PANEL_ACTIVE,!1)},t.prototype.initGesture=function(){var t,e,n,i,r,o,s,a=this.injectData.itemPanel,l=new B_(a,{viewportWidth:this.state.width,viewportHeight:this.state.height,deviceType:St.DESKTOP});l.on({reset:iu(t=this.onResetGesture).call(t,this),pinchstart:iu(e=this.onPinchStart).call(e,this),pinchidentity:iu(n=this.onPinchIdentity).call(n,this),pinchcomplete:iu(i=this.onPinchComplete).call(i,this),lockFlicking:iu(r=this.onLockFlicking).call(r,this),unlockFlicking:iu(o=this.onUnlockFlicking).call(o,this),changeScale:iu(s=this.changeScale).call(s,this)}),l.activate(),this.gestureService=l},t.prototype.onPinchStart=function(t){var e=this.injectData,n=e.hrImageIndexLayout,i=e.flicking,r=t.scale<1;if(n.isVisiblity())return!r&&n.hide(),void t.stop();i.disableInput()},t.prototype.onPinchIdentity=function(){this.injectData.flicking.enableInput(),this.isZoomed&&(this.isZoomed=!1,this.eventProxy.trigger(Ct.ZOOM_LEAVE))},t.prototype.getGestureProxy=function(){return{setVerticalPanTracking:function(){},gesture:this.gestureService}},t.prototype.activate=function(){this.injectData.flicking.enableInput(),this.gestureService.activate()},t.prototype.deactivate=function(){this.injectData.flicking.resetPanel(),this.gestureService.deactivate()},t.prototype.destroy=function(){var t=this.injectData.flicking;this.gestureService.destroy(),t.destroy()},t}(ph),Q_=function(o){function t(t,e,n,i){var r=o.call(this)||this;return r.customLayoutPool={},r.elBase=t,r.eventProxy=e,r.defaultLayoutPool=n,r.mergePool(),r.createInstance(),r.initalizeLayout(t,i),r.collectedEvent(),r}return Cs(t,o),t.prototype.createInstance=function(){var i=this.defaultLayoutPool,r=this.customLayoutPool;ru(i,function(t,e){var n=new t;n instanceof Wd||n instanceof jd?r[n.getLayoutId()]=n:i[e]=n})},t.prototype.mergePool=function(){var t=this.defaultLayoutPool,e=this.customLayoutPool;this.layoutPool=Kl(t,e)},t.prototype.initalizeLayout=function(n,i){var r,t=this.defaultLayoutPool,o=this.eventProxy;ru(t,function(t,e){r=Kl({},i[e],{eventProxy:o}),t.initialize(n,r),t.defineCustomEvent()})},t.prototype.collectedEvent=function(){var e=this;ru(Kl(this.layoutPool,this.customLayoutPool),function(t){e.eventProxy.collectAttachedEvent(t)})},t.prototype.getLayoutInstance=function(t){var e=this,n=Ul(t);return ql(t)?Pt(t).call(t,function(t){return e.layoutPool[t]},[]):"string"===n?this.layoutPool[t]:this.layoutPool},t.prototype.addCustomLayout=function(t){t.initialize(this.elBase),this.customLayoutPool[t.getLayoutId()]=t,this.eventProxy.collectAttachedEvent(t)},t.prototype.removeCustomLayout=function(t){var e=this.customLayoutPool[t];delete this.customLayoutPool[t],e.deactivate(),e=null},t.prototype.getCustomLayoutsProxy=function(){var i=this.customLayoutPool,n=function(e,n){var t;Ps(t=ht(i)).call(t,function(t){i[t][e]&&i[t][e](n)})};return{deactivate:function(){n("deactivate")},activate:function(){n("activate")},hide:function(){n("hide")},show:function(){n("show")},refresh:function(t){n("refresh",t)},toggle:function(){n("toggle")},listenViewerEvent:function(t,e){n("listenViewerEvent",{eventName:t,eventData:e})}}},t.prototype.addLayout=function(t){var e=this;if(ql(t)){var n=t;Ps(n).call(n,function(t){e.addCustomLayout(t)})}else this.addCustomLayout(t)},t.prototype.removeLayout=function(t){var e=this;if(ql(t)){var n=t;Ps(n).call(n,function(t){e.removeCustomLayout(t)})}else this.removeCustomLayout(t)},t.prototype.destroy=function(){ru(this.layoutPool,function(t){t.destroy()})},t}(ph),J_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cs(e,t),e.prototype.collectAttachedEvent=function(t){var n=this,e=t.getEventMap();null!==e&&ru(e,function(e){t.on(e,function(t){n.trigger(e,t)})})},e.ATTACH_EVENT={},e.PUBLISH_EVENT={},e}(ph),ty=function(){function t(t){this.injectData=t.getData()}return t.prototype.resize=function(){var t=this.injectData,e=t.captionLayout,n=t.hrImageIndexLayout;e.resize(),n.refresh()},t.prototype.update=function(t,e,n){var i=this.injectData,r=i.captionLayout,o=i.linkLayout,s=i.indexIndicatorLayout,a=i.navigatorLayout,l=i.customLayoutsProxy,u=i.state.fullScreen;if(-1