JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrPKZG8ZUZUhtml2pdf.bundle.min.jsnu[/** * html2pdf.js v0.9.2 * Copyright (c) 2020 Erik Koopmans * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.html2pdf=e()}(this,function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=A(function(e,A){e.exports=function(){function n(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw"Invalid GIF 87a/89a header.";var A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,n=t[e++],o=n>>7,a=1<<1+(7&n);t[e++],t[e++];var s=null;o&&(s=e,e+=3*a);var c=!0,l=[],u=0,h=null,d=0,f=null;for(this.width=A,this.height=r;c&&e>2&7,e++;break;case 254:for(;0!==(b=t[e++]);)e+=b;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var g=t[e++]|t[e++]<<8,B=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++],v=y>>6&1,Q=s,C=!1;y>>7&&(C=!0,Q=e,e+=3*(1<<1+(7&y)));var U=e;for(e++;;){var b;if(0===(b=t[e++]))break;e+=b}l.push({x:g,y:B,width:w,height:m,has_local_palette:C,palette_offset:Q,data_offset:U,data_length:e-U,transparent_index:h,interlaced:!!v,delay:u,disposal:d});break;case 59:c=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(t){if(t<0||t>=l.length)throw"Frame index out of range.";return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var n=this.frameInfo(e),o=n.width*n.height,a=new Uint8Array(o);i(t,n.data_offset,a,o);var s=n.palette_offset,c=n.transparent_index;null===c&&(c=256);var l=n.width,u=A-l,h=l,d=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),p=d,g=4*u;!0===n.interlaced&&(g+=4*(l+u)*7);for(var B=8,w=0,m=a.length;w>=1)),y===c)p+=4;else{var v=t[s+3*y],Q=t[s+3*y+1],C=t[s+3*y+2];r[p++]=C,r[p++]=Q,r[p++]=v,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var n=this.frameInfo(e),o=n.width*n.height,a=new Uint8Array(o);i(t,n.data_offset,a,o);var s=n.palette_offset,c=n.transparent_index;null===c&&(c=256);var l=n.width,u=A-l,h=l,d=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),p=d,g=4*u;!0===n.interlaced&&(g+=4*(l+u)*7);for(var B=8,w=0,m=a.length;w>=1)),y===c)p+=4;else{var v=t[s+3*y],Q=t[s+3*y+1],C=t[s+3*y+2];r[p++]=v,r[p++]=Q,r[p++]=C,r[p++]=255}--h}}}function i(t,e,A,r){for(var n=t[e++],i=1<>=s,l-=s,g!==i){if(g===o)break;for(var B=g>8,++w;var y=m;if(r>=8;null!==p&&a<4096&&(f[a++]=p<<8|y,c+1<=a&&s<12&&(++s,c=c<<1|1)),p=g}else a=o+1,c=(1<<(s=n+1))-1,p=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),A}function o(t){function e(t,e){for(var A=0,r=0,n=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)n[e[r]]=[],n[e[r]][0]=A,n[e[r]][1]=i,r++,A++;A*=2}return n}function A(t){for(var e=t[0],A=t[1]-1;0<=A;)e&1<>8&255),r(255&t)}function i(t,e,r,n,i){for(var o,a=i[0],s=i[240],c=function(t,e){var A,r,n,i,o,a,s,c,l,u,h=0;for(l=0;l<8;++l){A=t[h],r=t[h+1],n=t[h+2],i=t[h+3],o=t[h+4],a=t[h+5],s=t[h+6];var d=A+(c=t[h+7]),f=A-c,p=r+s,g=r-s,B=n+a,w=n-a,y=i+o,v=i-o,Q=d+y,C=d-y,U=p+B,b=p-B;t[h]=Q+U,t[h+4]=Q-U;var F=.707106781*(b+C);t[h+2]=C+F,t[h+6]=C-F;var E=.382683433*((Q=v+w)-(b=g+f)),x=.5411961*Q+E,H=1.306562965*b+E,I=.707106781*(U=w+g),S=f+I,_=f-I;t[h+5]=_+x,t[h+3]=_-x,t[h+1]=S+H,t[h+7]=S-H,h+=8}for(l=h=0;l<8;++l){A=t[h],r=t[h+8],n=t[h+16],i=t[h+24],o=t[h+32],a=t[h+40],s=t[h+48];var T=A+(c=t[h+56]),N=A-c,k=r+s,O=r-s,P=n+a,D=n-a,L=i+o,R=i-o,M=T+L,K=T-L,z=k+P,q=k-P;t[h]=M+z,t[h+32]=M-z;var j=.707106781*(q+K);t[h+16]=K+j,t[h+48]=K-j;var X=.382683433*((M=R+D)-(q=O+N)),V=.5411961*M+X,G=1.306562965*q+X,W=.707106781*(z=D+O),Y=N+W,J=N-W;t[h+40]=J+V,t[h+24]=J-V,t[h+8]=Y+G,t[h+56]=Y-G,h++}for(l=0;l<64;++l)u=t[l]*e[l],m[l]=0>4;for(var v=1;v<=d;++v)A(s);g&=15}o=32767+y[f],A(i[(g<<4)+w[o]]),A(B[o]),f++}return 63!=h&&A(a),r}function o(t){t<=0&&(t=1),100>3)*V+(M=4*(7&z)),X<=G+K&&(R-=V*(G+1+K-X)),V<=y+M&&(R-=y+M-V+4),E=q[R++],H=q[R++],D=q[R++],U[z]=(x[E]+x[H+256>>0]+x[D+512>>0]>>16)-128,b[z]=(x[E+768>>0]+x[H+1024>>0]+x[D+1280>>0]>>16)-128,F[z]=(x[E+1280>>0]+x[H+1536>>0]+x[D+1792>>0]>>16)-128;B=i(U,p,B,a,c),w=i(b,g,w,s,l),m=i(F,g,m,s,l),y+=32}G+=8}if(0<=C){var W=[];W[1]=C+1,W[0]=(1<>0]=38470*t,x[t+512>>0]=7471*t+32768,x[t+768>>0]=-11059*t,x[t+1024>>0]=-21709*t,x[t+1280>>0]=32768*t+8421375,x[t+1536>>0]=-27439*t,x[t+1792>>0]=-5329*t}(),o(t),(new Date).getTime()}function a(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}var s,c,l,u,h,d,f,p,g,B,w,m,y,v,Q,C,U,b,F,E,x,H,I,S,_,T,N,k,O,P,D,L,R,M,K,z,q,j,X,V,G,W,Y,J,Z,$,tt,et,At,rt,nt,it,ot,at="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},st=function(t){function A(e,i,o,a){var s={};"object"===(void 0===e?"undefined":at(e))&&(e=(s=e).orientation,i=s.unit||i,o=s.format||o,a=s.compress||s.compressPdf||a),i=i||"mm",o=o||"a4",e=(""+(e||"P")).toLowerCase(),(""+o).toLowerCase();var c,l,u,h,d,f,p,g,B,w,m,y=!!a&&"function"==typeof Uint8Array,v=s.textColor||"0 g",Q=s.drawColor||"0 G",C=s.fontSize||16,U=s.charSpace||0,b=s.R2L||!1,F=s.lineHeight||1.15,E=s.lineWidth||.200025,x="00000000000000000000000000000000",H=2,I=!1,S=[],_={},T={},N=0,k=[],O=[],P=[],D=[],L=[],R=0,M=0,K=0,z={title:"",subject:"",author:"",keywords:"",creator:""},q={},j=new function(e){var A={};this.subscribe=function(t,e,r){if("function"!=typeof e)return!1;A.hasOwnProperty(t)||(A[t]={});var n=Math.random().toString(35);return A[t][n]=[e,!!r],n},this.unsubscribe=function(t){for(var e in A)if(A[e][t])return delete A[e][t],!0;return!1},this.publish=function(r){if(A.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in A[r]){var a=A[r][o];try{a[0].apply(e,n)}catch(r){t.console&&console.error("jsPDF PubSub Error",r.message,r)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}}}(q),X=s.hotfixes||[],V=function(t){var e,A=t.ch1,r=t.ch2,n=t.ch3,i=t.ch4,o=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof A&&"#"!==A.charAt(0)){var a=new RGBColor(A);a.ok&&(A=a.toHex())}if("string"==typeof A&&/^#[0-9A-Fa-f]{3}$/.test(A)&&(A="#"+A[1]+A[1]+A[2]+A[2]+A[3]+A[3]),"string"==typeof A&&/^#[0-9A-Fa-f]{6}$/.test(A)){var s=parseInt(A.substr(1),16);A=s>>16&255,r=s>>8&255,n=255&s}if(void 0===r||void 0===i&&A===r&&r===n)if("string"==typeof A)e=A+" "+o[0];else switch(t.precision){case 2:e=J(A/255)+" "+o[0];break;case 3:default:e=Z(A/255)+" "+o[0]}else if(void 0===i||"object"===(void 0===i?"undefined":at(i))){if("string"==typeof A)e=[A,r,n,o[1]].join(" ");else switch(t.precision){case 2:e=[J(A/255),J(r/255),J(n/255),o[1]].join(" ");break;default:case 3:e=[Z(A/255),Z(r/255),Z(n/255),o[1]].join(" ")}i&&0===i.a&&(e=["255","255","255",o[1]].join(" "))}else if("string"==typeof A)e=[A,r,n,i,o[2]].join(" ");else switch(t.precision){case 2:e=[J(A),J(r),J(n),J(i),o[2]].join(" ");break;case 3:default:e=[Z(A),Z(r),Z(n),Z(i),o[2]].join(" ")}return e},G=function(t){var e=function(t){return("0"+parseInt(t)).slice(-2)},A=t.getTimezoneOffset(),r=A<0?"+":"-",n=Math.floor(Math.abs(A/60)),i=Math.abs(A%60),o=[r,e(n),"'",e(i),"'"].join("");return["D:",t.getFullYear(),e(t.getMonth()+1),e(t.getDate()),e(t.getHours()),e(t.getMinutes()),e(t.getSeconds()),o].join("")},W=function(t){var e;return void 0===(void 0===t?"undefined":at(t))&&(t=new Date),e="object"===(void 0===t?"undefined":at(t))&&"[object Date]"===Object.prototype.toString.call(t)?G(t):/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(t)?t:G(new Date),w=e},Y=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x=t},J=function(t){return t.toFixed(2)},Z=function(t){return t.toFixed(3)},$=function(t){t="string"==typeof t?t:t.toString(),I?k[h].push(t):(K+=t.length+1,D.push(t))},tt=function(){return S[++H]=K,$(H+" 0 obj"),H},et=function(t){$("stream"),$(t),$("endstream")},At=function(){!function(){for(var t in _)_.hasOwnProperty(t)&&(e=_[t],j.publish("putFont",{font:e,out:$,newObject:tt}),!0!==e.isAlreadyPutted&&(e.objectNumber=tt(),$("<<"),$("/Type /Font"),$("/BaseFont /"+e.postScriptName),$("/Subtype /Type1"),"string"==typeof e.encoding&&$("/Encoding /"+e.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj")));var e}(),j.publish("putResources"),S[2]=K,$("2 0 obj"),$("<<"),function(){for(var t in $("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),$("/Font <<"),_)_.hasOwnProperty(t)&&$("/"+t+" "+_[t].objectNumber+" 0 R");$(">>"),$("/XObject <<"),j.publish("putXobjectDict"),$(">>")}(),$(">>"),$("endobj"),j.publish("postPutResources")},rt=function(t,e,A){T.hasOwnProperty(e)||(T[e]={}),T[e][A]=t},nt=function(t,e,A,r){var n="F"+(Object.keys(_).length+1).toString(10),i=_[n]={id:n,postScriptName:t,fontName:e,fontStyle:A,encoding:r,metadata:{}};return rt(n,e,A),j.publish("addFont",i),n},it=function(t,e){return function(t,e){var A,r,n,i,o,a,s,l,u;if(n=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&_[c].metadata&&_[c].metadata[n]&&_[c].metadata[n].encoding&&(i=_[c].metadata[n].encoding,!o&&_[c].encoding&&(o=_[c].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(s=!1,a=[],A=0,r=t.length;A>8&&(s=!0);t=a.join("")}for(A=t.length;void 0===s&&0!==A;)t.charCodeAt(A-1)>>8&&(s=!0),A--;if(!s)return t;for(a=e.noBOM?[]:[254,255],A=0,r=t.length;A>8)>>8)throw new Error("Character at position "+A+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(l-(u<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ot=function(){(function(t,e){var A="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var r=t.toLowerCase();n.hasOwnProperty(r)&&(t=n[r][0]/l,e=n[r][1]/l)}if(Array.isArray(t)&&(e=t[1],t=t[0]),A){switch(A.substr(0,1)){case"l":t>"),$("endobj"),r=k[e].join("\n"),tt(),y){for(n=[],i=r.length;i--;)n[i]=r.charCodeAt(i);a=s.from(r),(o=new Deflater(6)).append(new Uint8Array(n)),r=o.flush(),(n=new Uint8Array(r.length+6)).set(new Uint8Array([120,156])),n.set(r,2),n.set(new Uint8Array([255&a,a>>8&255,a>>16&255,a>>24&255]),r.length+2),r=String.fromCharCode.apply(null,n),$("<>")}else $("<>");et(r),$("endobj")}S[1]=K,$("1 0 obj"),$("<>"),$("endobj"),j.publish("postPutPages")}(),function(){j.publish("putAdditionalObjects");for(var t=0;t>"),$("endobj"),tt(),$("<<"),function(){switch($("/Type /Catalog"),$("/Pages 1 0 R"),g||(g="fullwidth"),g){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+g;"%"===t.substr(t.length-1)&&(g=parseInt(g)/100),"number"==typeof g&&$("/OpenAction [3 0 R /XYZ null null "+J(g)+"]")}switch(B||(B="continuous"),B){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}p&&$("/PageMode /"+p),j.publish("putCatalog")}(),$(">>"),$("endobj");var e,n=K,i="0000000000";for($("xref"),$("0 "+(H+1)),$(i+" 65535 f "),e=1;e<=H;e++){var o=S[e];$("function"==typeof o?(i+S[e]()).slice(-10)+" 00000 n ":(i+S[e]).slice(-10)+" 00000 n ")}return $("trailer"),$("<<"),$("/Size "+(H+1)),$("/Root "+H+" 0 R"),$("/Info "+(H-1)+" 0 R"),$("/ID [ <"+x+"> <"+x+"> ]"),$(">>"),$("startxref"),$(""+n),$("%%EOF"),I=!0,D.join("\n")},ut=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e},ht=function(){for(var t=lt(),e=t.length,A=new ArrayBuffer(e),r=new Uint8Array(A);e--;)r[e]=t.charCodeAt(e);return A},dt=function(){return new Blob([ht()],{type:"application/pdf"})},ft=((m=function(e,A){var r="dataur"===(""+e).substr(0,6)?"data:application/pdf;base64,"+btoa(lt()):0;switch(e){case void 0:return lt();case"save":if("object"===("undefined"==typeof navigator?"undefined":at(navigator))&&navigator.getUserMedia&&(void 0===t.URL||void 0===t.URL.createObjectURL))return q.output("dataurlnewwindow");bt(dt(),A),"function"==typeof bt.unload&&t.setTimeout&&setTimeout(bt.unload,911);break;case"arraybuffer":return ht();case"blob":return dt();case"bloburi":case"bloburl":return t.URL&&t.URL.createObjectURL(dt())||void 0;case"datauristring":case"dataurlstring":return r;case"dataurlnewwindow":var n=t.open(r);if(n||"undefined"==typeof safari)return n;case"datauri":case"dataurl":return t.document.location.href=r;default:throw new Error('Output type "'+e+'" is not supported.')}}).foo=function(){try{return m.apply(this,arguments)}catch(r){var e=r.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var A="Error in function "+e.split("\n")[0].split("<")[0]+": "+r.message;if(!t.console)throw new Error(A);t.console.error(A,r),t.alert&&alert(A)}},(m.foo.bar=m).foo),pt=function(t){return!0===Array.isArray(X)&&-1":")")):"[object Array]"===Object.prototype.toString.call(m[Y])&&(J=parseFloat(m[Y][1]).toFixed(2),Z=parseFloat(m[Y][2]).toFixed(2),tt=(o?"<":"(")+m[Y][0]+(o?">":")"),et=1),void 0!==q&&void 0!==q[Y]&&(At=q[Y]+" Tw\n"),0!==H.length&&0===Y?t.push(At+H.join(" ")+" "+J+" "+Z+" Tm\n"+tt):1===et||0===et&&0===Y?t.push(At+J+" "+Z+" Td\n"+tt):t.push(At+tt);t=0===et?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var rt="BT\n/"+c+" "+C+" Tf\n"+(C*l).toFixed(2)+" TL\n"+v+"\n";return rt+=s,rt+=t,$(rt+="ET"),u},q.lstext=function(t,e,A,r){console.warn("jsPDF.lstext is deprecated");for(var n=0,i=t.length;n=i.length-1;if(!Q||C){if(Q||C){if(C)g=v;else if(t.multiline&&a<(l+2)*(m+2)+2)continue t}else{if(!t.multiline)continue t;if(a<(l+2)*(m+2)+2)continue t;g=v}for(var U="",b=p;b<=g;b++)U+=i[b]+" ";switch(U=" "==U.substr(U.length-1)?U.substr(0,U.length-1):U,B=d(U,o+"px",A).width,t.Q){case 2:h=s-B-2;break;case 1:h=(s-B)/2;break;case 0:default:h=2}e+=h.toFixed(2)+" "+f.toFixed(2)+" Td\n",e+="("+U+") Tj\n",e+=-h.toFixed(2)+" 0 Td\n",f=-(o+2),B=0,p=g+1,m++,w=""}else w+=" "}break}return n.text=e,n.fontSize=o,n},d=function(t,e,r){r=r||"helvetica";var n=A.internal.getFont(r),i=A.getStringUnitWidth(t,{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.getStringUnitWidth("3",{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:i}},f={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},p=function(){for(var t in A.internal.acroformPlugin.acroFormDictionaryRoot.Fields){var e=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields[t];e.hasAnnotation&&B.call(A,e)}},g=function(t){A.internal.acroformPlugin.printedOut&&(A.internal.acroformPlugin.printedOut=!1,A.internal.acroformPlugin.acroFormDictionaryRoot=null),A.internal.acroformPlugin.acroFormDictionaryRoot||Q.call(A),A.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)},B=function(t){var e={type:"reference",object:t};A.annotationPlugin.annotations[A.internal.getPageInfo(t.page).pageNumber].push(e)},w=function(){void 0!==A.internal.acroformPlugin.acroFormDictionaryRoot?A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},m=function(){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0},y=function(t){var e=!t;t||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId),A.internal.out(A.internal.acroformPlugin.acroFormDictionaryRoot.getString())),t=t||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var r in t){var n=t[r],i=n.Rect;n.Rect&&(n.Rect=l.call(this,n.Rect)),A.internal.newObjectDeferredBegin(n.objId);var o=n.objId+" 0 obj\n<<\n";if("object"===(void 0===n?"undefined":at(n))&&"function"==typeof n.getContent&&(o+=n.getContent()),n.Rect=i,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=u.call(this,n);o+="/AP << /N "+a+" >>\n",A.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){for(var s in o+="/AP << ",n.appearanceStreamContent){var c=n.appearanceStreamContent[s];if(o+="/"+s+" ",o+="<< ",1<=Object.keys(c).length||Array.isArray(c))for(var r in c){var h;"function"==typeof(h=c[r])&&(h=h.call(this,n)),o+="/"+r+" "+h+" ",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h)}else"function"==typeof(h=c)&&(h=h.call(this,n)),o+="/"+r+" "+h+" \n",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h);o+=" >>\n"}o+=">>\n"}o+=">>\nendobj\n",A.internal.out(o)}e&&v.call(this,A.internal.acroformPlugin.xForms)},v=function(t){for(var e in t){var r=e,n=t[e];A.internal.newObjectDeferredBegin(n&&n.objId);var i="";"object"===(void 0===n?"undefined":at(n))&&"function"==typeof n.getString&&(i=n.getString()),A.internal.out(i),delete t[r]}},Q=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(A=this,x.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(f)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=A.internal.scaleFactor,r=A.internal.pageSize.getHeight(),A.internal.acroformPlugin.acroFormDictionaryRoot=new E,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",m),A.internal.events.subscribe("buildDocument",p),A.internal.events.subscribe("putCatalog",w),A.internal.events.subscribe("postPutPages",y),A.internal.acroformPlugin.isInitialized=!0}},C=function(t){if(Array.isArray(t)){var e=" [";for(var A in t)e+=t[A].toString(),e+=A>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="\nendstream\n"),t+="endobj\n"},b.prototype.getContent=function(){var t="";return t+=function(t){var e="",A=Object.keys(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in A){var n=A[r],i=t[n];i&&(Array.isArray(i)?e+="/"+n+" "+C(i)+"\n":e+=i instanceof b?"/"+n+" "+i.objId+" 0 R\n":"/"+n+" "+i+"\n")}return e}(this)};var F=function(){var t;b.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.BBox,this.Matrix,this.Resources="2 0 R",this.PieceInfo,Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==t?t.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(e){t=e.trim()},get:function(){return t||null}})};i(F,b);var E=function(){b.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0>"},YesPushDown:function(t){var e=a(t),r=[],n=A.internal.getFont("zapfdingbats","normal").id;t.Q=1;var i=h(t,"3","ZapfDingbats",50);return r.push("0.749023 g"),r.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+i.fontSize.toFixed(2)+" Tf 0 g"),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=a(t),r=A.internal.getFont("zapfdingbats","normal").id,n=[];t.Q=1;var i=R.internal.getHeight(t),o=R.internal.getWidth(t),s=h(t,"3","ZapfDingbats",.9*i);return n.push("1 g"),n.push("0 0 "+o.toFixed(2)+" "+i.toFixed(2)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+(o-1).toFixed(2)+" "+(i-1).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+r+" "+s.fontSize.toFixed(2)+" Tf 0 g"),n.push(s.text),n.push("ET"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Circle.YesNormal,e.D[t]=R.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4;r*=.9;var n=R.internal.Bezier_C;return A.push("q"),A.push("1 0 0 1 "+R.internal.getWidth(t)/2+" "+R.internal.getHeight(t)/2+" cm"),A.push(r+" 0 m"),A.push(r+" "+r*n+" "+r*n+" "+r+" 0 "+r+" c"),A.push("-"+r*n+" "+r+" -"+r+" "+r*n+" -"+r+" 0 c"),A.push("-"+r+" -"+r*n+" -"+r*n+" -"+r+" 0 -"+r+" c"),A.push(r*n+" -"+r+" "+r+" -"+r*n+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,n=2*(r*=.9),i=n*R.internal.Bezier_C,o=r*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),A.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),A.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),A.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,n=2*(r*=.9),i=n*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Cross.YesNormal,e.D[t]=R.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=a(t),A=[],r=R.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),A.push("W"),A.push("n"),A.push(r.x1.x.toFixed(2)+" "+r.x1.y.toFixed(2)+" m"),A.push(r.x2.x.toFixed(2)+" "+r.x2.y.toFixed(2)+" l"),A.push(r.x4.x.toFixed(2)+" "+r.x4.y.toFixed(2)+" m"),A.push(r.x3.x.toFixed(2)+" "+r.x3.y.toFixed(2)+" l"),A.push("s"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=R.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push(A.x1.x.toFixed(2)+" "+A.x1.y.toFixed(2)+" m"),r.push(A.x2.x.toFixed(2)+" "+A.x2.y.toFixed(2)+" l"),r.push(A.x4.x.toFixed(2)+" "+A.x4.y.toFixed(2)+" m"),r.push(A.x3.x.toFixed(2)+" "+A.x3.y.toFixed(2)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}}},createDefaultAppearanceStream:function(t){return"/F1 0 Tf 0 g"}};R.internal={Bezier_C:.551915024494,calculateCross:function(t){var e,A,r=R.internal.getWidth(t),n=R.internal.getHeight(t),i=(A=n)<(e=r)?A:e;return{x1:{x:(r-i)/2,y:(n-i)/2+i},x2:{x:(r-i)/2+i,y:(n-i)/2},x3:{x:(r-i)/2,y:(n-i)/2},x4:{x:(r-i)/2+i,y:(n-i)/2+i}}}},R.internal.getWidth=function(t){var e=0;return"object"===(void 0===t?"undefined":at(t))&&(e=o(t.Rect[2])),e},R.internal.getHeight=function(t){var e=0;return"object"===(void 0===t?"undefined":at(t))&&(e=o(t.Rect[3])),e},t.addField=function(t){return Q.call(this),t instanceof D?this.addTextField.call(this,t):t instanceof H?this.addChoiceField.call(this,t):t instanceof T?this.addButton.call(this,t):t instanceof O?g.call(this,t):t&&g.call(this,t),t.page=A.internal.getCurrentPageInfo().pageNumber,this},t.addButton=function(t){Q.call(this);var e=t||new x;e.FT="/Btn",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},t.addTextField=function(t){Q.call(this);var e=t||new x;e.FT="/Tx",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},t.addChoiceField=function(t){Q.call(this);var e=t||new x;e.FT="/Ch",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},"object"==(void 0===e?"undefined":at(e))&&(e.ChoiceField=H,e.ListBox=I,e.ComboBox=S,e.EditBox=_,e.Button=T,e.PushButton=N,e.RadioButton=k,e.CheckBox=P,e.TextField=D,e.PasswordField=L,e.AcroForm={Appearance:R}),t.AcroFormChoiceField=H,t.AcroFormListBox=I,t.AcroFormComboBox=S,t.AcroFormEditBox=_,t.AcroFormButton=T,t.AcroFormPushButton=N,t.AcroFormRadioButton=k,t.AcroFormCheckBox=P,t.AcroFormTextField=D,t.AcroFormPasswordField=L,t.AcroForm={ChoiceField:H,ListBox:I,ComboBox:S,EditBox:_,Button:T,PushButton:N,RadioButton:k,CheckBox:P,TextField:D,PasswordField:L}}(st.API,"undefined"!=typeof window&&window||void 0!==r&&r),st.API.addHTML=function(t,e,A,r,n){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,n=A),"function"==typeof r&&(n=r,r=null),"function"!=typeof n&&(n=function(){});var i=this.internal,o=i.scaleFactor,a=i.pageSize.getWidth(),s=i.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,A=parseInt(A)||0;var i=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),l=i.h||Math.min(s,t.height/o),u=i.w||Math.min(a,t.width/o)-e,h=r.format||"JPEG",d=r.imageCompression||"SLOW";if(t.height>s-c.top-c.bottom&&r.pagesplit){var f=function(t,e,A,n,i){var o=document.createElement("canvas");o.height=i,o.width=n;var a=o.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=r.backgroundColor||"#ffffff",a.fillRect(0,0,n,i),a.drawImage(t,e,A,n,i,0,0,n,i),o},p=function(){for(var r,i,l=0,p=0,g={},B=!1;;){var w;if(p=0,g.top=0!==l?c.top:A,g.left=0!==l?c.left:e,B=(a-c.left-c.right)*o=t.width)break;this.addPage()}else m=[w=f(t,0,l,r,i),g.left,g.top,w.width/o,w.height/o,h,null,d],this.addImage.apply(this,m);if((l+=i)>=t.height)break;this.addPage()}n(u,l,null,m)}.bind(this);if("CANVAS"===t.nodeName){var g=new Image;g.onload=p,g.src=t.toDataURL("image/png"),t=g}else p()}else{var B=Math.random().toString(35),w=[t,e,A,u,l,h,B,d];this.addImage.apply(this,w),n(u,l,B,w)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||a*o,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){n(null,t)})}return null},function(t){var e="addImage_",A={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]};t.getImageFileTypeByImageData=function(t,e){var r,n;e=e||"UNKNOWN";var i,o,a,s="UNKNOWN";for(a in A)for(i=A[a],r=0;r>"),"trns"in e&&e.trns.constructor==Array){for(var i="",o=0,a=e.trns.length;o>"),n(e.data),r("endobj"),"smask"in e){var s="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,c={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:s,data:e.smask};"f"in e&&(c.f=e.f),t.call(this,c)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r("<< /Length "+e.pal.length+">>"),n(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),r("endobj"))},n=function(){var t=this.internal.collections[e+"images"];for(var A in t)r.call(this,t[A])},i=function(){var t,A=this.internal.collections[e+"images"],r=this.internal.write;for(var n in A)r("/I"+(t=A[n]).i,t.n,"0","R")},o=function(e){return"function"==typeof t["process"+e.toUpperCase()]},a=function(t){return"object"===(void 0===t?"undefined":at(t))&&1===t.nodeType},s=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var A=""+t.getAttribute("src");if(0===A.indexOf("data:image/"))return A;!e&&/\.png(?:[?#].*)?$/i.test(A)&&(e="png")}if("CANVAS"===t.nodeName)var r=t;else{(r=document.createElement("canvas")).width=t.clientWidth||t.width,r.height=t.clientHeight||t.height;var n=r.getContext("2d");if(!n)throw"addImage requires canvas to be supported by browser.";n.drawImage(t,0,0,r.width,r.height)}return r.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")},c=function(t,e){var A;if(e)for(var r in e)if(t===e[r].alias){A=e[r];break}return A};t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){return t=t||"",Array.prototype.reduce&&t.split("").reduce(function(t,e){return(t=(t<<5)-t+e.charCodeAt(0))&t},0)},t.isString=function(t){return"string"==typeof t},t.validateStringAsBase64=function(t){var e=!0;return(t=t||"").length%4!=0&&(e=!1),!1===/[A-Za-z0-9\/]+/.test(t.substr(0,t.length-2))&&(e=!1),!1===/[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==/.test(t.substr(-2))&&(e=!1),e},t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));base64,(.+)$/g.exec(t)},t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},t.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},t.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},t.binaryStringToUint8Array=function(t){for(var e=t.length,A=new Uint8Array(e),r=0;r>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==o?A+=r[(252&(e=n[a]))>>2]+r[(3&e)<<4]+"==":2==o&&(A+=r[(64512&(e=n[a]<<8|n[a+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),A},t.createImageInfo=function(t,e,A,r,n,i,o,a,s,c,l,u,h){var d={alias:a,w:e,h:A,cs:r,bpc:n,i:o,data:t};return i&&(d.f=i),s&&(d.dp=s),c&&(d.trns=c),l&&(d.pal=l),u&&(d.smask=u),h&&(d.p=h),d},t.addImage=function(A,r,l,u,h,d,f,p,g){var B="";if("string"!=typeof r){var w=d;d=h,h=u,u=l,l=r,r=w}if("object"===(void 0===A?"undefined":at(A))&&!a(A)&&"imageData"in A){var m=A;A=m.imageData,r=m.format||r,l=m.x||l||0,u=m.y||u||0,h=m.w||h,d=m.h||d,f=m.alias||f,p=m.compression||p,g=m.rotation||m.angle||g}if(isNaN(l)||isNaN(u))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var y,v,Q,C,U,b,F,E=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",n),this.internal.events.subscribe("putXobjectDict",i)),t}.call(this);if(!((y=c(A,E))||(a(A)&&(A=s(A,r)),(null==(F=f)||0===F.length)&&(f="string"==typeof(b=A)&&t.sHashCode(b)),y=c(f,E)))){if(this.isString(A)&&(""!==(B=this.convertStringToImageData(A))?A=B:void 0!==(B=this.loadImageFile(A))&&(A=B)),r=this.getImageFileTypeByImageData(A,r),!o(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(A instanceof Uint8Array||(v=A,A=this.binaryStringToUint8Array(A))),!(y=this["process"+r.toUpperCase()](A,(U=0,(C=E)&&(U=Object.keys?Object.keys(C).length:function(t){var e=0;for(var A in t)t.hasOwnProperty(A)&&e++;return e}(C)),U),f,((Q=p)&&"string"==typeof Q&&(Q=Q.toUpperCase()),Q in t.image_compression?Q:t.image_compression.NONE),v)))throw new Error("An unkwown error occurred whilst processing the image")}return function(t,e,A,r,n,i,o,a){var s=function(t,e,A){return t||e||(e=t=-96),t<0&&(t=-1*A.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*A.h*72/e/this.internal.scaleFactor),0===t&&(t=e*A.w/A.h),0===e&&(e=t*A.h/A.w),[t,e]}.call(this,A,r,n),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(A=s[0],r=s[1],o[i]=n,a){a*=Math.PI/180;var u=Math.cos(a),h=Math.sin(a),d=function(t){return t.toFixed(4)},f=[d(u),d(h),d(-1*h),d(u),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,c(t),l(e+r),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([c(A),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(A),"0","0",c(r),c(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+n.i+" Do"),this.internal.write("Q")}.call(this,l,u,h,d,y,y.i,E,g),this},t.convertStringToImageData=function(e){var A,r="";return this.isString(e)&&(null!==(A=this.extractInfoFromBase64DataURI(e))?t.validateStringAsBase64(A[3])&&(r=atob(A[3])):t.validateStringAsBase64(e)&&(r=atob(e))),r};var l=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,A,r,n,i){var o,a=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(o=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var A=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,n=t.length;r>",l.content=B;var d=l.objId+" 0 R";B="<>";else if(s.options.pageNumber)switch(B="<>",this.internal.write(B))}}this.internal.write("]")}}]),s.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},s.link=function(t,e,A,r,n){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:A,h:r,options:n,type:"link"})},s.textWithLink=function(t,e,A,r){var n=this.getTextWidth(t),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,A),A+=.2*i,this.link(e,A-i,n,i,r),n},s.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},s.getLineHeight=function(){return this.internal.getLineHeight()},function(t){function e(t){return void 0!==t&&void 0!==a[t.charCodeAt(0)]}function A(t){return void 0!==t&&0<=h.indexOf(t.charCodeAt(0))}function r(t){return void 0!==t&&0<=u.indexOf(t.charCodeAt(0))}function n(t){return e(t)&&2<=a[t.charCodeAt(0)].length}function i(t,i,o,s){return e(t)?(s=s||{},a=Object.assign(a,s),!n(t)||!e(i)&&!e(o)||!e(o)&&A(i)||A(t)&&!e(i)||A(t)&&r(i)||A(t)&&A(i)?(a=Object.assign(a,c),d):e(l=t)&&4==a[l.charCodeAt(0)].length&&e(i)&&!A(i)&&e(o)&&n(o)?(a=Object.assign(a,c),g):A(t)||!e(o)?(a=Object.assign(a,c),f):(a=Object.assign(a,c),p)):-1;var l}var o=Object.keys({ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),a={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,65261],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395,64394],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},s={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},c={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},u=[1570,1571,1573,1575],h=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],d=0,f=1,p=2,g=3,B=t.processArabic=function(t,A){t=t||"",A=A||!1;var n,o,u,h="",d=0,f=0,p="",g="",B="";for(d=0;d>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},(l=st.API).events.push(["initialized",function(){this.canvas.pdf=this}]),l.canvas={getContext:function(t){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[]},Object.defineProperty(l.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1}}),Object.defineProperty(l.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1}}),u=st.API,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},B=1,w=function(t,e,A,r,n){g={x:t,y:e,w:A,h:r,ln:n}},m=function(){return g},y={left:0,top:0,bottom:0},u.setHeaderFunction=function(t){p=t},u.getTextDimensions=function(t){h=this.internal.getFont().fontName,d=this.table_font_size||this.internal.getFontSize(),f=this.internal.getFont().fontStyle;var e,A,r=19.049976/25.4;(A=document.createElement("font")).id="jsPDFCell";try{A.style.fontStyle=f}catch(e){A.style.fontWeight=f}A.style.fontSize=d+"pt",A.style.fontFamily=h;try{A.textContent=t}catch(e){A.innerText=t}return document.body.appendChild(A),e={w:(A.offsetWidth+1)*r,h:(A.offsetHeight+1)*r},document.body.removeChild(A),e},u.cellAddPage=function(){var t=this.margins||y;this.addPage(),w(t.left,t.top,void 0,void 0),B+=1},u.cellInitialize=function(){g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},B=1},u.cell=function(t,e,A,r,n,i,o){var a=m(),s=!1;if(void 0!==a.ln)if(a.ln===i)t=a.x+a.w,e=a.y;else{var c=this.margins||y;a.y+a.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),s=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),e=m().y+m().h,s&&(e=23)}if(void 0!==n[0])if(this.printingHeaderRow?this.rect(t,e,A,r,"FD"):this.rect(t,e,A,r),"right"===o){n instanceof Array||(n=[n]);for(var l=0;l=this.pageBreaks[r]){e++,0===this.lastBreak&&A++;var n=this.pageBreaks[r]-this.lastBreak;this.lastBreak=this.pageBreaks[r],A+=Math.floor(n/this.pageWrapY)}return 0===this.lastBreak&&(A+=Math.floor(t/this.pageWrapY)+1),A+e}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var A=this._matrix_map_point(this.ctx._transform,[t,e]),r={type:"lt",x:t=A[0],y:e=A[1]};this.path.push(r)},bezierCurveTo:function(t,e,A,r,n,i){var o;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),r=this._wrapY(r),n=this._wrapX(n),i=this._wrapY(i),n=(o=this._matrix_map_point(this.ctx._transform,[n,i]))[0],i=o[1];var a={type:"bct",x1:t=(o=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=o[1],x2:A=(o=this._matrix_map_point(this.ctx._transform,[A,r]))[0],y2:r=o[1],x:n,y:i};this.path.push(a)},quadraticCurveTo:function(t,e,A,r){var n;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),r=this._wrapY(r),A=(n=this._matrix_map_point(this.ctx._transform,[A,r]))[0],r=n[1];var i={type:"qct",x1:t=(n=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=n[1],x:A,y:r};this.path.push(i)},arc:function(t,e,A,r,n,i){if(t=this._wrapX(t),e=this._wrapY(e),!this._matrix_is_identity(this.ctx._transform)){var o=this._matrix_map_point(this.ctx._transform,[t,e]);t=o[0],e=o[1];var a=this._matrix_map_point(this.ctx._transform,[0,0]),s=this._matrix_map_point(this.ctx._transform,[0,A]);A=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2))}var c={type:"arc",x:t,y:e,radius:A,startAngle:r,endAngle:n,anticlockwise:i};this.path.push(c)},drawImage:function(t,e,A,r,n,i,o,a,s){void 0!==i&&(e=i,A=o,r=a,n=s),e=this._wrapX(e),A=this._wrapY(A);var c,l=this._matrix_map_rect(this.ctx._transform,{x:e,y:A,w:r,h:n}),u=(this._matrix_map_rect(this.ctx._transform,{x:i,y:o,w:a,h:s}),/data:image\/(\w+).*/i.exec(t));c=null!=u?u[1]:"png",this.pdf.addImage(t,c,l.x,l.y,l.w,l.h)},_matrix_multiply:function(t,e){var A=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=A*t[0]+r*t[2],c=n*t[0]+i*t[2],l=o*t[0]+a*t[2]+t[4];return r=A*t[1]+r*t[3],i=n*t[1]+i*t[3],a=o*t[1]+a*t[3]+t[5],[A=s,r,n=c,i,o=l,a]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],A=t[1],r=t[2],n=t[3],i=Math.sqrt(e*e+A*A),o=(e/=i)*r+(A/=i)*n;r-=e*o,n-=A*o;var a=Math.sqrt(r*r+n*n);return o/=a,e*(n/=a)>"),s.push(">>");var c="MASK"+s.objId;this.pdf.internal.addGraphicsState(c,s.objId);var l="/"+c+" gs";r.splice(0,0,"q"),r.splice(1,0,l),r.push("Q"),window.outIntercept=a;break;default:var u="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];u&&this.pdf.internal.out(u+" gs")}var h=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(h=this.ctx._fillOpacity),n){var d=this.pdf.internal.newObject2();d.push("<>"),c="GS_O_"+d.objId,this.pdf.internal.addGraphicsState(c,d.objId),this.pdf.internal.out("/"+c+" gs")}for(var f=this.path,p=0;p>"),e.push(">>");var A="MASK"+e.objId;this.pdf.internal.addGraphicsState(A,e.objId);var r="/"+A+" gs";this.pdf.internal.out(r)}else console.log("jsPDF v2 not enabled")},clip:function(){if(0r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(i));var x=c(i),H=r.x,I=12/r.pdf.internal.scaleFactor,S=(x["margin-left"]+x["padding-left"])*I,_=(x["margin-right"]+x["padding-right"])*I,T=(x["margin-top"]+x["padding-top"])*I,N=(x["margin-bottom"]+x["padding-bottom"])*I;void 0!==x.float&&"right"===x.float?H+=r.settings.width-i.width-_:H+=S,r.pdf.addImage(F,H,r.y+T,i.width,i.height),F=void 0,"right"===x.float||"left"===x.float?(r.watchFunctions.push(function(t,e,A,n){return r.y>=e?(r.x+=t,r.settings.width+=A,!0):!!(n&&1===n.nodeType&&!v[n.nodeName]&&r.x+n.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=A,!0)}.bind(this,"left"===x.float?-i.width-S-_:0,r.y+i.height+T+N,i.width)),r.watchFunctions.push(function(t,e,A){return!(r.y]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='', srcAction: "iframe_src", patterns: { youtube: { index: "youtube.com", id: "v=", src: "//web.archive.org/web/20240127230933/http://www.youtube.com/embed/%id%?autoplay=1", }, vimeo: { index: "vimeo.com/", id: "/", src: "//web.archive.org/web/20240127230933/http://player.vimeo.com/video/%id%?autoplay=1", }, gmaps: { index: "//web.archive.org/web/20240127230933/http://maps.google.", src: "%id%&output=embed", }, }, }, proto: { initIframe: function () { b.types.push(P), w("BeforeChange", function (a, b, c) { b !== c && (b === P ? R() : c === P && R(!0)); }), w(h + "." + P, function () { R(); }); }, getIframe: function (c, d) { var e = c.src, f = b.st.iframe; a.each(f.patterns, function () { return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr( e.lastIndexOf(this.id) + this.id.length, e.length ) : this.id.call(this, e)), (e = this.src.replace("%id%", e)), !1) : void 0; }); var g = {}; return ( f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d ); }, }, }); var S = function (a) { var c = b.items.length; return a > c - 1 ? a - c : 0 > a ? c + a : a; }, T = function (a, b, c) { return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c); }; a.magnificPopup.registerModule("gallery", { options: { enabled: !1, arrowMarkup: '', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%", }, proto: { initGallery: function () { var c = b.st.gallery, e = ".mfp-gallery"; return ( (b.direction = !0), c && c.enabled ? ((f += " mfp-gallery"), w(m + e, function () { c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function () { return b.items.length > 1 ? (b.next(), !1) : void 0; }), d.on("keydown" + e, function (a) { 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next(); }); }), w("UpdateStatus" + e, function (a, c) { c.text && (c.text = T(c.text, b.currItem.index, b.items.length)); }), w(l + e, function (a, d, e, f) { var g = b.items.length; e.counter = g > 1 ? T(c.tCounter, f.index, g) : ""; }), w("BuildControls" + e, function () { if (b.items.length > 1 && c.arrows && !b.arrowLeft) { var d = c.arrowMarkup, e = (b.arrowLeft = a( d .replace(/%title%/gi, c.tPrev) .replace(/%dir%/gi, "left") ).addClass(s)), f = (b.arrowRight = a( d .replace(/%title%/gi, c.tNext) .replace(/%dir%/gi, "right") ).addClass(s)); e.click(function () { b.prev(); }), f.click(function () { b.next(); }), b.container.append(e.add(f)); } }), w(n + e, function () { b._preloadTimeout && clearTimeout(b._preloadTimeout), (b._preloadTimeout = setTimeout(function () { b.preloadNearbyImages(), (b._preloadTimeout = null); }, 16)); }), void w(h + e, function () { d.off(e), b.wrap.off("click" + e), (b.arrowRight = b.arrowLeft = null); })) : !1 ); }, next: function () { (b.direction = !0), (b.index = S(b.index + 1)), b.updateItemHTML(); }, prev: function () { (b.direction = !1), (b.index = S(b.index - 1)), b.updateItemHTML(); }, goTo: function (a) { (b.direction = a >= b.index), (b.index = a), b.updateItemHTML(); }, preloadNearbyImages: function () { var a, c = b.st.gallery.preload, d = Math.min(c[0], b.items.length), e = Math.min(c[1], b.items.length); for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a); for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a); }, _preloadItem: function (c) { if (((c = S(c)), !b.items[c].preloaded)) { var d = b.items[c]; d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.type && (d.img = a('') .on("load.mfploader", function () { d.hasSize = !0; }) .on("error.mfploader", function () { (d.hasSize = !0), (d.loadError = !0), y("LazyLoadError", d); }) .attr("src", d.src)), (d.preloaded = !0); } }, }, }); var U = "retina"; a.magnificPopup.registerModule(U, { options: { replaceSrc: function (a) { return a.src.replace(/\.\w+$/, function (a) { return "@2x" + a; }); }, ratio: 1, }, proto: { initRetina: function () { if (window.devicePixelRatio > 1) { var a = b.st.retina, c = a.ratio; (c = isNaN(c) ? c() : c), c > 1 && (w("ImageHasSize." + U, function (a, b) { b.img.css({ "max-width": b.img[0].naturalWidth / c, width: "100%", }); }), w("ElementParse." + U, function (b, d) { d.src = a.replaceSrc(d, c); })); } }, }, }), A(); }); !(function (t, e) { "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function (i) { return e(t, i); }) : "object" == typeof module && module.exports ? (module.exports = e(t, require("jquery"))) : (t.jQueryBridget = e(t, t.jQuery)); })(window, function (t, e) { "use strict"; function i(i, s, a) { function u(t, e, o) { var n, s = "$()." + i + '("' + e + '")'; return ( t.each(function (t, u) { var h = a.data(u, i); if (!h) return void r( i + " not initialized. Cannot call methods, i.e. " + s ); var d = h[e]; if (!d || "_" == e.charAt(0)) return void r(s + " is not a valid method"); var l = d.apply(h, o); n = void 0 === n ? l : n; }), void 0 !== n ? n : t ); } function h(t, e) { t.each(function (t, o) { var n = a.data(o, i); n ? (n.option(e), n._init()) : ((n = new s(o, e)), a.data(o, i, n)); }); } (a = a || e || t.jQuery), a && (s.prototype.option || (s.prototype.option = function (t) { a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t)); }), (a.fn[i] = function (t) { if ("string" == typeof t) { var e = n.call(arguments, 1); return u(this, t, e); } return h(this, t), this; }), o(a)); } function o(t) { !t || (t && t.bridget) || (t.bridget = i); } var n = Array.prototype.slice, s = t.console, r = "undefined" == typeof s ? function () {} : function (t) { s.error(t); }; return o(e || t.jQuery), i; }), (function (t, e) { "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.EvEmitter = e()); })("undefined" != typeof window ? window : this, function () { function t() {} var e = t.prototype; return ( (e.on = function (t, e) { if (t && e) { var i = (this._events = this._events || {}), o = (i[t] = i[t] || []); return o.indexOf(e) == -1 && o.push(e), this; } }), (e.once = function (t, e) { if (t && e) { this.on(t, e); var i = (this._onceEvents = this._onceEvents || {}), o = (i[t] = i[t] || {}); return (o[e] = !0), this; } }), (e.off = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { var o = i.indexOf(e); return o != -1 && i.splice(o, 1), this; } }), (e.emitEvent = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { (i = i.slice(0)), (e = e || []); for ( var o = this._onceEvents && this._onceEvents[t], n = 0; n < i.length; n++ ) { var s = i[n], r = o && o[s]; r && (this.off(t, s), delete o[s]), s.apply(this, e); } return this; } }), (e.allOff = function () { delete this._events, delete this._onceEvents; }), t ); }), (function (t, e) { "use strict"; "function" == typeof define && define.amd ? define("get-size/get-size", [], function () { return e(); }) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.getSize = e()); })(window, function () { "use strict"; function t(t) { var e = parseFloat(t), i = t.indexOf("%") == -1 && !isNaN(e); return i && e; } function e() {} function i() { for ( var t = { width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0, }, e = 0; e < h; e++ ) { var i = u[e]; t[i] = 0; } return t; } function o(t) { var e = getComputedStyle(t); return ( e || a( "Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1" ), e ); } function n() { if (!d) { d = !0; var e = document.createElement("div"); (e.style.width = "200px"), (e.style.padding = "1px 2px 3px 4px"), (e.style.borderStyle = "solid"), (e.style.borderWidth = "1px 2px 3px 4px"), (e.style.boxSizing = "border-box"); var i = document.body || document.documentElement; i.appendChild(e); var n = o(e); (s.isBoxSizeOuter = r = 200 == t(n.width)), i.removeChild(e); } } function s(e) { if ( (n(), "string" == typeof e && (e = document.querySelector(e)), e && "object" == typeof e && e.nodeType) ) { var s = o(e); if ("none" == s.display) return i(); var a = {}; (a.width = e.offsetWidth), (a.height = e.offsetHeight); for ( var d = (a.isBorderBox = "border-box" == s.boxSizing), l = 0; l < h; l++ ) { var f = u[l], c = s[f], m = parseFloat(c); a[f] = isNaN(m) ? 0 : m; } var p = a.paddingLeft + a.paddingRight, y = a.paddingTop + a.paddingBottom, g = a.marginLeft + a.marginRight, v = a.marginTop + a.marginBottom, _ = a.borderLeftWidth + a.borderRightWidth, I = a.borderTopWidth + a.borderBottomWidth, z = d && r, x = t(s.width); x !== !1 && (a.width = x + (z ? 0 : p + _)); var S = t(s.height); return ( S !== !1 && (a.height = S + (z ? 0 : y + I)), (a.innerWidth = a.width - (p + _)), (a.innerHeight = a.height - (y + I)), (a.outerWidth = a.width + g), (a.outerHeight = a.height + v), a ); } } var r, a = "undefined" == typeof console ? e : function (t) { console.error(t); }, u = [ "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth", ], h = u.length, d = !1; return s; }), (function (t, e) { "use strict"; "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? (module.exports = e()) : (t.matchesSelector = e()); })(window, function () { "use strict"; var t = (function () { var t = window.Element.prototype; if (t.matches) return "matches"; if (t.matchesSelector) return "matchesSelector"; for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) { var o = e[i], n = o + "MatchesSelector"; if (t[n]) return n; } })(); return function (e, i) { return e[t](i); }; }), (function (t, e) { "function" == typeof define && define.amd ? define( "fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function (i) { return e(t, i); } ) : "object" == typeof module && module.exports ? (module.exports = e(t, require("desandro-matches-selector"))) : (t.fizzyUIUtils = e(t, t.matchesSelector)); })(window, function (t, e) { var i = {}; (i.extend = function (t, e) { for (var i in e) t[i] = e[i]; return t; }), (i.modulo = function (t, e) { return ((t % e) + e) % e; }), (i.makeArray = function (t) { var e = []; if (Array.isArray(t)) e = t; else if (t && "object" == typeof t && "number" == typeof t.length) for (var i = 0; i < t.length; i++) e.push(t[i]); else e.push(t); return e; }), (i.removeFrom = function (t, e) { var i = t.indexOf(e); i != -1 && t.splice(i, 1); }), (i.getParent = function (t, i) { for (; t.parentNode && t != document.body; ) if (((t = t.parentNode), e(t, i))) return t; }), (i.getQueryElement = function (t) { return "string" == typeof t ? document.querySelector(t) : t; }), (i.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t); }), (i.filterFindElements = function (t, o) { t = i.makeArray(t); var n = []; return ( t.forEach(function (t) { if (t instanceof HTMLElement) { if (!o) return void n.push(t); e(t, o) && n.push(t); for (var i = t.querySelectorAll(o), s = 0; s < i.length; s++) n.push(i[s]); } }), n ); }), (i.debounceMethod = function (t, e, i) { var o = t.prototype[e], n = e + "Timeout"; t.prototype[e] = function () { var t = this[n]; t && clearTimeout(t); var e = arguments, s = this; this[n] = setTimeout(function () { o.apply(s, e), delete s[n]; }, i || 100); }; }), (i.docReady = function (t) { var e = document.readyState; "complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t); }), (i.toDashed = function (t) { return t .replace(/(.)([A-Z])/g, function (t, e, i) { return e + "-" + i; }) .toLowerCase(); }); var o = t.console; return ( (i.htmlInit = function (e, n) { i.docReady(function () { var s = i.toDashed(n), r = "data-" + s, a = document.querySelectorAll("[" + r + "]"), u = document.querySelectorAll(".js-" + s), h = i.makeArray(a).concat(i.makeArray(u)), d = r + "-options", l = t.jQuery; h.forEach(function (t) { var i, s = t.getAttribute(r) || t.getAttribute(d); try { i = s && JSON.parse(s); } catch (a) { return void ( o && o.error( "Error parsing " + r + " on " + t.className + ": " + a ) ); } var u = new e(t, i); l && l.data(t, n, u); }); }); }), i ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e ) : "object" == typeof module && module.exports ? (module.exports = e(require("ev-emitter"), require("get-size"))) : ((t.Outlayer = {}), (t.Outlayer.Item = e(t.EvEmitter, t.getSize))); })(window, function (t, e) { "use strict"; function i(t) { for (var e in t) return !1; return (e = null), !0; } function o(t, e) { t && ((this.element = t), (this.layout = e), (this.position = { x: 0, y: 0 }), this._create()); } function n(t) { return t.replace(/([A-Z])/g, function (t) { return "-" + t.toLowerCase(); }); } var s = document.documentElement.style, r = "string" == typeof s.transition ? "transition" : "WebkitTransition", a = "string" == typeof s.transform ? "transform" : "WebkitTransform", u = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend", }[r], h = { transform: a, transition: r, transitionDuration: r + "Duration", transitionProperty: r + "Property", transitionDelay: r + "Delay", }, d = (o.prototype = Object.create(t.prototype)); (d.constructor = o), (d._create = function () { (this._transn = { ingProperties: {}, clean: {}, onEnd: {} }), this.css({ position: "absolute" }); }), (d.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t); }), (d.getSize = function () { this.size = e(this.element); }), (d.css = function (t) { var e = this.element.style; for (var i in t) { var o = h[i] || i; e[o] = t[i]; } }), (d.getPosition = function () { var t = getComputedStyle(this.element), e = this.layout._getOption("originLeft"), i = this.layout._getOption("originTop"), o = t[e ? "left" : "right"], n = t[i ? "top" : "bottom"], s = this.layout.size, r = o.indexOf("%") != -1 ? (parseFloat(o) / 100) * s.width : parseInt(o, 10), a = n.indexOf("%") != -1 ? (parseFloat(n) / 100) * s.height : parseInt(n, 10); (r = isNaN(r) ? 0 : r), (a = isNaN(a) ? 0 : a), (r -= e ? s.paddingLeft : s.paddingRight), (a -= i ? s.paddingTop : s.paddingBottom), (this.position.x = r), (this.position.y = a); }), (d.layoutPosition = function () { var t = this.layout.size, e = {}, i = this.layout._getOption("originLeft"), o = this.layout._getOption("originTop"), n = i ? "paddingLeft" : "paddingRight", s = i ? "left" : "right", r = i ? "right" : "left", a = this.position.x + t[n]; (e[s] = this.getXValue(a)), (e[r] = ""); var u = o ? "paddingTop" : "paddingBottom", h = o ? "top" : "bottom", d = o ? "bottom" : "top", l = this.position.y + t[u]; (e[h] = this.getYValue(l)), (e[d] = ""), this.css(e), this.emitEvent("layout", [this]); }), (d.getXValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && !e ? (t / this.layout.size.width) * 100 + "%" : t + "px"; }), (d.getYValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && e ? (t / this.layout.size.height) * 100 + "%" : t + "px"; }), (d._transitionTo = function (t, e) { this.getPosition(); var i = this.position.x, o = this.position.y, n = parseInt(t, 10), s = parseInt(e, 10), r = n === this.position.x && s === this.position.y; if ((this.setPosition(t, e), r && !this.isTransitioning)) return void this.layoutPosition(); var a = t - i, u = e - o, h = {}; (h.transform = this.getTranslate(a, u)), this.transition({ to: h, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0, }); }), (d.getTranslate = function (t, e) { var i = this.layout._getOption("originLeft"), o = this.layout._getOption("originTop"); return ( (t = i ? t : -t), (e = o ? e : -e), "translate3d(" + t + "px, " + e + "px, 0)" ); }), (d.goTo = function (t, e) { this.setPosition(t, e), this.layoutPosition(); }), (d.moveTo = d._transitionTo), (d.setPosition = function (t, e) { (this.position.x = parseInt(t, 10)), (this.position.y = parseInt(e, 10)); }), (d._nonTransition = function (t) { this.css(t.to), t.isCleaning && this._removeStyles(t.to); for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this); }), (d.transition = function (t) { if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t); var e = this._transn; for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i]; for (i in t.to) (e.ingProperties[i] = !0), t.isCleaning && (e.clean[i] = !0); if (t.from) { this.css(t.from); var o = this.element.offsetHeight; o = null; } this.enableTransition(t.to), this.css(t.to), (this.isTransitioning = !0); }); var l = "opacity," + n(a); (d.enableTransition = function () { if (!this.isTransitioning) { var t = this.layout.options.transitionDuration; (t = "number" == typeof t ? t + "ms" : t), this.css({ transitionProperty: l, transitionDuration: t, transitionDelay: this.staggerDelay || 0, }), this.element.addEventListener(u, this, !1); } }), (d.onwebkitTransitionEnd = function (t) { this.ontransitionend(t); }), (d.onotransitionend = function (t) { this.ontransitionend(t); }); var f = { "-webkit-transform": "transform" }; (d.ontransitionend = function (t) { if (t.target === this.element) { var e = this._transn, o = f[t.propertyName] || t.propertyName; if ( (delete e.ingProperties[o], i(e.ingProperties) && this.disableTransition(), o in e.clean && ((this.element.style[t.propertyName] = ""), delete e.clean[o]), o in e.onEnd) ) { var n = e.onEnd[o]; n.call(this), delete e.onEnd[o]; } this.emitEvent("transitionEnd", [this]); } }), (d.disableTransition = function () { this.removeTransitionStyles(), this.element.removeEventListener(u, this, !1), (this.isTransitioning = !1); }), (d._removeStyles = function (t) { var e = {}; for (var i in t) e[i] = ""; this.css(e); }); var c = { transitionProperty: "", transitionDuration: "", transitionDelay: "", }; return ( (d.removeTransitionStyles = function () { this.css(c); }), (d.stagger = function (t) { (t = isNaN(t) ? 0 : t), (this.staggerDelay = t + "ms"); }), (d.removeElem = function () { this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]); }), (d.remove = function () { return r && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function () { this.removeElem(); }), void this.hide()) : void this.removeElem(); }), (d.reveal = function () { delete this.isHidden, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("visibleStyle"); (e[i] = this.onRevealTransitionEnd), this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e, }); }), (d.onRevealTransitionEnd = function () { this.isHidden || this.emitEvent("reveal"); }), (d.getHideRevealTransitionEndProperty = function (t) { var e = this.layout.options[t]; if (e.opacity) return "opacity"; for (var i in e) return i; }), (d.hide = function () { (this.isHidden = !0), this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("hiddenStyle"); (e[i] = this.onHideTransitionEnd), this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e, }); }), (d.onHideTransitionEnd = function () { this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide")); }), (d.destroy = function () { this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "", }); }), o ); }), (function (t, e) { "use strict"; "function" == typeof define && define.amd ? define( "outlayer/outlayer", [ "ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item", ], function (i, o, n, s) { return e(t, i, o, n, s); } ) : "object" == typeof module && module.exports ? (module.exports = e( t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item") )) : (t.Outlayer = e( t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item )); })(window, function (t, e, i, o, n) { "use strict"; function s(t, e) { var i = o.getQueryElement(t); if (!i) return void ( u && u.error( "Bad element for " + this.constructor.namespace + ": " + (i || t) ) ); (this.element = i), h && (this.$element = h(this.element)), (this.options = o.extend({}, this.constructor.defaults)), this.option(e); var n = ++l; (this.element.outlayerGUID = n), (f[n] = this), this._create(); var s = this._getOption("initLayout"); s && this.layout(); } function r(t) { function e() { t.apply(this, arguments); } return ( (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), e ); } function a(t) { if ("number" == typeof t) return t; var e = t.match(/(^\d*\.?\d*)(\w*)/), i = e && e[1], o = e && e[2]; if (!i.length) return 0; i = parseFloat(i); var n = m[o] || 1; return i * n; } var u = t.console, h = t.jQuery, d = function () {}, l = 0, f = {}; (s.namespace = "outlayer"), (s.Item = n), (s.defaults = { containerStyle: { position: "relative" }, initLayout: !0, originLeft: !0, originTop: !0, resize: !0, resizeContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" }, }); var c = s.prototype; o.extend(c, e.prototype), (c.option = function (t) { o.extend(this.options, t); }), (c._getOption = function (t) { var e = this.constructor.compatOptions[t]; return e && void 0 !== this.options[e] ? this.options[e] : this.options[t]; }), (s.compatOptions = { initLayout: "isInitLayout", horizontal: "isHorizontal", layoutInstant: "isLayoutInstant", originLeft: "isOriginLeft", originTop: "isOriginTop", resize: "isResizeBound", resizeContainer: "isResizingContainer", }), (c._create = function () { this.reloadItems(), (this.stamps = []), this.stamp(this.options.stamp), o.extend(this.element.style, this.options.containerStyle); var t = this._getOption("resize"); t && this.bindResize(); }), (c.reloadItems = function () { this.items = this._itemize(this.element.children); }), (c._itemize = function (t) { for ( var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0; n < e.length; n++ ) { var s = e[n], r = new i(s, this); o.push(r); } return o; }), (c._filterFindItemElements = function (t) { return o.filterFindElements(t, this.options.itemSelector); }), (c.getItemElements = function () { return this.items.map(function (t) { return t.element; }); }), (c.layout = function () { this._resetLayout(), this._manageStamps(); var t = this._getOption("layoutInstant"), e = void 0 !== t ? t : !this._isLayoutInited; this.layoutItems(this.items, e), (this._isLayoutInited = !0); }), (c._init = c.layout), (c._resetLayout = function () { this.getSize(); }), (c.getSize = function () { this.size = i(this.element); }), (c._getMeasurement = function (t, e) { var o, n = this.options[t]; n ? ("string" == typeof n ? (o = this.element.querySelector(n)) : n instanceof HTMLElement && (o = n), (this[t] = o ? i(o)[e] : n)) : (this[t] = 0); }), (c.layoutItems = function (t, e) { (t = this._getItemsForLayout(t)), this._layoutItems(t, e), this._postLayout(); }), (c._getItemsForLayout = function (t) { return t.filter(function (t) { return !t.isIgnored; }); }), (c._layoutItems = function (t, e) { if ((this._emitCompleteOnItems("layout", t), t && t.length)) { var i = []; t.forEach(function (t) { var o = this._getItemLayoutPosition(t); (o.item = t), (o.isInstant = e || t.isLayoutInstant), i.push(o); }, this), this._processLayoutQueue(i); } }), (c._getItemLayoutPosition = function () { return { x: 0, y: 0 }; }), (c._processLayoutQueue = function (t) { this.updateStagger(), t.forEach(function (t, e) { this._positionItem(t.item, t.x, t.y, t.isInstant, e); }, this); }), (c.updateStagger = function () { var t = this.options.stagger; return null === t || void 0 === t ? void (this.stagger = 0) : ((this.stagger = a(t)), this.stagger); }), (c._positionItem = function (t, e, i, o, n) { o ? t.goTo(e, i) : (t.stagger(n * this.stagger), t.moveTo(e, i)); }), (c._postLayout = function () { this.resizeContainer(); }), (c.resizeContainer = function () { var t = this._getOption("resizeContainer"); if (t) { var e = this._getContainerSize(); e && (this._setContainerMeasure(e.width, !0), this._setContainerMeasure(e.height, !1)); } }), (c._getContainerSize = d), (c._setContainerMeasure = function (t, e) { if (void 0 !== t) { var i = this.size; i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), (t = Math.max(t, 0)), (this.element.style[e ? "width" : "height"] = t + "px"); } }), (c._emitCompleteOnItems = function (t, e) { function i() { n.dispatchEvent(t + "Complete", null, [e]); } function o() { r++, r == s && i(); } var n = this, s = e.length; if (!e || !s) return void i(); var r = 0; e.forEach(function (e) { e.once(t, o); }); }), (c.dispatchEvent = function (t, e, i) { var o = e ? [e].concat(i) : i; if ((this.emitEvent(t, o), h)) if (((this.$element = this.$element || h(this.element)), e)) { var n = h.Event(e); (n.type = t), this.$element.trigger(n, i); } else this.$element.trigger(t, i); }), (c.ignore = function (t) { var e = this.getItem(t); e && (e.isIgnored = !0); }), (c.unignore = function (t) { var e = this.getItem(t); e && delete e.isIgnored; }), (c.stamp = function (t) { (t = this._find(t)), t && ((this.stamps = this.stamps.concat(t)), t.forEach(this.ignore, this)); }), (c.unstamp = function (t) { (t = this._find(t)), t && t.forEach(function (t) { o.removeFrom(this.stamps, t), this.unignore(t); }, this); }), (c._find = function (t) { if (t) return ( "string" == typeof t && (t = this.element.querySelectorAll(t)), (t = o.makeArray(t)) ); }), (c._manageStamps = function () { this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this)); }), (c._getBoundingRect = function () { var t = this.element.getBoundingClientRect(), e = this.size; this._boundingRect = { left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth), }; }), (c._manageStamp = d), (c._getElementOffset = function (t) { var e = t.getBoundingClientRect(), o = this._boundingRect, n = i(t), s = { left: e.left - o.left - n.marginLeft, top: e.top - o.top - n.marginTop, right: o.right - e.right - n.marginRight, bottom: o.bottom - e.bottom - n.marginBottom, }; return s; }), (c.handleEvent = o.handleEvent), (c.bindResize = function () { t.addEventListener("resize", this), (this.isResizeBound = !0); }), (c.unbindResize = function () { t.removeEventListener("resize", this), (this.isResizeBound = !1); }), (c.onresize = function () { this.resize(); }), o.debounceMethod(s, "onresize", 100), (c.resize = function () { this.isResizeBound && this.needsResizeLayout() && this.layout(); }), (c.needsResizeLayout = function () { var t = i(this.element), e = this.size && t; return e && t.innerWidth !== this.size.innerWidth; }), (c.addItems = function (t) { var e = this._itemize(t); return e.length && (this.items = this.items.concat(e)), e; }), (c.appended = function (t) { var e = this.addItems(t); e.length && (this.layoutItems(e, !0), this.reveal(e)); }), (c.prepended = function (t) { var e = this._itemize(t); if (e.length) { var i = this.items.slice(0); (this.items = e.concat(i)), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i); } }), (c.reveal = function (t) { if ((this._emitCompleteOnItems("reveal", t), t && t.length)) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.reveal(); }); } }), (c.hide = function (t) { if ((this._emitCompleteOnItems("hide", t), t && t.length)) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.hide(); }); } }), (c.revealItemElements = function (t) { var e = this.getItems(t); this.reveal(e); }), (c.hideItemElements = function (t) { var e = this.getItems(t); this.hide(e); }), (c.getItem = function (t) { for (var e = 0; e < this.items.length; e++) { var i = this.items[e]; if (i.element == t) return i; } }), (c.getItems = function (t) { t = o.makeArray(t); var e = []; return ( t.forEach(function (t) { var i = this.getItem(t); i && e.push(i); }, this), e ); }), (c.remove = function (t) { var e = this.getItems(t); this._emitCompleteOnItems("remove", e), e && e.length && e.forEach(function (t) { t.remove(), o.removeFrom(this.items, t); }, this); }), (c.destroy = function () { var t = this.element.style; (t.height = ""), (t.position = ""), (t.width = ""), this.items.forEach(function (t) { t.destroy(); }), this.unbindResize(); var e = this.element.outlayerGUID; delete f[e], delete this.element.outlayerGUID, h && h.removeData(this.element, this.constructor.namespace); }), (s.data = function (t) { t = o.getQueryElement(t); var e = t && t.outlayerGUID; return e && f[e]; }), (s.create = function (t, e) { var i = r(s); return ( (i.defaults = o.extend({}, s.defaults)), o.extend(i.defaults, e), (i.compatOptions = o.extend({}, s.compatOptions)), (i.namespace = t), (i.data = s.data), (i.Item = r(n)), o.htmlInit(i, t), h && h.bridget && h.bridget(t, i), i ); }); var m = { ms: 1, s: 1e3 }; return (s.Item = n), s; }), (function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/item", ["outlayer/outlayer"], e) : "object" == typeof module && module.exports ? (module.exports = e(require("outlayer"))) : ((t.Isotope = t.Isotope || {}), (t.Isotope.Item = e(t.Outlayer))); })(window, function (t) { "use strict"; function e() { t.Item.apply(this, arguments); } var i = (e.prototype = Object.create(t.Item.prototype)), o = i._create; (i._create = function () { (this.id = this.layout.itemGUID++), o.call(this), (this.sortData = {}); }), (i.updateSortData = function () { if (!this.isIgnored) { (this.sortData.id = this.id), (this.sortData["original-order"] = this.id), (this.sortData.random = Math.random()); var t = this.layout.options.getSortData, e = this.layout._sorters; for (var i in t) { var o = e[i]; this.sortData[i] = o(this.element, this); } } }); var n = i.destroy; return ( (i.destroy = function () { n.apply(this, arguments), this.css({ display: "" }); }), e ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "isotope-layout/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e ) : "object" == typeof module && module.exports ? (module.exports = e(require("get-size"), require("outlayer"))) : ((t.Isotope = t.Isotope || {}), (t.Isotope.LayoutMode = e(t.getSize, t.Outlayer))); })(window, function (t, e) { "use strict"; function i(t) { (this.isotope = t), t && ((this.options = t.options[this.namespace]), (this.element = t.element), (this.items = t.filteredItems), (this.size = t.size)); } var o = i.prototype, n = [ "_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption", ]; return ( n.forEach(function (t) { o[t] = function () { return e.prototype[t].apply(this.isotope, arguments); }; }), (o.needsVerticalResizeLayout = function () { var e = t(this.isotope.element), i = this.isotope.size && e; return i && e.innerHeight != this.isotope.size.innerHeight; }), (o._getMeasurement = function () { this.isotope._getMeasurement.apply(this, arguments); }), (o.getColumnWidth = function () { this.getSegmentSize("column", "Width"); }), (o.getRowHeight = function () { this.getSegmentSize("row", "Height"); }), (o.getSegmentSize = function (t, e) { var i = t + e, o = "outer" + e; if ((this._getMeasurement(i, o), !this[i])) { var n = this.getFirstItemSize(); this[i] = (n && n[o]) || this.isotope.size["inner" + e]; } }), (o.getFirstItemSize = function () { var e = this.isotope.filteredItems[0]; return e && e.element && t(e.element); }), (o.layout = function () { this.isotope.layout.apply(this.isotope, arguments); }), (o.getSize = function () { this.isotope.getSize(), (this.size = this.isotope.size); }), (i.modes = {}), (i.create = function (t, e) { function n() { i.apply(this, arguments); } return ( (n.prototype = Object.create(o)), (n.prototype.constructor = n), e && (n.options = e), (n.prototype.namespace = t), (i.modes[t] = n), n ); }), i ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "masonry-layout/masonry", ["outlayer/outlayer", "get-size/get-size"], e ) : "object" == typeof module && module.exports ? (module.exports = e(require("outlayer"), require("get-size"))) : (t.Masonry = e(t.Outlayer, t.getSize)); })(window, function (t, e) { var i = t.create("masonry"); i.compatOptions.fitWidth = "isFitWidth"; var o = i.prototype; return ( (o._resetLayout = function () { this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), (this.colYs = []); for (var t = 0; t < this.cols; t++) this.colYs.push(0); (this.maxY = 0), (this.horizontalColIndex = 0); }), (o.measureColumns = function () { if ((this.getContainerWidth(), !this.columnWidth)) { var t = this.items[0], i = t && t.element; this.columnWidth = (i && e(i).outerWidth) || this.containerWidth; } var o = (this.columnWidth += this.gutter), n = this.containerWidth + this.gutter, s = n / o, r = o - (n % o), a = r && r < 1 ? "round" : "floor"; (s = Math[a](s)), (this.cols = Math.max(s, 1)); }), (o.getContainerWidth = function () { var t = this._getOption("fitWidth"), i = t ? this.element.parentNode : this.element, o = e(i); this.containerWidth = o && o.innerWidth; }), (o._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth % this.columnWidth, i = e && e < 1 ? "round" : "ceil", o = Math[i](t.size.outerWidth / this.columnWidth); o = Math.min(o, this.cols); for ( var n = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", s = this[n](o, t), r = { x: this.columnWidth * s.col, y: s.y }, a = s.y + t.size.outerHeight, u = o + s.col, h = s.col; h < u; h++ ) this.colYs[h] = a; return r; }), (o._getTopColPosition = function (t) { var e = this._getTopColGroup(t), i = Math.min.apply(Math, e); return { col: e.indexOf(i), y: i }; }), (o._getTopColGroup = function (t) { if (t < 2) return this.colYs; for (var e = [], i = this.cols + 1 - t, o = 0; o < i; o++) e[o] = this._getColGroupY(o, t); return e; }), (o._getColGroupY = function (t, e) { if (e < 2) return this.colYs[t]; var i = this.colYs.slice(t, t + e); return Math.max.apply(Math, i); }), (o._getHorizontalColPosition = function (t, e) { var i = this.horizontalColIndex % this.cols, o = t > 1 && i + t > this.cols; i = o ? 0 : i; var n = e.size.outerWidth && e.size.outerHeight; return ( (this.horizontalColIndex = n ? i + t : this.horizontalColIndex), { col: i, y: this._getColGroupY(i, t) } ); }), (o._manageStamp = function (t) { var i = e(t), o = this._getElementOffset(t), n = this._getOption("originLeft"), s = n ? o.left : o.right, r = s + i.outerWidth, a = Math.floor(s / this.columnWidth); a = Math.max(0, a); var u = Math.floor(r / this.columnWidth); (u -= r % this.columnWidth ? 0 : 1), (u = Math.min(this.cols - 1, u)); for ( var h = this._getOption("originTop"), d = (h ? o.top : o.bottom) + i.outerHeight, l = a; l <= u; l++ ) this.colYs[l] = Math.max(d, this.colYs[l]); }), (o._getContainerSize = function () { this.maxY = Math.max.apply(Math, this.colYs); var t = { height: this.maxY }; return ( this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t ); }), (o._getContainerFitWidth = function () { for (var t = 0, e = this.cols; --e && 0 === this.colYs[e]; ) t++; return (this.cols - t) * this.columnWidth - this.gutter; }), (o.needsResizeLayout = function () { var t = this.containerWidth; return this.getContainerWidth(), t != this.containerWidth; }), i ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "isotope-layout/js/layout-modes/masonry", ["../layout-mode", "masonry-layout/masonry"], e ) : "object" == typeof module && module.exports ? (module.exports = e( require("../layout-mode"), require("masonry-layout") )) : e(t.Isotope.LayoutMode, t.Masonry); })(window, function (t, e) { "use strict"; var i = t.create("masonry"), o = i.prototype, n = { _getElementOffset: !0, layout: !0, _getMeasurement: !0 }; for (var s in e.prototype) n[s] || (o[s] = e.prototype[s]); var r = o.measureColumns; o.measureColumns = function () { (this.items = this.isotope.filteredItems), r.call(this); }; var a = o._getOption; return ( (o._getOption = function (t) { return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments); }), i ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "isotope-layout/js/layout-modes/fit-rows", ["../layout-mode"], e ) : "object" == typeof exports ? (module.exports = e(require("../layout-mode"))) : e(t.Isotope.LayoutMode); })(window, function (t) { "use strict"; var e = t.create("fitRows"), i = e.prototype; return ( (i._resetLayout = function () { (this.x = 0), (this.y = 0), (this.maxY = 0), this._getMeasurement("gutter", "outerWidth"); }), (i._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth + this.gutter, i = this.isotope.size.innerWidth + this.gutter; 0 !== this.x && e + this.x > i && ((this.x = 0), (this.y = this.maxY)); var o = { x: this.x, y: this.y }; return ( (this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight)), (this.x += e), o ); }), (i._getContainerSize = function () { return { height: this.maxY }; }), e ); }), (function (t, e) { "function" == typeof define && define.amd ? define( "isotope-layout/js/layout-modes/vertical", ["../layout-mode"], e ) : "object" == typeof module && module.exports ? (module.exports = e(require("../layout-mode"))) : e(t.Isotope.LayoutMode); })(window, function (t) { "use strict"; var e = t.create("vertical", { horizontalAlignment: 0 }), i = e.prototype; return ( (i._resetLayout = function () { this.y = 0; }), (i._getItemLayoutPosition = function (t) { t.getSize(); var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, i = this.y; return (this.y += t.size.outerHeight), { x: e, y: i }; }), (i._getContainerSize = function () { return { height: this.y }; }), e ); }), (function (t, e) { "function" == typeof define && define.amd ? define( [ "outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope-layout/js/item", "isotope-layout/js/layout-mode", "isotope-layout/js/layout-modes/masonry", "isotope-layout/js/layout-modes/fit-rows", "isotope-layout/js/layout-modes/vertical", ], function (i, o, n, s, r, a) { return e(t, i, o, n, s, r, a); } ) : "object" == typeof module && module.exports ? (module.exports = e( t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope-layout/js/item"), require("isotope-layout/js/layout-mode"), require("isotope-layout/js/layout-modes/masonry"), require("isotope-layout/js/layout-modes/fit-rows"), require("isotope-layout/js/layout-modes/vertical") )) : (t.Isotope = e( t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode )); })(window, function (t, e, i, o, n, s, r) { function a(t, e) { return function (i, o) { for (var n = 0; n < t.length; n++) { var s = t[n], r = i.sortData[s], a = o.sortData[s]; if (r > a || r < a) { var u = void 0 !== e[s] ? e[s] : e, h = u ? 1 : -1; return (r > a ? 1 : -1) * h; } } return 0; }; } var u = t.jQuery, h = String.prototype.trim ? function (t) { return t.trim(); } : function (t) { return t.replace(/^\s+|\s+$/g, ""); }, d = e.create("isotope", { layoutMode: "masonry", isJQueryFiltering: !0, sortAscending: !0, }); (d.Item = s), (d.LayoutMode = r); var l = d.prototype; (l._create = function () { (this.itemGUID = 0), (this._sorters = {}), this._getSorters(), e.prototype._create.call(this), (this.modes = {}), (this.filteredItems = this.items), (this.sortHistory = ["original-order"]); for (var t in r.modes) this._initLayoutMode(t); }), (l.reloadItems = function () { (this.itemGUID = 0), e.prototype.reloadItems.call(this); }), (l._itemize = function () { for ( var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++ ) { var o = t[i]; o.id = this.itemGUID++; } return this._updateItemsSortData(t), t; }), (l._initLayoutMode = function (t) { var e = r.modes[t], i = this.options[t] || {}; (this.options[t] = e.options ? n.extend(e.options, i) : i), (this.modes[t] = new e(this)); }), (l.layout = function () { return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout(); }), (l._layout = function () { var t = this._getIsInstant(); this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), (this._isLayoutInited = !0); }), (l.arrange = function (t) { this.option(t), this._getIsInstant(); var e = this._filter(this.items); (this.filteredItems = e.matches), this._bindArrangeComplete(), this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e), this._sort(), this._layout(); }), (l._init = l.arrange), (l._hideReveal = function (t) { this.reveal(t.needReveal), this.hide(t.needHide); }), (l._getIsInstant = function () { var t = this._getOption("layoutInstant"), e = void 0 !== t ? t : !this._isLayoutInited; return (this._isInstant = e), e; }), (l._bindArrangeComplete = function () { function t() { e && i && o && n.dispatchEvent("arrangeComplete", null, [n.filteredItems]); } var e, i, o, n = this; this.once("layoutComplete", function () { (e = !0), t(); }), this.once("hideComplete", function () { (i = !0), t(); }), this.once("revealComplete", function () { (o = !0), t(); }); }), (l._filter = function (t) { var e = this.options.filter; e = e || "*"; for ( var i = [], o = [], n = [], s = this._getFilterTest(e), r = 0; r < t.length; r++ ) { var a = t[r]; if (!a.isIgnored) { var u = s(a); u && i.push(a), u && a.isHidden ? o.push(a) : u || a.isHidden || n.push(a); } } return { matches: i, needReveal: o, needHide: n }; }), (l._getFilterTest = function (t) { return u && this.options.isJQueryFiltering ? function (e) { return u(e.element).is(t); } : "function" == typeof t ? function (e) { return t(e.element); } : function (e) { return o(e.element, t); }; }), (l.updateSortData = function (t) { var e; t ? ((t = n.makeArray(t)), (e = this.getItems(t))) : (e = this.items), this._getSorters(), this._updateItemsSortData(e); }), (l._getSorters = function () { var t = this.options.getSortData; for (var e in t) { var i = t[e]; this._sorters[e] = f(i); } }), (l._updateItemsSortData = function (t) { for (var e = t && t.length, i = 0; e && i < e; i++) { var o = t[i]; o.updateSortData(); } }); var f = (function () { function t(t) { if ("string" != typeof t) return t; var i = h(t).split(" "), o = i[0], n = o.match(/^\[(.+)\]$/), s = n && n[1], r = e(s, o), a = d.sortDataParsers[i[1]]; return (t = a ? function (t) { return t && a(r(t)); } : function (t) { return t && r(t); }); } function e(t, e) { return t ? function (e) { return e.getAttribute(t); } : function (t) { var i = t.querySelector(e); return i && i.textContent; }; } return t; })(); (d.sortDataParsers = { parseInt: function (t) { return parseInt(t, 10); }, parseFloat: function (t) { return parseFloat(t); }, }), (l._sort = function () { if (this.options.sortBy) { var t = n.makeArray(this.options.sortBy); this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory)); var e = a(this.sortHistory, this.options.sortAscending); this.filteredItems.sort(e); } }), (l._getIsSameSortBy = function (t) { for (var e = 0; e < t.length; e++) if (t[e] != this.sortHistory[e]) return !1; return !0; }), (l._mode = function () { var t = this.options.layoutMode, e = this.modes[t]; if (!e) throw new Error("No layout mode: " + t); return (e.options = this.options[t]), e; }), (l._resetLayout = function () { e.prototype._resetLayout.call(this), this._mode()._resetLayout(); }), (l._getItemLayoutPosition = function (t) { return this._mode()._getItemLayoutPosition(t); }), (l._manageStamp = function (t) { this._mode()._manageStamp(t); }), (l._getContainerSize = function () { return this._mode()._getContainerSize(); }), (l.needsResizeLayout = function () { return this._mode().needsResizeLayout(); }), (l.appended = function (t) { var e = this.addItems(t); if (e.length) { var i = this._filterRevealAdded(e); this.filteredItems = this.filteredItems.concat(i); } }), (l.prepended = function (t) { var e = this._itemize(t); if (e.length) { this._resetLayout(), this._manageStamps(); var i = this._filterRevealAdded(e); this.layoutItems(this.filteredItems), (this.filteredItems = i.concat(this.filteredItems)), (this.items = e.concat(this.items)); } }), (l._filterRevealAdded = function (t) { var e = this._filter(t); return ( this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches ); }), (l.insert = function (t) { var e = this.addItems(t); if (e.length) { var i, o, n = e.length; for (i = 0; i < n; i++) (o = e[i]), this.element.appendChild(o.element); var s = this._filter(e).matches; for (i = 0; i < n; i++) e[i].isLayoutInstant = !0; for (this.arrange(), i = 0; i < n; i++) delete e[i].isLayoutInstant; this.reveal(s); } }); var c = l.remove; return ( (l.remove = function (t) { t = n.makeArray(t); var e = this.getItems(t); c.call(this, t); for (var i = e && e.length, o = 0; i && o < i; o++) { var s = e[o]; n.removeFrom(this.filteredItems, s); } }), (l.shuffle = function () { for (var t = 0; t < this.items.length; t++) { var e = this.items[t]; e.sortData.random = Math.random(); } (this.options.sortBy = "random"), this._sort(), this._layout(); }), (l._noTransition = function (t, e) { var i = this.options.transitionDuration; this.options.transitionDuration = 0; var o = t.apply(this, e); return (this.options.transitionDuration = i), o; }), (l.getFilteredItemElements = function () { return this.filteredItems.map(function (t) { return t.element; }); }), d ); }); !(function (a, b, c, d) { function e(b, c) { (this.settings = null), (this.options = a.extend({}, e.Defaults, c)), (this.$element = a(b)), (this._handlers = {}), (this._plugins = {}), (this._supress = {}), (this._current = null), (this._speed = null), (this._coordinates = []), (this._breakpoint = null), (this._width = null), (this._items = []), (this._clones = []), (this._mergers = []), (this._widths = []), (this._invalidated = {}), (this._pipe = []), (this._drag = { time: null, target: null, pointer: null, stage: { start: null, current: null }, direction: null, }), (this._states = { current: {}, tags: { initializing: ["busy"], animating: ["busy"], dragging: ["interacting"], }, }), a.each( ["onResize", "onThrottledResize"], a.proxy(function (b, c) { this._handlers[c] = a.proxy(this[c], this); }, this) ), a.each( e.Plugins, a.proxy(function (a, b) { this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this); }, this) ), a.each( e.Workers, a.proxy(function (b, c) { this._pipe.push({ filter: c.filter, run: a.proxy(c.run, this) }); }, this) ), this.setup(), this.initialize(); } (e.Defaults = { items: 3, loop: !1, center: !1, rewind: !1, checkVisibility: !0, mouseDrag: !0, touchDrag: !0, pullDrag: !0, freeDrag: !1, margin: 0, stagePadding: 0, merge: !1, mergeFit: !0, autoWidth: !1, startPosition: 0, rtl: !1, smartSpeed: 250, fluidSpeed: !1, dragEndSpeed: !1, responsive: {}, responsiveRefreshRate: 200, responsiveBaseElement: b, fallbackEasing: "swing", slideTransition: "", info: !1, nestedItemSelector: !1, itemElement: "div", stageElement: "div", refreshClass: "owl-refresh", loadedClass: "owl-loaded", loadingClass: "owl-loading", rtlClass: "owl-rtl", responsiveClass: "owl-responsive", dragClass: "owl-drag", itemClass: "owl-item", stageClass: "owl-stage", stageOuterClass: "owl-stage-outer", grabClass: "owl-grab", }), (e.Width = { Default: "default", Inner: "inner", Outer: "outer" }), (e.Type = { Event: "event", State: "state" }), (e.Plugins = {}), (e.Workers = [ { filter: ["width", "settings"], run: function () { this._width = this.$element.width(); }, }, { filter: ["width", "items", "settings"], run: function (a) { a.current = this._items && this._items[this.relative(this._current)]; }, }, { filter: ["items", "settings"], run: function () { this.$stage.children(".cloned").remove(); }, }, { filter: ["width", "items", "settings"], run: function (a) { var b = this.settings.margin || "", c = !this.settings.autoWidth, d = this.settings.rtl, e = { width: "auto", "margin-left": d ? b : "", "margin-right": d ? "" : b, }; !c && this.$stage.children().css(e), (a.css = e); }, }, { filter: ["width", "items", "settings"], run: function (a) { var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, c = null, d = this._items.length, e = !this.settings.autoWidth, f = []; for (a.items = { merge: !1, width: b }; d--; ) (c = this._mergers[d]), (c = (this.settings.mergeFit && Math.min(c, this.settings.items)) || c), (a.items.merge = c > 1 || a.items.merge), (f[d] = e ? b * c : this._items[d].width()); this._widths = f; }, }, { filter: ["items", "settings"], run: function () { var b = [], c = this._items, d = this.settings, e = Math.max(2 * d.items, 4), f = 2 * Math.ceil(c.length / 2), g = d.loop && c.length ? (d.rewind ? e : Math.max(e, f)) : 0, h = "", i = ""; for (g /= 2; g > 0; ) b.push(this.normalize(b.length / 2, !0)), (h += c[b[b.length - 1]][0].outerHTML), b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), (i = c[b[b.length - 1]][0].outerHTML + i), (g -= 1); (this._clones = b), a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage); }, }, { filter: ["width", "items", "settings"], run: function () { for ( var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b; ) (d = f[c - 1] || 0), (e = this._widths[this.relative(c)] + this.settings.margin), f.push(d + e * a); this._coordinates = f; }, }, { filter: ["width", "items", "settings"], run: function () { var a = this.settings.stagePadding, b = this._coordinates, c = { width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, "padding-left": a || "", "padding-right": a || "", }; this.$stage.css(c); }, }, { filter: ["width", "items", "settings"], run: function (a) { var b = this._coordinates.length, c = !this.settings.autoWidth, d = this.$stage.children(); if (c && a.items.merge) for (; b--; ) (a.css.width = this._widths[this.relative(b)]), d.eq(b).css(a.css); else c && ((a.css.width = a.items.width), d.css(a.css)); }, }, { filter: ["items"], run: function () { this._coordinates.length < 1 && this.$stage.removeAttr("style"); }, }, { filter: ["width", "items", "settings"], run: function (a) { (a.current = a.current ? this.$stage.children().index(a.current) : 0), (a.current = Math.max( this.minimum(), Math.min(this.maximum(), a.current) )), this.reset(a.current); }, }, { filter: ["position"], run: function () { this.animate(this.coordinates(this._current)); }, }, { filter: ["width", "position", "items", "settings"], run: function () { var a, b, c, d, e = this.settings.rtl ? 1 : -1, f = 2 * this.settings.stagePadding, g = this.coordinates(this.current()) + f, h = g + this.width() * e, i = []; for (c = 0, d = this._coordinates.length; c < d; c++) (a = this._coordinates[c - 1] || 0), (b = Math.abs(this._coordinates[c]) + f * e), ((this.op(a, "<=", g) && this.op(a, ">", h)) || (this.op(b, "<", g) && this.op(b, ">", h))) && i.push(c); this.$stage.children(".active").removeClass("active"), this.$stage .children(":eq(" + i.join("), :eq(") + ")") .addClass("active"), this.$stage.children(".center").removeClass("center"), this.settings.center && this.$stage.children().eq(this.current()).addClass("center"); }, }, ]), (e.prototype.initializeStage = function () { (this.$stage = this.$element.find("." + this.settings.stageClass)), this.$stage.length || (this.$element.addClass(this.options.loadingClass), (this.$stage = a("<" + this.settings.stageElement + ">", { class: this.settings.stageClass, }).wrap(a("
", { class: this.settings.stageOuterClass }))), this.$element.append(this.$stage.parent())); }), (e.prototype.initializeItems = function () { var b = this.$element.find(".owl-item"); if (b.length) return ( (this._items = b.get().map(function (b) { return a(b); })), (this._mergers = this._items.map(function () { return 1; })), void this.refresh() ); this.replace(this.$element.children().not(this.$stage.parent())), this.isVisible() ? this.refresh() : this.invalidate("width"), this.$element .removeClass(this.options.loadingClass) .addClass(this.options.loadedClass); }), (e.prototype.initialize = function () { if ( (this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading")) ) { var a, b, c; (a = this.$element.find("img")), (b = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d), (c = this.$element.children(b).width()), a.length && c <= 0 && this.preloadAutoWidthImages(a); } this.initializeStage(), this.initializeItems(), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized"); }), (e.prototype.isVisible = function () { return !this.settings.checkVisibility || this.$element.is(":visible"); }), (e.prototype.setup = function () { var b = this.viewport(), c = this.options.responsive, d = -1, e = null; c ? (a.each(c, function (a) { a <= b && a > d && (d = Number(a)); }), (e = a.extend({}, this.options, c[d])), "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr( "class", this.$element .attr("class") .replace( new RegExp( "(" + this.options.responsiveClass + "-)\\S+\\s", "g" ), "$1" + d ) )) : (e = a.extend({}, this.options)), this.trigger("change", { property: { name: "settings", value: e } }), (this._breakpoint = d), (this.settings = e), this.invalidate("settings"), this.trigger("changed", { property: { name: "settings", value: this.settings }, }); }), (e.prototype.optionsLogic = function () { this.settings.autoWidth && ((this.settings.stagePadding = !1), (this.settings.merge = !1)); }), (e.prototype.prepare = function (b) { var c = this.trigger("prepare", { content: b }); return ( c.data || (c.data = a("<" + this.settings.itemElement + "/>") .addClass(this.options.itemClass) .append(b)), this.trigger("prepared", { content: c.data }), c.data ); }), (e.prototype.update = function () { for ( var b = 0, c = this._pipe.length, d = a.proxy(function (a) { return this[a]; }, this._invalidated), e = {}; b < c; ) (this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; (this._invalidated = {}), !this.is("valid") && this.enter("valid"); }), (e.prototype.width = function (a) { switch ((a = a || e.Width.Default)) { case e.Width.Inner: case e.Width.Outer: return this._width; default: return ( this._width - 2 * this.settings.stagePadding + this.settings.margin ); } }), (e.prototype.refresh = function () { this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed"); }), (e.prototype.onThrottledResize = function () { b.clearTimeout(this.resizeTimer), (this.resizeTimer = b.setTimeout( this._handlers.onResize, this.settings.responsiveRefreshRate )); }), (e.prototype.onResize = function () { return ( !!this._items.length && this._width !== this.$element.width() && !!this.isVisible() && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))) ); }), (e.prototype.registerEventHandlers = function () { a.support.transition && this.$stage.on( a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this) ), !1 !== this.settings.responsive && this.on(b, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on( "mousedown.owl.core", a.proxy(this.onDragStart, this) ), this.$stage.on( "dragstart.owl.core selectstart.owl.core", function () { return !1; } )), this.settings.touchDrag && (this.$stage.on( "touchstart.owl.core", a.proxy(this.onDragStart, this) ), this.$stage.on( "touchcancel.owl.core", a.proxy(this.onDragEnd, this) )); }), (e.prototype.onDragStart = function (b) { var d = null; 3 !== b.which && (a.support.transform ? ((d = this.$stage .css("transform") .replace(/.*\(|\)| /g, "") .split(",")), (d = { x: d[16 === d.length ? 12 : 4], y: d[16 === d.length ? 13 : 5], })) : ((d = this.$stage.position()), (d = { x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, y: d.top, })), this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass( this.options.grabClass, "mousedown" === b.type ), this.speed(0), (this._drag.time = new Date().getTime()), (this._drag.target = a(b.target)), (this._drag.stage.start = d), (this._drag.stage.current = d), (this._drag.pointer = this.pointer(b)), a(c).on( "mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this) ), a(c).one( "mousemove.owl.core touchmove.owl.core", a.proxy(function (b) { var d = this.difference(this._drag.pointer, this.pointer(b)); a(c).on( "mousemove.owl.core touchmove.owl.core", a.proxy(this.onDragMove, this) ), (Math.abs(d.x) < Math.abs(d.y) && this.is("valid")) || (b.preventDefault(), this.enter("dragging"), this.trigger("drag")); }, this) )); }), (e.prototype.onDragMove = function (a) { var b = null, c = null, d = null, e = this.difference(this._drag.pointer, this.pointer(a)), f = this.difference(this._drag.stage.start, e); this.is("dragging") && (a.preventDefault(), this.settings.loop ? ((b = this.coordinates(this.minimum())), (c = this.coordinates(this.maximum() + 1) - b), (f.x = ((((f.x - b) % c) + c) % c) + b)) : ((b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum())), (c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum())), (d = this.settings.pullDrag ? (-1 * e.x) / 5 : 0), (f.x = Math.max(Math.min(f.x, b + d), c + d))), (this._drag.stage.current = f), this.animate(f.x)); }), (e.prototype.onDragEnd = function (b) { var d = this.difference(this._drag.pointer, this.pointer(b)), e = this._drag.stage.current, f = (d.x > 0) ^ this.settings.rtl ? "left" : "right"; a(c).off(".owl.core"), this.$element.removeClass(this.options.grabClass), ((0 !== d.x && this.is("dragging")) || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current( this.closest(e.x, 0 !== d.x ? f : this._drag.direction) ), this.invalidate("position"), this.update(), (this._drag.direction = f), (Math.abs(d.x) > 3 || new Date().getTime() - this._drag.time > 300) && this._drag.target.one("click.owl.core", function () { return !1; })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")); }), (e.prototype.closest = function (b, c) { var e = -1, f = 30, g = this.width(), h = this.coordinates(); return ( this.settings.freeDrag || a.each( h, a.proxy(function (a, i) { return ( "left" === c && b > i - f && b < i + f ? (e = a) : "right" === c && b > i - g - f && b < i - g + f ? (e = a + 1) : this.op(b, "<", i) && this.op(b, ">", h[a + 1] !== d ? h[a + 1] : i - g) && (e = "left" === c ? a + 1 : a), -1 === e ); }, this) ), this.settings.loop || (this.op(b, ">", h[this.minimum()]) ? (e = b = this.minimum()) : this.op(b, "<", h[this.maximum()]) && (e = b = this.maximum())), e ); }), (e.prototype.animate = function (b) { var c = this.speed() > 0; this.is("animating") && this.onTransitionEnd(), c && (this.enter("animating"), this.trigger("translate")), a.support.transform3d && a.support.transition ? this.$stage.css({ transform: "translate3d(" + b + "px,0px,0px)", transition: this.speed() / 1e3 + "s" + (this.settings.slideTransition ? " " + this.settings.slideTransition : ""), }) : c ? this.$stage.animate( { left: b + "px" }, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this) ) : this.$stage.css({ left: b + "px" }); }), (e.prototype.is = function (a) { return this._states.current[a] && this._states.current[a] > 0; }), (e.prototype.current = function (a) { if (a === d) return this._current; if (0 === this._items.length) return d; if (((a = this.normalize(a)), this._current !== a)) { var b = this.trigger("change", { property: { name: "position", value: a }, }); b.data !== d && (a = this.normalize(b.data)), (this._current = a), this.invalidate("position"), this.trigger("changed", { property: { name: "position", value: this._current }, }); } return this._current; }), (e.prototype.invalidate = function (b) { return ( "string" === a.type(b) && ((this._invalidated[b] = !0), this.is("valid") && this.leave("valid")), a.map(this._invalidated, function (a, b) { return b; }) ); }), (e.prototype.reset = function (a) { (a = this.normalize(a)) !== d && ((this._speed = 0), (this._current = a), this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])); }), (e.prototype.normalize = function (a, b) { var c = this._items.length, e = b ? 0 : this._clones.length; return ( !this.isNumeric(a) || c < 1 ? (a = d) : (a < 0 || a >= c + e) && (a = ((((a - e / 2) % c) + c) % c) + e / 2), a ); }), (e.prototype.relative = function (a) { return (a -= this._clones.length / 2), this.normalize(a, !0); }), (e.prototype.maximum = function (a) { var b, c, d, e = this.settings, f = this._coordinates.length; if (e.loop) f = this._clones.length / 2 + this._items.length - 1; else if (e.autoWidth || e.merge) { if ((b = this._items.length)) for ( c = this._items[--b].width(), d = this.$element.width(); b-- && !((c += this._items[b].width() + this.settings.margin) > d); ); f = b + 1; } else f = e.center ? this._items.length - 1 : this._items.length - e.items; return a && (f -= this._clones.length / 2), Math.max(f, 0); }), (e.prototype.minimum = function (a) { return a ? 0 : this._clones.length / 2; }), (e.prototype.items = function (a) { return a === d ? this._items.slice() : ((a = this.normalize(a, !0)), this._items[a]); }), (e.prototype.mergers = function (a) { return a === d ? this._mergers.slice() : ((a = this.normalize(a, !0)), this._mergers[a]); }), (e.prototype.clones = function (b) { var c = this._clones.length / 2, e = c + this._items.length, f = function (a) { return a % 2 == 0 ? e + a / 2 : c - (a + 1) / 2; }; return b === d ? a.map(this._clones, function (a, b) { return f(b); }) : a.map(this._clones, function (a, c) { return a === b ? f(c) : null; }); }), (e.prototype.speed = function (a) { return a !== d && (this._speed = a), this._speed; }), (e.prototype.coordinates = function (b) { var c, e = 1, f = b - 1; return b === d ? a.map( this._coordinates, a.proxy(function (a, b) { return this.coordinates(b); }, this) ) : (this.settings.center ? (this.settings.rtl && ((e = -1), (f = b + 1)), (c = this._coordinates[b]), (c += ((this.width() - c + (this._coordinates[f] || 0)) / 2) * e)) : (c = this._coordinates[f] || 0), (c = Math.ceil(c))); }), (e.prototype.duration = function (a, b, c) { return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed); }), (e.prototype.to = function (a, b) { var c = this.current(), d = null, e = a - this.relative(c), f = (e > 0) - (e < 0), g = this._items.length, h = this.minimum(), i = this.maximum(); this.settings.loop ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += -1 * f * g), (a = c + e), (d = ((((a - h) % g) + g) % g) + h) !== a && d - e <= i && d - e > 0 && ((c = d - e), (a = d), this.reset(c))) : this.settings.rewind ? ((i += 1), (a = ((a % i) + i) % i)) : (a = Math.max(h, Math.min(i, a))), this.speed(this.duration(c, a, b)), this.current(a), this.isVisible() && this.update(); }), (e.prototype.next = function (a) { (a = a || !1), this.to(this.relative(this.current()) + 1, a); }), (e.prototype.prev = function (a) { (a = a || !1), this.to(this.relative(this.current()) - 1, a); }), (e.prototype.onTransitionEnd = function (a) { if ( a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0)) ) return !1; this.leave("animating"), this.trigger("translated"); }), (e.prototype.viewport = function () { var d; return ( this.options.responsiveBaseElement !== b ? (d = a(this.options.responsiveBaseElement).width()) : b.innerWidth ? (d = b.innerWidth) : c.documentElement && c.documentElement.clientWidth ? (d = c.documentElement.clientWidth) : console.warn("Can not detect viewport width."), d ); }), (e.prototype.replace = function (b) { this.$stage.empty(), (this._items = []), b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), b .filter(function () { return 1 === this.nodeType; }) .each( a.proxy(function (a, b) { (b = this.prepare(b)), this.$stage.append(b), this._items.push(b), this._mergers.push( 1 * b .find("[data-merge]") .addBack("[data-merge]") .attr("data-merge") || 1 ); }, this) ), this.reset( this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0 ), this.invalidate("items"); }), (e.prototype.add = function (b, c) { var e = this.relative(this._current); (c = c === d ? this._items.length : this.normalize(c, !0)), (b = b instanceof jQuery ? b : a(b)), this.trigger("add", { content: b, position: c }), (b = this.prepare(b)), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push( 1 * b .find("[data-merge]") .addBack("[data-merge]") .attr("data-merge") || 1 )) : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice( c, 0, 1 * b .find("[data-merge]") .addBack("[data-merge]") .attr("data-merge") || 1 )), this._items[e] && this.reset(this._items[e].index()), this.invalidate("items"), this.trigger("added", { content: b, position: c }); }), (e.prototype.remove = function (a) { (a = this.normalize(a, !0)) !== d && (this.trigger("remove", { content: this._items[a], position: a }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { content: null, position: a })); }), (e.prototype.preloadAutoWidthImages = function (b) { b.each( a.proxy(function (b, c) { this.enter("pre-loading"), (c = a(c)), a(new Image()) .one( "load", a.proxy(function (a) { c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh(); }, this) ) .attr( "src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina") ); }, this) ); }), (e.prototype.destroy = function () { this.$element.off(".owl.core"), this.$stage.off(".owl.core"), a(c).off(".owl.core"), !1 !== this.settings.responsive && (b.clearTimeout(this.resizeTimer), this.off(b, "resize", this._handlers.onThrottledResize)); for (var d in this._plugins) this._plugins[d].destroy(); this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.remove(), this.$element .removeClass(this.options.refreshClass) .removeClass(this.options.loadingClass) .removeClass(this.options.loadedClass) .removeClass(this.options.rtlClass) .removeClass(this.options.dragClass) .removeClass(this.options.grabClass) .attr( "class", this.$element .attr("class") .replace( new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "" ) ) .removeData("owl.carousel"); }), (e.prototype.op = function (a, b, c) { var d = this.settings.rtl; switch (b) { case "<": return d ? a > c : a < c; case ">": return d ? a < c : a > c; case ">=": return d ? a <= c : a >= c; case "<=": return d ? a >= c : a <= c; } }), (e.prototype.on = function (a, b, c, d) { a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c); }), (e.prototype.off = function (a, b, c, d) { a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c); }), (e.prototype.trigger = function (b, c, d, f, g) { var h = { item: { count: this._items.length, index: this.current() } }, i = a.camelCase( a .grep(["on", b, d], function (a) { return a; }) .join("-") .toLowerCase() ), j = a.Event( [b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({ relatedTarget: this }, h, c) ); return ( this._supress[b] || (a.each(this._plugins, function (a, b) { b.onTrigger && b.onTrigger(j); }), this.register({ type: e.Type.Event, name: b }), this.$element.trigger(j), this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), j ); }), (e.prototype.enter = function (b) { a.each( [b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++; }, this) ); }), (e.prototype.leave = function (b) { a.each( [b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { this._states.current[b]--; }, this) ); }), (e.prototype.register = function (b) { if (b.type === e.Type.Event) { if ( (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) ) { var c = a.event.special[b.name]._default; (a.event.special[b.name]._default = function (a) { return !c || !c.apply || (a.namespace && -1 !== a.namespace.indexOf("owl")) ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments); }), (a.event.special[b.name].owl = !0); } } else b.type === e.Type.State && (this._states.tags[b.name] ? (this._states.tags[b.name] = this._states.tags[b.name].concat( b.tags )) : (this._states.tags[b.name] = b.tags), (this._states.tags[b.name] = a.grep( this._states.tags[b.name], a.proxy(function (c, d) { return a.inArray(c, this._states.tags[b.name]) === d; }, this) ))); }), (e.prototype.suppress = function (b) { a.each( b, a.proxy(function (a, b) { this._supress[b] = !0; }, this) ); }), (e.prototype.release = function (b) { a.each( b, a.proxy(function (a, b) { delete this._supress[b]; }, this) ); }), (e.prototype.pointer = function (a) { var c = { x: null, y: null }; return ( (a = a.originalEvent || a || b.event), (a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a), a.pageX ? ((c.x = a.pageX), (c.y = a.pageY)) : ((c.x = a.clientX), (c.y = a.clientY)), c ); }), (e.prototype.isNumeric = function (a) { return !isNaN(parseFloat(a)); }), (e.prototype.difference = function (a, b) { return { x: a.x - b.x, y: a.y - b.y }; }), (a.fn.owlCarousel = function (b) { var c = Array.prototype.slice.call(arguments, 1); return this.each(function () { var d = a(this), f = d.data("owl.carousel"); f || ((f = new e(this, "object" == typeof b && b)), d.data("owl.carousel", f), a.each( [ "next", "prev", "to", "destroy", "refresh", "replace", "add", "remove", ], function (b, c) { f.register({ type: e.Type.Event, name: c }), f.$element.on( c + ".owl.carousel.core", a.proxy(function (a) { a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])); }, f) ); } )), "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c); }); }), (a.fn.owlCarousel.Constructor = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (b) { (this._core = b), (this._interval = null), (this._visible = null), (this._handlers = { "initialized.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.autoRefresh && this.watch(); }, this), }), (this._core.options = a.extend({}, e.Defaults, this._core.options)), this._core.$element.on(this._handlers); }; (e.Defaults = { autoRefresh: !0, autoRefreshInterval: 500 }), (e.prototype.watch = function () { this._interval || ((this._visible = this._core.isVisible()), (this._interval = b.setInterval( a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval ))); }), (e.prototype.refresh = function () { this._core.isVisible() !== this._visible && ((this._visible = !this._visible), this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()); }), (e.prototype.destroy = function () { var a, c; b.clearInterval(this._interval); for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null); }), (a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (b) { (this._core = b), (this._loaded = []), (this._handlers = { "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function (b) { if ( b.namespace && this._core.settings && this._core.settings.lazyLoad && ((b.property && "position" == b.property.name) || "initialized" == b.type) ) { var c = this._core.settings, e = (c.center && Math.ceil(c.items / 2)) || c.items, f = (c.center && -1 * e) || 0, g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, h = this._core.clones().length, i = a.proxy(function (a, b) { this.load(b); }, this); for ( c.lazyLoadEager > 0 && ((e += c.lazyLoadEager), c.loop && ((g -= c.lazyLoadEager), e++)); f++ < e; ) this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++; } }, this), }), (this._core.options = a.extend({}, e.Defaults, this._core.options)), this._core.$element.on(this._handlers); }; (e.Defaults = { lazyLoad: !1, lazyLoadEager: 0 }), (e.prototype.load = function (c) { var d = this._core.$stage.children().eq(c), e = d && d.find(".owl-lazy"); !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each( a.proxy(function (c, d) { var e, f = a(d), g = (b.devicePixelRatio > 1 && f.attr("data-src-retina")) || f.attr("data-src") || f.attr("data-srcset"); this._core.trigger("load", { element: f, url: g }, "lazy"), f.is("img") ? f .one( "load.owl.lazy", a.proxy(function () { f.css("opacity", 1), this._core.trigger( "loaded", { element: f, url: g }, "lazy" ); }, this) ) .attr("src", g) : f.is("source") ? f .one( "load.owl.lazy", a.proxy(function () { this._core.trigger( "loaded", { element: f, url: g }, "lazy" ); }, this) ) .attr("srcset", g) : ((e = new Image()), (e.onload = a.proxy(function () { f.css({ "background-image": 'url("' + g + '")', opacity: "1", }), this._core.trigger( "loaded", { element: f, url: g }, "lazy" ); }, this)), (e.src = g)); }, this) ), this._loaded.push(d.get(0))); }), (e.prototype.destroy = function () { var a, b; for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); }), (a.fn.owlCarousel.Constructor.Plugins.Lazy = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (c) { (this._core = c), (this._previousHeight = null), (this._handlers = { "initialized.owl.carousel refreshed.owl.carousel": a.proxy( function (a) { a.namespace && this._core.settings.autoHeight && this.update(); }, this ), "changed.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.autoHeight && "position" === a.property.name && this.update(); }, this), "loaded.owl.lazy": a.proxy(function (a) { a.namespace && this._core.settings.autoHeight && a.element .closest("." + this._core.settings.itemClass) .index() === this._core.current() && this.update(); }, this), }), (this._core.options = a.extend({}, e.Defaults, this._core.options)), this._core.$element.on(this._handlers), (this._intervalId = null); var d = this; a(b).on("load", function () { d._core.settings.autoHeight && d.update(); }), a(b).resize(function () { d._core.settings.autoHeight && (null != d._intervalId && clearTimeout(d._intervalId), (d._intervalId = setTimeout(function () { d.update(); }, 250))); }); }; (e.Defaults = { autoHeight: !1, autoHeightClass: "owl-height" }), (e.prototype.update = function () { var b = this._core._current, c = b + this._core.settings.items, d = this._core.settings.lazyLoad, e = this._core.$stage.children().toArray().slice(b, c), f = [], g = 0; a.each(e, function (b, c) { f.push(a(c).height()); }), (g = Math.max.apply(null, f)), g <= 1 && d && this._previousHeight && (g = this._previousHeight), (this._previousHeight = g), this._core.$stage .parent() .height(g) .addClass(this._core.settings.autoHeightClass); }), (e.prototype.destroy = function () { var a, b; for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); }), (a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (b) { (this._core = b), (this._videos = {}), (this._playing = null), (this._handlers = { "initialized.owl.carousel": a.proxy(function (a) { a.namespace && this._core.register({ type: "state", name: "playing", tags: ["interacting"], }); }, this), "resize.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault(); }, this), "refreshed.owl.carousel": a.proxy(function (a) { a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove(); }, this), "changed.owl.carousel": a.proxy(function (a) { a.namespace && "position" === a.property.name && this._playing && this.stop(); }, this), "prepared.owl.carousel": a.proxy(function (b) { if (b.namespace) { var c = a(b.content).find(".owl-video"); c.length && (c.css("display", "none"), this.fetch(c, a(b.content))); } }, this), }), (this._core.options = a.extend({}, e.Defaults, this._core.options)), this._core.$element.on(this._handlers), this._core.$element.on( "click.owl.video", ".owl-video-play-icon", a.proxy(function (a) { this.play(a); }, this) ); }; (e.Defaults = { video: !1, videoHeight: !1, videoWidth: !1 }), (e.prototype.fetch = function (a, b) { var c = (function () { return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube"; })(), d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), e = a.attr("data-width") || this._core.settings.videoWidth, f = a.attr("data-height") || this._core.settings.videoHeight, g = a.attr("href"); if (!g) throw new Error("Missing video URL."); if ( ((d = g.match( /(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/ )), d[3].indexOf("youtu") > -1) ) c = "youtube"; else if (d[3].indexOf("vimeo") > -1) c = "vimeo"; else { if (!(d[3].indexOf("vzaar") > -1)) throw new Error("Video URL not supported."); c = "vzaar"; } (d = d[6]), (this._videos[g] = { type: c, id: d, width: e, height: f }), b.attr("data-video", g), this.thumbnail(a, this._videos[g]); }), (e.prototype.thumbnail = function (b, c) { var d, e, f, g = c.width && c.height ? "width:" + c.width + "px;height:" + c.height + "px;" : "", h = b.find("img"), i = "src", j = "", k = this._core.settings, l = function (c) { (e = '
'), (d = k.lazyLoad ? a("
", { class: "owl-video-tn " + j, srcType: c }) : a("
", { class: "owl-video-tn", style: "opacity:1;background-image:url(" + c + ")", })), b.after(d), b.after(e); }; if ( (b.wrap(a("
", { class: "owl-video-wrapper", style: g })), this._core.settings.lazyLoad && ((i = "data-src"), (j = "owl-lazy")), h.length) ) return l(h.attr(i)), h.remove(), !1; "youtube" === c.type ? ((f = "//web.archive.org/web/20240127230933/http://img.youtube.com/vi/" + c.id + "/hqdefault.jpg"), l(f)) : "vimeo" === c.type ? a.ajax({ type: "GET", url: "//web.archive.org/web/20240127230933/http://vimeo.com/api/v2/video/" + c.id + ".json", jsonp: "callback", dataType: "jsonp", success: function (a) { (f = a[0].thumbnail_large), l(f); }, }) : "vzaar" === c.type && a.ajax({ type: "GET", url: "//web.archive.org/web/20240127230933/http://vzaar.com/api/videos/" + c.id + ".json", jsonp: "callback", dataType: "jsonp", success: function (a) { (f = a.framegrab_url), l(f); }, }); }), (e.prototype.stop = function () { this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), (this._playing = null), this._core.leave("playing"), this._core.trigger("stopped", null, "video"); }), (e.prototype.play = function (b) { var c, d = a(b.target), e = d.closest("." + this._core.settings.itemClass), f = this._videos[e.attr("data-video")], g = f.width || "100%", h = f.height || this._core.$stage.height(); this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), (e = this._core.items(this._core.relative(e.index()))), this._core.reset(e.index()), (c = a( '' )), c.attr("height", h), c.attr("width", g), "youtube" === f.type ? c.attr( "src", "//web.archive.org/web/20240127230933/http://www.youtube.com/embed/" + f.id + "?autoplay=1&rel=0&v=" + f.id ) : "vimeo" === f.type ? c.attr( "src", "//web.archive.org/web/20240127230933/http://player.vimeo.com/video/" + f.id + "?autoplay=1" ) : "vzaar" === f.type && c.attr( "src", "//web.archive.org/web/20240127230933/http://view.vzaar.com/" + f.id + "/player?autoplay=true" ), a(c) .wrap('
') .insertAfter(e.find(".owl-video")), (this._playing = e.addClass("owl-video-playing"))); }), (e.prototype.isInFullScreen = function () { var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; return b && a(b).parent().hasClass("owl-video-frame"); }), (e.prototype.destroy = function () { var a, b; this._core.$element.off("click.owl.video"); for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); }), (a.fn.owlCarousel.Constructor.Plugins.Video = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (b) { (this.core = b), (this.core.options = a.extend({}, e.Defaults, this.core.options)), (this.swapping = !0), (this.previous = d), (this.next = d), (this.handlers = { "change.owl.carousel": a.proxy(function (a) { a.namespace && "position" == a.property.name && ((this.previous = this.core.current()), (this.next = a.property.value)); }, this), "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function (a) { a.namespace && (this.swapping = "translated" == a.type); }, this), "translate.owl.carousel": a.proxy(function (a) { a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap(); }, this), }), this.core.$element.on(this.handlers); }; (e.Defaults = { animateOut: !1, animateIn: !1 }), (e.prototype.swap = function () { if ( 1 === this.core.settings.items && a.support.animation && a.support.transition ) { this.core.speed(0); var b, c = a.proxy(this.clear, this), d = this.core.$stage.children().eq(this.previous), e = this.core.$stage.children().eq(this.next), f = this.core.settings.animateIn, g = this.core.settings.animateOut; this.core.current() !== this.previous && (g && ((b = this.core.coordinates(this.previous) - this.core.coordinates(this.next)), d .one(a.support.animation.end, c) .css({ left: b + "px" }) .addClass("animated owl-animated-out") .addClass(g)), f && e .one(a.support.animation.end, c) .addClass("animated owl-animated-in") .addClass(f)); } }), (e.prototype.clear = function (b) { a(b.target) .css({ left: "" }) .removeClass("animated owl-animated-out owl-animated-in") .removeClass(this.core.settings.animateIn) .removeClass(this.core.settings.animateOut), this.core.onTransitionEnd(); }), (e.prototype.destroy = function () { var a, b; for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); }), (a.fn.owlCarousel.Constructor.Plugins.Animate = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { var e = function (b) { (this._core = b), (this._call = null), (this._time = 0), (this._timeout = 0), (this._paused = !0), (this._handlers = { "changed.owl.carousel": a.proxy(function (a) { a.namespace && "settings" === a.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : a.namespace && "position" === a.property.name && this._paused && (this._time = 0); }, this), "initialized.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.autoplay && this.play(); }, this), "play.owl.autoplay": a.proxy(function (a, b, c) { a.namespace && this.play(b, c); }, this), "stop.owl.autoplay": a.proxy(function (a) { a.namespace && this.stop(); }, this), "mouseover.owl.autoplay": a.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause(); }, this), "mouseleave.owl.autoplay": a.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play(); }, this), "touchstart.owl.core": a.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause(); }, this), "touchend.owl.core": a.proxy(function () { this._core.settings.autoplayHoverPause && this.play(); }, this), }), this._core.$element.on(this._handlers), (this._core.options = a.extend({}, e.Defaults, this._core.options)); }; (e.Defaults = { autoplay: !1, autoplayTimeout: 5e3, autoplayHoverPause: !1, autoplaySpeed: !1, }), (e.prototype._next = function (d) { (this._call = b.setTimeout( a.proxy(this._next, this, d), this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read() )), this._core.is("interacting") || c.hidden || this._core.next(d || this._core.settings.autoplaySpeed); }), (e.prototype.read = function () { return new Date().getTime() - this._time; }), (e.prototype.play = function (c, d) { var e; this._core.is("rotating") || this._core.enter("rotating"), (c = c || this._core.settings.autoplayTimeout), (e = Math.min(this._time % (this._timeout || c), c)), this._paused ? ((this._time = this.read()), (this._paused = !1)) : b.clearTimeout(this._call), (this._time += (this.read() % c) - e), (this._timeout = c), (this._call = b.setTimeout(a.proxy(this._next, this, d), c - e)); }), (e.prototype.stop = function () { this._core.is("rotating") && ((this._time = 0), (this._paused = !0), b.clearTimeout(this._call), this._core.leave("rotating")); }), (e.prototype.pause = function () { this._core.is("rotating") && !this._paused && ((this._time = this.read()), (this._paused = !0), b.clearTimeout(this._call)); }), (e.prototype.destroy = function () { var a, b; this.stop(); for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); }), (a.fn.owlCarousel.Constructor.Plugins.autoplay = e); })(window.Zepto || window.jQuery, window, document), (function (a, b, c, d) { "use strict"; var e = function (b) { (this._core = b), (this._initialized = !1), (this._pages = []), (this._controls = {}), (this._templates = []), (this.$element = this._core.$element), (this._overrides = { next: this._core.next, prev: this._core.prev, to: this._core.to, }), (this._handlers = { "prepared.owl.carousel": a.proxy(function (b) { b.namespace && this._core.settings.dotsData && this._templates.push( '
' + a(b.content) .find("[data-dot]") .addBack("[data-dot]") .attr("data-dot") + "
" ); }, this), "added.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()); }, this), "remove.owl.carousel": a.proxy(function (a) { a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1); }, this), "changed.owl.carousel": a.proxy(function (a) { a.namespace && "position" == a.property.name && this.draw(); }, this), "initialized.owl.carousel": a.proxy(function (a) { a.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), (this._initialized = !0), this._core.trigger("initialized", null, "navigation")); }, this), "refreshed.owl.carousel": a.proxy(function (a) { a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")); }, this), }), (this._core.options = a.extend({}, e.Defaults, this._core.options)), this.$element.on(this._handlers); }; (e.Defaults = { nav: !1, navText: [ '', '', ], navSpeed: !1, navElement: 'button type="button" role="presentation"', navContainer: !1, navContainerClass: "owl-nav", navClass: ["owl-prev", "owl-next"], slideBy: 1, dotClass: "owl-dot", dotsClass: "owl-dots", dots: !0, dotsEach: !1, dotsData: !1, dotsSpeed: !1, dotsContainer: !1, }), (e.prototype.initialize = function () { var b, c = this._core.settings; (this._controls.$relative = ( c.navContainer ? a(c.navContainer) : a("
").addClass(c.navContainerClass).appendTo(this.$element) ).addClass("disabled")), (this._controls.$previous = a("<" + c.navElement + ">") .addClass(c.navClass[0]) .html(c.navText[0]) .prependTo(this._controls.$relative) .on( "click", a.proxy(function (a) { this.prev(c.navSpeed); }, this) )), (this._controls.$next = a("<" + c.navElement + ">") .addClass(c.navClass[1]) .html(c.navText[1]) .appendTo(this._controls.$relative) .on( "click", a.proxy(function (a) { this.next(c.navSpeed); }, this) )), c.dotsData || (this._templates = [ a('