PageSourceSearch

https://doulaknits.ru/assets/viewer/bundle.min.4df5559ff10203fcbd3…0b2a4853662828e16b80412429342f8a29555c09.js

js doulaknits.ru collected 2026-10-07 23:27:43 UTC 40,453 bytes, 14 lines download raw bytes

1(()=>{var Ye=Object.create;var he=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty;var je=(A,v)=>()=>(v||A((v={exports:{}}).exports,v),v.exports);var Ue=(A,v,z,ht)=>{if(v&&typeof v=="object"||typeof v=="function")for(let H of He(v))!qe.call(A,H)&&H!==z&&he(A,H,{get:()=>v[H],enumerable:!(ht=We(v,H))||ht.enumerable});return A};var Be=(A,v,z)=>(z=A!=null?Ye(Xe(A)):{},Ue(v||!A||!A.__esModule?he(z,"default",{value:A,enumerable:!0}):z,A));var ue=je((At,Ot)=>{(function(A,v){typeof At=="object"&&typeof Ot<"u"?Ot.exports=v():typeof define=="function"&&define.amd?define(v):(A=typeof globalThis<"u"?globalThis:A||self,A.Viewer=v())})(At,(function(){"use strict";function A(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,Lt(e.key),e)}}function z(n,t,i){return t&&v(n.prototype,t),i&&v(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function ht(n,t,i){return(t=Lt(t))in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function H(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),i.push.apply(i,e)}return i}function wt(n){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?H(Object(i),!0).forEach(function(e){ht(n,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function de(n,t){if(typeof n!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var e=i.call(n,t||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}function Lt(n){var t=de(n,"string");return typeof t=="symbol"?t:t+""}function yt(n){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(n)}var zt={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},me='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ut=typeof window<"u"&&typeof window.document<"u",P=ut?window:{},B=ut&&P.document.documentElement?"ontouchstart"in P.document.documentElement:!1,Et=ut?"PointerEvent"in P:!1,m="viewer",ct="move",_t="switch",nt="zoom",ft="".concat(m,"-active"),ve="".concat(m,"-close"),dt="".concat(m,"-fade"),Tt="".concat(m,"-fixed"),ge="".concat(m,"-fullscreen"),kt="".concat(m,"-fullscreen-exit"),X="".concat(m,"-hide"),pe="".concat(m,"-hide-md-down"),be="".concat(m,"-hide-sm-down"),we="".concat(m,"-hide-xs-down"),k="".concat(m,"-in"),at="".concat(m,"-invisible"),K="".concat(m,"-loading"),ye="".concat(m,"-move"),Rt="".concat(m,"-open"),Z="".concat(m,"-show"),D="".concat(m,"-transition"),G="click",St="dblclick",Vt="dragstart",Mt="focusin",Ft="keydown",R="load",q="error",Ee=B?"touchend touchcancel":"mouseup",Te=B?"touchmove":"mousemove",Se=B?"touchstart":"mousedown",Pt=Et?"pointerdown":Se,Yt=Et?"pointermove":Te,Wt=Et?"pointerup pointercancel":Ee,Ht="resize",V="transitionend",Xt="wheel",qt="ready",jt="show",Ut="shown",Bt="hide",Kt="hidden",Zt="view",rt="viewed",Gt="move",$t="moved",Jt="rotate",Qt="rotated",te="scale",ee="scaled",ie="zoom",ne="zoomed",ae="play",re="stop",mt="".concat(m,"Action"),Dt=/\s\s*/,vt=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vert
1ical"];function st(n){return typeof n=="string"}var De=Number.isNaN||P.isNaN;function T(n){return typeof n=="number"&&!De(n)}function $(n){return typeof n>"u"}function J(n){return yt(n)==="object"&&n!==null}var Ie=Object.prototype.hasOwnProperty;function Q(n){if(!J(n))return!1;try{var t=n.constructor,i=t.prototype;return t&&i&&Ie.call(i,"isPrototypeOf")}catch{return!1}}function b(n){return typeof n=="function"}function y(n,t){if(n&&b(t))if(Array.isArray(n)||T(n.length)){var i=n.length,e;for(e=0;e<i&&t.call(n,n[e],e,n)!==!1;e+=1);}else J(n)&&Object.keys(n).forEach(function(a){t.call(n,n[a],a,n)});return n}var _=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),a=1;a<i;a++)e[a-1]=arguments[a];return J(t)&&e.length>0&&e.forEach(function(r){J(r)&&Object.keys(r).forEach(function(s){t[s]=r[s]})}),t},xe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function M(n,t){var i=n.style;y(t,function(e,a){xe.test(a)&&T(e)&&(e+="px"),i[a]=e})}function Ne(n){return st(n)?n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):n}function tt(n,t){return!n||!t?!1:n.classList?n.classList.contains(t):n.className.indexOf(t)>-1}function f(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(e){f(e,t)});return}if(n.classList){n.classList.add(t);return}var i=n.className.trim();i?i.indexOf(t)<0&&(n.className="".concat(i," ").concat(t)):n.className=t}}function p(n,t){if(!(!n||!t)){if(T(n.length)){y(n,function(i){p(i,t)});return}if(n.classList){n.classList.remove(t);return}n.className.indexOf(t)>=0&&(n.className=n.className.replace(t,""))}}function ot(n,t,i){if(t){if(T(n.length)){y(n,function(e){ot(e,t,i)});return}i?f(n,t):p(n,t)}}var Ae=/([a-z\d])([A-Z])/g;function It(n){return n.replace(Ae,"$1-$2").toLowerCase()}function et(n,t){return J(n[t])?n[t]:n.dataset?n.dataset[t]:n.getAttribute("data-".concat(It(t)))}function xt(n,t,i){J(i)?n[t]=i:n.dataset?n.dataset[t]=i:n.setAttribute("data-".concat(It(t)),i)}var se=(function(){var n=!1;if(ut){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return n=!0,t},set:function(r){t=r}});P.addEventListener("test",i,e),P.removeEventListener("test",i,e)}return n})();function w(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Dt).forEach(function(r){if(!se){var s=n.listeners;s&&s[r]&&s[r][i]&&(a=s[r][i],delete s[r][i],Object.keys(s[r]).length===0&&delete s[r],Object.keys(s).length===0&&delete n.listeners)}n.removeEventListener(r,a,e)})}function d(n,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Dt).forEach(function(r){if(e.once&&!se){var s=n.listeners,l=s===void 0?{}:s;a=function(){delete l[r][i],n.removeEventListener(r,a,e);for(var h=arguments.length,o=new Array(h),c=0;c<h;c++)o[c]=arguments[c];i.apply(n,o)},l[r]||(l[r]={}),l[r][i]&&n.removeEventListener(r,l[r][i],e),l[r][i]=a,n.listeners=l}n.addEventListener(r,a,e)})}function x(n,t,i,e){var a;return b(Event)&&b(CustomEvent)?a=new CustomEvent(t,wt({bubbles:!0,cancelable:!0,detail:i},e)):(a=document.createEvent("CustomEvent"),a.initCustomEvent(t,!0,!0,i)),n.dispatchEvent(a)}function Oe(n){var t=n.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function gt(n){var t=n.rotate,i=n.scaleX,e=n.scaleY,a=n.translateX,r=n.translateY,s=[];T(a)&&a!==0&&s.push("translateX(".concat(a,"px)")),T(r)&&r!==0&&s.push("translateY(".concat(r,"px)")),T(t)&&t!==0&&s.push("rotate(".concat(t,"deg)")),T(i)&&i!==1&&s.push("scaleX(".concat(i,")")),T(e)&&e!==1&&s.push("scaleY(".concat(e,")"));var l=s.length?s.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function Ce(n){return st(n)?decodeURIComponent(n.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Nt=P.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(P.navigator.userAgent);function oe(n,t,i){var e=document.createElement("img");if(n.naturalWidth&&!Nt)return i(n.naturalWidth,n.naturalHeight),e;var a=document.body||document.documentElement;return e.onload=function(){i(e.width,e.height),Nt||a.removeChild(e)},y(t.inheritedAttributes,function(r){var s=n.getAttribute(r);s!==null&&e.setAttribute(r,s)}),e.src=n.src,Nt||(e.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(e)),e}function pt(n){switch(n){case 2:return we;case 3:return be;case 4:return pe;default:return""}}function Le(n){var t=wt({},n),i=[];return y(n,function(e,a){delete t[a],y(t,function(r){var s=Math.abs(e.startX-r.startX),l=Math.abs(e.startY-r.startY),u=Math.abs(e.endX-r.endX),h=Math.abs(e.endY-r.endY),o=Math.sqrt(s*s+l*l),c=Math.sqrt(u*u+h*h),g=(c-o)/o;i.push(g)})}),i.sort(function(e,a){return Math.abs(e)<Math.abs(a)}),i[0]}function bt(n,t){var i=n.pageX,e=n.pageY,a={endX:i,endY:e};return t?a:wt({timeStamp:Date.now(),startX:i,startY:e},a)}function ze(n){var t=0,i=0,e=0;return y(n,function(a){var r=a.startX,s=a.startY;t+=r,i+=s,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}var _e={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,i=t.body||t.documentElement;this.body=i,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=i.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(i).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,i=this.parent,e;t.inline&&(e={width:Math.max(i.offsetWidth,t.minWidth),height:Math.max(i.offsetHeight,t.minHeight)},this.parentData=e),(this.fulled||!e)&&(e=this.containerData),this.viewerData=_({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&M(this.viewer,this.viewerData)},initList:function(){var t=this,i=this.element,e=this.options,a=this.list,r=[];a.innerHTML="",y(this.images,function(s,l){var u=s.src,h=s.alt||Ce(u),o=t.getImageURL(s);if(u||o){var c=document.createElement("li"),g=document.createElement("img");y(e.inheritedAttributes,function(N){var I=s.getAttribute(N);I!==null&&g.setAttribute(N,I)}),e.navbar&&(g.src=u||o),g.alt=h,g.setAttribute("data-original-url",o||u),c.setAttribute("data-index",l),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),e.keyboard&&c.setAttribute("tabindex",0),c.appendChild(g),a.appendChild(c),r.push(c)}}),this.items=r,y(r,function(s){var l=s.firstElementChild,u,h;xt(l,"filled",!0),e.loading&&f(s,K),d(l,R,u=function(c){w(l,q,h),e.loading&&p(s,K),t.loadImage(c)},{once:!0}),d(l,q,h=function(){w(l,R,u),e.loading&&p(s,K)},{once:!0})}),e.transition&&d(i,rt,function(){f(a,D)},{once:!0})},renderList:function(){var t=this.index,i=this.items[t];if(i){var e=i.nextElementSibling,a=parseInt(window.getComputedStyle(e||i).marginLeft,10),r=i.offsetWidth,s=r+a;M(this.list,_({width:s*this.length-a},gt({translateX:(this.viewerData.width-r)/2-s*t})))}},resetList:function(){var t=this.list;t.innerHTML="",p(t,D),M(t,gt({translateX:0}))},initImage:function(t){var i=this,e=this.options,a=this.image,r=this.viewerData,s=this.footer.offsetHeight,l=r.width,u=Math.max(r.height-s,s),h=this.imageData||{},o;this.imageInitializing={abort:function(){o.onload=null}},o=oe(a,e,function(c,g){var N=c/g,I=Math.max(0,Math.min(1,e.initialCoverage)),S=l,O=u;i.imageInitializing=!1,u*N>
1l?O=l/N:S=u*N,I=T(I)?I:.9,S=Math.min(S*I,c),O=Math.min(O*I,g);var C=(l-S)/2,L=(u-O)/2,E={left:C,top:L,x:C,y:L,width:S,height:O,oldRatio:1,ratio:S/c,aspectRatio:N,naturalWidth:c,naturalHeight:g},Y=_({},E);e.rotatable&&(E.rotate=h.rotate||0,Y.rotate=0),e.scalable&&(E.scaleX=h.scaleX||1,E.scaleY=h.scaleY||1,Y.scaleX=1,Y.scaleY=1),i.imageData=E,i.initialImageData=Y,t&&t()})},renderImage:function(t){var i=this,e=this.image,a=this.imageData;if(M(e,_({width:a.width,height:a.height,marginLeft:a.x,marginTop:a.y},gt(a))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&tt(e,D)){var r=function(){i.imageRendering=!1,t()};this.imageRendering={abort:function(){w(e,V,r)}},d(e,V,r,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},ke={bind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;d(i,G,this.onClick=this.click.bind(this)),d(i,Vt,this.onDragStart=this.dragstart.bind(this)),d(e,Pt,this.onPointerDown=this.pointerdown.bind(this)),d(a,Yt,this.onPointerMove=this.pointermove.bind(this)),d(a,Wt,this.onPointerUp=this.pointerup.bind(this)),d(a,Ft,this.onKeyDown=this.keydown.bind(this)),d(window,Ht,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&d(i,Xt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&d(e,St,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,i=this.viewer,e=this.canvas,a=this.element.ownerDocument;w(i,G,this.onClick),w(i,Vt,this.onDragStart),w(e,Pt,this.onPointerDown),w(a,Yt,this.onPointerMove),w(a,Wt,this.onPointerUp),w(a,Ft,this.onKeyDown),w(window,Ht,this.onResize),t.zoomable&&t.zoomOnWheel&&w(i,Xt,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&w(e,St,this.onDblclick)}},Re={click:function(t){var i=this.options,e=this.imageData,a=t.target,r=et(a,mt);switch(!r&&a.localName==="img"&&a.parentElement.localName==="li"&&(a=a.parentElement,r=et(a,mt)),B&&t.isTrusted&&a===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){case"mix":this.played?this.stop():i.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(et(a,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(i.loop);break;case"play":this.play(i.fullscreen);break;case"next":this.next(i.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-e.scaleX||-1);break;case"flip-vertical":this.scaleY(-e.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(B&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var i=this.element,e=this.options,a=this.image,r=this.index,s=this.viewerData;p(a,at),e.loading&&p(this.canvas,K),a.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){ot(a,ye,e.movable),ot(a,D,e.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,b(e.viewed)&&d(i,rt,e.viewed,{once:!0}),x(i,rt,{originalImage:t.images[r],index:r,image:a},{cancelable:!1})})})},loadImage:function(t){var i=t.target,e=i.parentNode,a=e.offsetWidth||30,r=e.offsetHeight||50,s=!!et(i,"filled");oe(i,this.options,function(l,u){var h=l/u,o=a,c=r;r*h>a?s?o=r*h:c=a/h:s?c=a/h:o=r*h,M(i,_({width:o,height:c},gt({translateX:(a-o)/2,translateY:(r-c)/2})))})},keydown:function(t){var i=this.options;if(i.keyboard){var e=t.keyCode||t.which||t.charCode;if(e===13&&this.viewer.contains(t.target)&&this.click(t),!!this.fulled)switch(e){case 27:this.played?this.stop():i.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(i.loop);break;case 38:t.preventDefault(),this.zoom(i.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(i.loop);break;case 40:t.preventDefault(),this.zoom(-i.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var i=this.options,e=this.pointers,a=t.buttons,r=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(T(a)&&a!==1||T(r)&&r!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?y(t.changedTouches,function(l){e[l.identifier]=bt(l)}):e[t.pointerId||0]=bt(t);var s=i.movable?ct:!1;i.zoomOnTouch&&i.zoomable&&Object.keys(e).length>1?s=nt:i.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(s=_t),i.transition&&(s===ct||s===nt)&&p(this.image,D),this.action=s}},pointermove:function(t){var i=this.pointers,e=this.action;!this.viewed||!e||(t.preventDefault(),t.changedTouches?y(t.changedTouches,function(a){_(i[a.identifier]||{},bt(a,!0))}):_(i[t.pointerId||0]||{},bt(t,!0)),this.change(t))},pointerup:function(t){var i=this,e=this.options,a=this.action,r=this.pointers,s;t.changedTouches?y(t.changedTouches,function(l){s=r[l.identifier],delete r[l.identifier]}):(s=r[t.pointerId||0],delete r[t.pointerId||0]),a&&(t.preventDefault(),e.transition&&(a===ct||a===nt)&&f(this.image,D),this.action=!1,B&&a!==nt&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),e.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){x(i.image,St,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){i.imageClicked=!1},500)):(this.imageClicked=!1,e.backdrop&&e.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){x(i.canvas,G,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}y(this.player.getElementsByTagName("img"),function(i){d(i,R,t.loadImage.bind(t),{once:!0}),x(i,R)})}},wheel:function(t){var i=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50);var e=Number(this.options.zoomRatio)||.1,a=1;t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>
10?1:-1),this.zoom(-a*e,!0,null,t)}}},Ve={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,e=this.options;if(e.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(b(e.show)&&d(i,jt,e.show,{once:!0}),x(i,jt)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var a=this.viewer;if(p(a,X),a.setAttribute("role","dialog"),a.setAttribute("aria-labelledby",this.title.id),a.setAttribute("aria-modal",!0),a.removeAttribute("aria-hidden"),e.transition&&!t){var r=this.shown.bind(this);this.transitioning={abort:function(){w(a,V,r),p(a,k)}},f(a,D),a.initialOffsetWidth=a.offsetWidth,d(a,V,r,{once:!0}),f(a,k)}else f(a,k),this.shown();return this},hide:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.element,a=this.options;if(a.inline||this.hiding||!(this.isShown||this.showing))return this;if(b(a.hide)&&d(e,Bt,a.hide,{once:!0}),x(e,Bt)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,s=this.image,l=function(){p(r,k),t.hidden()};if(a.transition&&!i){var u=function(c){c&&c.target===r&&(w(r,V,u),t.hidden())},h=function(){tt(r,D)?(d(r,V,u),p(r,k)):l()};this.transitioning={abort:function(){t.viewed&&tt(s,D)?w(s,V,h):tt(r,D)&&w(r,V,u)}},this.viewed&&tt(s,D)?(d(s,V,h,{once:!0}),this.zoomTo(0,!1,null,null,!0)):h()}else l();return this},view:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(i=Number(i)||0,this.hiding||this.played||i<0||i>=this.length||this.viewed&&i===this.index)return this;if(!this.isShown)return this.index=i,this.show();this.viewing&&this.viewing.abort();var e=this.element,a=this.options,r=this.title,s=this.canvas,l=this.items[i],u=l.querySelector("img"),h=et(u,"originalUrl"),o=u.getAttribute("alt"),c=document.createElement("img");if(y(a.inheritedAttributes,function(O){var C=u.getAttribute(O);C!==null&&c.setAttribute(O,C)}),c.src=h,c.alt=o,b(a.view)&&d(e,Zt,a.view,{once:!0}),x(e,Zt,{originalImage:this.images[i],index:i,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var g=this.items[this.index];g&&(p(g,ft),g.removeAttribute("aria-selected")),f(l,ft),l.setAttribute("aria-selected",!0),a.focus&&l.focus(),this.image=c,this.viewed=!1,this.index=i,this.imageData={},f(c,at),a.loading&&f(s,K),s.innerHTML="",s.appendChild(c),this.renderList(),r.innerHTML="";var N=function(){var C=t.imageData,L=Array.isArray(a.title)?a.title[1]:a.title;r.innerHTML=Ne(b(L)?L.call(t,c,C):"".concat(o," (").concat(C.naturalWidth," \xD7 ").concat(C.naturalHeight,")"))},I,S;return d(e,rt,N,{once:!0}),this.viewing={abort:function(){w(e,rt,N),c.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(c.src="",w(c,R,I),t.timeout&&clearTimeout(t.timeout))}},c.complete?this.load():(d(c,R,I=function(){w(c,q,S),t.load()},{once:!0}),d(c,q,S=function(){w(c,R,I),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),p(c,at),a.loading&&p(t.canvas,K)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){p(c,at),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.index-1;return i<0&&(i=t?this.length-1:0),this.view(i),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.length-1,e=this.index+1;return e>i&&(e=t?0:i),this.view(e),this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData;return this.moveTo($(t)?t:e.x+Number(t),$(i)?i:e.y+Number(i)),this},moveTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.element,s=this.options,l=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&s.movable){var u=l.x,h=l.y,o=!1;if(T(t)?o=!0:t=u,T(e)?o=!0:e=h,o){if(b(s.move)&&d(r,Gt,s.move,{once:!0}),x(r,Gt,{x:t,y:e,oldX:u,oldY:h,originalEvent:a})===!1)return this;l.x=t,l.y=e,l.left=t,l.top=e,this.moving=!0,this.renderImage(function(){i.moving=!1,b(s.moved)&&d(r,$t,s.moved,{once:!0}),x(r,$t,{x:t,y:e,oldX:u,oldY:h,originalEvent:a},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var i=this,e=this.element,a=this.options,r=this.imageData;if(t=Number(t),T(t)&&this.viewed&&!this.played&&a.rotatable){var s=r.rotate;if(b(a.rotate)&&d(e,Jt,a.rotate,{once:!0}),x(e,Jt,{degree:t,oldDegree:s})===!1)return this;r.rotate=t,this.rotating=!0,this.renderImage(function(){i.rotating=!1,b(a.rotated)&&d(e,Qt,a.rotated,{once:!0}),x(e,Qt,{degree:t,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,a=this.element,r=this.options,s=this.imageData;if(t=Number(t),e=Number(e),this.viewed&&!this.played&&r.scalable){var l=s.scaleX,u=s.scaleY,h=!1;if(T(t)?h=!0:t=l,T(e)?h=!0:e=u,h){if(b(r.scale)&&d(a,te,r.scale,{once:!0}),x(a,te,{scaleX:t,scaleY:e,oldScaleX:l,oldScaleY:u})===!1)return this;s.scaleX=t,s.scaleY=e,this.scaling=!0,this.renderImage(function(){i.scaling=!1,b(r.scaled)&&d(a,ee,r.scaled,{once:!0}),x(a,ee,{scaleX:t,scaleY:e,oldScaleX:l,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWi
1dth,i,e,a),this},zoomTo:function(t){var i=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,l=this.element,u=this.options,h=this.pointers,o=this.imageData,c=o.x,g=o.y,N=o.width,I=o.height,S=o.naturalWidth,O=o.naturalHeight;if(t=Math.max(0,t),T(t)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var C=Math.max(.01,u.minZoomRatio),L=Math.min(100,u.maxZoomRatio);t=Math.min(Math.max(t,C),L)}if(r)switch(r.type){case"wheel":u.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var E=S*t,Y=O*t,j=E-N,F=Y-I,U=o.ratio;if(b(u.zoom)&&d(l,ie,u.zoom,{once:!0}),x(l,ie,{ratio:t,oldRatio:U,originalEvent:r})===!1)return this;if(this.zooming=!0,r){var lt=Oe(this.viewer),it=h&&Object.keys(h).length>0?ze(h):{pageX:r.pageX,pageY:r.pageY};o.x-=j*((it.pageX-lt.left-c)/N),o.y-=F*((it.pageY-lt.top-g)/I)}else Q(a)&&T(a.x)&&T(a.y)?(o.x-=j*((a.x-c)/N),o.y-=F*((a.y-g)/I)):(o.x-=j/2,o.y-=F/2);o.left=o.x,o.top=o.y,o.width=E,o.height=Y,o.oldRatio=U,o.ratio=t,this.renderImage(function(){i.zooming=!1,b(u.zoomed)&&d(l,ne,u.zoomed,{once:!0}),x(l,ne,{ratio:t,oldRatio:U,originalEvent:r},{cancelable:!1})}),e&&this.tooltip()}return this},play:function(){var t=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var e=this.element,a=this.options;if(b(a.play)&&d(e,ae,a.play,{once:!0}),x(e,ae)===!1)return this;var r=this.player,s=this.loadImage.bind(this),l=[],u=0,h=0;if(this.played=!0,this.onLoadWhenPlay=s,i&&this.requestFullscreen(i),f(r,Z),y(this.items,function(g,N){var I=g.querySelector("img"),S=document.createElement("img");S.src=et(I,"originalUrl"),S.alt=I.getAttribute("alt"),S.referrerPolicy=I.referrerPolicy,u+=1,f(S,dt),ot(S,D,a.transition),tt(g,ft)&&(f(S,k),h=N),l.push(S),d(S,R,s,{once:!0}),r.appendChild(S)}),T(a.interval)&&a.interval>0){var o=function(){clearTimeout(t.playing.timeout),p(l[h],k),h-=1,h=h>=0?h:u-1,f(l[h],k),t.playing.timeout=setTimeout(o,a.interval)},c=function(){clearTimeout(t.playing.timeout),p(l[h],k),h+=1,h=h<u?h:0,f(l[h],k),t.playing.timeout=setTimeout(c,a.interval)};u>1&&(this.playing={prev:o,next:c,timeout:setTimeout(c,a.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var i=this.element,e=this.options;if(b(e.stop)&&d(i,re,e.stop,{once:!0}),x(i,re)===!1)return this;var a=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,y(a.getElementsByTagName("img"),function(r){w(r,R,t.onLoadWhenPlay)}),p(a,Z),a.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!i.inline?this:(this.fulled=!0,this.open(),f(this.button,kt),i.transition&&(p(r,D),this.viewed&&p(a,D)),f(e,Tt),e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby",this.title.id),e.setAttribute("aria-modal",!0),e.removeAttribute("style"),M(e,{zIndex:i.zIndex}),i.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=_({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,D),f(r,D)},0)})}),this)},exit:function(){var t=this,i=this.options,e=this.viewer,a=this.image,r=this.list;return!this.isShown||this.played||!this.fulled||!i.inline?this:(this.fulled=!1,this.close(),p(this.button,kt),i.transition&&(p(r,D),this.viewed&&p(a,D)),i.focus&&this.clearEnforceFocus(),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),p(e,Tt),M(e,{zIndex:i.zIndexInline}),this.viewerData=_({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){i.transition&&setTimeout(function(){f(a,D),f(r,D)},0)})}),this)},tooltip:function(){var t=this,i=this.options,e=this.tooltipBox,a=this.imageData;return!this.viewed||this.played||!i.tooltip?this:(e.textContent="".concat(Math.round(a.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):i.transition?(this.fading&&x(e,V),f(e,Z),f(e,dt),f(e,D),e.removeAttribute("aria-hidden"),e.initialOffsetWidth=e.offsetWidth,f(e,k)):(f(e,Z),e.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){i.transition?(d(e,V,function(){p(e,Z),p(e,dt),p(e,D),e.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),p(e,k),t.fading=!0):(p(e,Z),e.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=_({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,i=this.element,e=this.options,a=this.isImg;if(a&&!i.parentNode)return this.destroy();var r=[];if(y(a?[i]:i.querySelectorAll("img"),function(h){b(e.filter)?e.filter.call(t,h)&&r.push(h):t.getImageURL(h)&&r.push(h)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var s=[];if(y(this.items,function(h,o){var c=h.querySelector("img"),g=r[o];g&&c?(g.src!==c.src||g.alt!==c.alt)&&s.push(o):s.push(o)}),M(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=s.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var u=this.items[this.index];f(u,ft),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,i=this.options;return t[m]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),i.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):i.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),i.inline||w(t,G,this.onStart),t[m]=void 0,this):this}},Me={getImageURL:function(t){var i=this.options.url;return st(i)?i=t.getAttribute(i):b(i)?i=i.call(this,t):i="",i},enforceFocus:function(){var t=this;this.clearEnforceFocus(),d(document,Mt,this.onFocusin=function(i){var e=t.viewer,a=i.target;if(!(a===document||a===e||e.contains(a))){for(;a;){if(a.getAttribute("tabindex")!==null||a.getAttribute("aria-modal")==="true")return;a=a.parentElement}e.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(w(document,Mt,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;f(t,Rt),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;p(t,Rt),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,i=this.options,e=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,i.focus&&(e.focus(),this.enforceFocus()),b(i.shown)&&d(t,Ut,i.shown,{once:!0}),x(t,Ut)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,i=this.options,e=this.viewer;i.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),f(e,X),e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-modal"),e.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(b(i.hidden)&&d(t,Kt,i.hidden,{once:!0}),x(t,Kt,null,{cancelable:!1}))},requestFullscreen:function(t){var i=this.element.ownerDocument;if(this.fulled&&!(i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement)){var e=i.documentElement;e.requestFullscreen?Q(t)?e.requestFullscreen(t):e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var i=this.options,e=this.pointers,a=e[Object.keys(e)[0]];if(a){var r=a.endX-a.startX,s=a.endY-a.startY;switch(this.action){case ct:(r!==0||s!==0)&&(this.pointerMoved=!0,this.move(r,s,t));break;case nt:this.zoom(Le(e),!1,null,t);break;case _t:{this.action="switched";var l=Math.abs(r);l>1&&l>Math.abs(s)&&(this.pointers={},r>1?this.prev(i.loop):r<-1&&this.next(i.loop));break}}y(e,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var t=this.imageData,i=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=i.width&&t.height<=i.height}},Fe=P.Viewer,Pe=(function(n){return function(){return n+=1,n}})(-1),le=(function(){function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(A(this,n),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=_({},zt,Q(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=Pe(),this.init()}return z(n,[{key:"init",value:function(){var i=this,e=this.element,a=this.options;if(!e[m]){e[m]=this,a.focus&&!a.keyboard&&(a.focus=!1);var r=e.localName==="img",s=[];if(y(r?[e]:e.querySelectorAll("img"),function(h){b(a.filter)?a.filter.call(i,h)&&s.push(h):i.getImageURL(h)&&s.push(h)}),this.isImg=r,this.length=s.length,this.images=s,this.initBody(),$(document.createElement(m).style.transition)&&(a.transition=!1),a.inline){var l=0,u=function(){if(l+=1,l===i.length){var o;i.initializing=!1,i.delaying={abort:function(){clearTimeout(o)}},o=setTimeout(function(){i.delaying=!1,i.build()},0)}};this.initializing={abort:function(){y(s,function(o){o.complete||(w(o,R,u),w(o,q,u))})}},y(s,function(h){if(h.complete)u();else{var o,c;d(h,R,o=function(){w(h,q,c),u()},{once:!0}),d(h,q,c=function(){w(h,R,o),u()},{once:!0})}})}else d(e,G,this.onStart=function(h){var o=h.target;o.localName==="img"&&(!b(a.filter)||a.filter.call(i,o))&&i.view(i.images.indexOf(o))})}}},{key:"build",value:function(){if(!this.ready){var i=this.element,e=this.options,a=i.parentNode,r=document.createElement("div");r.innerHTML=me;var s=r.querySelector(".".concat(m,"-container")),l=s.querySelector(".".concat(m,"-title")),u=s.querySelector(".".concat(m,"-toolbar")),h=s.querySelector(".".concat(m,"-navbar")),o=s.querySelector(".".concat(m,"-button")),c=s.querySelector(".".concat(m,"-canvas"));if(this.parent=a,this.viewer=s,this.title=l,this.toolbar=u,this.navbar=h,this.button=o,this.canvas=c,this.footer=s.querySelector(".".concat(m,"-footer")),this.tooltipBox=s.querySelector(".".concat(m,"-tooltip")),this.player=s.querySelector(".".concat(m,"-player")),this.list=s.querySelector(".".concat(m,"-list")),s.id="".concat(m).concat(this.id
1),l.id="".concat(m,"Title").concat(this.id),f(l,e.title?pt(Array.isArray(e.title)?e.title[0]:e.title):X),f(h,e.navbar?pt(e.navbar):X),ot(o,X,!e.button),e.keyboard&&o.setAttribute("tabindex",0),e.backdrop&&(f(s,"".concat(m,"-backdrop")),!e.inline&&e.backdrop!=="static"&&xt(c,mt,"hide")),st(e.className)&&e.className&&e.className.split(Dt).forEach(function(E){f(s,E)}),e.toolbar){var g=document.createElement("ul"),N=Q(e.toolbar),I=vt.slice(0,3),S=vt.slice(7,9),O=vt.slice(9);N||f(u,pt(e.toolbar)),y(N?e.toolbar:vt,function(E,Y){var j=N&&Q(E),F=N?It(Y):E,U=j&&!$(E.show)?E.show:E;if(!(!U||!e.zoomable&&I.indexOf(F)!==-1||!e.rotatable&&S.indexOf(F)!==-1||!e.scalable&&O.indexOf(F)!==-1)){var lt=j&&!$(E.size)?E.size:E,it=j&&!$(E.click)?E.click:E,W=document.createElement("li");e.keyboard&&W.setAttribute("tabindex",0),W.setAttribute("role","button"),f(W,"".concat(m,"-").concat(F)),b(it)||xt(W,mt,F),T(U)&&f(W,pt(U)),["small","large"].indexOf(lt)!==-1?f(W,"".concat(m,"-").concat(lt)):F==="play"&&f(W,"".concat(m,"-large")),b(it)&&d(W,G,it),g.appendChild(W)}}),u.appendChild(g)}else f(u,X);if(!e.rotatable){var C=u.querySelectorAll('li[class*="rotate"]');f(C,at),y(C,function(E){u.appendChild(E)})}if(e.inline)f(o,ge),M(s,{zIndex:e.zIndexInline}),window.getComputedStyle(a).position==="static"&&M(a,{position:"relative"}),a.insertBefore(s,i.nextSibling);else{f(o,ve),f(s,Tt),f(s,dt),f(s,X),M(s,{zIndex:e.zIndex});var L=e.container;st(L)&&(L=i.ownerDocument.querySelector(L)),L||(L=this.body),L.appendChild(s)}if(e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,b(e.ready)&&d(i,qt,e.ready,{once:!0}),x(i,qt)===!1){this.ready=!1;return}this.ready&&e.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=Fe,n}},{key:"setDefaults",value:function(i){_(zt,Q(i)&&i)}}])})();return _(le.prototype,_e,ke,Re,Ve,Me),le}))});var fe=Be(ue());var Ke={toolbar:{zoomIn:1,zoomOut:1,oneToOne:0,reset:0,prev:1,play:{show:0,size:"large"},next:1,rotateLeft:0,rotateRight:0,flipHorizontal:0,flipVertical:0}},ce=Ke;var Ct=class{gallery;constructor(){let v={filter:z=>this.validate(z),url(z){return z.hasAttribute("data-src")?z.getAttribute("data-src"):z.src}};this.gallery=new fe.default(document.querySelector("main"),Object.assign(v,ce))}run(){document.addEventListener("click",v=>{v.target&&v.target instanceof HTMLElement&&v.target.tagName==="IMG"&&this.validate(v.target)&&this.gallery.show()}),document.addEventListener("hbs:viewer:update",()=>{this.gallery.update()})}validate(v){return v.parentElement.tagName==="A"||v.hasAttribute("data-viewer-invisible")?!1:v.parentElement.tagName==="PICTURE"?this.validate(v.parentElement):!0}};document.addEventListener("DOMContentLoaded",()=>{new Ct().run()});})();
2/*! Bundled license information:
3
4viewerjs/dist/viewer.js:
5  (*!
6   * Viewer.js v1.11.7
7   * https://fengyuanchen.github.io/viewerjs
8   *
9   * Copyright 2015-present Chen Fengyuan
10   * Released under the MIT license
11   *
12   * Date: 2024-11-24T04:32:19.116Z
13   *)
14*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.