boka-human-cliend-v3 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
*
|
|
8
8
|
* Date: 2024-11-24T04:32:14.526Z
|
|
9
|
-
*/.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.boka-human-v2[data-v-
|
|
9
|
+
*/.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.boka-human-v2[data-v-594c3975]{overflow:hidden;position:fixed;top:0;left:0;z-index:999}.humanEnterIcon[data-v-594c3975]{position:fixed;z-index:999;background-color:#0074ff;border-radius:50%;width:40px;height:40px;text-align:center;padding:8px;box-sizing:border-box;right:50px;bottom:50px}.humanEnterIcon>svg[data-v-594c3975]{width:100%;height:100%;fill:#fff}.humanEnterIcon.unreadCount[data-v-594c3975]{background-color:red;color:#fff;line-height:24px;font-size:14px;font-weight:700}.humanMainView[data-v-594c3975]{position:fixed;min-width:420px;min-height:400px;height:80vh;border:1px solid #ccc}.humanMainView .humanMainHeader[data-v-594c3975]{width:100%;height:40px;text-align:center;cursor:move;font-size:0;box-sizing:border-box;border-bottom:1px solid #f5f5f5;position:relative;z-index:999;background:#fff}.humanMainView .humanMainHeader .humanMainHeaderRight[data-v-594c3975]{text-align:right}.humanMainView .humanMainHeader .humanMainHeaderLeft[data-v-594c3975],.humanMainView .humanMainHeader .humanMainHeaderRight[data-v-594c3975]{width:20%;display:inline-block;vertical-align:middle;padding:0 10px;line-height:40px;font-size:14px;box-sizing:border-box}.humanMainView .humanMainHeader .humanMainHeaderCenter[data-v-594c3975]{width:60%;display:inline-block;vertical-align:middle;font-size:16px;box-sizing:border-box}.humanMainView>iframe[data-v-594c3975]{width:100%;height:calc(100% - 40px)}
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
*
|
|
8
8
|
* Date: 2024-11-24T04:32:19.116Z
|
|
9
|
-
*/function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function It(n,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,Nt(e.key),e)}}function re(n,t,i){return t&&It(n.prototype,t),i&&It(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function se(n,t,i){return(t=Nt(t))in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function xt(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),i.push.apply(i,e)}return i}function gt(n){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?xt(Object(i),!0).forEach(function(e){se(n,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):xt(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function oe(n,t){if(typeof n!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var e=i.call(n,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function Nt(n){var t=oe(n,"string");return typeof t=="symbol"?t:t+""}function pt(n){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(n)}var At={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},le='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ot=typeof window<"u"&&typeof window.document<"u",M=ot?window:{},q=ot&&M.document.documentElement?"ontouchstart"in M.document.documentElement:!1,bt=ot?"PointerEvent"in M:!1,m="viewer",lt="move",kt="switch",et="zoom",ht="".concat(m,"-active"),he="".concat(m,"-close"),ut="".concat(m,"-fade"),wt="".concat(m,"-fixed"),ue="".concat(m,"-fullscreen"),_t="".concat(m,"-fullscreen-exit"),Y="".concat(m,"-hide"),ce="".concat(m,"-hide-md-down"),fe="".concat(m,"-hide-sm-down"),de="".concat(m,"-hide-xs-down"),O="".concat(m,"-in"),it="".concat(m,"-invisible"),j="".concat(m,"-loading"),me="".concat(m,"-move"),Ot="".concat(m,"-open"),B="".concat(m,"-show"),C="".concat(m,"-transition"),U="click",yt="dblclick",zt="dragstart",Lt="focusin",Vt="keydown",z="load",W="error",ve=q?"touchend touchcancel":"mouseup",ge=q?"touchmove":"mousemove",pe=q?"touchstart":"mousedown",Rt=bt?"pointerdown":pe,Mt=bt?"pointermove":ge,Ft=bt?"pointerup pointercancel":ve,Pt="resize",L="transitionend",Yt="wheel",Wt="ready",Ht="show",Xt="shown",qt="hide",jt="hidden",Bt="view",nt="viewed",Ut="move",Kt="moved",Zt="rotate",Gt="rotated",$t="scale",Jt="scaled",Qt="zoom",te="zoomed",ee="play",ie="stop",ct="".concat(m,"Action"),Et=/\s\s*/,ft=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function at(n){return typeof n=="string"}var be=Number.isNaN||M.isNaN;function T(n){return typeof n=="number"&&!be(n)}function K(n){return typeof n>"u"}function Z(n){return pt(n)==="object"&&n!==null}var we=Object.prototype.hasOwnProperty;function G(n){if(!Z(n))return!1;try{var t=n.constructor,i=t.prototype;return t&&i&&we.call(i,"isPrototypeOf")}catch{return!1}}function p(n){return typeof n=="function"}function y(n,t){if(n&&p(t))if(Array.isArray(n)||T(n.length)){var i=n.length,e;for(e=0;e<i&&t.call(n,n[e],e,n)!==!1;e+=1);}else Z(n)&&Object.keys(n).forEach(function(a){t.call(n,n[a],a,n)});return n}var _=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),a=1;a<i;a++)e[a-1]=arguments[a];return Z(t)&&e.length>0&&e.forEach(function(r){Z(r)&&Object.keys(r).forEach(function(s){t[s]=r[s]})}),t},ye=/^(?:width|height|left|top|marginLeft|marginTop)$/;function V(n,t){var i=n.style;y(t,function(e,a){ye.test(a)&&T(e)&&(e+="px"),i[a]=e})}function Ee(n){return at(n)?n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):n}function $(n,t){return!n||!t?!1:n.classList?n.classList.contains(t):n.className.indexOf(t)>-1}function f(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(e){f(e,t)});return}if(n.classList){n.classList.add(t);return}var i=n.className.trim();i?i.indexOf(t)<0&&(n.className="".concat(i," ").concat(t)):n.className=t}}function g(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(i){g(i,t)});return}if(n.classList){n.classList.remove(t);return}n.className.indexOf(t)>=0&&(n.className=n.className.replace(t,""))}}function rt(n,t,i){if(t){if(T(n.length)){y(n,function(e){rt(e,t,i)});return}i?f(n,t):g(n,t)}}var Te=/([a-z\d])([A-Z])/g;function Tt(n){return n.replace(Te,"$1-$2").toLowerCase()}function J(n,t){return Z(n[t])?n[t]:n.dataset?n.dataset[t]:n.getAttribute("data-".concat(Tt(t)))}function St(n,t,i){Z(i)?n[t]=i:n.dataset?n.dataset[t]=i:n.setAttribute("data-".concat(Tt(t)),i)}var ne=(function(){var n=!1;if(ot){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return n=!0,t},set:function(r){t=r}});M.addEventListener("test",i,e),M.removeEventListener("test",i,e)}return n})();function b(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Et).forEach(function(r){if(!ne){var s=n.listeners;s&&s[r]&&s[r][i]&&(a=s[r][i],delete s[r][i],Object.keys(s[r]).length===0&&delete s[r],Object.keys(s).length===0&&delete n.listeners)}n.removeEventListener(r,a,e)})}function d(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Et).forEach(function(r){if(e.once&&!ne){var s=n.listeners,o=s===void 0?{}:s;a=function(){delete o[r][i],n.removeEventListener(r,a,e);for(var h=arguments.length,l=new Array(h),c=0;c<h;c++)l[c]=arguments[c];i.apply(n,l)},o[r]||(o[r]={}),o[r][i]&&n.removeEventListener(r,o[r][i],e),o[r][i]=a,n.listeners=o}n.addEventListener(r,a,e)})}function I(n,t,i,e){var a;return p(Event)&&p(CustomEvent)?a=new CustomEvent(t,gt({bubbles:!0,cancelable:!0,detail:i},e)):(a=document.createEvent("CustomEvent"),a.initCustomEvent(t,!0,!0,i)),n.dispatchEvent(a)}function Se(n){var t=n.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function dt(n){var t=n.rotate,i=n.scaleX,e=n.scaleY,a=n.translateX,r=n.translateY,s=[];T(a)&&a!==0&&s.push("translateX(".concat(a,"px)")),T(r)&&r!==0&&s.push("translateY(".concat(r,"px)")),T(t)&&t!==0&&s.push("rotate(".concat(t,"deg)")),T(i)&&i!==1&&s.push("scaleX(".concat(i,")")),T(e)&&e!==1&&s.push("scaleY(".concat(e,")"));var o=s.length?s.join(" "):"none";return{WebkitTransform:o,msTransform:o,transform:o}}function Ce(n){return at(n)?decodeURIComponent(n.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Ct=M.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(M.navigator.userAgent);function ae(n,t,i){var e=document.createElement("img");if(n.naturalWidth&&!Ct)return i(n.naturalWidth,n.naturalHeight),e;var a=document.body||document.documentElement;return e.onload=function(){i(e.width,e.height),Ct||a.removeChild(e)},y(t.inheritedAttributes,function(r){var s=n.getAttribute(r);s!==null&&e.setAttribute(r,s)}),e.src=n.src,Ct||(e.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(e)),e}function mt(n){switch(n){case 2:return de;case 3:return fe;case 4:return ce;default:return""}}function De(n){var t=gt({},n),i=[];return y(n,function(e,a){delete t[a],y(t,function(r){var s=Math.abs(e.startX-r.startX),o=Math.abs(e.startY-r.startY),u=Math.abs(e.endX-r.endX),h=Math.abs(e.endY-r.endY),l=Math.sqrt(s*s+o*o),c=Math.sqrt(u*u+h*h),v=(c-l)/l;i.push(v)})}),i.sort(function(e,a){return Math.abs(e)<Math.abs(a)}),i[0]}function vt(n,t){var i=n.pageX,e=n.pageY,a={endX:i,endY:e};return t?a:gt({timeStamp:Date.now(),startX:i,startY:e},a)}function Ie(n){var t=0,i=0,e=0;return y(n,function(a){var r=a.startX,s=a.startY;t+=r,i+=s,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}var xe={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,i=t.body||t.documentElement;this.body=i,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=i.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(i).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,i=this.parent,e;t.inline&&(e={width:Math.max(i.offsetWidth,t.minWidth),height:Math.max(i.offsetHeight,t.minHeight)},this.parentData=e),(this.fulled||!e)&&(e=this.containerData),this.viewerData=_({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&V(this.viewer,this.viewerData)},initList:function(){var t=this,i=this.element,e=this.options,a=this.list,r=[];a.innerHTML="",y(this.images,function(s,o){var u=s.src,h=s.alt||Ce(u),l=t.getImageURL(s);if(u||l){var c=document.createElement("li"),v=document.createElement("img");y(e.inheritedAttributes,function(x){var D=s.getAttribute(x);D!==null&&v.setAttribute(x,D)}),e.navbar&&(v.src=u||l),v.alt=h,v.setAttribute("data-original-url",l||u),c.setAttribute("data-index",o),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),e.keyboard&&c.setAttribute("tabindex",0),c.appendChild(v),a.appendChild(c),r.push(c)}}),this.items=r,y(r,function(s){var o=s.firstElementChild,u,h;St(o,"filled",!0),e.loading&&f(s,j),d(o,z,u=function(c){b(o,W,h),e.loading&&g(s,j),t.loadImage(c)},{once:!0}),d(o,W,h=function(){b(o,z,u),e.loading&&g(s,j)},{once:!0})}),e.transition&&d(i,nt,function(){f(a,C)},{once:!0})},renderList:function(){var t=this.index,i=this.items[t];if(i){var e=i.nextElementSibling,a=parseInt(window.getComputedStyle(e||i).marginLeft,10),r=i.offsetWidth,s=r+a;V(this.list,_({width:s*this.length-a},dt({translateX:(this.viewerData.width-r)/2-s*t})))}},resetList:function(){var t=this.list;t.innerHTML="",g(t,C),V(t,dt({translateX:0}))},initImage:function(t){var i=this,e=this.options,a=this.image,r=this.viewerData,s=this.footer.offsetHeight,o=r.width,u=Math.max(r.height-s,s),h=this.imageData||{},l;this.imageInitializing={abort:function(){l.onload=null}},l=ae(a,e,function(c,v){var x=c/v,D=Math.max(0,Math.min(1,e.initialCoverage)),S=o,N=u;i.imageInitializing=!1,u*x>o?N=o/x:S=u*x,D=T(D)?D:.9,S=Math.min(S*D,c),N=Math.min(N*D,v);var A=(o-S)/2,k=(u-N)/2,E={left:A,top:k,x:A,y:k,width:S,height:N,oldRatio:1,ratio:S/c,aspectRatio:x,naturalWidth:c,naturalHeight:v},F=_({},E);e.rotatable&&(E.rotate=h.rotate||0,F.rotate=0),e.scalable&&(E.scaleX=h.scaleX||1,E.scaleY=h.scaleY||1,F.scaleX=1,F.scaleY=1),i.imageData=E,i.initialImageData=F,t&&t()})},renderImage:function(t){var i=this,e=this.image,a=this.imageData;if(V(e,_({width:a.width,height:a.height,marginLeft:a.x,marginTop:a.y},dt(a))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&$(e,C)){var r=function(){i.imageRendering=!1,t()};this.imageRendering={abort:function(){b(e,L,r)}},d(e,L,r,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},Ne={bind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;d(i,U,this.onClick=this.click.bind(this)),d(i,zt,this.onDragStart=this.dragstart.bind(this)),d(e,Rt,this.onPointerDown=this.pointerdown.bind(this)),d(a,Mt,this.onPointerMove=this.pointermove.bind(this)),d(a,Ft,this.onPointerUp=this.pointerup.bind(this)),d(a,Vt,this.onKeyDown=this.keydown.bind(this)),d(window,Pt,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&d(i,Yt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&d(e,yt,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;b(i,U,this.onClick),b(i,zt,this.onDragStart),b(e,Rt,this.onPointerDown),b(a,Mt,this.onPointerMove),b(a,Ft,this.onPointerUp),b(a,Vt,this.onKeyDown),b(window,Pt,this.onResize),t.zoomable&&t.zoomOnWheel&&b(i,Yt,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&b(e,yt,this.onDblclick)}},Ae={click:function(t){var i=this.options,e=this.imageData,a=t.target,r=J(a,ct);switch(!r&&a.localName==="img"&&a.parentElement.localName==="li"&&(a=a.parentElement,r=J(a,ct)),q&&t.isTrusted&&a===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){case"mix":this.played?this.stop():i.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(J(a,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(i.loop);break;case"play":this.play(i.fullscreen);break;case"next":this.next(i.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-e.scaleX||-1);break;case"flip-vertical":this.scaleY(-e.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(q&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var i=this.element,e=this.options,a=this.image,r=this.index,s=this.viewerData;g(a,it),e.loading&&g(this.canvas,j),a.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){rt(a,me,e.movable),rt(a,C,e.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,p(e.viewed)&&d(i,nt,e.viewed,{once:!0}),I(i,nt,{originalImage:t.images[r],index:r,image:a},{cancelable:!1})})})},loadImage:function(t){var i=t.target,e=i.parentNode,a=e.offsetWidth||30,r=e.offsetHeight||50,s=!!J(i,"filled");ae(i,this.options,function(o,u){var h=o/u,l=a,c=r;r*h>a?s?l=r*h:c=a/h:s?c=a/h:l=r*h,V(i,_({width:l,height:c},dt({translateX:(a-l)/2,translateY:(r-c)/2})))})},keydown:function(t){var i=this.options;if(i.keyboard){var e=t.keyCode||t.which||t.charCode;switch(e){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(e){case 27:this.played?this.stop():i.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(i.loop);break;case 38:t.preventDefault(),this.zoom(i.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(i.loop);break;case 40:t.preventDefault(),this.zoom(-i.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var i=this.options,e=this.pointers,a=t.buttons,r=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(T(a)&&a!==1||T(r)&&r!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?y(t.changedTouches,function(o){e[o.identifier]=vt(o)}):e[t.pointerId||0]=vt(t);var s=i.movable?lt:!1;i.zoomOnTouch&&i.zoomable&&Object.keys(e).length>1?s=et:i.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(s=kt),i.transition&&(s===lt||s===et)&&g(this.image,C),this.action=s}},pointermove:function(t){var i=this.pointers,e=this.action;!this.viewed||!e||(t.preventDefault(),t.changedTouches?y(t.changedTouches,function(a){_(i[a.identifier]||{},vt(a,!0))}):_(i[t.pointerId||0]||{},vt(t,!0)),this.change(t))},pointerup:function(t){var i=this,e=this.options,a=this.action,r=this.pointers,s;t.changedTouches?y(t.changedTouches,function(o){s=r[o.identifier],delete r[o.identifier]}):(s=r[t.pointerId||0],delete r[t.pointerId||0]),a&&(t.preventDefault(),e.transition&&(a===lt||a===et)&&f(this.image,C),this.action=!1,q&&a!==et&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),e.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){I(i.image,yt,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){i.imageClicked=!1},500)):(this.imageClicked=!1,e.backdrop&&e.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){I(i.canvas,U,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}y(this.player.getElementsByTagName("img"),function(i){d(i,z,t.loadImage.bind(t),{once:!0}),I(i,z)})}},wheel:function(t){var i=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50);var e=Number(this.options.zoomRatio)||.1,a=1;t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*e,!0,null,t)}}},ke={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,e=this.options;if(e.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(p(e.show)&&d(i,Ht,e.show,{once:!0}),I(i,Ht)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var a=this.viewer;if(g(a,Y),a.setAttribute("role","dialog"),a.setAttribute("aria-labelledby",this.title.id),a.setAttribute("aria-modal",!0),a.removeAttribute("aria-hidden"),e.transition&&!t){var r=this.shown.bind(this);this.transitioning={abort:function(){b(a,L,r),g(a,O)}},f(a,C),a.initialOffsetWidth=a.offsetWidth,d(a,L,r,{once:!0}),f(a,O)}else f(a,O),this.shown();return this},hide:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.element,a=this.options;if(a.inline||this.hiding||!(this.isShown||this.showing))return this;if(p(a.hide)&&d(e,qt,a.hide,{once:!0}),I(e,qt)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,s=this.image,o=function(){g(r,O),t.hidden()};if(a.transition&&!i){var u=function(c){c&&c.target===r&&(b(r,L,u),t.hidden())},h=function(){$(r,C)?(d(r,L,u),g(r,O)):o()};this.transitioning={abort:function(){t.viewed&&$(s,C)?b(s,L,h):$(r,C)&&b(r,L,u)}},this.viewed&&$(s,C)?(d(s,L,h,{once:!0}),this.zoomTo(0,!1,null,null,!0)):h()}else o();return this},view:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(i=Number(i)||0,this.hiding||this.played||i<0||i>=this.length||this.viewed&&i===this.index)return this;if(!this.isShown)return this.index=i,this.show();this.viewing&&this.viewing.abort();var e=this.element,a=this.options,r=this.title,s=this.canvas,o=this.items[i],u=o.querySelector("img"),h=J(u,"originalUrl"),l=u.getAttribute("alt"),c=document.createElement("img");if(y(a.inheritedAttributes,function(N){var A=u.getAttribute(N);A!==null&&c.setAttribute(N,A)}),c.src=h,c.alt=l,p(a.view)&&d(e,Bt,a.view,{once:!0}),I(e,Bt,{originalImage:this.images[i],index:i,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var v=this.items[this.index];v&&(g(v,ht),v.removeAttribute("aria-selected")),f(o,ht),o.setAttribute("aria-selected",!0),a.focus&&o.focus(),this.image=c,this.viewed=!1,this.index=i,this.imageData={},f(c,it),a.loading&&f(s,j),s.innerHTML="",s.appendChild(c),this.renderList(),r.innerHTML="";var x=function(){var A=t.imageData,k=Array.isArray(a.title)?a.title[1]:a.title;r.innerHTML=Ee(p(k)?k.call(t,c,A):"".concat(l," (").concat(A.naturalWidth," × ").concat(A.naturalHeight,")"))},D,S;return d(e,nt,x,{once:!0}),this.viewing={abort:function(){b(e,nt,x),c.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(c.src="",b(c,z,D),t.timeout&&clearTimeout(t.timeout))}},c.complete?this.load():(d(c,z,D=function(){b(c,W,S),t.load()},{once:!0}),d(c,W,S=function(){b(c,z,D),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),g(c,it),a.loading&&g(t.canvas,j)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){g(c,it),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.index-1;return i<0&&(i=t?this.length-1:0),this.view(i),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.length-1,e=this.index+1;return e>i&&(e=t?0:i),this.view(e),this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData;return this.moveTo(K(t)?t:e.x+Number(t),K(i)?i:e.y+Number(i)),this},moveTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.element,s=this.options,o=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&s.movable){var u=o.x,h=o.y,l=!1;if(T(t)?l=!0:t=u,T(e)?l=!0:e=h,l){if(p(s.move)&&d(r,Ut,s.move,{once:!0}),I(r,Ut,{x:t,y:e,oldX:u,oldY:h,originalEvent:a})===!1)return this;o.x=t,o.y=e,o.left=t,o.top=e,this.moving=!0,this.renderImage(function(){i.moving=!1,p(s.moved)&&d(r,Kt,s.moved,{once:!0}),I(r,Kt,{x:t,y:e,oldX:u,oldY:h,originalEvent:a},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var i=this,e=this.element,a=this.options,r=this.imageData;if(t=Number(t),T(t)&&this.viewed&&!this.played&&a.rotatable){var s=r.rotate;if(p(a.rotate)&&d(e,Zt,a.rotate,{once:!0}),I(e,Zt,{degree:t,oldDegree:s})===!1)return this;r.rotate=t,this.rotating=!0,this.renderImage(function(){i.rotating=!1,p(a.rotated)&&d(e,Gt,a.rotated,{once:!0}),I(e,Gt,{degree:t,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=this.element,r=this.options,s=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&r.scalable){var o=s.scaleX,u=s.scaleY,h=!1;if(T(t)?h=!0:t=o,T(e)?h=!0:e=u,h){if(p(r.scale)&&d(a,$t,r.scale,{once:!0}),I(a,$t,{scaleX:t,scaleY:e,oldScaleX:o,oldScaleY:u})===!1)return this;s.scaleX=t,s.scaleY=e,this.scaling=!0,this.renderImage(function(){i.scaling=!1,p(r.scaled)&&d(a,Jt,r.scaled,{once:!0}),I(a,Jt,{scaleX:t,scaleY:e,oldScaleX:o,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,i,e,a),this},zoomTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o=this.element,u=this.options,h=this.pointers,l=this.imageData,c=l.x,v=l.y,x=l.width,D=l.height,S=l.naturalWidth,N=l.naturalHeight;if(t=Math.max(0,t),T(t)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var A=Math.max(.01,u.minZoomRatio),k=Math.min(100,u.maxZoomRatio);t=Math.min(Math.max(t,A),k)}if(r)switch(r.type){case"wheel":u.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var E=S*t,F=N*t,H=E-x,R=F-D,X=l.ratio;if(p(u.zoom)&&d(o,Qt,u.zoom,{once:!0}),I(o,Qt,{ratio:t,oldRatio:X,originalEvent:r})===!1)return this;if(this.zooming=!0,r){var st=Se(this.viewer),Q=h&&Object.keys(h).length>0?Ie(h):{pageX:r.pageX,pageY:r.pageY};l.x-=H*((Q.pageX-st.left-c)/x),l.y-=R*((Q.pageY-st.top-v)/D)}else G(a)&&T(a.x)&&T(a.y)?(l.x-=H*((a.x-c)/x),l.y-=R*((a.y-v)/D)):(l.x-=H/2,l.y-=R/2);l.left=l.x,l.top=l.y,l.width=E,l.height=F,l.oldRatio=X,l.ratio=t,this.renderImage(function(){i.zooming=!1,p(u.zoomed)&&d(o,te,u.zoomed,{once:!0}),I(o,te,{ratio:t,oldRatio:X,originalEvent:r},{cancelable:!1})}),e&&this.tooltip()}return this},play:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var e=this.element,a=this.options;if(p(a.play)&&d(e,ee,a.play,{once:!0}),I(e,ee)===!1)return this;var r=this.player,s=this.loadImage.bind(this),o=[],u=0,h=0;if(this.played=!0,this.onLoadWhenPlay=s,i&&this.requestFullscreen(i),f(r,B),y(this.items,function(v,x){var D=v.querySelector("img"),S=document.createElement("img");S.src=J(D,"originalUrl"),S.alt=D.getAttribute("alt"),S.referrerPolicy=D.referrerPolicy,u+=1,f(S,ut),rt(S,C,a.transition),$(v,ht)&&(f(S,O),h=x),o.push(S),d(S,z,s,{once:!0}),r.appendChild(S)}),T(a.interval)&&a.interval>0){var l=function(){clearTimeout(t.playing.timeout),g(o[h],O),h-=1,h=h>=0?h:u-1,f(o[h],O),t.playing.timeout=setTimeout(l,a.interval)},c=function(){clearTimeout(t.playing.timeout),g(o[h],O),h+=1,h=h<u?h:0,f(o[h],O),t.playing.timeout=setTimeout(c,a.interval)};u>1&&(this.playing={prev:l,next:c,timeout:setTimeout(c,a.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var i=this.element,e=this.options;if(p(e.stop)&&d(i,ie,e.stop,{once:!0}),I(i,ie)===!1)return this;var a=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,y(a.getElementsByTagName("img"),function(r){b(r,z,t.onLoadWhenPlay)}),g(a,B),a.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!i.inline?this:(this.fulled=!0,this.open(),f(this.button,_t),i.transition&&(g(r,C),this.viewed&&g(a,C)),f(e,wt),e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby",this.title.id),e.setAttribute("aria-modal",!0),e.removeAttribute("style"),V(e,{zIndex:i.zIndex}),i.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=_({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,C),f(r,C)},0)})}),this)},exit:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||!this.fulled||!i.inline?this:(this.fulled=!1,this.close(),g(this.button,_t),i.transition&&(g(r,C),this.viewed&&g(a,C)),i.focus&&this.clearEnforceFocus(),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),g(e,wt),V(e,{zIndex:i.zIndexInline}),this.viewerData=_({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,C),f(r,C)},0)})}),this)},tooltip:function(){var t=this,i=this.options,e=this.tooltipBox,a=this.imageData;return!this.viewed||this.played||!i.tooltip?this:(e.textContent="".concat(Math.round(a.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):i.transition?(this.fading&&I(e,L),f(e,B),f(e,ut),f(e,C),e.removeAttribute("aria-hidden"),e.initialOffsetWidth=e.offsetWidth,f(e,O)):(f(e,B),e.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){i.transition?(d(e,L,function(){g(e,B),g(e,ut),g(e,C),e.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),g(e,O),t.fading=!0):(g(e,B),e.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=_({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,i=this.element,e=this.options,a=this.isImg;if(a&&!i.parentNode)return this.destroy();var r=[];if(y(a?[i]:i.querySelectorAll("img"),function(h){p(e.filter)?e.filter.call(t,h)&&r.push(h):t.getImageURL(h)&&r.push(h)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var s=[];if(y(this.items,function(h,l){var c=h.querySelector("img"),v=r[l];v&&c?(v.src!==c.src||v.alt!==c.alt)&&s.push(l):s.push(l)}),V(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var o=s.indexOf(this.index);if(o>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-o,this.length-1),0));else{var u=this.items[this.index];f(u,ht),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,i=this.options;return t[m]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),i.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):i.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),i.inline||b(t,U,this.onStart),t[m]=void 0,this):this}},_e={getImageURL:function(t){var i=this.options.url;return at(i)?i=t.getAttribute(i):p(i)?i=i.call(this,t):i="",i},enforceFocus:function(){var t=this;this.clearEnforceFocus(),d(document,Lt,this.onFocusin=function(i){var e=t.viewer,a=i.target;if(!(a===document||a===e||e.contains(a))){for(;a;){if(a.getAttribute("tabindex")!==null||a.getAttribute("aria-modal")==="true")return;a=a.parentElement}e.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(b(document,Lt,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;f(t,Ot),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;g(t,Ot),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,i=this.options,e=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,i.focus&&(e.focus(),this.enforceFocus()),p(i.shown)&&d(t,Xt,i.shown,{once:!0}),I(t,Xt)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,i=this.options,e=this.viewer;i.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),f(e,Y),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),e.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(p(i.hidden)&&d(t,jt,i.hidden,{once:!0}),I(t,jt,null,{cancelable:!1}))},requestFullscreen:function(t){var i=this.element.ownerDocument;if(this.fulled&&!(i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement)){var e=i.documentElement;e.requestFullscreen?G(t)?e.requestFullscreen(t):e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var i=this.options,e=this.pointers,a=e[Object.keys(e)[0]];if(a){var r=a.endX-a.startX,s=a.endY-a.startY;switch(this.action){case lt:(r!==0||s!==0)&&(this.pointerMoved=!0,this.move(r,s,t));break;case et:this.zoom(De(e),!1,null,t);break;case kt:{this.action="switched";var o=Math.abs(r);o>1&&o>Math.abs(s)&&(this.pointers={},r>1?this.prev(i.loop):r<-1&&this.next(i.loop));break}}y(e,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var t=this.imageData,i=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=i.width&&t.height<=i.height}},Oe=M.Viewer,ze=(function(n){return function(){return n+=1,n}})(-1),Dt=(function(){function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(tt(this,n),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=_({},At,G(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=ze(),this.init()}return re(n,[{key:"init",value:function(){var i=this,e=this.element,a=this.options;if(!e[m]){e[m]=this,a.focus&&!a.keyboard&&(a.focus=!1);var r=e.localName==="img",s=[];if(y(r?[e]:e.querySelectorAll("img"),function(h){p(a.filter)?a.filter.call(i,h)&&s.push(h):i.getImageURL(h)&&s.push(h)}),this.isImg=r,this.length=s.length,this.images=s,this.initBody(),K(document.createElement(m).style.transition)&&(a.transition=!1),a.inline){var o=0,u=function(){if(o+=1,o===i.length){var l;i.initializing=!1,i.delaying={abort:function(){clearTimeout(l)}},l=setTimeout(function(){i.delaying=!1,i.build()},0)}};this.initializing={abort:function(){y(s,function(l){l.complete||(b(l,z,u),b(l,W,u))})}},y(s,function(h){if(h.complete)u();else{var l,c;d(h,z,l=function(){b(h,W,c),u()},{once:!0}),d(h,W,c=function(){b(h,z,l),u()},{once:!0})}})}else d(e,U,this.onStart=function(h){var l=h.target;l.localName==="img"&&(!p(a.filter)||a.filter.call(i,l))&&i.view(i.images.indexOf(l))})}}},{key:"build",value:function(){if(!this.ready){var i=this.element,e=this.options,a=i.parentNode,r=document.createElement("div");r.innerHTML=le;var s=r.querySelector(".".concat(m,"-container")),o=s.querySelector(".".concat(m,"-title")),u=s.querySelector(".".concat(m,"-toolbar")),h=s.querySelector(".".concat(m,"-navbar")),l=s.querySelector(".".concat(m,"-button")),c=s.querySelector(".".concat(m,"-canvas"));if(this.parent=a,this.viewer=s,this.title=o,this.toolbar=u,this.navbar=h,this.button=l,this.canvas=c,this.footer=s.querySelector(".".concat(m,"-footer")),this.tooltipBox=s.querySelector(".".concat(m,"-tooltip")),this.player=s.querySelector(".".concat(m,"-player")),this.list=s.querySelector(".".concat(m,"-list")),s.id="".concat(m).concat(this.id),o.id="".concat(m,"Title").concat(this.id),f(o,e.title?mt(Array.isArray(e.title)?e.title[0]:e.title):Y),f(h,e.navbar?mt(e.navbar):Y),rt(l,Y,!e.button),e.keyboard&&l.setAttribute("tabindex",0),e.backdrop&&(f(s,"".concat(m,"-backdrop")),!e.inline&&e.backdrop!=="static"&&St(c,ct,"hide")),at(e.className)&&e.className&&e.className.split(Et).forEach(function(E){f(s,E)}),e.toolbar){var v=document.createElement("ul"),x=G(e.toolbar),D=ft.slice(0,3),S=ft.slice(7,9),N=ft.slice(9);x||f(u,mt(e.toolbar)),y(x?e.toolbar:ft,function(E,F){var H=x&&G(E),R=x?Tt(F):E,X=H&&!K(E.show)?E.show:E;if(!(!X||!e.zoomable&&D.indexOf(R)!==-1||!e.rotatable&&S.indexOf(R)!==-1||!e.scalable&&N.indexOf(R)!==-1)){var st=H&&!K(E.size)?E.size:E,Q=H&&!K(E.click)?E.click:E,P=document.createElement("li");e.keyboard&&P.setAttribute("tabindex",0),P.setAttribute("role","button"),f(P,"".concat(m,"-").concat(R)),p(Q)||St(P,ct,R),T(X)&&f(P,mt(X)),["small","large"].indexOf(st)!==-1?f(P,"".concat(m,"-").concat(st)):R==="play"&&f(P,"".concat(m,"-large")),p(Q)&&d(P,U,Q),v.appendChild(P)}}),u.appendChild(v)}else f(u,Y);if(!e.rotatable){var A=u.querySelectorAll('li[class*="rotate"]');f(A,it),y(A,function(E){u.appendChild(E)})}if(e.inline)f(l,ue),V(s,{zIndex:e.zIndexInline}),window.getComputedStyle(a).position==="static"&&V(a,{position:"relative"}),a.insertBefore(s,i.nextSibling);else{f(l,he),f(s,wt),f(s,ut),f(s,Y),V(s,{zIndex:e.zIndex});var k=e.container;at(k)&&(k=i.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(s)}if(e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,p(e.ready)&&d(i,Wt,e.ready,{once:!0}),I(i,Wt)===!1){this.ready=!1;return}this.ready&&e.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=Oe,n}},{key:"setDefaults",value:function(i){_(At,G(i)&&i)}}])})();_(Dt.prototype,xe,Ne,Ae,ke,_e);const Le=(n,t)=>{const i=n.__vccOpts||n;for(const[e,a]of t)i[e]=a;return i},Ve={name:"boka-human-v2",props:{token:{type:String,default:""},product:{type:String,default:""},subCustType:{type:String,default:""},source:{type:String,default:""}},computed:{host(){let{product:n,subCustType:t}=this;return n.toLowerCase()==="mase"||n.toLowerCase()==="aime"&&t==="overseas"?"https://service.mase.cloud":"https://human.shboka.com"},src(){let{token:n,product:t,subCustType:i,source:e}=this;return`${this.host}?token=${n}&product=${t}&subCustType=${i}&source=${e}&human=1&isIFrame=true&time=${new Date().getTime()}`}},data(){return{visible:!1,unreadCount:0}},mounted(){window.humanFunction={showChatView:this.showChat};let n=document.querySelector("#iframe");n.onload=function(){n.contentWindow.postMessage({from:"human",info:{isFrame:!0}},"*")},window.addEventListener("message",t=>{let{origin:i,data:e}=t;if(i==this.host&&e.from=="humanFrame"){console.log("外部[收到]了===>>>>",e.info);let{info:a}=e,{type:r,data:s}=a;if(r=="img")this.showImg(s);else if(r=="unreadCountChange"){let{count:o,type:u}=a.data;u=="add"&&!this.visible&&(this.unreadCount+=o)}}})},methods:{showChat(n=!0){this.visible=n},changeChatViewVisible(){this.visible=!this.visible,this.visible&&(this.unreadCount=0)},showImg(n,t){let i=new Image;i.src=n,new Dt(i,{inline:!1,navbar:!1,title:!1}).show()},showVideo(n,t){const i=document.createElement("video");i.src=n,i.controls=!0,new Dt(i,{inline:!1,navbar:!1,title:!1}).show()}}},Re={class:"boka-human-v2"},Me={key:0,t:"1755741820144",viewBox:"0 0 1051 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1470",width:"32",height:"32"},Fe={class:"humanMainView"},Pe={class:"humanMainHeader my-dialog__header"},Ye={class:"humanMainHeaderRight"},We=["src"];function He(n,t,i,e,a,r){return w.openBlock(),w.createElementBlock("div",Re,[w.createElementVNode("div",{class:w.normalizeClass(["humanEnterIcon",[a.unreadCount>0?"unreadCount":""]]),id:"humanEnterIcon",onClick:t[0]||(t[0]=(...s)=>r.changeChatViewVisible&&r.changeChatViewVisible(...s))},[a.unreadCount<1?(w.openBlock(),w.createElementBlock("svg",Me,[...t[2]||(t[2]=[w.createElementVNode("path",{d:"M135.73310782 546.11486502v91.39864856a68.41216214 68.41216214 0 0 0 136.82432428 0v-91.39864856a68.41216214 68.41216214 0 0 0-136.82432428 0z m628.77618292 174.3141893A113.58699363 113.58699363 0 0 1 728.63851358 637.51351358v-91.39864856A114.02026996 114.02026996 0 0 1 841.86064218 432.18581069C830.16216214 266.51435782 692.03800637 135.73310782 523.40202716 135.73310782 354.74324363 135.73310782 216.64189218 266.51435782 204.94341214 432.18581069A114.0886821 114.0886821 0 0 1 318.16554074 546.11486502v91.39864856a114.02026996 114.02026996 0 0 1-228.04054074 0v-91.39864856a114.02026996 114.02026996 0 0 1 68.64020288-104.53378353C165.83445926 246.28716214 326.375 90.125 523.40202716 90.125s357.5675679 156.16216214 364.63682428 351.45608149A114.0886821 114.0886821 0 0 1 956.67905432 546.11486502v91.39864856a114.02026996 114.02026996 0 0 1-152.26266934 107.3386821 387.89695926 387.89695926 0 0 1-155.61486503 99.8817572A79.76858148 79.76858148 0 0 1 568.78209424 922.47297284h-68.00168848c-44.23986502 0-80.01942573-35.57432428-80.01942572-79.8141893 0-44.17145288 35.66554074-79.81418931 80.04222922-79.8141893h67.95608148c28.80151995 0 54 15.05067573 68.09290494 37.74071008a342.17483148 342.17483148 0 0 0 127.63429074-80.15625zM774.2466214 546.11486502v91.39864856a68.41216214 68.41216214 0 0 0 136.82432428 0v-91.39864856a68.41216214 68.41216214 0 0 0-136.82432427 0zM500.82601358 876.86486502h67.95608066c19.20101358 0 34.43412141-15.23310782 34.43412222-34.20608148 0-18.99577716-15.30151996-34.20608149-34.43412222-34.20608066h-67.95608066c-19.20101358 0-34.43412141 15.23310782-34.4341214 34.20608066 0 18.99577716 15.30151996 34.20608149 34.4341214 34.20608148z","p-id":"1471"},null,-1)])])):(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createTextVNode(w.toDisplayString(a.unreadCount>99?"99+":a.unreadCount),1)],64))],2),w.withDirectives(w.createElementVNode("div",Fe,[w.createElementVNode("div",Pe,[t[3]||(t[3]=w.createElementVNode("div",{class:"humanMainHeaderLeft"},null,-1)),t[4]||(t[4]=w.createElementVNode("div",{class:"humanMainHeaderCenter"},"客服",-1)),w.createElementVNode("div",Ye,[w.createElementVNode("span",{onClick:t[1]||(t[1]=s=>a.visible=!a.visible)},"关闭")])]),w.createElementVNode("iframe",{id:"iframe",src:r.src,frameborder:"0",allowfullscreen:""},null,8,We)],512),[[w.vShow,a.visible]])])}return Le(Ve,[["render",He],["__scopeId","data-v-98150891"]])}));
|
|
9
|
+
*/function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function It(n,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,Nt(e.key),e)}}function re(n,t,i){return t&&It(n.prototype,t),i&&It(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function se(n,t,i){return(t=Nt(t))in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function xt(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),i.push.apply(i,e)}return i}function gt(n){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?xt(Object(i),!0).forEach(function(e){se(n,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):xt(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function oe(n,t){if(typeof n!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var e=i.call(n,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function Nt(n){var t=oe(n,"string");return typeof t=="symbol"?t:t+""}function pt(n){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(n)}var At={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},le='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ot=typeof window<"u"&&typeof window.document<"u",M=ot?window:{},q=ot&&M.document.documentElement?"ontouchstart"in M.document.documentElement:!1,bt=ot?"PointerEvent"in M:!1,m="viewer",lt="move",kt="switch",et="zoom",ht="".concat(m,"-active"),he="".concat(m,"-close"),ut="".concat(m,"-fade"),wt="".concat(m,"-fixed"),ue="".concat(m,"-fullscreen"),_t="".concat(m,"-fullscreen-exit"),Y="".concat(m,"-hide"),ce="".concat(m,"-hide-md-down"),fe="".concat(m,"-hide-sm-down"),de="".concat(m,"-hide-xs-down"),O="".concat(m,"-in"),it="".concat(m,"-invisible"),j="".concat(m,"-loading"),me="".concat(m,"-move"),Ot="".concat(m,"-open"),B="".concat(m,"-show"),C="".concat(m,"-transition"),U="click",yt="dblclick",zt="dragstart",Lt="focusin",Vt="keydown",z="load",W="error",ve=q?"touchend touchcancel":"mouseup",ge=q?"touchmove":"mousemove",pe=q?"touchstart":"mousedown",Rt=bt?"pointerdown":pe,Mt=bt?"pointermove":ge,Ft=bt?"pointerup pointercancel":ve,Pt="resize",L="transitionend",Yt="wheel",Wt="ready",Ht="show",Xt="shown",qt="hide",jt="hidden",Bt="view",nt="viewed",Ut="move",Kt="moved",Zt="rotate",Gt="rotated",$t="scale",Jt="scaled",Qt="zoom",te="zoomed",ee="play",ie="stop",ct="".concat(m,"Action"),Et=/\s\s*/,ft=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function at(n){return typeof n=="string"}var be=Number.isNaN||M.isNaN;function T(n){return typeof n=="number"&&!be(n)}function K(n){return typeof n>"u"}function Z(n){return pt(n)==="object"&&n!==null}var we=Object.prototype.hasOwnProperty;function G(n){if(!Z(n))return!1;try{var t=n.constructor,i=t.prototype;return t&&i&&we.call(i,"isPrototypeOf")}catch{return!1}}function p(n){return typeof n=="function"}function y(n,t){if(n&&p(t))if(Array.isArray(n)||T(n.length)){var i=n.length,e;for(e=0;e<i&&t.call(n,n[e],e,n)!==!1;e+=1);}else Z(n)&&Object.keys(n).forEach(function(a){t.call(n,n[a],a,n)});return n}var _=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),a=1;a<i;a++)e[a-1]=arguments[a];return Z(t)&&e.length>0&&e.forEach(function(r){Z(r)&&Object.keys(r).forEach(function(s){t[s]=r[s]})}),t},ye=/^(?:width|height|left|top|marginLeft|marginTop)$/;function V(n,t){var i=n.style;y(t,function(e,a){ye.test(a)&&T(e)&&(e+="px"),i[a]=e})}function Ee(n){return at(n)?n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):n}function $(n,t){return!n||!t?!1:n.classList?n.classList.contains(t):n.className.indexOf(t)>-1}function f(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(e){f(e,t)});return}if(n.classList){n.classList.add(t);return}var i=n.className.trim();i?i.indexOf(t)<0&&(n.className="".concat(i," ").concat(t)):n.className=t}}function g(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(i){g(i,t)});return}if(n.classList){n.classList.remove(t);return}n.className.indexOf(t)>=0&&(n.className=n.className.replace(t,""))}}function rt(n,t,i){if(t){if(T(n.length)){y(n,function(e){rt(e,t,i)});return}i?f(n,t):g(n,t)}}var Te=/([a-z\d])([A-Z])/g;function Tt(n){return n.replace(Te,"$1-$2").toLowerCase()}function J(n,t){return Z(n[t])?n[t]:n.dataset?n.dataset[t]:n.getAttribute("data-".concat(Tt(t)))}function St(n,t,i){Z(i)?n[t]=i:n.dataset?n.dataset[t]=i:n.setAttribute("data-".concat(Tt(t)),i)}var ne=(function(){var n=!1;if(ot){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return n=!0,t},set:function(r){t=r}});M.addEventListener("test",i,e),M.removeEventListener("test",i,e)}return n})();function b(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Et).forEach(function(r){if(!ne){var s=n.listeners;s&&s[r]&&s[r][i]&&(a=s[r][i],delete s[r][i],Object.keys(s[r]).length===0&&delete s[r],Object.keys(s).length===0&&delete n.listeners)}n.removeEventListener(r,a,e)})}function d(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Et).forEach(function(r){if(e.once&&!ne){var s=n.listeners,o=s===void 0?{}:s;a=function(){delete o[r][i],n.removeEventListener(r,a,e);for(var h=arguments.length,l=new Array(h),c=0;c<h;c++)l[c]=arguments[c];i.apply(n,l)},o[r]||(o[r]={}),o[r][i]&&n.removeEventListener(r,o[r][i],e),o[r][i]=a,n.listeners=o}n.addEventListener(r,a,e)})}function I(n,t,i,e){var a;return p(Event)&&p(CustomEvent)?a=new CustomEvent(t,gt({bubbles:!0,cancelable:!0,detail:i},e)):(a=document.createEvent("CustomEvent"),a.initCustomEvent(t,!0,!0,i)),n.dispatchEvent(a)}function Se(n){var t=n.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function dt(n){var t=n.rotate,i=n.scaleX,e=n.scaleY,a=n.translateX,r=n.translateY,s=[];T(a)&&a!==0&&s.push("translateX(".concat(a,"px)")),T(r)&&r!==0&&s.push("translateY(".concat(r,"px)")),T(t)&&t!==0&&s.push("rotate(".concat(t,"deg)")),T(i)&&i!==1&&s.push("scaleX(".concat(i,")")),T(e)&&e!==1&&s.push("scaleY(".concat(e,")"));var o=s.length?s.join(" "):"none";return{WebkitTransform:o,msTransform:o,transform:o}}function Ce(n){return at(n)?decodeURIComponent(n.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Ct=M.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(M.navigator.userAgent);function ae(n,t,i){var e=document.createElement("img");if(n.naturalWidth&&!Ct)return i(n.naturalWidth,n.naturalHeight),e;var a=document.body||document.documentElement;return e.onload=function(){i(e.width,e.height),Ct||a.removeChild(e)},y(t.inheritedAttributes,function(r){var s=n.getAttribute(r);s!==null&&e.setAttribute(r,s)}),e.src=n.src,Ct||(e.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(e)),e}function mt(n){switch(n){case 2:return de;case 3:return fe;case 4:return ce;default:return""}}function De(n){var t=gt({},n),i=[];return y(n,function(e,a){delete t[a],y(t,function(r){var s=Math.abs(e.startX-r.startX),o=Math.abs(e.startY-r.startY),u=Math.abs(e.endX-r.endX),h=Math.abs(e.endY-r.endY),l=Math.sqrt(s*s+o*o),c=Math.sqrt(u*u+h*h),v=(c-l)/l;i.push(v)})}),i.sort(function(e,a){return Math.abs(e)<Math.abs(a)}),i[0]}function vt(n,t){var i=n.pageX,e=n.pageY,a={endX:i,endY:e};return t?a:gt({timeStamp:Date.now(),startX:i,startY:e},a)}function Ie(n){var t=0,i=0,e=0;return y(n,function(a){var r=a.startX,s=a.startY;t+=r,i+=s,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}var xe={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,i=t.body||t.documentElement;this.body=i,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=i.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(i).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,i=this.parent,e;t.inline&&(e={width:Math.max(i.offsetWidth,t.minWidth),height:Math.max(i.offsetHeight,t.minHeight)},this.parentData=e),(this.fulled||!e)&&(e=this.containerData),this.viewerData=_({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&V(this.viewer,this.viewerData)},initList:function(){var t=this,i=this.element,e=this.options,a=this.list,r=[];a.innerHTML="",y(this.images,function(s,o){var u=s.src,h=s.alt||Ce(u),l=t.getImageURL(s);if(u||l){var c=document.createElement("li"),v=document.createElement("img");y(e.inheritedAttributes,function(x){var D=s.getAttribute(x);D!==null&&v.setAttribute(x,D)}),e.navbar&&(v.src=u||l),v.alt=h,v.setAttribute("data-original-url",l||u),c.setAttribute("data-index",o),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),e.keyboard&&c.setAttribute("tabindex",0),c.appendChild(v),a.appendChild(c),r.push(c)}}),this.items=r,y(r,function(s){var o=s.firstElementChild,u,h;St(o,"filled",!0),e.loading&&f(s,j),d(o,z,u=function(c){b(o,W,h),e.loading&&g(s,j),t.loadImage(c)},{once:!0}),d(o,W,h=function(){b(o,z,u),e.loading&&g(s,j)},{once:!0})}),e.transition&&d(i,nt,function(){f(a,C)},{once:!0})},renderList:function(){var t=this.index,i=this.items[t];if(i){var e=i.nextElementSibling,a=parseInt(window.getComputedStyle(e||i).marginLeft,10),r=i.offsetWidth,s=r+a;V(this.list,_({width:s*this.length-a},dt({translateX:(this.viewerData.width-r)/2-s*t})))}},resetList:function(){var t=this.list;t.innerHTML="",g(t,C),V(t,dt({translateX:0}))},initImage:function(t){var i=this,e=this.options,a=this.image,r=this.viewerData,s=this.footer.offsetHeight,o=r.width,u=Math.max(r.height-s,s),h=this.imageData||{},l;this.imageInitializing={abort:function(){l.onload=null}},l=ae(a,e,function(c,v){var x=c/v,D=Math.max(0,Math.min(1,e.initialCoverage)),S=o,N=u;i.imageInitializing=!1,u*x>o?N=o/x:S=u*x,D=T(D)?D:.9,S=Math.min(S*D,c),N=Math.min(N*D,v);var A=(o-S)/2,k=(u-N)/2,E={left:A,top:k,x:A,y:k,width:S,height:N,oldRatio:1,ratio:S/c,aspectRatio:x,naturalWidth:c,naturalHeight:v},F=_({},E);e.rotatable&&(E.rotate=h.rotate||0,F.rotate=0),e.scalable&&(E.scaleX=h.scaleX||1,E.scaleY=h.scaleY||1,F.scaleX=1,F.scaleY=1),i.imageData=E,i.initialImageData=F,t&&t()})},renderImage:function(t){var i=this,e=this.image,a=this.imageData;if(V(e,_({width:a.width,height:a.height,marginLeft:a.x,marginTop:a.y},dt(a))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&$(e,C)){var r=function(){i.imageRendering=!1,t()};this.imageRendering={abort:function(){b(e,L,r)}},d(e,L,r,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},Ne={bind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;d(i,U,this.onClick=this.click.bind(this)),d(i,zt,this.onDragStart=this.dragstart.bind(this)),d(e,Rt,this.onPointerDown=this.pointerdown.bind(this)),d(a,Mt,this.onPointerMove=this.pointermove.bind(this)),d(a,Ft,this.onPointerUp=this.pointerup.bind(this)),d(a,Vt,this.onKeyDown=this.keydown.bind(this)),d(window,Pt,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&d(i,Yt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&d(e,yt,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;b(i,U,this.onClick),b(i,zt,this.onDragStart),b(e,Rt,this.onPointerDown),b(a,Mt,this.onPointerMove),b(a,Ft,this.onPointerUp),b(a,Vt,this.onKeyDown),b(window,Pt,this.onResize),t.zoomable&&t.zoomOnWheel&&b(i,Yt,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&b(e,yt,this.onDblclick)}},Ae={click:function(t){var i=this.options,e=this.imageData,a=t.target,r=J(a,ct);switch(!r&&a.localName==="img"&&a.parentElement.localName==="li"&&(a=a.parentElement,r=J(a,ct)),q&&t.isTrusted&&a===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){case"mix":this.played?this.stop():i.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(J(a,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(i.loop);break;case"play":this.play(i.fullscreen);break;case"next":this.next(i.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-e.scaleX||-1);break;case"flip-vertical":this.scaleY(-e.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(q&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var i=this.element,e=this.options,a=this.image,r=this.index,s=this.viewerData;g(a,it),e.loading&&g(this.canvas,j),a.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){rt(a,me,e.movable),rt(a,C,e.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,p(e.viewed)&&d(i,nt,e.viewed,{once:!0}),I(i,nt,{originalImage:t.images[r],index:r,image:a},{cancelable:!1})})})},loadImage:function(t){var i=t.target,e=i.parentNode,a=e.offsetWidth||30,r=e.offsetHeight||50,s=!!J(i,"filled");ae(i,this.options,function(o,u){var h=o/u,l=a,c=r;r*h>a?s?l=r*h:c=a/h:s?c=a/h:l=r*h,V(i,_({width:l,height:c},dt({translateX:(a-l)/2,translateY:(r-c)/2})))})},keydown:function(t){var i=this.options;if(i.keyboard){var e=t.keyCode||t.which||t.charCode;switch(e){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(e){case 27:this.played?this.stop():i.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(i.loop);break;case 38:t.preventDefault(),this.zoom(i.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(i.loop);break;case 40:t.preventDefault(),this.zoom(-i.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var i=this.options,e=this.pointers,a=t.buttons,r=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(T(a)&&a!==1||T(r)&&r!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?y(t.changedTouches,function(o){e[o.identifier]=vt(o)}):e[t.pointerId||0]=vt(t);var s=i.movable?lt:!1;i.zoomOnTouch&&i.zoomable&&Object.keys(e).length>1?s=et:i.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(s=kt),i.transition&&(s===lt||s===et)&&g(this.image,C),this.action=s}},pointermove:function(t){var i=this.pointers,e=this.action;!this.viewed||!e||(t.preventDefault(),t.changedTouches?y(t.changedTouches,function(a){_(i[a.identifier]||{},vt(a,!0))}):_(i[t.pointerId||0]||{},vt(t,!0)),this.change(t))},pointerup:function(t){var i=this,e=this.options,a=this.action,r=this.pointers,s;t.changedTouches?y(t.changedTouches,function(o){s=r[o.identifier],delete r[o.identifier]}):(s=r[t.pointerId||0],delete r[t.pointerId||0]),a&&(t.preventDefault(),e.transition&&(a===lt||a===et)&&f(this.image,C),this.action=!1,q&&a!==et&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),e.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){I(i.image,yt,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){i.imageClicked=!1},500)):(this.imageClicked=!1,e.backdrop&&e.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){I(i.canvas,U,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}y(this.player.getElementsByTagName("img"),function(i){d(i,z,t.loadImage.bind(t),{once:!0}),I(i,z)})}},wheel:function(t){var i=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50);var e=Number(this.options.zoomRatio)||.1,a=1;t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*e,!0,null,t)}}},ke={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,e=this.options;if(e.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(p(e.show)&&d(i,Ht,e.show,{once:!0}),I(i,Ht)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var a=this.viewer;if(g(a,Y),a.setAttribute("role","dialog"),a.setAttribute("aria-labelledby",this.title.id),a.setAttribute("aria-modal",!0),a.removeAttribute("aria-hidden"),e.transition&&!t){var r=this.shown.bind(this);this.transitioning={abort:function(){b(a,L,r),g(a,O)}},f(a,C),a.initialOffsetWidth=a.offsetWidth,d(a,L,r,{once:!0}),f(a,O)}else f(a,O),this.shown();return this},hide:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.element,a=this.options;if(a.inline||this.hiding||!(this.isShown||this.showing))return this;if(p(a.hide)&&d(e,qt,a.hide,{once:!0}),I(e,qt)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,s=this.image,o=function(){g(r,O),t.hidden()};if(a.transition&&!i){var u=function(c){c&&c.target===r&&(b(r,L,u),t.hidden())},h=function(){$(r,C)?(d(r,L,u),g(r,O)):o()};this.transitioning={abort:function(){t.viewed&&$(s,C)?b(s,L,h):$(r,C)&&b(r,L,u)}},this.viewed&&$(s,C)?(d(s,L,h,{once:!0}),this.zoomTo(0,!1,null,null,!0)):h()}else o();return this},view:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(i=Number(i)||0,this.hiding||this.played||i<0||i>=this.length||this.viewed&&i===this.index)return this;if(!this.isShown)return this.index=i,this.show();this.viewing&&this.viewing.abort();var e=this.element,a=this.options,r=this.title,s=this.canvas,o=this.items[i],u=o.querySelector("img"),h=J(u,"originalUrl"),l=u.getAttribute("alt"),c=document.createElement("img");if(y(a.inheritedAttributes,function(N){var A=u.getAttribute(N);A!==null&&c.setAttribute(N,A)}),c.src=h,c.alt=l,p(a.view)&&d(e,Bt,a.view,{once:!0}),I(e,Bt,{originalImage:this.images[i],index:i,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var v=this.items[this.index];v&&(g(v,ht),v.removeAttribute("aria-selected")),f(o,ht),o.setAttribute("aria-selected",!0),a.focus&&o.focus(),this.image=c,this.viewed=!1,this.index=i,this.imageData={},f(c,it),a.loading&&f(s,j),s.innerHTML="",s.appendChild(c),this.renderList(),r.innerHTML="";var x=function(){var A=t.imageData,k=Array.isArray(a.title)?a.title[1]:a.title;r.innerHTML=Ee(p(k)?k.call(t,c,A):"".concat(l," (").concat(A.naturalWidth," × ").concat(A.naturalHeight,")"))},D,S;return d(e,nt,x,{once:!0}),this.viewing={abort:function(){b(e,nt,x),c.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(c.src="",b(c,z,D),t.timeout&&clearTimeout(t.timeout))}},c.complete?this.load():(d(c,z,D=function(){b(c,W,S),t.load()},{once:!0}),d(c,W,S=function(){b(c,z,D),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),g(c,it),a.loading&&g(t.canvas,j)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){g(c,it),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.index-1;return i<0&&(i=t?this.length-1:0),this.view(i),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.length-1,e=this.index+1;return e>i&&(e=t?0:i),this.view(e),this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData;return this.moveTo(K(t)?t:e.x+Number(t),K(i)?i:e.y+Number(i)),this},moveTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.element,s=this.options,o=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&s.movable){var u=o.x,h=o.y,l=!1;if(T(t)?l=!0:t=u,T(e)?l=!0:e=h,l){if(p(s.move)&&d(r,Ut,s.move,{once:!0}),I(r,Ut,{x:t,y:e,oldX:u,oldY:h,originalEvent:a})===!1)return this;o.x=t,o.y=e,o.left=t,o.top=e,this.moving=!0,this.renderImage(function(){i.moving=!1,p(s.moved)&&d(r,Kt,s.moved,{once:!0}),I(r,Kt,{x:t,y:e,oldX:u,oldY:h,originalEvent:a},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var i=this,e=this.element,a=this.options,r=this.imageData;if(t=Number(t),T(t)&&this.viewed&&!this.played&&a.rotatable){var s=r.rotate;if(p(a.rotate)&&d(e,Zt,a.rotate,{once:!0}),I(e,Zt,{degree:t,oldDegree:s})===!1)return this;r.rotate=t,this.rotating=!0,this.renderImage(function(){i.rotating=!1,p(a.rotated)&&d(e,Gt,a.rotated,{once:!0}),I(e,Gt,{degree:t,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=this.element,r=this.options,s=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&r.scalable){var o=s.scaleX,u=s.scaleY,h=!1;if(T(t)?h=!0:t=o,T(e)?h=!0:e=u,h){if(p(r.scale)&&d(a,$t,r.scale,{once:!0}),I(a,$t,{scaleX:t,scaleY:e,oldScaleX:o,oldScaleY:u})===!1)return this;s.scaleX=t,s.scaleY=e,this.scaling=!0,this.renderImage(function(){i.scaling=!1,p(r.scaled)&&d(a,Jt,r.scaled,{once:!0}),I(a,Jt,{scaleX:t,scaleY:e,oldScaleX:o,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,i,e,a),this},zoomTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o=this.element,u=this.options,h=this.pointers,l=this.imageData,c=l.x,v=l.y,x=l.width,D=l.height,S=l.naturalWidth,N=l.naturalHeight;if(t=Math.max(0,t),T(t)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var A=Math.max(.01,u.minZoomRatio),k=Math.min(100,u.maxZoomRatio);t=Math.min(Math.max(t,A),k)}if(r)switch(r.type){case"wheel":u.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var E=S*t,F=N*t,H=E-x,R=F-D,X=l.ratio;if(p(u.zoom)&&d(o,Qt,u.zoom,{once:!0}),I(o,Qt,{ratio:t,oldRatio:X,originalEvent:r})===!1)return this;if(this.zooming=!0,r){var st=Se(this.viewer),Q=h&&Object.keys(h).length>0?Ie(h):{pageX:r.pageX,pageY:r.pageY};l.x-=H*((Q.pageX-st.left-c)/x),l.y-=R*((Q.pageY-st.top-v)/D)}else G(a)&&T(a.x)&&T(a.y)?(l.x-=H*((a.x-c)/x),l.y-=R*((a.y-v)/D)):(l.x-=H/2,l.y-=R/2);l.left=l.x,l.top=l.y,l.width=E,l.height=F,l.oldRatio=X,l.ratio=t,this.renderImage(function(){i.zooming=!1,p(u.zoomed)&&d(o,te,u.zoomed,{once:!0}),I(o,te,{ratio:t,oldRatio:X,originalEvent:r},{cancelable:!1})}),e&&this.tooltip()}return this},play:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var e=this.element,a=this.options;if(p(a.play)&&d(e,ee,a.play,{once:!0}),I(e,ee)===!1)return this;var r=this.player,s=this.loadImage.bind(this),o=[],u=0,h=0;if(this.played=!0,this.onLoadWhenPlay=s,i&&this.requestFullscreen(i),f(r,B),y(this.items,function(v,x){var D=v.querySelector("img"),S=document.createElement("img");S.src=J(D,"originalUrl"),S.alt=D.getAttribute("alt"),S.referrerPolicy=D.referrerPolicy,u+=1,f(S,ut),rt(S,C,a.transition),$(v,ht)&&(f(S,O),h=x),o.push(S),d(S,z,s,{once:!0}),r.appendChild(S)}),T(a.interval)&&a.interval>0){var l=function(){clearTimeout(t.playing.timeout),g(o[h],O),h-=1,h=h>=0?h:u-1,f(o[h],O),t.playing.timeout=setTimeout(l,a.interval)},c=function(){clearTimeout(t.playing.timeout),g(o[h],O),h+=1,h=h<u?h:0,f(o[h],O),t.playing.timeout=setTimeout(c,a.interval)};u>1&&(this.playing={prev:l,next:c,timeout:setTimeout(c,a.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var i=this.element,e=this.options;if(p(e.stop)&&d(i,ie,e.stop,{once:!0}),I(i,ie)===!1)return this;var a=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,y(a.getElementsByTagName("img"),function(r){b(r,z,t.onLoadWhenPlay)}),g(a,B),a.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!i.inline?this:(this.fulled=!0,this.open(),f(this.button,_t),i.transition&&(g(r,C),this.viewed&&g(a,C)),f(e,wt),e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby",this.title.id),e.setAttribute("aria-modal",!0),e.removeAttribute("style"),V(e,{zIndex:i.zIndex}),i.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=_({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,C),f(r,C)},0)})}),this)},exit:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||!this.fulled||!i.inline?this:(this.fulled=!1,this.close(),g(this.button,_t),i.transition&&(g(r,C),this.viewed&&g(a,C)),i.focus&&this.clearEnforceFocus(),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),g(e,wt),V(e,{zIndex:i.zIndexInline}),this.viewerData=_({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,C),f(r,C)},0)})}),this)},tooltip:function(){var t=this,i=this.options,e=this.tooltipBox,a=this.imageData;return!this.viewed||this.played||!i.tooltip?this:(e.textContent="".concat(Math.round(a.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):i.transition?(this.fading&&I(e,L),f(e,B),f(e,ut),f(e,C),e.removeAttribute("aria-hidden"),e.initialOffsetWidth=e.offsetWidth,f(e,O)):(f(e,B),e.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){i.transition?(d(e,L,function(){g(e,B),g(e,ut),g(e,C),e.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),g(e,O),t.fading=!0):(g(e,B),e.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=_({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,i=this.element,e=this.options,a=this.isImg;if(a&&!i.parentNode)return this.destroy();var r=[];if(y(a?[i]:i.querySelectorAll("img"),function(h){p(e.filter)?e.filter.call(t,h)&&r.push(h):t.getImageURL(h)&&r.push(h)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var s=[];if(y(this.items,function(h,l){var c=h.querySelector("img"),v=r[l];v&&c?(v.src!==c.src||v.alt!==c.alt)&&s.push(l):s.push(l)}),V(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var o=s.indexOf(this.index);if(o>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-o,this.length-1),0));else{var u=this.items[this.index];f(u,ht),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,i=this.options;return t[m]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),i.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):i.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),i.inline||b(t,U,this.onStart),t[m]=void 0,this):this}},_e={getImageURL:function(t){var i=this.options.url;return at(i)?i=t.getAttribute(i):p(i)?i=i.call(this,t):i="",i},enforceFocus:function(){var t=this;this.clearEnforceFocus(),d(document,Lt,this.onFocusin=function(i){var e=t.viewer,a=i.target;if(!(a===document||a===e||e.contains(a))){for(;a;){if(a.getAttribute("tabindex")!==null||a.getAttribute("aria-modal")==="true")return;a=a.parentElement}e.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(b(document,Lt,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;f(t,Ot),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;g(t,Ot),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,i=this.options,e=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,i.focus&&(e.focus(),this.enforceFocus()),p(i.shown)&&d(t,Xt,i.shown,{once:!0}),I(t,Xt)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,i=this.options,e=this.viewer;i.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),f(e,Y),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),e.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(p(i.hidden)&&d(t,jt,i.hidden,{once:!0}),I(t,jt,null,{cancelable:!1}))},requestFullscreen:function(t){var i=this.element.ownerDocument;if(this.fulled&&!(i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement)){var e=i.documentElement;e.requestFullscreen?G(t)?e.requestFullscreen(t):e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var i=this.options,e=this.pointers,a=e[Object.keys(e)[0]];if(a){var r=a.endX-a.startX,s=a.endY-a.startY;switch(this.action){case lt:(r!==0||s!==0)&&(this.pointerMoved=!0,this.move(r,s,t));break;case et:this.zoom(De(e),!1,null,t);break;case kt:{this.action="switched";var o=Math.abs(r);o>1&&o>Math.abs(s)&&(this.pointers={},r>1?this.prev(i.loop):r<-1&&this.next(i.loop));break}}y(e,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var t=this.imageData,i=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=i.width&&t.height<=i.height}},Oe=M.Viewer,ze=(function(n){return function(){return n+=1,n}})(-1),Dt=(function(){function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(tt(this,n),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=_({},At,G(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=ze(),this.init()}return re(n,[{key:"init",value:function(){var i=this,e=this.element,a=this.options;if(!e[m]){e[m]=this,a.focus&&!a.keyboard&&(a.focus=!1);var r=e.localName==="img",s=[];if(y(r?[e]:e.querySelectorAll("img"),function(h){p(a.filter)?a.filter.call(i,h)&&s.push(h):i.getImageURL(h)&&s.push(h)}),this.isImg=r,this.length=s.length,this.images=s,this.initBody(),K(document.createElement(m).style.transition)&&(a.transition=!1),a.inline){var o=0,u=function(){if(o+=1,o===i.length){var l;i.initializing=!1,i.delaying={abort:function(){clearTimeout(l)}},l=setTimeout(function(){i.delaying=!1,i.build()},0)}};this.initializing={abort:function(){y(s,function(l){l.complete||(b(l,z,u),b(l,W,u))})}},y(s,function(h){if(h.complete)u();else{var l,c;d(h,z,l=function(){b(h,W,c),u()},{once:!0}),d(h,W,c=function(){b(h,z,l),u()},{once:!0})}})}else d(e,U,this.onStart=function(h){var l=h.target;l.localName==="img"&&(!p(a.filter)||a.filter.call(i,l))&&i.view(i.images.indexOf(l))})}}},{key:"build",value:function(){if(!this.ready){var i=this.element,e=this.options,a=i.parentNode,r=document.createElement("div");r.innerHTML=le;var s=r.querySelector(".".concat(m,"-container")),o=s.querySelector(".".concat(m,"-title")),u=s.querySelector(".".concat(m,"-toolbar")),h=s.querySelector(".".concat(m,"-navbar")),l=s.querySelector(".".concat(m,"-button")),c=s.querySelector(".".concat(m,"-canvas"));if(this.parent=a,this.viewer=s,this.title=o,this.toolbar=u,this.navbar=h,this.button=l,this.canvas=c,this.footer=s.querySelector(".".concat(m,"-footer")),this.tooltipBox=s.querySelector(".".concat(m,"-tooltip")),this.player=s.querySelector(".".concat(m,"-player")),this.list=s.querySelector(".".concat(m,"-list")),s.id="".concat(m).concat(this.id),o.id="".concat(m,"Title").concat(this.id),f(o,e.title?mt(Array.isArray(e.title)?e.title[0]:e.title):Y),f(h,e.navbar?mt(e.navbar):Y),rt(l,Y,!e.button),e.keyboard&&l.setAttribute("tabindex",0),e.backdrop&&(f(s,"".concat(m,"-backdrop")),!e.inline&&e.backdrop!=="static"&&St(c,ct,"hide")),at(e.className)&&e.className&&e.className.split(Et).forEach(function(E){f(s,E)}),e.toolbar){var v=document.createElement("ul"),x=G(e.toolbar),D=ft.slice(0,3),S=ft.slice(7,9),N=ft.slice(9);x||f(u,mt(e.toolbar)),y(x?e.toolbar:ft,function(E,F){var H=x&&G(E),R=x?Tt(F):E,X=H&&!K(E.show)?E.show:E;if(!(!X||!e.zoomable&&D.indexOf(R)!==-1||!e.rotatable&&S.indexOf(R)!==-1||!e.scalable&&N.indexOf(R)!==-1)){var st=H&&!K(E.size)?E.size:E,Q=H&&!K(E.click)?E.click:E,P=document.createElement("li");e.keyboard&&P.setAttribute("tabindex",0),P.setAttribute("role","button"),f(P,"".concat(m,"-").concat(R)),p(Q)||St(P,ct,R),T(X)&&f(P,mt(X)),["small","large"].indexOf(st)!==-1?f(P,"".concat(m,"-").concat(st)):R==="play"&&f(P,"".concat(m,"-large")),p(Q)&&d(P,U,Q),v.appendChild(P)}}),u.appendChild(v)}else f(u,Y);if(!e.rotatable){var A=u.querySelectorAll('li[class*="rotate"]');f(A,it),y(A,function(E){u.appendChild(E)})}if(e.inline)f(l,ue),V(s,{zIndex:e.zIndexInline}),window.getComputedStyle(a).position==="static"&&V(a,{position:"relative"}),a.insertBefore(s,i.nextSibling);else{f(l,he),f(s,wt),f(s,ut),f(s,Y),V(s,{zIndex:e.zIndex});var k=e.container;at(k)&&(k=i.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(s)}if(e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,p(e.ready)&&d(i,Wt,e.ready,{once:!0}),I(i,Wt)===!1){this.ready=!1;return}this.ready&&e.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=Oe,n}},{key:"setDefaults",value:function(i){_(At,G(i)&&i)}}])})();_(Dt.prototype,xe,Ne,Ae,ke,_e);const Le=(n,t)=>{const i=n.__vccOpts||n;for(const[e,a]of t)i[e]=a;return i},Ve={name:"boka-human-v2",props:{token:{type:String,default:""},product:{type:String,default:""},subCustType:{type:String,default:""},source:{type:String,default:""}},computed:{host(){let{product:n,subCustType:t}=this;return n.toLowerCase()==="mase"||n.toLowerCase()==="aime"&&t==="overseas"?"https://service.mase.cloud":"https://human.shboka.com"},src(){let{token:n,product:t,subCustType:i,source:e}=this;return`${this.host}?token=${n}&product=${t}&subCustType=${i}&source=${e}&human=1&isIFrame=true&time=${new Date().getTime()}`}},data(){return{visible:!1,unreadCount:0}},mounted(){window.humanFunction={showChatView:this.showChat};let n=document.querySelector("#iframe");n.onload=function(){n.contentWindow.postMessage({from:"human",info:{isFrame:!0}},"*")},window.addEventListener("message",t=>{let{origin:i,data:e}=t;if(i==this.host&&e.from=="humanFrame"){console.log("外部[收到]了===>>>>",e.info);let{info:a}=e,{type:r,data:s}=a;if(r=="img")this.showImg(s);else if(r=="unreadCountChange"){let{count:o,type:u}=a.data;u=="add"&&!this.visible&&(this.unreadCount+=o)}}})},methods:{showChat(n=!0){this.visible=n},changeChatViewVisible(){this.visible=!this.visible,this.visible&&(this.unreadCount=0)},showImg(n,t){let i=new Image;i.src=n,new Dt(i,{inline:!1,navbar:!1,title:!1}).show()},showVideo(n,t){const i=document.createElement("video");i.src=n,i.controls=!0,new Dt(i,{inline:!1,navbar:!1,title:!1}).show()}}},Re={class:"boka-human-v2"},Me={key:0,t:"1755741820144",viewBox:"0 0 1051 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1470",width:"32",height:"32"},Fe={class:"humanMainView"},Pe={class:"humanMainHeader my-dialog__header"},Ye={class:"humanMainHeaderRight"},We=["src"];function He(n,t,i,e,a,r){return w.openBlock(),w.createElementBlock("div",Re,[w.createElementVNode("div",{class:w.normalizeClass(["humanEnterIcon",[a.unreadCount>0?"unreadCount":""]]),id:"humanEnterIcon",onClick:t[0]||(t[0]=(...s)=>r.changeChatViewVisible&&r.changeChatViewVisible(...s))},[a.unreadCount<1?(w.openBlock(),w.createElementBlock("svg",Me,[...t[2]||(t[2]=[w.createElementVNode("path",{d:"M135.73310782 546.11486502v91.39864856a68.41216214 68.41216214 0 0 0 136.82432428 0v-91.39864856a68.41216214 68.41216214 0 0 0-136.82432428 0z m628.77618292 174.3141893A113.58699363 113.58699363 0 0 1 728.63851358 637.51351358v-91.39864856A114.02026996 114.02026996 0 0 1 841.86064218 432.18581069C830.16216214 266.51435782 692.03800637 135.73310782 523.40202716 135.73310782 354.74324363 135.73310782 216.64189218 266.51435782 204.94341214 432.18581069A114.0886821 114.0886821 0 0 1 318.16554074 546.11486502v91.39864856a114.02026996 114.02026996 0 0 1-228.04054074 0v-91.39864856a114.02026996 114.02026996 0 0 1 68.64020288-104.53378353C165.83445926 246.28716214 326.375 90.125 523.40202716 90.125s357.5675679 156.16216214 364.63682428 351.45608149A114.0886821 114.0886821 0 0 1 956.67905432 546.11486502v91.39864856a114.02026996 114.02026996 0 0 1-152.26266934 107.3386821 387.89695926 387.89695926 0 0 1-155.61486503 99.8817572A79.76858148 79.76858148 0 0 1 568.78209424 922.47297284h-68.00168848c-44.23986502 0-80.01942573-35.57432428-80.01942572-79.8141893 0-44.17145288 35.66554074-79.81418931 80.04222922-79.8141893h67.95608148c28.80151995 0 54 15.05067573 68.09290494 37.74071008a342.17483148 342.17483148 0 0 0 127.63429074-80.15625zM774.2466214 546.11486502v91.39864856a68.41216214 68.41216214 0 0 0 136.82432428 0v-91.39864856a68.41216214 68.41216214 0 0 0-136.82432427 0zM500.82601358 876.86486502h67.95608066c19.20101358 0 34.43412141-15.23310782 34.43412222-34.20608148 0-18.99577716-15.30151996-34.20608149-34.43412222-34.20608066h-67.95608066c-19.20101358 0-34.43412141 15.23310782-34.4341214 34.20608066 0 18.99577716 15.30151996 34.20608149 34.4341214 34.20608148z","p-id":"1471"},null,-1)])])):(w.openBlock(),w.createElementBlock(w.Fragment,{key:1},[w.createTextVNode(w.toDisplayString(a.unreadCount>99?"99+":a.unreadCount),1)],64))],2),w.withDirectives(w.createElementVNode("div",Fe,[w.createElementVNode("div",Pe,[t[3]||(t[3]=w.createElementVNode("div",{class:"humanMainHeaderLeft"},null,-1)),t[4]||(t[4]=w.createElementVNode("div",{class:"humanMainHeaderCenter"},"客服",-1)),w.createElementVNode("div",Ye,[w.createElementVNode("span",{onClick:t[1]||(t[1]=s=>a.visible=!a.visible)},"关闭")])]),w.createElementVNode("iframe",{id:"iframe",src:r.src,frameborder:"0",allowfullscreen:""},null,8,We)],512),[[w.vShow,a.visible]])])}return Le(Ve,[["render",He],["__scopeId","data-v-594c3975"]])}));
|