(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0000":function(t,e,n){"use strict";var r=n("5171"),i=n("72e2");t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},"0028":function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("0743"))},"014e":function(t,e,n){"use strict";var r=n("bb3f"),i=n("1cd4"),o=n("5ef4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"018e":function(t,e,n){"use strict";var r=n("844e"),i=n("3d8c"),o=n("c427")(),a=n("92a4"),s=r("%TypeError%"),c=r("%Math.floor%");t.exports=function(t,e){if("function"!==typeof t)throw new s("`fn` is not a function");if("number"!==typeof e||e<0||e>4294967295||c(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},"01f3":function(t,e,n){"use strict";var r=n("635d");t.exports=r({}.isPrototypeOf)},"0290":function(t,e,n){"use strict";var r=n("e726"),i=n("2daa"),o=n("0000"),a=n("ff5f"),s=TypeError,c=Object.defineProperty,u=i.self!==i;try{if(a){var l=Object.getOwnPropertyDescriptor(i,"self");!u&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw new s("Illegal invocation");c(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:u},{self:i})}catch(f){}},"03c7":function(t,e,n){"use strict";var r=n("e726"),i=n("4fa2"),o=n("fc80"),a=n("bc74"),s=n("bf5a"),c=n("f46b"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var c=0;c0?E.join(",")||null:void 0}];else if(c(h))P=h;else{var R=Object.keys(E);P=v?R.sort(v):R}for(var D=a&&c(E)&&1===E.length?n+"[]":n,M=0;M0?w+b:""}},"11c0":function(t,e,n){"use strict";var r=n("79e1"),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},"12b6":function(t,e,n){"use strict";t.exports={}},1482:function(t,e,n){"use strict";var r=n("2daa"),i=n("96fa"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},"16fb":function(t,e,n){"use strict";var r=n("635d"),i=n("f46b"),o=n("4f0e"),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},1792:function(t,e,n){"use strict";var r=n("faaa");t.exports=Function.prototype.bind||r},1805:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"19f3":function(t,e,n){"use strict";var r=n("79e1"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"1cd4":function(t,e,n){"use strict";var r=n("3d7a"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},"1f44":function(t,e,n){"use strict";var r=n("635d"),i=n("4fa2"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"22fd":function(t,e,n){"use strict";var r=n("5fd6"),i=n("635d"),o=n("ebd1"),a=n("b7bd"),s=n("1cd4"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},2860:function(t,e,n){"use strict";var r=n("c9b9"),i=n("c8c1"),o=n("3d7a"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},"2daa":function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("a282"))},"30fd":function(t,e,n){"use strict";var r=n("cf9c"),i=n("fbc5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},3113:function(t,e,n){"use strict";var r=n("9489");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},"34f4":function(t,e){var n="expire_mixin";function r(){var t=this.createStore(this.storage,null,this._namespacePrefix+n);return{set:e,get:r,remove:i,getExpiration:o,removeExpiredKeys:a};function e(e,r,i,o){return this.hasNamespace(n)||t.set(r,o),e()}function r(t,e){return this.hasNamespace(n)||s.call(this,e),t()}function i(e,r){return this.hasNamespace(n)||t.remove(r),e()}function o(e,n){return t.get(n)}function a(t){var e=[];this.each((function(t,n){e.push(n)}));for(var n=0;n
',f="undefined"!==typeof window&&"undefined"!==typeof window.document,h=f?window:{},p=!(!f||!h.document.documentElement)&&"ontouchstart"in h.document.documentElement,d=!!f&&"PointerEvent"in h,y="viewer",v="move",m="switch",g="zoom",b="".concat(y,"-active"),w="".concat(y,"-close"),x="".concat(y,"-fade"),S="".concat(y,"-fixed"),O="".concat(y,"-fullscreen"),E="".concat(y,"-fullscreen-exit"),j="".concat(y,"-hide"),A="".concat(y,"-hide-md-down"),_="".concat(y,"-hide-sm-down"),T="".concat(y,"-hide-xs-down"),k="".concat(y,"-in"),P="".concat(y,"-invisible"),I="".concat(y,"-loading"),R="".concat(y,"-move"),D="".concat(y,"-open"),M="".concat(y,"-show"),C="".concat(y,"-transition"),N="click",$="dblclick",F="dragstart",L="focusin",z="keydown",U="load",W="error",q=p?"touchend touchcancel":"mouseup",B=p?"touchmove":"mousemove",V=p?"touchstart":"mousedown",Y=d?"pointerdown":V,H=d?"pointermove":B,X=d?"pointerup pointercancel":q,J="resize",G="transitionend",Z="wheel",Q="ready",K="show",tt="shown",et="hide",nt="hidden",rt="view",it="viewed",ot="move",at="moved",st="rotate",ct="rotated",ut="scale",lt="scaled",ft="zoom",ht="zoomed",pt="play",dt="stop",yt="".concat(y,"Action"),vt=/\s\s*/,mt=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function gt(t){return"string"===typeof t}var bt=Number.isNaN||h.isNaN;function wt(t){return"number"===typeof t&&!bt(t)}function xt(t){return"undefined"===typeof t}function St(t){return"object"===n(t)&&null!==t}var Ot=Object.prototype.hasOwnProperty;function Et(t){if(!St(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&Ot.call(n,"isPrototypeOf")}catch(r){return!1}}function jt(t){return"function"===typeof t}function At(t,e){if(t&&jt(e))if(Array.isArray(t)||wt(t.length)){var n,r=t.length;for(n=0;n1?e-1:0),r=1;r0&&n.forEach((function(e){St(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},Tt=/^(?:width|height|left|top|marginLeft|marginTop)$/;function kt(t,e){var n=t.style;At(e,(function(t,e){Tt.test(e)&&wt(t)&&(t+="px"),n[e]=t}))}function Pt(t){return gt(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"):t}function It(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function Rt(t,e){if(t&&e)if(wt(t.length))At(t,(function(t){Rt(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Dt(t,e){t&&e&&(wt(t.length)?At(t,(function(t){Dt(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Mt(t,e,n){e&&(wt(t.length)?At(t,(function(t){Mt(t,e,n)})):n?Rt(t,e):Dt(t,e))}var Ct=/([a-z\d])([A-Z])/g;function Nt(t){return t.replace(Ct,"$1-$2").toLowerCase()}function $t(t,e){return St(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Nt(e)))}function Ft(t,e,n){St(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Nt(e)),n)}var Lt=function(){var t=!1;if(f){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});h.addEventListener("test",n,r),h.removeEventListener("test",n,r)}return t}();function zt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(vt).forEach((function(e){if(!Lt){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function Ut(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(vt).forEach((function(e){if(r.once&&!Lt){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),c=0;cs?f=s/o:l=c*o,a=wt(a)?a:.9,l=Math.min(l*a,e),f=Math.min(f*a,i);var h=(s-l)/2,p=(c-f)/2,d={left:h,top:p,x:h,y:p,width:l,height:f,oldRatio:1,ratio:l/e,aspectRatio:o,naturalWidth:e,naturalHeight:i},y=_t({},d);r.rotatable&&(d.rotate=u.rotate||0,y.rotate=0),r.scalable&&(d.scaleX=u.scaleX||1,d.scaleY=u.scaleY||1,y.scaleX=1,y.scaleY=1),n.imageData=d,n.initialImageData=y,t&&t()}))},renderImage:function(t){var e=this,n=this.image,r=this.imageData;if(kt(n,_t({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},Bt(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&It(n,C)){var i=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){zt(n,G,i)}},Ut(n,G,i,{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="")}},Kt={bind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;Ut(e,N,this.onClick=this.click.bind(this)),Ut(e,F,this.onDragStart=this.dragstart.bind(this)),Ut(n,Y,this.onPointerDown=this.pointerdown.bind(this)),Ut(r,H,this.onPointerMove=this.pointermove.bind(this)),Ut(r,X,this.onPointerUp=this.pointerup.bind(this)),Ut(r,z,this.onKeyDown=this.keydown.bind(this)),Ut(window,J,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&Ut(e,Z,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&Ut(n,$,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,n=this.canvas,r=this.element.ownerDocument;zt(e,N,this.onClick),zt(e,F,this.onDragStart),zt(n,Y,this.onPointerDown),zt(r,H,this.onPointerMove),zt(r,X,this.onPointerUp),zt(r,z,this.onKeyDown),zt(window,J,this.onResize),t.zoomable&&t.zoomOnWheel&&zt(e,Z,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&zt(n,$,this.onDblclick)}},te={click:function(t){var e=this.options,n=this.imageData,r=t.target,i=$t(r,yt);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(r=r.parentElement,i=$t(r,yt)),p&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():e.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view($t(r,"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(e.loop);break;case"play":this.play(e.fullscreen);break;case"next":this.next(e.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(p&&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 e=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;Dt(r,P),n.loading&&Dt(this.canvas,I),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage((function(){Mt(r,R,n.movable),Mt(r,C,n.transition),t.renderImage((function(){t.viewed=!0,t.viewing=!1,jt(n.viewed)&&Ut(e,it,n.viewed,{once:!0}),Wt(e,it,{originalImage:t.images[i],index:i,image:r},{cancelable:!1})}))}))},loadImage:function(t){var e=t.target,n=e.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!$t(e,"filled");Ht(e,this.options,(function(t,n){var a=t/n,s=r,c=i;i*a>r?o?s=i*a:c=r/a:o?c=r/a:s=i*a,kt(e,_t({width:s,height:c},Bt({translateX:(r-s)/2,translateY:(i-c)/2})))}))},keydown:function(t){var e=this.options;if(e.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(n){case 27:this.played?this.stop():e.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(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){"img"===t.target.localName&&t.preventDefault()},pointerdown:function(t){var e=this.options,n=this.pointers,r=t.buttons,i=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(wt(r)&&1!==r||wt(i)&&0!==i||t.ctrlKey))){t.preventDefault(),t.changedTouches?At(t.changedTouches,(function(t){n[t.identifier]=Gt(t)})):n[t.pointerId||0]=Gt(t);var o=!!e.movable&&v;e.zoomOnTouch&&e.zoomable&&Object.keys(n).length>1?o=g:e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(o=m),!e.transition||o!==v&&o!==g||Dt(this.image,C),this.action=o}},pointermove:function(t){var e=this.pointers,n=this.action;this.viewed&&n&&(t.preventDefault(),t.changedTouches?At(t.changedTouches,(function(t){_t(e[t.identifier]||{},Gt(t,!0))})):_t(e[t.pointerId||0]||{},Gt(t,!0)),this.change(t))},pointerup:function(t){var e,n=this,r=this.options,i=this.action,o=this.pointers;t.changedTouches?At(t.changedTouches,(function(t){e=o[t.identifier],delete o[t.identifier]})):(e=o[t.pointerId||0],delete o[t.pointerId||0]),i&&(t.preventDefault(),!r.transition||i!==v&&i!==g||Rt(this.image,C),this.action=!1,p&&i!==g&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){Wt(n.image,$,{originalEvent:t})}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){Wt(n.canvas,N,{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))return void this.stop();At(this.player.getElementsByTagName("img"),(function(e){Ut(e,U,t.loadImage.bind(t),{once:!0}),Wt(e,U)}))}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,!0,null,t)}}},ee={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(jt(n.show)&&Ut(e,K,n.show,{once:!0}),!1===Wt(e,K)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(Dt(r,j),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){zt(r,G,i),Dt(r,k)}},Rt(r,C),r.initialOffsetWidth=r.offsetWidth,Ut(r,G,i,{once:!0}),Rt(r,k)}else Rt(r,k),this.shown();return this},hide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(jt(r.hide)&&Ut(n,et,r.hide,{once:!0}),!1===Wt(n,et))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){Dt(i,k),t.hidden()};if(r.transition&&!e){var s=function e(n){n&&n.target===i&&(zt(i,G,e),t.hidden())},c=function(){It(i,C)?(Ut(i,G,s),Dt(i,k)):a()};this.transitioning={abort:function(){t.viewed&&It(o,C)?zt(o,G,c):It(i,C)&&zt(i,G,s)}},this.viewed&&It(o,C)?(Ut(o,G,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else a();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[e],s=a.querySelector("img"),c=$t(s,"originalUrl"),u=s.getAttribute("alt"),l=document.createElement("img");if(At(r.inheritedAttributes,(function(t){var e=s.getAttribute(t);null!==e&&l.setAttribute(t,e)})),l.src=c,l.alt=u,jt(r.view)&&Ut(n,rt,r.view,{once:!0}),!1===Wt(n,rt,{originalImage:this.images[e],index:e,image:l})||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];f&&(Dt(f,b),f.removeAttribute("aria-selected")),Rt(a,b),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=l,this.viewed=!1,this.index=e,this.imageData={},Rt(l,P),r.loading&&Rt(o,I),o.innerHTML="",o.appendChild(l),this.renderList(),i.innerHTML="";var h,p,d=function(){var e=t.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=Pt(jt(n)?n.call(t,l,e):"".concat(u," (").concat(e.naturalWidth," × ").concat(e.naturalHeight,")"))};return Ut(n,it,d,{once:!0}),this.viewing={abort:function(){zt(n,it,d),l.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(l.src="",zt(l,U,h),t.timeout&&clearTimeout(t.timeout))}},l.complete?this.load():(Ut(l,U,h=function(){zt(l,W,p),t.load()},{once:!0}),Ut(l,W,p=function(){zt(l,U,h),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),Dt(l,P),r.loading&&Dt(t.canvas,I)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){Dt(l,P),t.timeout=!1}),1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,n=this.index+1;return n>e&&(n=t?0:e),this.view(n),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData;return this.moveTo(xt(t)?t:n.x+Number(t),xt(e)?e:n.y+Number(e)),this},moveTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,c=a.y,u=!1;if(wt(t)?u=!0:t=s,wt(n)?u=!0:n=c,u){if(jt(o.move)&&Ut(i,ot,o.move,{once:!0}),!1===Wt(i,ot,{x:t,y:n,oldX:s,oldY:c,originalEvent:r}))return this;a.x=t,a.y=n,a.left=t,a.top=n,this.moving=!0,this.renderImage((function(){e.moving=!1,jt(o.moved)&&Ut(i,at,o.moved,{once:!0}),Wt(i,at,{x:t,y:n,oldX:s,oldY:c,originalEvent:r},{cancelable:!1})}))}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this,n=this.element,r=this.options,i=this.imageData;if(t=Number(t),wt(t)&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(jt(r.rotate)&&Ut(n,st,r.rotate,{once:!0}),!1===Wt(n,st,{degree:t,oldDegree:o}))return this;i.rotate=t,this.rotating=!0,this.renderImage((function(){e.rotating=!1,jt(r.rotated)&&Ut(n,ct,r.rotated,{once:!0}),Wt(n,ct,{degree:t,oldDegree:o},{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 e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.element,i=this.options,o=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,c=!1;if(wt(t)?c=!0:t=a,wt(n)?c=!0:n=s,c){if(jt(i.scale)&&Ut(r,ut,i.scale,{once:!0}),!1===Wt(r,ut,{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=t,o.scaleY=n,this.scaling=!0,this.renderImage((function(){e.scaling=!1,jt(i.scaled)&&Ut(r,lt,i.scaled,{once:!0}),Wt(r,lt,{scaleX:t,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})}))}}return this},zoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,e,n,r),this},zoomTo:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,c=this.pointers,u=this.imageData,l=u.x,f=u.y,h=u.width,p=u.height,d=u.naturalWidth,y=u.naturalHeight;if(t=Math.max(0,t),wt(t)&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var v=Math.max(.01,s.minZoomRatio),m=Math.min(100,s.maxZoomRatio);t=Math.min(Math.max(t,v),m)}if(i)switch(i.type){case"wheel":s.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 g=d*t,b=y*t,w=g-h,x=b-p,S=u.ratio;if(jt(s.zoom)&&Ut(a,ft,s.zoom,{once:!0}),!1===Wt(a,ft,{ratio:t,oldRatio:S,originalEvent:i}))return this;if(this.zooming=!0,i){var O=qt(this.viewer),E=c&&Object.keys(c).length>0?Zt(c):{pageX:i.pageX,pageY:i.pageY};u.x-=w*((E.pageX-O.left-l)/h),u.y-=x*((E.pageY-O.top-f)/p)}else Et(r)&&wt(r.x)&&wt(r.y)?(u.x-=w*((r.x-l)/h),u.y-=x*((r.y-f)/p)):(u.x-=w/2,u.y-=x/2);u.left=u.x,u.top=u.y,u.width=g,u.height=b,u.oldRatio=S,u.ratio=t,this.renderImage((function(){e.zooming=!1,jt(s.zoomed)&&Ut(a,ht,s.zoomed,{once:!0}),Wt(a,ht,{ratio:t,oldRatio:S,originalEvent:i},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(jt(r.play)&&Ut(n,pt,r.play,{once:!0}),!1===Wt(n,pt))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,c=0;if(this.played=!0,this.onLoadWhenPlay=o,e&&this.requestFullscreen(e),Rt(i,M),At(this.items,(function(t,e){var n=t.querySelector("img"),u=document.createElement("img");u.src=$t(n,"originalUrl"),u.alt=n.getAttribute("alt"),u.referrerPolicy=n.referrerPolicy,s+=1,Rt(u,x),Mt(u,C,r.transition),It(t,b)&&(Rt(u,k),c=e),a.push(u),Ut(u,U,o,{once:!0}),i.appendChild(u)})),wt(r.interval)&&r.interval>0){var u=function e(){clearTimeout(t.playing.timeout),Dt(a[c],k),c-=1,c=c>=0?c:s-1,Rt(a[c],k),t.playing.timeout=setTimeout(e,r.interval)},l=function e(){clearTimeout(t.playing.timeout),Dt(a[c],k),c+=1,c=c1&&(this.playing={prev:u,next:l,timeout:setTimeout(l,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.element,n=this.options;if(jt(n.stop)&&Ut(e,dt,n.stop,{once:!0}),!1===Wt(e,dt))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,At(r.getElementsByTagName("img"),(function(e){zt(e,U,t.onLoadWhenPlay)})),Dt(r,M),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!e.inline||(this.fulled=!0,this.open(),Rt(this.button,E),e.transition&&(Dt(i,C),this.viewed&&Dt(r,C)),Rt(n,S),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),kt(n,{zIndex:e.zIndex}),e.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=_t({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){Rt(r,C),Rt(i,C)}),0)}))}))),this},exit:function(){var t=this,e=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),Dt(this.button,E),e.transition&&(Dt(i,C),this.viewed&&Dt(r,C)),e.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Dt(n,S),kt(n,{zIndex:e.zIndexInline}),this.viewerData=_t({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){Rt(r,C),Rt(i,C)}),0)}))})),this):this},tooltip:function(){var t=this,e=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&e.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&Wt(n,G),Rt(n,M),Rt(n,x),Rt(n,C),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Rt(n,k)):(Rt(n,M),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){e.transition?(Ut(n,G,(function(){Dt(n,M),Dt(n,x),Dt(n,C),n.setAttribute("aria-hidden",!0),t.fading=!1}),{once:!0}),Dt(n,k),t.fading=!0):(Dt(n,M),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1}),1e3),this):this},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=_t({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,e=this.element,n=this.options,r=this.isImg;if(r&&!e.parentNode)return this.destroy();var i=[];if(At(r?[e]:e.querySelectorAll("img"),(function(e){jt(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)})),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(At(this.items,(function(t,e){var n=t.querySelector("img"),r=i[e];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(e)})),kt(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];Rt(s,b),s.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,e=this.options;return t[y]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.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)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||zt(t,N,this.onStart),t[y]=void 0,this):this}},ne={getImageURL:function(t){var e=this.options.url;return e=gt(e)?t.getAttribute(e):jt(e)?e.call(this,t):"",e},enforceFocus:function(){var t=this;this.clearEnforceFocus(),Ut(document,L,this.onFocusin=function(e){var n=t.viewer,r=e.target;if(r!==document&&r!==n&&!n.contains(r)){while(r){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(zt(document,L,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;Rt(t,D),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;Dt(t,D),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,e=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(n.focus(),this.enforceFocus()),jt(e.shown)&&Ut(t,tt,e.shown,{once:!0}),!1!==Wt(t,tt)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options,n=this.viewer;e.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),Rt(n,j),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(jt(e.hidden)&&Ut(t,nt,e.hidden,{once:!0}),Wt(t,nt,null,{cancelable:!1}))},requestFullscreen:function(t){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var n=e.documentElement;n.requestFullscreen?Et(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.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 e=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case v:0===i&&0===o||(this.pointerMoved=!0,this.move(i,o,t));break;case g:this.zoom(Jt(n),!1,null,t);break;case m:this.action="switched";var a=Math.abs(i);a>1&&a>Math.abs(o)&&(this.pointers={},i>1?this.prev(e.loop):i<-1&&this.next(e.loop));break}At(n,(function(t){t.startX=t.endX,t.startY=t.endY}))}},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=e.width&&t.height<=e.height}},re=h.Viewer,ie=function(t){return function(){return t+=1,t}}(-1),oe=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=_t({},u,Et(n)&&n),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=ie(),this.init()}return o(t,[{key:"init",value:function(){var t=this,e=this.element,n=this.options;if(!e[y]){e[y]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===e.localName,i=[];if(At(r?[e]:e.querySelectorAll("img"),(function(e){jt(n.filter)?n.filter.call(t,e)&&i.push(e):t.getImageURL(e)&&i.push(e)})),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),xt(document.createElement(y).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var e;(o+=1,o===t.length)&&(t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout((function(){t.delaying=!1,t.build()}),0))};this.initializing={abort:function(){At(i,(function(t){t.complete||(zt(t,U,a),zt(t,W,a))}))}},At(i,(function(t){var e,n;t.complete?a():(Ut(t,U,e=function(){zt(t,W,n),a()},{once:!0}),Ut(t,W,n=function(){zt(t,U,e),a()},{once:!0}))}))}else Ut(e,N,this.onStart=function(e){var r=e.target;"img"!==r.localName||jt(n.filter)&&!n.filter.call(t,r)||t.view(t.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,n=t.parentNode,r=document.createElement("div");r.innerHTML=l;var i=r.querySelector(".".concat(y,"-container")),o=i.querySelector(".".concat(y,"-title")),a=i.querySelector(".".concat(y,"-toolbar")),s=i.querySelector(".".concat(y,"-navbar")),c=i.querySelector(".".concat(y,"-button")),u=i.querySelector(".".concat(y,"-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=c,this.canvas=u,this.footer=i.querySelector(".".concat(y,"-footer")),this.tooltipBox=i.querySelector(".".concat(y,"-tooltip")),this.player=i.querySelector(".".concat(y,"-player")),this.list=i.querySelector(".".concat(y,"-list")),i.id="".concat(y).concat(this.id),o.id="".concat(y,"Title").concat(this.id),Rt(o,e.title?Xt(Array.isArray(e.title)?e.title[0]:e.title):j),Rt(s,e.navbar?Xt(e.navbar):j),Mt(c,j,!e.button),e.keyboard&&c.setAttribute("tabindex",0),e.backdrop&&(Rt(i,"".concat(y,"-backdrop")),e.inline||"static"===e.backdrop||Ft(u,yt,"hide")),gt(e.className)&&e.className&&e.className.split(vt).forEach((function(t){Rt(i,t)})),e.toolbar){var f=document.createElement("ul"),h=Et(e.toolbar),p=mt.slice(0,3),d=mt.slice(7,9),v=mt.slice(9);h||Rt(a,Xt(e.toolbar)),At(h?e.toolbar:mt,(function(t,n){var r=h&&Et(t),i=h?Nt(n):t,o=r&&!xt(t.show)?t.show:t;if(o&&(e.zoomable||-1===p.indexOf(i))&&(e.rotatable||-1===d.indexOf(i))&&(e.scalable||-1===v.indexOf(i))){var a=r&&!xt(t.size)?t.size:t,s=r&&!xt(t.click)?t.click:t,c=document.createElement("li");e.keyboard&&c.setAttribute("tabindex",0),c.setAttribute("role","button"),Rt(c,"".concat(y,"-").concat(i)),jt(s)||Ft(c,yt,i),wt(o)&&Rt(c,Xt(o)),-1!==["small","large"].indexOf(a)?Rt(c,"".concat(y,"-").concat(a)):"play"===i&&Rt(c,"".concat(y,"-large")),jt(s)&&Ut(c,N,s),f.appendChild(c)}})),a.appendChild(f)}else Rt(a,j);if(!e.rotatable){var m=a.querySelectorAll('li[class*="rotate"]');Rt(m,P),At(m,(function(t){a.appendChild(t)}))}if(e.inline)Rt(c,O),kt(i,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(n).position&&kt(n,{position:"relative"}),n.insertBefore(i,t.nextSibling);else{Rt(c,w),Rt(i,S),Rt(i,x),Rt(i,j),kt(i,{zIndex:e.zIndex});var g=e.container;gt(g)&&(g=t.ownerDocument.querySelector(g)),g||(g=this.body),g.appendChild(i)}e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,jt(e.ready)&&Ut(t,Q,e.ready,{once:!0}),!1!==Wt(t,Q)?this.ready&&e.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=re,t}},{key:"setDefaults",value:function(t){_t(u,Et(t)&&t)}}]),t}();return _t(oe.prototype,Qt,Kt,te,ee,ne),oe}))},"354b":function(t,e,n){"use strict";var r=n("2daa"),i=n("4f0e");t.exports="process"===i(r.process)},"37f3":function(t,e,n){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},3835:function(t,e,n){"use strict";var r,i,o,a=n("7540"),s=n("2daa"),c=n("3d7a"),u=n("846d"),l=n("1f44"),f=n("1482"),h=n("075e"),p=n("12b6"),d="Object already initialized",y=s.TypeError,v=s.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new y(d);return e.facade=t,b.set(t,e),e},i=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var w=h("state");p[w]=!0,r=function(t,e){if(l(t,w))throw new y(d);return e.facade=t,u(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:g}},"3aab":function(t,e,n){"use strict";var r=n("f46b");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"3b20":function(t,e,n){"use strict";var r=n("f46b"),i=n("c732");t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},"3c8b":function(t,e,n){(function(e){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"===typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,h=f?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,d=p?WeakSet.prototype.has:null,y="function"===typeof WeakRef&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,O=String.prototype.toUpperCase,E=String.prototype.toLowerCase,j=RegExp.prototype.test,A=Array.prototype.concat,_=Array.prototype.join,T=Array.prototype.slice,k=Math.floor,P="function"===typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,M="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-k(-t):k(t);if(r!==t){var i=String(r),o=x.call(e,i.length+1);return S.call(i,n,"$&_")+"."+S.call(S.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(e,n,"$&_")}var F=n(1),L=F.custom,z=G(L)?L:null;function U(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function W(t){return S.call(String(t),/"/g,""")}function q(t){return"[object Array]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function B(t){return"[object Date]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function V(t){return"[object RegExp]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function Y(t){return"[object Error]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function H(t){return"[object String]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function X(t){return"[object Number]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function J(t){return"[object Boolean]"===tt(t)&&(!M||!("object"===typeof t&&M in t))}function G(t){if(D)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!R)return!1;try{return R.call(t),!0}catch(e){}return!1}function Z(t){if(!t||"object"!==typeof t||!P)return!1;try{return P.call(t),!0}catch(e){}return!1}t.exports=function t(n,r,i,s){var c=r||{};if(K(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!K(c,"customInspect")||c.customInspect;if("boolean"!==typeof f&&"symbol"!==f)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=c.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return ut(n,c);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var p=String(n);return h?$(n,p):p}if("bigint"===typeof n){var d=String(n)+"n";return h?$(n,d):d}var y="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof i&&(i=0),i>=y&&y>0&&"object"===typeof n)return q(n)?"[Array]":"[Object]";var v=yt(c,i);if("undefined"===typeof s)s=[];else if(nt(s,n)>=0)return"[Circular]";function g(e,n,r){if(n&&(s=T.call(s),s.push(n)),r){var o={depth:c.depth};return K(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),t(e,o,i+1,s)}return t(e,c,i+1,s)}if("function"===typeof n&&!V(n)){var b=et(n),w=mt(n,g);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+_.call(w,", ")+" }":"")}if(G(n)){var O=D?S.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(n);return"object"!==typeof n||D?O:ft(O)}if(ct(n)){for(var j="<"+E.call(String(n.nodeName)),k=n.attributes||[],I=0;I",j}if(q(n)){if(0===n.length)return"[]";var L=mt(n,g);return v&&!dt(L)?"["+vt(L,v)+"]":"[ "+_.call(L,", ")+" ]"}if(Y(n)){var Q=mt(n,g);return"cause"in Error.prototype||!("cause"in n)||C.call(n,"cause")?0===Q.length?"["+String(n)+"]":"{ ["+String(n)+"] "+_.call(Q,", ")+" }":"{ ["+String(n)+"] "+_.call(A.call("[cause]: "+g(n.cause),Q),", ")+" }"}if("object"===typeof n&&f){if(z&&"function"===typeof n[z]&&F)return F(n,{depth:y-i});if("symbol"!==f&&"function"===typeof n.inspect)return n.inspect()}if(rt(n)){var lt=[];return a&&a.call(n,(function(t,e){lt.push(g(e,n,!0)+" => "+g(t,n))})),pt("Map",o.call(n),lt,v)}if(at(n)){var gt=[];return l&&l.call(n,(function(t){gt.push(g(t,n))})),pt("Set",u.call(n),gt,v)}if(it(n))return ht("WeakMap");if(st(n))return ht("WeakSet");if(ot(n))return ht("WeakRef");if(X(n))return ft(g(Number(n)));if(Z(n))return ft(g(P.call(n)));if(J(n))return ft(m.call(n));if(H(n))return ft(g(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if(n===e)return"{ [object globalThis] }";if(!B(n)&&!V(n)){var bt=mt(n,g),wt=N?N(n)===Object.prototype:n instanceof Object||n.constructor===Object,xt=n instanceof Object?"":"null prototype",St=!wt&&M&&Object(n)===n&&M in n?x.call(tt(n),8,-1):xt?"Object":"",Ot=wt||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",Et=Ot+(St||xt?"["+_.call(A.call([],St||[],xt||[]),": ")+"] ":"");return 0===bt.length?Et+"{}":v?Et+"{"+vt(bt,v)+"}":Et+"{ "+_.call(bt,", ")+" }"}return String(n)};var Q=Object.prototype.hasOwnProperty||function(t){return t in this};function K(t,e){return Q.call(t,e)}function tt(t){return g.call(t)}function et(t){if(t.name)return t.name;var e=w.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ut(x.call(t,0,e.maxStringLength),e)+r}var i=S.call(S.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lt);return U(i,"single",e)}function lt(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+O.call(e.toString(16))}function ft(t){return"Object("+t+")"}function ht(t){return t+" { ? }"}function pt(t,e,n,r){var i=r?vt(n,r):_.call(n,", ");return t+" ("+e+") {"+i+"}"}function dt(t){for(var e=0;e=0)return!1;return!0}function yt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=_.call(Array(t.indent+1)," ")}return{base:n,prev:_.call(Array(e+1),n)}}function vt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+_.call(t,","+n)+"\n"+e.prev}function mt(t,e){var n=q(t),r=[];if(n){r.length=t.length;for(var i=0;i3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!c&&c(t,e);if(o)o(t,e,{configurable:null===u&&f?f.configurable:!u,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!l&&(r||i||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},"3de2":function(t,e,n){"use strict";var r=n("c8c1"),i=n("3d7a"),o=n("014e");t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"3f1c":function(t,e,n){"use strict";var r=n("eda8"),i=n("4fa2"),o=n("16fb"),a=n("fc80"),s=TypeError,c=function(t){return function(e,n,c,u){var l=i(e),f=o(l),h=a(l);r(n);var p=t?h-1:0,d=t?-1:1;if(c<2)while(1){if(p in f){u=f[p],p+=d;break}if(p+=d,t?p<0:h<=p)throw new s("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=d)p in f&&(u=n(u,f[p],p,l));return u}};t.exports={left:c(!1),right:c(!0)}},4177:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},"41cd":function(t,e,n){"use strict";var r=n("4f0e");t.exports=Array.isArray||function(t){return"Array"===r(t)}},"41f7":function(t,e,n){"use strict";var r=n("1f44"),i=n("22fd"),o=n("c38a"),a=n("72e2");t.exports=function(t,e,n){for(var s=i(e),c=a.f,u=o.f,l=0;l=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]),s=unescape(r[1]);t(s,i)}}function u(t,e){t&&(a.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function l(t){t&&h(t)&&(a.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function f(){c((function(t,e){l(e)}))}function h(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},"4e00":function(t,e,n){"use strict";var r=n("1792"),i=n("844e"),o=n("018e"),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(c,s),l=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(p){l=null}t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=u(r,c,arguments);return o(e,1+f(0,t.length-(arguments.length-1)),!0)};var h=function(){return u(r,s,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h},"4e22":function(t,e,n){"use strict";var r=n("f46b"),i=n("c8c1"),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===l||n!==u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"4f0e":function(t,e,n){"use strict";var r=n("635d"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},"4fa2":function(t,e,n){"use strict";var r=n("ba68"),i=Object;t.exports=function(t){return i(r(t))}},5171:function(t,e,n){"use strict";var r=n("635d"),i=n("f46b"),o=n("c8c1"),a=n("1f44"),s=n("ff5f"),c=n("6219").CONFIGURABLE,u=n("c769"),l=n("3835"),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,y=r("".slice),v=r("".replace),m=r([].join),g=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===y(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=f(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||u(this)}),"toString")},"535d":function(t,e,n){function r(){return n("ea0b"),{}}t.exports=r},5440:function(t,e,n){"use strict";var r=n("635d"),i=Error,o=r("".replace),a=function(t){return String(new i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"5b5a":function(t,e,n){"use strict";var r=n("1127"),i=n("60a8"),o=n("c74c");t.exports={formats:o,parse:i,stringify:r}},"5ce4":function(t,e,n){var r=n("7808"),i=r.Global;t.exports={name:"oldFF-globalStorage",read:a,write:s,each:c,remove:u,clearAll:l};var o=i.globalStorage;function a(t){return o[t]}function s(t,e){o[t]=e}function c(t){for(var e=o.length-1;e>=0;e--){var n=o.key(e);t(o[n],n)}}function u(t){return o.removeItem(t)}function l(){c((function(t,e){delete o[t]}))}},"5db0":function(t,e,n){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return R}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),c=n.n(s);function u(t){try{return document.execCommand(t)}catch(e){return!1}}var l=function(t){var e=c()(t);return u("cut"),e},f=l;function h(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var p=function(t,e){var n=h(t);e.container.appendChild(n);var r=c()(n);return u("copy"),n.remove(),r},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=p(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=p(t.value,e):(n=c()(t),u("copy")),n},y=d;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?y(o,{container:r}):i?"cut"===n?f(i):y(i,{container:r}):void 0},g=m;function b(t){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===b(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=g({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return P("action",t)}},{key:"defaultTarget",value:function(t){var e=P("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return P("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return y(t,e)}},{key:"cut",value:function(t){return f(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),R=I},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return c(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function c(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"5ef4":function(t,e,n){"use strict";var r=n("6698"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},"5f73":function(t,e,n){},"5fd6":function(t,e,n){"use strict";var r=n("2daa"),i=n("c8c1"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},6023:function(t,e,n){"use strict";var r=n("01f3"),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},"60a8":function(t,e,n){"use strict";var r=n("f1fa"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(t,e){var n,f={__proto__:null},h=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,d=h.split(e.delimiter,p),y=-1,v=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(g=o(g)?[g]:g),i.call(f,m)?f[m]=r.combine(f[m],g):f[m]=g}return f},h=function(t,e,n,r){for(var i=r?e:c(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[],a[l]=i):"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i},p=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(o),u=c?o.slice(0,c.index):o,l=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}var f=0;while(n.depth>0&&null!==(c=s.exec(o))&&fl)if(s=c[l++],s!==s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"6d5a":function(t,e,n){"use strict";var r=n("d3d1"),i=n("c8c1"),o=n("4f0e"),a=n("e9b7"),s=a("toStringTag"),c=Object,u="Arguments"===o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),s))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},"72e2":function(t,e,n){"use strict";var r=n("ff5f"),i=n("84b6"),o=n("e6cf"),a=n("1cd4"),s=n("30fd"),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7540:function(t,e,n){"use strict";var r=n("2daa"),i=n("c8c1"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},"75c0":function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(e in t[e]=r,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},7808:function(t,e,n){(function(e){var n=a(),r=s(),i=c(),o="undefined"!==typeof window?window:e;function a(){return Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i0?i:r)(e)}},8132:function(t,e,n){var r=n("f7dc"),i=n("fe76"),o=[n("535d")];t.exports=r.createStore(i,o)},"81c5":function(t,e,n){"use strict";t.exports=!1},"844e":function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(I){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=n("f30b")(),h=n("067d")(),p=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),d={},y="undefined"!==typeof Uint8Array&&p?p(Uint8Array):r,v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(I){var m=p(p(I));v["%Error.prototype%"]=m}var g=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return v[e]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n("1792"),x=n("4216"),S=w.call(Function.call,Array.prototype.concat),O=w.call(Function.apply,Array.prototype.splice),E=w.call(Function.call,String.prototype.replace),j=w.call(Function.call,String.prototype.slice),A=w.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,k=function(t){var e=j(t,0,1),n=j(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return E(t,_,(function(t,e,n,i){r[r.length]=n?E(i,T,"$1"):e||t})),r},P=function(t,e){var n,r=t;if(x(b,r)&&(n=b[r],r="%"+n[0]+"%"),x(v,r)){var o=v[r];if(o===d&&(o=g(r)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=k(t),r=n.length>0?n[0]:"",o=P("%"+r+"%",e),s=o.name,u=o.value,l=!1,f=o.alias;f&&(r=f[0],O(n,S([0,1],f)));for(var h=1,p=!0;h=n.length){var g=c(u,d);p=!!g,u=p&&"get"in g&&!("originalValue"in g.get)?g.get:u[d]}else p=x(u,d),u=u[d];p&&!l&&(v[s]=u)}}return u}},"846d":function(t,e,n){"use strict";var r=n("ff5f"),i=n("72e2"),o=n("c732");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"84b6":function(t,e,n){"use strict";var r=n("ff5f"),i=n("f46b"),o=n("c37f");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8868:function(t,e,n){"use strict";var r=n("c8c1"),i=n("72e2"),o=n("5171"),a=n("96fa");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},"88da":function(t,e,n){"use strict";var r=n("844e"),i=n("4e00"),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"===typeof n&&o(t,".prototype.")>-1?i(n):n}},"88ef":function(t,e,n){var r=n("7808"),i=r.Global;t.exports={name:"oldIE-userDataStorage",write:u,read:l,each:f,remove:h,clearAll:p};var o="storejs",a=i.document,s=v(),c=(i.navigator?i.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function u(t,e){if(!c){var n=y(t);s((function(t){t.setAttribute(n,e),t.save(o)}))}}function l(t){if(!c){var e=y(t),n=null;return s((function(t){n=t.getAttribute(e)})),n}}function f(t){s((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))}function h(t){var e=y(t);s((function(t){t.removeAttribute(e),t.save(o)}))}function p(){s((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}))}var d=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function y(t){return t.replace(/^\d/,"___$&").replace(d,"___")}function v(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var t,e,n,r="script";try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+r+">document.w=window'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(i){n=a.createElement("div"),t=a.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(o),e.apply(this,r),t.removeChild(n)}}},9224:function(t,e,n){"use strict";var r=n("81c5"),i=n("1482");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"92a4":function(t,e,n){"use strict";var r=n("844e"),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(o){i=null}t.exports=i},"92c4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},9489:function(t,e,n){"use strict";var r=n("6d5a"),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},"94d4":function(t,e,n){"use strict";var r=n("c2ee");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"96fa":function(t,e,n){"use strict";var r=n("2daa"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9977:function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!==typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},"9e52":function(t,e,n){"use strict";var r=n("e726"),i=n("2daa"),o=n("5fd6"),a=n("c732"),s=n("72e2").f,c=n("1f44"),u=n("6023"),l=n("3de2"),f=n("3113"),h=n("37f3"),p=n("5440"),d=n("ff5f"),y=n("81c5"),v="DOMException",m=o("Error"),g=o(v),b=function(){u(this,w);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new g(e,n),i=new m(e);return i.name=v,s(r,"stack",a(1,p(i.stack,1))),l(r,this,b),r},w=b.prototype=g.prototype,x="stack"in new m(v),S="stack"in new g(1,2),O=g&&d&&Object.getOwnPropertyDescriptor(i,v),E=!!O&&!(O.writable&&O.configurable),j=x&&!E&&!S;r({global:!0,constructor:!0,forced:y||j},{DOMException:j?b:g});var A=o(v),_=A.prototype;if(_.constructor!==A)for(var T in y||s(_,"constructor",a(1,A)),h)if(c(h,T)){var k=h[T],P=k.s;c(A,P)||s(A,P,a(6,k.c))}},a282:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},a825:function(t,e,n){"use strict";var r=n("5fd6"),i=n("1f44"),o=n("846d"),a=n("01f3"),s=n("014e"),c=n("41f7"),u=n("0591"),l=n("3de2"),f=n("3113"),h=n("b1dd"),p=n("1100"),d=n("ff5f"),y=n("81c5");t.exports=function(t,e,n,v){var m="stackTraceLimit",g=v?2:1,b=t.split("."),w=b[b.length-1],x=r.apply(null,b);if(x){var S=x.prototype;if(!y&&i(S,"cause")&&delete S.cause,!n)return x;var O=r("Error"),E=e((function(t,e){var n=f(v?e:t,void 0),r=v?new x(t):new x;return void 0!==n&&o(r,"message",n),p(r,E,r.stack,2),this&&a(S,this)&&l(r,this,E),arguments.length>g&&h(r,arguments[g]),r}));if(E.prototype=S,"Error"!==w?s?s(E,O):c(E,O,{name:!0}):d&&m in x&&(u(E,x,m),u(E,x,"prepareStackTrace")),c(E,x),!y)try{S.name!==w&&o(S,"name",w),S.constructor=E}catch(j){}return E}}},a834:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},aa1a:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b19d:function(t,e){t.exports={name:"memoryStorage",read:r,write:i,each:o,remove:a,clearAll:s};var n={};function r(t){return n[t]}function i(t,e){n[t]=e}function o(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)}function a(t){delete n[t]}function s(t){n={}}},b1dd:function(t,e,n){"use strict";var r=n("3d7a"),i=n("846d");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},b2fe:function(t,e,n){var r=n("7808"),i=r.Global;function o(){return i.localStorage}function a(t){return o().getItem(t)}function s(t,e){return o().setItem(t,e)}function c(t){for(var e=o().length-1;e>=0;e--){var n=o().key(e);t(a(n),n)}}function u(t){return o().removeItem(t)}function l(){return o().clear()}t.exports={name:"localStorage",read:a,write:s,each:c,remove:u,clearAll:l}},b655:function(t,e,n){"use strict";var r=n("f46b");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},b677:function(t,e,n){"use strict";var r=n("e726"),i=n("3f1c").left,o=n("b655"),a=n("5ef3"),s=n("354b"),c=!s&&a>79&&a<83,u=c||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},b702:function(t,e,n){var r=n("7808"),i=r.Global;function o(){return i.sessionStorage}function a(t){return o().getItem(t)}function s(t,e){return o().setItem(t,e)}function c(t){for(var e=o().length-1;e>=0;e--){var n=o().key(e);t(a(n),n)}}function u(t){return o().removeItem(t)}function l(){return o().clear()}t.exports={name:"sessionStorage",read:a,write:s,each:c,remove:u,clearAll:l}},b7bd:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},b9c1:function(t,e,n){"use strict";var r=n("cd6e");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],u=["{","}","|","\\","^","`"].concat(c),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n("5b5a");function w(t,e,n){if(t&&"object"===typeof t&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}function x(t){return"string"===typeof t&&(t=w(t)),t instanceof i?t.format():i.prototype.format.call(t)}function S(t,e){return w(t,!1,!0).resolve(e)}function O(t,e){return t?w(t,!1,!0).resolveObject(e):e}i.prototype.parse=function(t,e,n){if("string"!==typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?M+="x":M+=D[C];if(!M.match(d)){var $=I.slice(0,T),F=I.slice(T+1),L=D.match(y);L&&($.push(L[1]),F.unshift(L[2])),F.length&&(w="/"+F.join(".")+w),this.hostname=$.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+z,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!v[O])for(T=0,R=l.length;T0)&&n.host.split("@");E&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname)}return n.search=t.search,n.query=t.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=S.slice(-1)[0],A=(n.host||t.host||S.length>1)&&("."===j||".."===j)||""===j,_=0,T=S.length;T>=0;T--)j=S[T],"."===j?S.splice(T,1):".."===j?(S.splice(T,1),_++):_&&(S.splice(T,1),_--);if(!w&&!x)for(;_--;_)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var k=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(O){n.hostname=k?"":S.length?S.shift():"",n.host=n.hostname;E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname)}return w=w||n.host&&S.length,w&&!k&&S.unshift(""),S.length>0?n.pathname=S.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=w,e.resolve=S,e.resolveObject=O,e.format=x,e.Url=i},ba68:function(t,e,n){"use strict";var r=n("a834"),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},bb3f:function(t,e,n){"use strict";var r=n("635d"),i=n("eda8");t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},bc74:function(t,e,n){"use strict";var r=n("ff5f"),i=n("41cd"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},bf5a:function(t,e,n){"use strict";var r=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw r("Maximum allowed index exceeded");return t}},bf66:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",c="week",u="month",l="quarter",f="year",h="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var s=e.name;w[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},E=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},j=g;j.l=O,j.i=S,j.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function v(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var m=v.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(j.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return j},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return E(t)= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-l,S=Math.floor,O=String.fromCharCode;function E(t){throw new RangeError(w[t])}function j(t,e){var n=t.length,r=[];while(n--)r[n]=e(t[n]);return r}function A(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(b,".");var i=t.split("."),o=j(i,e).join(".");return r+o}function _(t){var e,n,r=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=O(t>>>10&1023|55296),t=56320|1023&t),e+=O(t),e})).join("")}function k(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function I(t,e,n){var r=0;for(t=n?S(t/p):t>>1,t+=S(t/e);t>x*f>>1;r+=u)t=S(t/x);return S(r+(x+1)*t/(t+h))}function R(t){var e,n,r,i,o,a,s,h,p,m,g=[],b=t.length,w=0,x=y,O=d;for(n=t.lastIndexOf(v),n<0&&(n=0),r=0;r=128&&E("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=b&&E("invalid-input"),h=k(t.charCodeAt(i++)),(h>=u||h>S((c-w)/a))&&E("overflow"),w+=h*a,p=s<=O?l:s>=O+f?f:s-O,hS(c/m)&&E("overflow"),a*=m}e=g.length+1,O=I(w-o,e,0==o),S(w/e)>c-x&&E("overflow"),x+=S(w/e),w%=e,g.splice(w++,0,x)}return T(g)}function D(t){var e,n,r,i,o,a,s,h,p,m,g,b,w,x,j,A=[];for(t=_(t),b=t.length,e=y,n=0,o=d,a=0;a=e&&gS((c-n)/w)&&E("overflow"),n+=(s-e)*w,e=s,a=0;ac&&E("overflow"),g==e){for(h=n,p=u;;p+=u){if(m=p<=o?l:p>=o+f?f:p-o,h0){if(++e>=pt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function mt(t){return function(){return t}}var gt=function(){try{var t=ft(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),bt=gt,wt=bt?function(t,e){return bt(t,"toString",{configurable:!0,enumerable:!1,value:mt(e),writable:!0})}:q,xt=wt,St=vt(xt),Ot=St,Et=9007199254740991,jt=/^(?:0|[1-9]\d*)$/;function At(t,e){var n=typeof t;return e=null==e?Et:e,!!e&&("number"==n||"symbol"!=n&&jt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Nt}function Ft(t){return null!=t&&$t(t.length)&&!X(t)}function Lt(t,e,n){if(!N(n))return!1;var r=typeof e;return!!("number"==r?Ft(n)&&At(e,n.length):"string"==r&&e in n)&&Tt(n[e],t)}function zt(t){return Ct((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Lt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r=e||n<0||f&&r>=o}function m(){var t=nn();if(v(t))return g(t);s=setTimeout(m,y(t))}function g(t){return s=void 0,h&&r?p(t):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),u=0,r=c=i=s=void 0}function w(){return void 0===s?a:g(nn())}function x(){var t=nn(),n=v(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return d(c);if(f)return clearTimeout(s),s=setTimeout(m,e),p(c)}return void 0===s&&(s=setTimeout(m,e)),a}return e=W(e)||0,N(n)&&(l=!!n.leading,f="maxWait"in n,o=f?on(W(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),x.cancel=b,x.flush=w,x}var cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default",null,{images:t.images,options:t.options})],2)},un=[];function ln(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}const fn={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data(){return{}},computed:{},watch:{images(){this.$nextTick(()=>{this.onChange()})},trigger:{handler(){this.$nextTick(()=>{this.onChange()})},deep:!0},options:{handler(){this.$nextTick(()=>{this.rebuildViewer()})},deep:!0}},mounted(){this.createViewer()},unmounted(){this.destroyViewer()},methods:{onChange(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer(){this.destroyViewer(),this.createViewer()},updateViewer(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer(){this.$viewer&&this.$viewer.destroy()},createViewer(){this.$viewer=new o.a(this.$el,this.options),this.$emit("inited",this.$viewer)}}},hn={};var pn=ln(fn,cn,un,!1,dn,null,null,null);function dn(t){for(let e in hn)this[e]=hn[e]}var yn=function(){return pn.exports}();const vn=({name:t="viewer",debug:e=!1}={})=>{function n(e,n,i=!1,a=!1){s.a.nextTick(()=>{a&&!r(e)||(i||!e["$"+t]?(c(e),e["$"+t]=new o.a(e,n),f("Viewer created")):(e["$"+t].update(),f("Viewer updated")))})}function r(t){const e=t.innerHTML.match(//g),n=e?e.join(""):void 0;return t.__viewerImageDiffCache===n?(f("Element change detected, but image(s) has not changed"),!1):(f("Image change detected"),t.__viewerImageDiffCache=n,!0)}function i(t,e,n,r){u(t);const i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!i)return void f("Observer not supported");const o=new i(i=>{i.forEach(i=>{f("Viewer mutation:"+i.type),n(t,e,r,!0)})}),a={attributes:!0,childList:!0,characterData:!0,subtree:!0};o.observe(t,a),t.__viewerMutationObserver=o,f("Observer created")}function a(t,{expression:e},n,r){const i=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;e&&i.test(e)?(t.__viewerUnwatch=n.context.$watch(e,(n,i)=>{f("Change detected by watcher: ",e),r(t,n,!0)},{deep:!0}),f("Watcher created, expression: ",e)):f("Only simple dot-delimited paths can create watcher")}function c(e){e["$"+t]&&(e["$"+t].destroy(),delete e["$"+t],f("Viewer destroyed"))}function u(t){t.__viewerMutationObserver&&(t.__viewerMutationObserver.disconnect(),delete t.__viewerMutationObserver,f("Observer destroyed"))}function l(t){t.__viewerUnwatch&&(t.__viewerUnwatch(),delete t.__viewerUnwatch,f("Watcher destroyed"))}function f(){e&&console.log(...arguments)}const h={bind(t,e,r){f("Viewer bind");const o=sn(n,50);o(t,e.value),a(t,e,r,o),e.modifiers.static||i(t,e.value,o,e.modifiers.rebuild)},unbind(t,e){f("Viewer unbind"),u(t),l(t),c(t)}};return h},mn=({images:t=[],options:e={}}={})=>{e=tn(e,{inline:!1});const n=s.a.extend({render(e){return e("div",{style:{display:"none"},class:["__viewer-token"]},t.map(t=>e("img",{attrs:"string"===typeof t?{src:t}:t})))}}),r=new n;r.$mount(),document.body.appendChild(r.$el);const i=new o.a(r.$el,e),a=i.destroy.bind(i);return i.destroy=function(){return a(),r.$destroy(),document.body.removeChild(r.$el),i},i.show(),r.$el.addEventListener("hidden",(function(){this.viewer===i&&i.destroy()})),i};var gn={install(t,{name:e="viewer",debug:n=!1,defaultOptions:r}={}){o.a.setDefaults(r),t.component(e,tn(yn,{name:e})),t.directive(e,vn({name:e,debug:n})),t.prototype[`$${e}Api`]=mn},setDefaults(t){o.a.setDefaults(t)}}}).call(this,n("a282"),n("c8f3")(t))},e5e8:function(t,e,n){"use strict";var r=n("635d"),i=n("1f44"),o=n("0c5a"),a=n("6c57").indexOf,s=n("12b6"),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},e6cf:function(t,e,n){"use strict";var r=n("ff5f"),i=n("f46b");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},e726:function(t,e,n){"use strict";var r=n("2daa"),i=n("c38a").f,o=n("846d"),a=n("8868"),s=n("96fa"),c=n("41f7"),u=n("4e22");t.exports=function(t,e){var n,l,f,h,p,d,y=t.target,v=t.global,m=t.stat;if(l=v?r:m?r[y]||s(y,{}):r[y]&&r[y].prototype,l)for(f in e){if(p=e[f],t.dontCallGetSet?(d=i(l,f),h=d&&d.value):h=l[f],n=u(v?f:y+(m?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(l,f,p,t)}}},e9b7:function(t,e,n){"use strict";var r=n("2daa"),i=n("9224"),o=n("1f44"),a=n("fd95"),s=n("c2ee"),c=n("94d4"),u=r.Symbol,l=i("wks"),f=c?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},ea0b:function(module,exports){"object"!==typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"===typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,r,i,o,a,s=gap,c=e[t];switch(c&&"object"===typeof c&&"function"===typeof c.toJSON&&(c=c.toJSON(t)),"function"===typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,n=0;n1){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},p=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r