PageSourceSearch

https://www.bcpggroup.com/assets/vendor.91459.js

js bcpggroup.com collected 2026-09-25 20:21:02 UTC 329,711 bytes, 2,181 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[736],{4080:function(t,n,e){"use strict";var r=e(4377),h=e.n(r),i=e(7557),g=e.n(i),m=e(8424),v=e(5034),b=e(4644),y=e(5840),_=e(4304),w=e(8874),x=e(7529),T=e(1769),C=e(2675),S=e(3287),E=e(8135),P=e(6394),a=e(7218),O=e.n(a),o=e(9203),k=e.n(o),s=e(6082),I=e.n(s),l=e(9493),A=e.n(l),c=e(8628),R=e.n(c),u=e(7410),L=e.n(u),M=e(4826),d=e(1256),D=e.n(d),f=e(9118),F=e.n(f),p=e(8698),z=e.n(p);gsap.registerPlugin(ScrollTrigger)},2906:function(t){t.exports='!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(1),a=(o(r),n(6)),u=o(a),c=n(7),f=o(c),s=n(8),d=o(s),l=n(9),p=o(l),m=n(10),b=o(m),v=n(11),y=o(v),g=n(14),h=o(g),w=[],k=!1,x={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&(k=!0),k)return w=(0,y.default)(w,x),(0,b.default)(w,x.once),w},O=function(){w=(0,h.default)(),j()},_=function(){w.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})},S=function(e){return e===!0||"mobile"===e&&p.default.mobile()||"phone"===e&&p.default.phone()||"tablet"===e&&p.default.tablet()||"function"==typeof e&&e()===!0},z=function(e){x=i(x,e),w=(0,h.default)();var t=document.all&&!window.atob;return S(x.disable)||t?_():(document.querySelector("body").setAttribute("data-aos-easing",x.easing),document.querySelector("body").setAttribute("data-aos-duration",x.duration),document.querySelector("body").setAttribute("data-aos-delay",x.delay),"DOMContentLoaded"===x.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?j(!0):"load"===x.startEvent?window.addEventListener(x.startEvent,function(){j(!0)}):document.addEventListener(x.startEvent,function(){j(!0)}),window.addEventListener("resize",(0,f.default)(j,x.debounceDelay,!0)),window.addEventListener("orientationchange",(0,f.default)(j,x.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,b.default)(w,x.once)},x.throttleDelay)),x.disableMutationObserver||(0,d.default)("[data-aos]",O),w)};e.exports={init:z,refresh:j,refreshHard:O}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=b,o=v;return b=v=void 0,k=t,g=e.apply(o,n)}function r(e){return k=e,h=setTimeout(s,t),_?o(e):g}function a(e){var n=e-w,o=e-k,i=t-n;return S?j(i,y-o):i}function c(e){var n=e-w,o=e-k;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=O();return c(e)?d(e):void(h=setTimeout(s,a(e)))}function d(e){return h=void 0,z&&b?o(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),k=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(O())}function m(){var e=O(),n=c(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),o(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,k=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(f);return t=u(t)||0,i(n)&&(_=!!n.leading,S="maxWait"in n,y=S?x(u(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e,t,o){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(f);return i(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}function i(e){var t="undefined"==typeof e?"undefined":c(e);return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==("undefined"==typeof e?"undefined":c(e))}function a(e){return"symbol"==("undefined"==typeof e?"undefined":c(e))||r(e)&&k.call(e)==d}function u(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=m.test(e);return n||b.test(e)?v(e.slice(2),n?2:8):p.test(e)?s:+e}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f="Expected a function",s=NaN,d="[object Symbol]",l=/^\\s+|\\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,b=/^0o[0-7]+$/i,v=parseInt,y="object"==("undefined"==typeof t?"undefined":c(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,h=y||g||Function("return this")(),w=Object.prototype,k=w.toString,x=Math.max,j=Math.min,O=function(){return h.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function i(t){var n=b,o=v;return b=v=void 0,O=t,g=e.apply(o,n)}function r(e){return O=e,h=setTimeout(s,t),_?i(e):g}function u(e){var n=e-w,o=e-O,i=t-n;return S?x(i,y-o):i}function f(e){var n=e-w,o=e-O;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=j();return f(e)?d(e):void(h=setTimeout(s,u(e)))}function d(e){return h=void 0,z&&b?i(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),O=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(j())}function m(){var e=j(),n=f(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),i(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,O=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(c);return t=a(t)||0,o(n)&&(_=!!n.leading,S="maxWait"in n,y=S?k(a(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e){var t="undefined"==typeof e?"undefined":u(e);return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==("undefined"==typeof e?"undefined":u(e))}function r(e){return"symbol"==("undefined"==typeof e?"undefined":u(e))||i(e)&&w.call(e)==s}function a(e){if("number"==typeof e)return e;if(r(e))return f;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=p.test(e);return n||m.test(e)?b(e.slice(2),n?2:8):l.test(e)?f:+e}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="Expected a function",f=NaN,s="[object Symbol]",d=/^\\s+|\\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt,v="object"==("undefined"==typeof t?"undefined":u(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,g=v||y||Function("return this")(),h=Object.prototype,w=h.toString,k=Math.max,x=Math.min,j=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t){var n=window.document,r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,a=new r(o);i=t,a.observe(n.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function o(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes
1),o=t.concat(n).filter(function(e){return e.hasAttribute&&e.hasAttribute("data-aos")}).length;o&&i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i,u=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-
1)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i,f=function(){function e(){n(this,e)}return i(e,[{key:"phone",value:function(){var e=o();return!(!r.test(e)&&!a.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=o();return!(!u.test(e)&&!c.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t.default=new f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n){var o=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):"undefined"!=typeof o&&("false"===o||!n&&"true"!==o)&&e.node.classList.remove("aos-animate")},o=function(e,t){var o=window.pageYOffset,i=window.innerHeight;e.forEach(function(e,r){n(e,i+o,t)})};t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=o(i),a=function(e,t){return e.forEach(function(e,n){e.node.classList.add("aos-init"),e.position=(0,r.default)(e.node,t.offset)}),e};t.default=a},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=o(i),a=function(e,t){var n=0,o=0,i=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(o=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,r.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=i/2;break;case"bottom-center":n+=i/2+e.offsetHeight;break;case"center-center":n+=i/2+e.offsetHeight/2;break;case"top-top":n+=i;break;case"bottom-top":n+=e.offsetHeight+i;break;case"center-top":n+=e.offsetHeight/2+i}return a.anchorPlacement||a.offset||isNaN(t)||(o=t),n+o};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,function(e){return{node:e}})};t.default=n}])});'},6563:function(t){t.exports=`/*!
2 * clipboard.js v2.0.6
3 * https://clipboardjs.com/
4 * 
5 * Licensed MIT \xA9 Zeno Rocha
6 */
7!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
vendor: 6,556 bytes, line 7
7else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var d=n(3),h=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(u=t).addEventListener(s,f),{destroy:function(){u.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,l=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,l)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,l,u,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(5);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o),i="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};function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}(c,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=r()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(t){var e=0<arguments.length&&void 0!==t?t:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),c),u=n(1),s=n.n(u),f=n(2),d=n.n(f),h="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}
vendor: 47,500 bytes, lines 7-27
7,p=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var m=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(v,s.a),p(v,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){var e=0<arguments.length&&void 0!==t?t:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),v);function v(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));return n.resolveOptions(e),n.listenClick(t),n}function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=m}],r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=6).default;function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});`},1282:function(t){t.exports=`/*!
8 * ScrollTrigger 3.12.1
9 * https://greensock.com
10 * 
11 * @license Copyright 2023, GreenSock. All rights reserved.
12 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
13 * @author: Jack Doyle, [email protected]
14 */
15
16!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(){return Se||"undefined"!=typeof window&&(Se=window.gsap)&&Se.registerPlugin&&Se}function z(e,t){return~ze.indexOf(e)&&ze[ze.indexOf(e)+1][t]}function A(e){return!!~t.indexOf(e)}function B(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})}function C(e,t,r,n){return e.removeEventListener(t,r,!!n)}function F(){return De&&De.isPressed||qe.cache++}function G(r,n){function Yc(e){if(e||0===e){i&&(Te.history.scrollRestoration="manual");var t=De&&De.isPressed;e=Yc.v=Math.round(e)||(De&&De.iOS?1:0),r(e),Yc.cacheID=qe.cache,t&&o("ss",e)}else(n||qe.cache!==Yc.cacheID||o("ref"))&&(Yc.cacheID=qe.cache,Yc.v=r());return Yc.v+Yc.offset}return Yc.offset=0,r&&Yc}function J(e,t){return(t&&t._ctx&&t._ctx.selector||Se.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Se.config().nullTargetWarn?console.warn("Element not found:",e):null)}function K(t,e){var r=e.s,n=e.sc;A(t)&&(t=ke.scrollingElement||Ee);var i=qe.indexOf(t),o=n===Ie.sc?1:2;~i||(i=qe.push(t)-1),qe[i+o]||t.addEventListener("scroll",F);var a=qe[i+o],s=a||(qe[i+o]=G(z(t,r),!0)||(A(t)?n:G(function(e){return arguments.length?t[r]=e:t[r]})));return s.target=t,a||(s.smooth="smooth"===Se.getProperty(t,"scrollBehavior")),s}function L(e,t,i){function vd(e,t){var r=Fe();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=Fe(),l=s,n=t||50,c=Math.max(500,3*n);return{update:vd,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=Fe();return!e&&0!==e||e===o||vd(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function M(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function N(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function O(){(Ae=Se.core.globals().ScrollTrigger)&&Ae.core&&function _integrate(){var e=Ae.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,qe),n.push.apply(n,ze),qe=t,ze=n,o=function _bridge(e,t){return r[e](t)}}()}function P(e){return(Se=e||r())&&"undefined"!=typeof document&&document.body&&(Te=window,Ee=(ke=document).documentElement,Pe=ke.body,t=[Te,ke,Ee,Pe],Se.utils.clamp,Be=Se.core.context||function(){},Oe="onpointerenter"in Pe?"pointer":"mouse",Me=k.isTouch=Te.matchMedia&&Te.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Te||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Re=k.eventTypes=("ontouchstart"in Ee?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ee?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return i=0},500),O(),Ce=1),Ce}var Se,Ce,Te,ke,Ee,Pe,Me,Oe,Ae,t,De,Re,Be,i=1,Ye=[],qe=[],ze=[],Fe=Date.now,o=function _bridge(e,t){return t},n="scrollLeft",a="scrollTop",Le={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:G(function(e){return arguments.length?Te.scrollTo(e,Ie.sc()):Te.pageXOffset||ke[n]||Ee[n]||Pe[n]||0})},Ie={s:a,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Le,sc:G(function(e){return arguments.length?Te.scrollTo(Le.sc(),e):Te.pageYOffset||ke[a]||Ee[a]||Pe[a]||0})};Le.op=Ie,qe.cache=0;var k=(Observer.prototype.init=function init(e){Ce||P(Se)||console.warn("Please gsap.registerPlugin(Observer)"),Ae||O();var i=e.tolerance,a=e.dragMinimum,t=e.type,o=e.target,r=e.lineHeight,n=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,p=e.event,d=e.onDragStart,h=e.onDragEnd,g=e.onDrag,v=e.onPress,b=e.onRelease,m=e.onRight,y=e.onLeft,x=e.onUp,_=e.onDown,w=e.onChangeX,S=e.onChangeY,T=e.onChange,k=e.onToggleX,E=e.onToggleY,D=e.onHover,R=e.onHoverEnd,Y=e.onMove,q=e.ignoreCheck,z=e.isNormalizer,I=e.onGestureStart,X=e.onGestureEnd,H=e.onWheel,W=e.onEnable,G=e.onDisable,j=e.onClick,V=e.scrollSpeed,U=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function We(){return ye=Fe()}function Xe(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&he&&"touch"!==e.pointerType||q&&q(e,t)}function Ze(){var e=se.deltaX=N(be),t=se.deltaY=N(me),r=Math.abs(e)>=i,n=Math.abs(t)>=i;T&&(r||n)&&T(se,e,t,be,me),r&&(m&&0<se.deltaX&&m(se),y&&se.deltaX<0&&y(se),w&&w(se),k&&se.deltaX<0!=le<0&&k(se),le=se.deltaX,be[0]=be[1]=be[2]=0),n&&(_&&0<se.deltaY&&_(se),x&&se.deltaY<0&&x(se),S&&S(se),E&&se.deltaY<0!=ce<0&&E(se),ce=se.deltaY,me[0]=me[1]=me[2]=0),(ne||re)&&(Y&&Y(se),re&&(g(se),re=!1),ne=!1),oe&&!(oe=!1)&&$&&$(se),ie&&(H(se),ie=!1),ee=0}function $e(e,t,r){be[r]+=e,me[r]+=t,se._vx.update(e),se._vy.update(t),n?ee=ee||requestAnimationFrame(Ze):Ze()}function _e(e,t){Z&&!ae&&(se.axis=ae=Math.abs(e)>Math.abs(t)?"x":"y",oe=!0),"y"!==ae&&(be[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(me[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(Ze):Ze()}function af(e){if(!Xe(e,1)){var t=(e=M(e,s)).clientX,r=e.clientY,n=t-se.x,i=r-se.y,o=se.isDragging;se.x=t,se.y=r,(o||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(g&&(re=!0),o||(se.isDragging=!0),_e(n,i),o||d&&d(se))}}function df(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&I(e,se.isDragging)}function ef(){return(se.isGesturing=!1)||X(se)}function ff(e){if(!Xe(e)){var t=ue(),r=fe();$e((t-pe)*V,(r-de)*V,1),pe=t,de=r,l&&te.restart(!0)}}function gf(e){if(!Xe(e)){e=M(e,s),H&&(ie=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?Te.innerHeight:1)*f;$e(e.deltaX*t,e.deltaY*t,0),l&&!z&&te.restart(!0)}}function hf(e){if(!Xe(e)){var t=e.clientX,r=e.clientY,n=t-se.x,i=r-se.y;se.x=t,se.y=r,ne=!0,(n||i)&&_e(n,i)}}function jf(e){se.event=e,D(se)}function kf(e){se.event=e,R(se)}function lf(e){return Xe(e)||M(e,s)&&j(se)}this.target=o=J(o)||Ee,this.vars=e,u=u&&Se.utils.toArray(u),i=i||1e-9,a=a||0,f=f||1,V=V||1,t=t||"wheel,touch,pointer",n=!1!==n,r=r||parseFloat(Te.getComputedStyle(Pe).lineHeight)||22;var ee,te,re,ne,ie,oe,ae,se=this,le=0,ce=0,ue=K(o,Le),fe=K(o,Ie),pe=ue(),de=fe(),he=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Re[0],ge=A(o),ve=o.ownerDocument||ke,be=[0,0,0],me=[0,0,0],ye=0,xe=se.onPress=function(e){Xe(e,1)||e&&e.button||(se.axis=ae=null,te.pause(),se.isPressed=!0,e=M(e),le=ce=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),B(z?o:ve,Re[1],af,s,!0),se.deltaX=se.deltaY=0,v&&v(se))},we=se.onRelease=function(t){if(!Xe(t,1)){C(z?o:ve,Re[1],af,!0);var e=!isNaN(se.y-se.startY),r=se.isDragging&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),n=M(t);!r&&e&&(se._vx.reset(),se._vy.reset(),s&&Q&&Se.delayedCall(.08,function(){if(300<Fe()-ye&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ve.createEvent){var e=ve.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Te,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,l&&!z&&te.restart(!0),h&&r&&h(se),b&&b(se,r)}};te=se._dc=Se.delayedCall(c||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),l&&l(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=L(0,50,!0),se._vy=L(0,50,!0),se.scrollX=ue,se.scrollY=fe,se.isDragging=se.isGesturing=se.isPressed=!1,Be(this),se.enable=function(e){return se.isEnabled||(B(ge?ve:o,"scroll",F),0<=t.indexOf("scroll")&&B(ge?ve:o,"scroll",ff,s,U),0<=t.indexOf("wheel")&&B(o,"wheel",gf,s,U),(0<=t.indexOf("touch")&&Me||0<=t.indexOf("pointer"))&&(B(o,Re[0],xe,s,U),B(ve,Re[2],we),B(ve,Re[3],we),Q&&B(o,"click",We,!1,!0),j&&B(o,"click",lf),I&&B(ve,"gesturestart",df),X&&B(ve,"gestureend",ef),D&&B(o,Oe+"enter",jf),R&&B(o,Oe+"leave",kf),Y&&B(o,Oe+"move",hf)),se.isEnabled=!0,e&&e.type&&xe(e),W&&W(se)),se},se.disable=function(){se.isEnabled&&(Ye.filter(function(e){return e!==se&&A(e.target)}).length||C(ge?ve:o,"scroll",F),se.isPressed&&(se._vx.reset(),se._vy.reset(),C(z?o:ve,Re[1],af,!0)),C(ge?ve:o,"scroll",ff,U),C(o,"wheel",gf,U),C(o,Re[0],xe,U),C(ve,Re[2],we),C(ve,Re[3],we),C(o,"click",We,!0),C(o,"click",lf),C(ve,"gesturestart",df),C(ve,"gestureend",ef),C(o,Oe+"enter",jf),C(o,Oe+"leave",kf),C(o,Oe+"move",hf),se.isEnabled=se.isPressed=se.isDragging=!1,G&&G(se))},se.kill=se.revert=function(){se.disable();var e=Ye.indexOf(se);0<=e&&Ye.splice(e,1),De===se&&(De=0)},Ye.push(se),z&&A(o)&&(De=se),se.enable(p)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}k.version="3.12.1",k.create=function(e){return new k(e)},k.register=P,k.getAll=function(){return Ye.slice()},k.getById=function(t){return Ye.filter(function(e){return e.vars.id===t})[0]},r()&&Se.registerPlugin(k);function ya(e,t,r){var n=pt(e)&&("clamp("===e.substr(0,6)||-1<e.indexOf("max"));return(r["_"+t+"Clamp"]=n)?e.substr(6,e.length-7):e}function za(e,t){return!t||pt(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"}function Ba(){return et=1}function Ca(){return et=0}function Da(e){return e}function Ea(e){return Math.round(1e5*e)/1e5||0}function Fa(){return"undefined"!=typeof window}function Ga(){return Ne||Fa()&&(Ne=window.gsap)&&Ne.registerPlugin&&Ne}function Ha(e){return!!~l.indexOf(e)}function Ia(e){return z(e,"getBoundingClientRect")||(Ha(e)?function(){return Rt.width=He.innerWidth,Rt.height=He.innerHeight,Rt}:function(){return Ct(e)})}function La(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return Math.max(0,(r="scroll"+n)&&(o=z(e,r))?o()-Ia(e)()[i]:Ha(e)?(je[r]||Je[r])-(He["inner"+n]||je["client"+n]||Je["client"+n]):e[r]-e["offset"+n])}function Ma(e,t){for(var r=0;r<h.length;r+=3)t&&!~t.indexOf(h[r+1])||e(h[r],h[r+1],h[r+2])}function Oa(e){return"function"==typeof e}function Pa(e){return"number"==typeof e}function Qa(e){return"object"==typeof e}function Ra(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function Sa(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function hb(e){return He.getComputedStyle(e)}function jb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function lb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function mb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function ob(i){var o=Ne.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function qb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function rb(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})}function sb(e,t,r,n){return e.removeEventListener(t,r,!!n)}function tb(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))}function xb(e,t){if(pt(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in Y?Y[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function yb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,p=i.fontWeight,d=Ge.createElement("div"),h=Ha(r)||"fixed"===z(r,"pinType"),g=-1!==e.indexOf("scroller"),v=h?Je:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||s)&&h?"fixed;":"absolute;"),!g&&!s&&h||(y+=(n===Ie?T:D)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=b,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=y,d.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(d,v.children[0]):v.appendChild(d),d._offset=d["offset"+n.op.d2],q(d,0,n,b),d}function Db(){return 34<ct()-ut&&(w=w||requestAnimationFrame(V))}function Eb(){v&&v.isPressed&&!(v.startX>Je.clientWidth)||(qe.cache++,v?w=w||requestAnimationFrame(V):V(),ut||H("scrollStart"),ut=ct())}function Fb(){y=He.innerWidth,m=He.innerHeight}function Gb(){qe.cache++,Qe||g||Ge.fullscreenElement||Ge.webkitFullscreenElement||b&&y===He.innerWidth&&!(Math.abs(He.innerHeight-m)>.25*He.innerHeight)||c.restart(!0)}function Jb(){return sb(ee,"scrollEnd",Jb)||Ot(!0)}function Mb(e){for(var t=0;t<W.length;t+=5)(!e||W[t+4]&&W[t+4].query===e)&&(W[t].style.cssText=W[t+1],W[t].getBBox&&W[t].setAttribute("transform",W[t+2]||""),W[t+3].uncache=1)}function Nb(e,t){var r;for(tt=0;tt<Et.length;tt++)!(r=Et[tt])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));t&&Mb(t),t||H("revert")}function Ob(e,t){qe.cache++,!t&&ot||qe.forEach(function(e){return Oa(e)&&e.cacheID++&&(e.rec=0)}),pt(e)&&(He.history.scrollRestoration=_=e)}function _b(e,t,r,n){if(!e._gsap.swappedIn){for(var i,o=U.length,a=t.style,s=e.style;o--;)a[i=U[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[D]=s[T]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ht]=lb(e,Le)+St,a[gt]=lb(e,Ie)+St,a[xt]=s[_t]=s.top=s.left="0",Dt(n),s[ht]=s.maxWidth=r[ht],s[gt]=s.maxHeight=r[gt],s[xt]=r[xt],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}}function cc(e){for(var t=Q.length,r=e.style,n=[],i=0;i<t;i++)n.push(Q[i],r[Q[i]]);return n.t=e,n}function fc(e,t,r,n,i,o,a,s,l,c,u,f,p,d){Oa(e)&&(e=e(s)),pt(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?xb("0"+e.substr(3),r):0));var h,g,v,b=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e=+e),Pa(e))p&&(e=Ne.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,f,e)),a&&q(a,r,n,!0);else{Oa(t)&&(t=t(s));var m,y,x,_,w=(e||"0").split(" ");v=J(t,s)||Je,(m=Ct(v)||{})&&(m.left||m.top)||"none"!==hb(v).display||(_=v.style.display,v.style.display="block",m=Ct(v),_?v.style.display=_:v.style.removeProperty("display")),y=xb(w[0],m[n.d]),x=xb(w[1]||"0",r),e=m[n.p]-l[n.p]-c+y+i-x,a&&q(a,x,n,r-x<20||a._isStart&&20<x),r-=r-x}if(d&&(s[d]=e||-.001,e<0&&(e=0)),o){var S=e+r,C=o._isStart;h="scroll"+n.d2,q(o,S,n,C&&20<S||!C&&(u?Math.max(Je[h],je[h]):o.parentNode[h])<=S+1),u&&(l=Ct(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+St))}return p&&v&&(h=Ct(v),p.seek(f),g=Ct(v),p._caScrollDist=h[n.p]-g[n.p],e=e/p._caScrollDist*f),p&&p.seek(b),p?e:Math.round(e)}function hc(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===Je){for(i in e._stOrig=a.cssText,o=hb(e))+i||$.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;Ne.core.getCache(e).uncache=1,t.appendChild(e)}}function ic(r,e,n){var i=e,o=i;return function(e){var t=Math.round(r());return t!==i&&t!==o&&3<Math.abs(t-i)&&3<Math.abs(t-o)&&(e=t,n&&n()),o=i,i=e}}function jc(e,t,r){var n={};n[t.p]="+="+r,Ne.set(e,n)}function kc(c,e){function pk(e,t,r,n,i){var o=pk.tween,a=t.onComplete,s={};r=r||u();var l=ic(u,r,function(){o.kill(),pk.tween=0});return i=n&&i||0,n=n||e-r,o&&o.kill(),t[f]=e,(t.modifiers=s)[f]=function(){return l(r+n*o.ratio+i*o.ratio*o.ratio)},t.onUpdate=function(){qe.cache++,V()},t.onComplete=function(){pk.tween=0,a&&a.call(o)},o=pk.tween=Ne.to(c,t)}var u=K(c,e),f="_scroll"+e.p2;return(c[f]=u).wheelHandler=function(){return pk.tween&&pk.tween.kill()&&(pk.tween=0)},rb(c,"wheel",u.wheelHandler),ee.isTouch&&rb(c,"touchmove",u.wheelHandler),pk}var Ne,s,He,Ge,je,Je,l,c,Ve,Ue,Ke,u,Qe,et,f,tt,p,d,h,rt,nt,g,v,b,m,y,E,x,_,it,w,ot,at,st,lt=1,ct=Date.now,S=ct(),ut=0,ft=0,pt=function _isString(e){return"string"==typeof e},dt=Math.abs,T="right",D="bottom",ht="width",gt="height",vt="Right",bt="Left",mt="Top",yt="Bottom",xt="padding",_t="margin",wt="Width",R="Height",St="px",Ct=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==hb(e)[f]&&Ne.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},Tt={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},kt={toggleActions:"play",anticipatePin:0},Y={top:0,left:0,center:.5,bottom:1,right:1},q=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+wt]=1,i["border"+a+wt]=0,i[r.p]=t+"px",Ne.set(e,i)},Et=[],Pt={},I={},X=[],H=function _dispatch(e){return I[e]&&I[e].map(function(e){return e()})||X},W=[],Mt=0,Ot=function _refreshAll(e,t){if(!ut||e){ot=ee.isRefreshing=!0,qe.forEach(function(e){return Oa(e)&&++e.cacheID&&(e.rec=e())});var r=H("refreshInit");rt&&ee.sort(),t||Nb(),qe.forEach(function(e){Oa(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),Et.slice(0).forEach(function(e){return e.refresh()}),Et.forEach(function(e,t){if(e._subPinOffset&&e.pin){var r=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[r];e.revert(!0,1),e.adjustPinSpacing(e.pin[r]-n),e.refresh()}}),Et.forEach(function(e){var t=La(e.scroller,e._dir);("max"===e.vars.end||e._endClamp&&e.end>t)&&e.setPositions(e.start,Math.max(e.start+1,t),!0)}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),qe.forEach(function(e){Oa(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Ob(_,1),c.pause(),Mt++,V(ot=2),Et.forEach(function(e){return Oa(e.vars.onRefresh)&&e.vars.onRefresh(e)}),ot=ee.isRefreshing=!1,H("refresh")}else rb(ee,"scrollEnd",Jb)},j=0,At=1,V=function _updateAll(e){if(!ot||2===e){ee.isUpdating=!0,st&&st.update(0);var t=Et.length,r=ct(),n=50<=r-S,i=t&&Et[0].scroll();if(At=i<j?-1:1,ot||(j=i),n&&(ut&&!et&&200<r-ut&&(ut=0,H("scrollEnd")),Ke=S,S=r),At<0){for(tt=t;0<tt--;)Et[tt]&&Et[tt].update(0,n);At=1}else for(tt=0;tt<t;tt++)Et[tt]&&Et[tt].update(0,n);ee.isUpdating=!1}w=0},U=["left","top",D,T,_t+yt,_t+vt,_t+mt,_t+bt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Q=U.concat([ht,gt,"boxSizing","max"+wt,"max"+R,"position",_t,xt,xt+mt,xt+vt,xt+yt,xt+bt]),Z=/([A-Z])/g,Dt=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||Ne.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(Z,"-$1").toLowerCase())}},Rt={left:0,top:0},$=/(webkit|moz|length|cssText|inset)/i,ee=(ScrollTrigger.prototype.init=function init(M,O){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ft){var A,n,d,D,R,B,Y,q,F,L,I,e,X,N,H,W,G,j,t,V,b,U,Q,m,Z,y,$,x,r,_,w,ee,i,h,te,re,ne,S,o,C=(M=jb(pt(M)||Pa(M)||M.nodeType?{trigger:M}:M,kt)).onUpdate,T=M.toggleClass,a=M.id,k=M.onToggle,ie=M.onRefresh,E=M.scrub,oe=M.trigger,ae=M.pin,se=M.pinSpacing,le=M.invalidateOnRefresh,P=M.anticipatePin,s=M.onScrubComplete,g=M.onSnapComplete,ce=M.once,ue=M.snap,fe=M.pinReparent,l=M.pinSpacer,pe=M.containerAnimation,de=M.fastScrollEnd,he=M.preventOverlaps,ge=M.horizontal||M.containerAnimation&&!1!==M.horizontal?Le:Ie,ve=!E&&0!==E,be=J(M.scroller||He),c=Ne.core.getCache(be),me=Ha(be),ye="fixed"===("pinType"in M?M.pinType:z(be,"pinType")||me&&"fixed"),xe=[M.onEnter,M.onLeave,M.onEnterBack,M.onLeaveBack],_e=ve&&M.toggleActions.split(" "),we="markers"in M?M.markers:kt.markers,Se=me?0:parseFloat(hb(be)["border"+ge.p2+wt])||0,Ce=this,Te=M.onRefreshInit&&function(){return M.onRefreshInit(Ce)},ke=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=z(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?He["inner"+i]:e["client"+i])||0}}(be,me,ge),Ee=function _getOffsetsFunc(e,t){return!t||~ze.indexOf(e)?Ia(e):function(){return Rt}}(be,me),Pe=0,Me=0,Oe=0,Ae=K(be,ge);if(Ce._startClamp=Ce._endClamp=!1,Ce._dir=ge,P*=45,Ce.scroller=be,Ce.scroll=pe?pe.time.bind(pe):Ae,D=Ae(),Ce.vars=M,O=O||M.animation,"refreshPriority"in M&&(rt=1,-9999===M.refreshPriority&&(st=Ce)),c.tweenScroll=c.tweenScroll||{top:kc(be,Ie),left:kc(be,Le)},Ce.tweenTo=A=c.tweenScroll[ge.p],Ce.scrubDuration=function(e){(i=Pa(e)&&e)?ee?ee.duration(e):ee=Ne.to(O,{ease:"expo",totalProgress:"+=0",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Ce)}}):(ee&&ee.progress(1).kill(),ee=0)},O&&(O.vars.lazy=!1,O._initted&&!Ce.isReverted||!1!==O.vars.immediateRender&&!1!==M.immediateRender&&O.duration()&&O.render(0,!0,!0),Ce.animation=O.pause(),(O.scrollTrigger=Ce).scrubDuration(E),_=0,a=a||O.vars.id),ue&&(Qa(ue)&&!ue.push||(ue={snapTo:ue}),"scrollBehavior"in Je.style&&Ne.set(me?[Je,je]:be,{scrollBehavior:"auto"}),qe.forEach(function(e){return Oa(e)&&e.target===(me?Ge.scrollingElement||je:be)&&(e.smooth=!1)}),d=Oa(ue.snapTo)?ue.snapTo:"labels"===ue.snapTo?function _getClosestLabel(t){return function(e){return Ne.utils.snap(mb(t),e)}}(O):"labelsDirectional"===ue.snapTo?function _getLabelAtDirection(r){return function(e,t){return ob(mb(r))(e,t.direction)}}(O):!1!==ue.directional?function(e,t){return ob(ue.snapTo)(e,ct()-Me<500?0:t.direction)}:Ne.utils.snap(ue.snapTo),h=ue.duration||{min:.1,max:2},h=Qa(h)?Ue(h.min,h.max):Ue(h,h),te=Ne.delayedCall(ue.delay||i/2||.1,function(){var e=Ae(),t=ct()-Me<500,r=A.tween;if(!(t||Math.abs(Ce.getVelocity())<10)||r||et||Pe===e)Ce.isActive&&Pe!==e&&te.restart(!0);else{var n=(e-B)/N,i=O&&!ve?O.totalProgress():n,o=t?0:(i-w)/(ct()-Ke)*1e3||0,a=Ne.utils.clamp(-n,1-n,dt(o/2)*o/.185),s=n+(!1===ue.inertia?0:a),l=Ue(0,1,d(s,Ce)),c=Math.round(B+l*N),u=ue.onStart,f=ue.onInterrupt,p=ue.onComplete;if(e<=Y&&B<=e&&c!==e){if(r&&!r._initted&&r.data<=dt(c-e))return;!1===ue.inertia&&(a=l-n),A(c,{duration:h(dt(.185*Math.max(dt(s-i),dt(l-i))/o/.05||0)),ease:ue.ease||"power3",data:dt(c-e),onInterrupt:function onInterrupt(){return te.restart(!0)&&f&&f(Ce)},onComplete:function onComplete(){Ce.update(),Pe=Ae(),_=w=O&&!ve?O.totalProgress():Ce.progress,g&&g(Ce),p&&p(Ce)}},e,a*N,c-e-a*N),u&&u(Ce,A.tween)}}}).pause()),a&&(Pt[a]=Ce),o=(o=(oe=Ce.trigger=J(oe||!0!==ae&&ae))&&oe._gsap&&oe._gsap.stRevert)&&o(Ce),ae=!0===ae?oe:J(ae),pt(T)&&(T={targets:oe,className:T}),ae&&(!1===se||se===_t||(se=!(!se&&ae.parentNode&&ae.parentNode.style&&"flex"===hb(ae.parentNode).display)&&xt),Ce.pin=ae,(n=Ne.core.getCache(ae)).spacer?H=n.pinState:(l&&((l=J(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=cc(l))),n.spacer=j=l||Ge.createElement("div"),j.classList.add("pin-spacer"),a&&j.classList.add("pin-spacer-"+a),n.pinState=H=cc(ae)),!1!==M.force3D&&Ne.set(ae,{force3D:!0}),Ce.spacer=j=n.spacer,r=hb(ae),m=r[se+ge.os2],V=Ne.getProperty(ae),b=Ne.quickSetter(ae,ge.a,St),_b(ae,j,r),G=cc(ae)),we){e=Qa(we)?jb(we,Tt):Tt,L=yb("scroller-start",a,be,ge,e,0),I=yb("scroller-end",a,be,ge,e,0,L),t=L["offset"+ge.op.d2];var u=J(z(be,"content")||be);q=this.markerStart=yb("start",a,u,ge,e,t,0,pe),F=this.markerEnd=yb("end",a,u,ge,e,t,0,pe),pe&&(S=Ne.quickSetter([q,F],ge.a,St)),ye||ze.length&&!0===z(be,"fixedMarkers")||(function _makePositionable(e){var t=hb(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(me?Je:be),Ne.set([L,I],{force3D:!0}),y=Ne.quickSetter(L,ge.a,St),x=Ne.quickSetter(I,ge.a,St))}if(pe){var f=pe.vars.onUpdate,p=pe.vars.onUpdateParams;pe.eventCallback("onUpdate",function(){Ce.update(0,0,1),f&&f.apply(pe,p||[])})}if(Ce.previous=function(){return Et[Et.indexOf(Ce)-1]},Ce.next=function(){return Et[Et.indexOf(Ce)+1]},Ce.revert=function(e,t){if(!t)return Ce.kill(!0);var r=!1!==e||!Ce.enabled,n=Qe;r!==Ce.isReverted&&(r&&(re=Math.max(Ae(),Ce.scroll.rec||0),Oe=Ce.progress,ne=O&&O.progress()),q&&[q,F,L,I].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(Qe=Ce).update(r),!ae||fe&&Ce.isActive||(r?function _swapPinOut(e,t,r){Dt(r);var n=e._gsap;if(n.spacerIsNative)Dt(n.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1}(ae,j,H):_b(ae,j,hb(ae),Z)),r||Ce.update(r),Qe=n,Ce.isReverted=r)},Ce.refresh=function(e,t,r,n){if(!Qe&&Ce.enabled||t)if(ae&&e&&ut)rb(ScrollTrigger,"scrollEnd",Jb);else{!ot&&Te&&Te(Ce),Qe=Ce,A.tween&&(A.tween.kill(),A.tween=0),ee&&ee.pause(),le&&O&&O.revert({kill:!1}).invalidate(),Ce.isReverted||Ce.revert(!0,!0),Ce._subPinOffset=!1;var i,o,a,s,l,c,u,f,p,d,h,g,v,b=ke(),m=Ee(),y=pe?pe.duration():La(be,ge),x=N<=.01,_=0,w=n||0,S=Qa(r)?r.end:M.end,C=M.endTrigger||oe,T=Qa(r)?r.start:M.start||(0!==M.start&&oe?ae?"0 0":"0 100%":0),k=Ce.pinnedContainer=M.pinnedContainer&&J(M.pinnedContainer,Ce),E=oe&&Math.max(0,Et.indexOf(Ce))||0,P=E;for(we&&Qa(r)&&(g=Ne.getProperty(L,ge.p),v=Ne.getProperty(I,ge.p));P--;)(c=Et[P]).end||c.refresh(0,1)||(Qe=Ce),!(u=c.pin)||u!==oe&&u!==ae&&u!==k||c.isReverted||((d=d||[]).unshift(c),c.revert(!0,!0)),c!==Et[P]&&(E--,P--);for(Oa(T)&&(T=T(Ce)),T=ya(T,"start",Ce),B=fc(T,oe,b,ge,Ae(),q,L,Ce,m,Se,ye,y,pe,Ce._startClamp&&"_startClamp")||(ae?-.001:0),Oa(S)&&(S=S(Ce)),pt(S)&&!S.indexOf("+=")&&(~S.indexOf(" ")?S=(pt(T)?T.split(" ")[0]:"")+S:(_=xb(S.substr(2),b),S=pt(T)?T:(pe?Ne.utils.mapRange(0,pe.duration(),pe.scrollTrigger.start,pe.scrollTrigger.end,B):B)+_,C=oe)),S=ya(S,"end",Ce),Y=Math.max(B,fc(S||(C?"100% 0":y),C,b,ge,Ae()+_,F,I,Ce,m,Se,ye,y,pe,Ce._endClamp&&"_endClamp"))||-.001,_=0,P=E;P--;)(u=(c=Et[P]).pin)&&c.start-c._pinPush<=B&&!pe&&0<c.end&&(i=c.end-(Ce._startClamp?Math.max(0,c.start):c.start),(u===oe&&c.start-c._pinPush<B||u===k)&&isNaN(T)&&(_+=i*(1-c.progress)),u===ae&&(w+=i));if(B+=_,Y+=_,Ce._startClamp&&(Ce._startClamp+=_),Ce._endClamp&&!ot&&(Ce._endClamp=Y||-.001,Y=Math.min(Y,La(be,ge))),N=Y-B||(B-=.01)&&.001,x&&(Oe=Ne.utils.clamp(0,1,Ne.utils.normalize(B,Y,re))),Ce._pinPush=w,q&&_&&((i={})[ge.a]="+="+_,k&&(i[ge.p]="-="+Ae()),Ne.set([q,F],i)),ae)i=hb(ae),s=ge===Ie,a=Ae(),U=parseFloat(V(ge.a))+w,!y&&1<Y&&(h={style:h=(me?Ge.scrollingElement||je:be).style,value:h["overflow"+ge.a.toUpperCase()]},me&&"scroll"!==hb(Je)["overflow"+ge.a.toUpperCase()]&&(h.style["overflow"+ge.a.toUpperCase()]="scroll")),_b(ae,j,i),G=cc(ae),o=Ct(ae,!0),f=ye&&K(be,s?Le:Ie)(),se&&((Z=[se+ge.os2,N+w+St]).t=j,(P=se===xt?lb(ae,ge)+N+w:0)&&Z.push(ge.d,P+St),Dt(Z),k&&Et.forEach(function(e){e.pin===k&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),ye&&Ae(re)),ye&&((l={top:o.top+(s?a-B:f)+St,left:o.left+(s?f:a-B)+St,boxSizing:"border-box",position:"fixed"})[ht]=l.maxWidth=Math.ceil(o.width)+St,l[gt]=l.maxHeight=Math.ceil(o.height)+St,l[_t]=l[_t+mt]=l[_t+vt]=l[_t+yt]=l[_t+bt]="0",l[xt]=i[xt],l[xt+mt]=i[xt+mt],l[xt+vt]=i[xt+vt],l[xt+yt]=i[xt+yt],l[xt+bt]=i[xt+bt],W=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(H,l,fe),ot&&Ae(0)),O?(p=O._initted,nt(1),O.render(O.duration(),!0,!0),Q=V(ge.a)-U+N+w,$=1<Math.abs(N-Q),ye&&$&&W.splice(W.length-2,2),O.render(0,!0,!0),p||O.invalidate(!0),O.parent||O.totalTime(O.totalTime()),nt(0)):Q=N,h&&(h.value?h.style["overflow"+ge.a.toUpperCase()]=h.value:h.style.removeProperty("overflow-"+ge.a));else if(oe&&Ae()&&!pe)for(o=oe.parentNode;o&&o!==Je;)o._pinOffset&&(B-=o._pinOffset,Y-=o._pinOffset),o=o.parentNode;d&&d.forEach(function(e){return e.revert(!1,!0)}),Ce.start=B,Ce.end=Y,D=R=ot?re:Ae(),pe||ot||(D<re&&Ae(re),Ce.scroll.rec=0),Ce.revert(!1,!0),Me=ct(),te&&(Pe=-1,Ce.isActive&&Ae(B+N*Oe),te.restart(!0)),Qe=0,O&&ve&&(O._initted||ne)&&O.progress()!==ne&&O.progress(ne||0,!0).render(O.time(),!0,!0),(x||Oe!==Ce.progress||pe)&&(O&&!ve&&O.totalProgress(pe&&B<-.001&&!Oe?Ne.utils.normalize(B,Y,0):Oe,!0),Ce.progress=x||(D-B)/N===Oe?0:Oe),ae&&se&&(j._pinOffset=Math.round(Ce.progress*Q)),ee&&ee.invalidate(),isNaN(g)||(g-=Ne.getProperty(L,ge.p),v-=Ne.getProperty(I,ge.p),jc(L,ge,g),jc(q,ge,g-(n||0)),jc(I,ge,v),jc(F,ge,v-(n||0))),x&&!ot&&Ce.update(),!ie||ot||X||(X=!0,ie(Ce),X=!1)}},Ce.getVelocity=function(){return(Ae()-R)/(ct()-Ke)*1e3||0},Ce.endAnimation=function(){Ra(Ce.callbackAnimation),O&&(ee?ee.progress(1):O.paused()?ve||Ra(O,Ce.direction<0,1):Ra(O,O.reversed()))},Ce.labelToScroll=function(e){return O&&O.labels&&(B||Ce.refresh()||B)+O.labels[e]/O.duration()*N||0},Ce.getTrailing=function(t){var e=Et.indexOf(Ce),r=0<Ce.direction?Et.slice(0,e).reverse():Et.slice(e+1);return(pt(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Ce.direction?e.end<=B:e.start>=Y})},Ce.update=function(e,t,r){if(!pe||r||e){var n,i,o,a,s,l,c,u=!0===ot?re:Ce.scroll(),f=e?0:(u-B)/N,p=f<0?0:1<f?1:f||0,d=Ce.progress;if(t&&(R=D,D=pe?Ae():u,ue&&(w=_,_=O&&!ve?O.totalProgress():p)),P&&!p&&ae&&!Qe&&!lt&&ut&&B<u+(u-R)/(ct()-Ke)*P&&(p=1e-4),p!==d&&Ce.enabled){if(a=(s=(n=Ce.isActive=!!p&&p<1)!=(!!d&&d<1))||!!p!=!!d,Ce.direction=d<p?1:-1,Ce.progress=p,a&&!Qe&&(i=p&&!d?0:1===p?1:1===d?2:3,ve&&(o=!s&&"none"!==_e[i+1]&&_e[i+1]||_e[i],c=O&&("complete"===o||"reset"===o||o in O))),he&&(s||c)&&(c||E||!O)&&(Oa(he)?he(Ce):Ce.getTrailing(he).forEach(function(e){return e.endAnimation()})),ve||(!ee||Qe||lt?O&&O.totalProgress(p,!(!Qe||!Me&&!e)):(ee._dp._time-ee._start!==ee._time&&ee.render(ee._dp._time-ee._start),ee.resetTo?ee.resetTo("totalProgress",p,O._tTime/O._tDur):(ee.vars.totalProgress=p,ee.invalidate().restart()))),ae)if(e&&se&&(j.style[se+ge.os2]=m),ye){if(a){if(l=!e&&d<p&&u<Y+1&&u+1>=La(be,ge),fe)if(e||!n&&!l)hc(ae,j);else{var h=Ct(ae,!0),g=u-B;hc(ae,Je,h.top+(ge===Ie?g:0)+St,h.left+(ge===Ie?0:g)+St)}Dt(n||l?W:G),$&&p<1&&n||b(U+(1!==p||l?0:Q))}}else b(Ea(U+Q*p));!ue||A.tween||Qe||lt||te.restart(!0),T&&(s||ce&&p&&(p<1||!it))&&Ve(T.targets).forEach(function(e){return e.classList[n||ce?"add":"remove"](T.className)}),!C||ve||e||C(Ce),a&&!Qe?(ve&&(c&&("complete"===o?O.pause().totalProgress(1):"reset"===o?O.restart(!0).pause():"restart"===o?O.restart(!0):O[o]()),C&&C(Ce)),!s&&it||(k&&s&&Sa(Ce,k),xe[i]&&Sa(Ce,xe[i]),ce&&(1===p?Ce.kill(!1,1):xe[i]=0),s||xe[i=1===p?1:3]&&Sa(Ce,xe[i])),de&&!n&&Math.abs(Ce.getVelocity())>(Pa(de)?de:2500)&&(Ra(Ce.callbackAnimation),ee?ee.progress(1):Ra(O,"reverse"===o?1:!p,1))):ve&&C&&!Qe&&C(Ce)}if(x){var v=pe?u/pe.duration()*(pe._caScrollDist||0):u;y(v+(L._isFlipped?1:0)),x(v)}S&&S(-u/pe.duration()*(pe._caScrollDist||0))}},Ce.enable=function(e,t){Ce.enabled||(Ce.enabled=!0,rb(be,"resize",Gb),rb(me?Ge:be,"scroll",Eb),Te&&rb(ScrollTrigger,"refreshInit",Te),!1!==e&&(Ce.progress=Oe=0,D=R=Pe=Ae()),!1!==t&&Ce.refresh())},Ce.getTween=function(e){return e&&A?A.tween:ee},Ce.setPositions=function(e,t,r,n){if(pe){var i=pe.scrollTrigger,o=pe.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Ce.refresh(!1,!1,{start:za(e,r&&!!Ce._startClamp),end:za(t,r&&!!Ce._endClamp)},n),Ce.update()},Ce.adjustPinSpacing=function(e){if(Z&&e){var t=Z.indexOf(ge.d)+1;Z[t]=parseFloat(Z[t])+e+St,Z[1]=parseFloat(Z[1])+e+St,Dt(Z)}},Ce.disable=function(e,t){if(Ce.enabled&&(!1!==e&&Ce.revert(!0,!0),Ce.enabled=Ce.isActive=!1,t||ee&&ee.pause(),re=0,n&&(n.uncache=1),Te&&sb(ScrollTrigger,"refreshInit",Te),te&&(te.pause(),A.tween&&A.tween.kill()&&(A.tween=0)),!me)){for(var r=Et.length;r--;)if(Et[r].scroller===be&&Et[r]!==Ce)return;sb(be,"resize",Gb),sb(be,"scroll",Eb)}},Ce.kill=function(e,t){Ce.disable(e,t),ee&&!t&&ee.kill(),a&&delete Pt[a];var r=Et.indexOf(Ce);0<=r&&Et.splice(r,1),r===tt&&0<At&&tt--,r=0,Et.forEach(function(e){return e.scroller===Ce.scroller&&(r=1)}),r||ot||(Ce.scroll.rec=0),O&&(O.scrollTrigger=null,e&&O.revert({kill:!1}),t||O.kill()),q&&[q,F,L,I].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),st===Ce&&(st=0),ae&&(n&&(n.uncache=1),r=0,Et.forEach(function(e){return e.pin===ae&&r++}),r||(n.spacer=0)),M.onKill&&M.onKill(Ce)},Et.push(Ce),Ce.enable(!1,!1),o&&o(Ce),O&&O.add&&!N){var v=Ce.update;Ce.update=function(){Ce.update=v,B||Y||Ce.refresh()},Ne.delayedCall(.01,Ce.update),N=.01,B=Y=0}else Ce.refresh();ae&&function _queueRefreshAll(){if(at!==Mt){var e=at=Mt;requestAnimationFrame(function(){return e===Mt&&Ot(!0)})}}()}else this.update=this.refresh=this.kill=Da},ScrollTrigger.register=function register(e){return s||(Ne=e||Ga(),Fa()&&window.document&&ScrollTrigger.enable(),s=ft),s},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)kt[t]=e[t];return kt},ScrollTrigger.disable=function disable(t,r){ft=0,Et.forEach(function(e){return e[r?"kill":"disable"](t)}),sb(He,"wheel",Eb),sb(Ge,"scroll",Eb),clearInterval(u),sb(Ge,"touchcancel",Da),sb(Je,"touchstart",Da),qb(sb,Ge,"pointerdown,touchstart,mousedown",Ba),qb(sb,Ge,"pointerup,touchend,mouseup",Ca),c.kill(),Ma(sb);for(var e=0;e<qe.length;e+=3)tb(sb,qe[e],qe[e+1]),tb(sb,qe[e],qe[e+2])},ScrollTrigger.enable=function enable(){if(He=window,Ge=document,je=Ge.documentElement,Je=Ge.body,Ne&&(Ve=Ne.utils.toArray,Ue=Ne.utils.clamp,x=Ne.core.context||Da,nt=Ne.core.suppressOverwrites||Da,_=He.history.scrollRestoration||"auto",j=He.pageYOffset,Ne.core.globals("ScrollTrigger",ScrollTrigger),Je)){ft=1,function _rafBugFix(){return ft&&requestAnimationFrame(_rafBugFix)}(),k.register(Ne),ScrollTrigger.isTouch=k.isTouch,E=k.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),rb(He,"wheel",Eb),l=[He,Ge,je,Je],Ne.matchMedia?(ScrollTrigger.matchMedia=function(e){var t,r=Ne.matchMedia();for(t in e)r.add(t,e[t]);return r},Ne.addEventListener("matchMediaInit",function(){return Nb()}),Ne.addEventListener("matchMediaRevert",function(){return Mb()}),Ne.addEventListener("matchMedia",function(){Ot(0,1),H("matchMedia")}),Ne.matchMedia("(orientation: portrait)",function(){return Fb(),Fb})):console.warn("Requires GSAP 3.11.0 or later"),Fb(),rb(Ge,"scroll",Eb);var e,t,r=Je.style,n=r.borderTopStyle,i=Ne.core.Animation.prototype;for(i.revert||Object.defineProperty(i,"revert",{value:function value(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=Ct(Je),Ie.m=Math.round(e.top+Ie.sc())||0,Le.m=Math.round(e.left+Le.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),u=setInterval(Db,250),Ne.delayedCall(.5,function(){return lt=0}),rb(Ge,"touchcancel",Da),rb(Je,"touchstart",Da),qb(rb,Ge,"pointerdown,touchstart,mousedown",Ba),qb(rb,Ge,"pointerup,touchend,mouseup",Ca),f=Ne.utils.checkPrefix("transform"),Q.push(f),s=ct(),c=Ne.delayedCall(.2,Ot).pause(),h=[Ge,"visibilitychange",function(){var e=He.innerWidth,t=He.innerHeight;Ge.hidden?(p=e,d=t):p===e&&d===t||Gb()},Ge,"DOMContentLoaded",Ot,He,"load",Ot,He,"resize",Gb],Ma(rb),Et.forEach(function(e){return e.enable(0,1)}),t=0;t<qe.length;t+=3)tb(sb,qe[t],qe[t+1]),tb(sb,qe[t],qe[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(it=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(u)||(u=t)&&setInterval(Db,t),"ignoreMobileResize"in e&&(b=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ma(sb)||Ma(rb,e.autoRefreshEvents||"none"),g=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=J(e),n=qe.indexOf(r),i=Ha(r);~n&&qe.splice(n,i?6:2),t&&(i?ze.unshift(He,t,Je,t,je,t):ze.unshift(r,t))},ScrollTrigger.clearMatchMedia=function clearMatchMedia(t){Et.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(pt(e)?J(e):e).getBoundingClientRect(),i=n[r?ht:gt]*t||0;return r?0<n.right-i&&n.left+i<He.innerWidth:0<n.bottom-i&&n.top+i<He.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){pt(e)&&(e=J(e));var n=e.getBoundingClientRect(),i=n[r?ht:gt],o=null==t?i/2:t in Y?Y[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/He.innerWidth:(n.top+o)/He.innerHeight},ScrollTrigger.killAll=function killAll(e){if(Et.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=I.killAll||[];I={},t.forEach(function(e){return e()})}},ScrollTrigger);function ScrollTrigger(e,t){s||ScrollTrigger.register(Ne)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),x(this),this.init(e,t)}ee.version="3.12.1",ee.saveStyles=function(e){return e?Ve(e).forEach(function(e){if(e&&e.style){var t=W.indexOf(e);0<=t&&W.splice(t,5),W.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Ne.core.getCache(e),x())}}):W},ee.revert=function(e,t){return Nb(!e,t)},ee.create=function(e,t){return new ee(e,t)},ee.refresh=function(e){return e?Gb():(s||ee.register())&&Ot(!0)},ee.update=function(e){return++qe.cache&&V(!0===e?2:0)},ee.clearScrollMemory=Ob,ee.maxScroll=function(e,t){return La(e,t?Le:Ie)},ee.getScrollFunc=function(e,t){return K(J(e),t?Le:Ie)},ee.getById=function(e){return Pt[e]},ee.getAll=function(){return Et.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ee.isScrolling=function(){return!!ut},ee.snapDirectional=ob,ee.addEventListener=function(e,t){var r=I[e]||(I[e]=[]);~r.indexOf(t)||r.push(t)},ee.removeEventListener=function(e,t){var r=I[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},ee.batch=function(e,t){function pp(e,t){var r=[],n=[],i=Ne.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Oa(t[r])&&"onRefreshInit"!==r?pp(0,t[r]):t[r];return Oa(a)&&(a=a(),rb(ee,"refresh",function(){return a=t.batchMax()})),Ve(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(ee.create(t))}),n};function mc(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function nc(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(k.isTouch?" pinch-zoom":""):"none",e===je&&nc(Je,t)}function pc(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||Ne.core.getCache(o),s=ct();if(!a._isScrollT||2e3<s-a._isScrollT){for(;o&&o!==Je&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!re[(t=hb(o)).overflowY]&&!re[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!Ha(o)&&(re[(t=hb(o)).overflowY]||re[t.overflowX]),a._isScrollT=s}!a._isScroll&&"x"!==i||(r.stopPropagation(),r._gsapAllow=!0)}function qc(e,t,r,n){return k.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&pc,onPress:n,onDrag:n,onScroll:n,onEnable:function onEnable(){return r&&rb(Ge,k.eventTypes[0],ie,!1,!0)},onDisable:function onDisable(){return sb(Ge,k.eventTypes[0],ie,!0)}})}function uc(e){function mq(){return i=!1}function pq(){o=La(d,Ie),T=Ue(E?1:0,o),f&&(C=Ue(0,La(d,Le))),l=Mt}function qq(){v._gsap.y=Ea(parseFloat(v._gsap.y)+b.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",b.offset=b.cacheID=0}function wq(){pq(),a.isActive()&&a.vars.scrollY>o&&(b()>o?a.progress(1)&&b(o):a.resetTo("scrollY",o))}Qa(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,o,l,i,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,p=e.onRelease,d=J(e.target)||je,h=Ne.core.globals().ScrollSmoother,g=h&&h.get(),v=E&&(e.content&&J(e.content)||g&&!1!==e.content&&!g.smooth()&&g.content()),b=K(d,Ie),m=K(d,Le),y=1,x=(k.isTouch&&He.visualViewport?He.visualViewport.scale*He.visualViewport.width:He.outerWidth)/He.innerWidth,_=0,w=Oa(t)?function(){return t(n)}:function(){return t||2.8},S=qc(d,e.type,!0,r),C=Da,T=Da;return v&&Ne.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return E&&"touchmove"===e.type&&function ignoreDrag(){if(i){requestAnimationFrame(mq);var e=Ea(n.deltaY/2),t=T(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ea((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=qe.cache,V()}return!0}b.offset&&qq(),i=!0}()||1.05<y&&"touchstart"!==e.type||n.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){i=!1;var e=y;y=Ea((He.visualViewport&&He.visualViewport.scale||1)/x),a.pause(),e!==y&&nc(d,1.01<y||!f&&"x"),c=m(),u=b(),pq(),l=Mt},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&qq(),t){qe.cache++;var r,n,i=w();f&&(n=(r=m())+.05*i*-e.velocityX/.227,i*=mc(m,r,n,La(d,Le)),a.vars.scrollX=C(n)),n=(r=b())+.05*i*-e.velocityY/.227,i*=mc(b,r,n,La(d,Ie)),a.vars.scrollY=T(n),a.invalidate().duration(i).play(.01),(E&&a.vars.scrollY>=o||o-1<=r)&&Ne.to({},{onUpdate:wq,duration:i})}else s.restart(!0);p&&p(e)},e.onWheel=function(){a._ts&&a.pause(),1e3<ct()-_&&(l=0,_=ct())},e.onChange=function(e,t,r,n,i){if(Mt!==l&&pq(),t&&f&&m(C(n[2]===t?c+(e.startX-e.x):m()+t-n[1])),r){b.offset&&qq();var o=i[2]===r,a=o?u+e.startY-e.y:b()+r-i[1],s=T(a);o&&a!==s&&(u+=s-a),b(s)}(r||t)&&V()},e.onEnable=function(){nc(d,!f&&"x"),ee.addEventListener("refresh",wq),rb(He,"resize",wq),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=m.smooth=!1),S.enable()},e.onDisable=function(){nc(d,!0),sb(He,"resize",wq),ee.removeEventListener("refresh",wq),S.kill()},e.lockAxis=!1!==e.lockAxis,((n=new k(e)).iOS=E)&&!b()&&b(1),E&&Ne.ticker.add(Da),s=n._dc,a=Ne.to(n,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ic(b,b(),function(){return a.pause()})},onUpdate:V,onComplete:s.vars.onComplete}),n}var te,re={auto:1,scroll:1},ne=/(input|label|select|textarea)/i,ie=function _captureInputs(e){var t=ne.test(e.target.tagName);(t||te)&&(e._gsapAllow=!0,te=t)};ee.sort=function(e){return Et.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},ee.observe=function(e){return new k(e)},ee.normalizeScroll=function(e){if(void 0===e)return v;if(!0===e&&v)return v.enable();if(!1===e)return v&&v.kill();var t=e instanceof k?e:uc(e);return v&&v.target===t.target&&v.kill(),Ha(t.target)&&(v=t),t},ee.core={_getVelocityProp:L,_inputObserver:qc,_scrollers:qe,_proxies:ze,bridge:{ss:function ss(){ut||H("scrollStart"),ut=ct()},ref:function ref(){return Qe}}},Ga()&&Ne.registerPlugin(ee),e.ScrollTrigger=ee,e.default=ee;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});
17
18`},5134:function(t){t.exports=`/*!
19 * GSAP 3.12.1
20 * https://greensock.com
21 * 
22 * @license Copyright 2023, GreenSock. All rights reserved.
23 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
24 * @author: Jack Doyle, [email protected]
25 */
26
27!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&Ee}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Vt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Ot(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}
vendor: 4,982 bytes, line 27
27function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ma(){var t,e,r=ct.length,i=ct.slice(0);for(dt={},t=ct.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function na(t,e,r,i){ct.length&&!L&&ma(),t.render(e,r,i||L&&e<0&&(t._initted||t._startAt)),ct.length&&!L&&ma()}function oa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:r(t)?t.trim():t}function pa(t){return t}function qa(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ta(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=v(e[r])?ta(t[r]||(t[r]={}),e[r]):e[r]);return t}function ua(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function va(t){var e=t.parent||I,r=t.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}($(t.keyframes)):qa;if(w(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function xa(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function ya(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function za(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function Aa(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Ca(t,e,r,i){return t._startAt&&(L?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Ea(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ga(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ha(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))}function Ia(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ha(t),r._dirty||Aa(r,t)),t}function Ja(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Ga(t.rawTime(),e),(!e._dur||kt(0,e.totalDuration(),r)-e._tTime>X)&&e.render(r,!0)),Aa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-X}}function Ka(e,r,i,n){return r.parent&&za(r),r._start=ja((t(i)?i:i||e!==I?xt(e,i,r):e._time)+r._delay),r._end=ja(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),xa(e,r,"_first","_last",e._sort?"_start":0),bt(r)||(e._recent=r),n||Ja(e,r),e._ts<0&&Ia(e,e._tTime),e}function La(t,e){return(ot.ScrollTrigger||Q("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Ma(t,e,r,i,n){return Gt(t,e,n),t._initted?!r&&t._pt&&!L&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Rt.frame?(ct.push(t),t._lazy=[n,i],1):void 0:1}function Ra(t,e,r,i){var n=t._repeat,a=ja(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:ja(a*(n+1)+t._rDelay*n):a,0<s&&!i&&Ia(t,t._tTime=t._tDur*s),t.parent&&Ha(t),r||Aa(t.parent,t),t}function Sa(t){return t instanceof Xt?Aa(t):Ra(t,t._dur)}function Va(e,r,i){var n,a,s=t(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=w(a.vars.inherit)&&a.parent;u.immediateRender=w(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Zt(r[0],u,r[1+o])}function Wa(t,e){return t||0===t?e(t):e}function Ya(t,e){return r(t)&&(e=st.exec(t))?e[1]:""}function _a(t,e){return t&&v(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&v(t[0]))&&!t.nodeType&&t!==h}function cb(r){return r=Ot(r)[0]||R("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return Ot(t,e.querySelectorAll?e:e===r?R("Invalid scope")||a.createElement("div"):r)}}function db(t){return t.sort(function(){return.5-Math.random()})}function eb(t){if(s(t))return t;var p=v(t)?t:{each:t},_=jt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,y={},e=0<m&&m<1,T=isNaN(m)||e,b=p.axis,w=m,x=m;return r(m)?w=x={center:.5,edges:.5,end:1}[m]||0:!e&&T&&(w=m[0],x=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,c=(r||p).length,d=y[c];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1,U])[1])){for(h=-U;h<(h=r[f++].getBoundingClientRect().left)&&f<c;);f--}for(d=y[c]=[],i=T?Math.min(f,c)*w-.5:m%f,n=f===U?0:T?c*x/f-.5:m/f|0,l=U,u=h=0;u<c;u++)a=u%f-i,s=n-(u/f|0),d[u]=o=b?Math.abs("y"===b?s:a):K(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&db(d),d.max=h-l,d.min=l,d.v=c=(parseFloat(p.amount)||parseFloat(p.each)*(c<f?c-1:b?"
27y"===b?c/f:f:Math.max(f,c/f))||0)*("edges"===m?-1:1),d.b=c<0?g-c:g,d.u=Ya(p.amount||p.each)||0,_=_&&c<0?Yt(_):_}return c=(d[t]-d.min)/d.max||0,ja(d.b+(_?_(c):c)*d.v)+d.u}}function fb(i){var n=Math.pow(10,((i+"").split(".")[1]||"").length);return function(e){var r=ja(Math.round(parseFloat(e)/i)*i*n);return(r-r%1)/n+(t(e)?0:Ya(e))}}function gb(h,e){var l,f,r=$(h);return!r&&v(h)&&(l=r=h.radius||U,h.values?(h=Ot(h.values),(f=!t(h[0]))&&(l*=l)):h=fb(h.increment)),Wa(e,r?s(h)?function(t){return f=h(t),Math.abs(f-t)<=l?f:t}:function(e){for(var r,i,n=parseFloat(f?e.x:e),a=parseFloat(f?e.y:0),s=U,o=0,u=h.length;u--;)(r=f?(r=h[u].x-n)*r+(i=h[u].y-a)*i:Math.abs(h[u]-n))<s&&(s=r,o=u);return o=!l||s<=l?h[o]:e,f||o===e||t(e)?o:o+Ya(e)}:fb(h))}function hb(t,e,r,i){return Wa($(t)?!e:!0===r?!!(r=0):!i,function(){return $(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function lb(e,r,t){return Wa(t,function(t){return e[~~r(t)]})}function ob(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+hb(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function rb(t,e,r){var i,n,a,s=t.labels,o=U;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function tb(t){return za(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&At(t,"onInterrupt"),t}function wb(t){if(x()&&t){var e=(t=!t.name&&t.default||t).name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:he,add:Qt,kill:ce,modifier:fe,rawVars:0},a={targetTest:0,get:0,getSetter:ne,aliases:{},register:0};if(Ft(),t!==i){if(pt[e])return;qa(i,qa(ua(t,n),a)),yt(i.prototype,yt(n,ua(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(Ee,i,_e)}else t&&Ct.push(t)}function zb(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*St+.5|0}function Ab(e,r,i){var n,a,s,o,u,h,l,f,c,d,p=e?t(e)?[e>>16,e>>8&St,e&St]:0:Et.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),Et[e])p=Et[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&St,p&St,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&St,e&St]}else if("hsl"===e.substr(0,3))if(p=d=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3<p.length&&(p[3]*=1),p[0]=zb(o+1/3,n,a),p[1]=zb(o,n,a),p[2]=zb(o-1/3,n,a);else p=e.match(tt)||Et.transparent;p=p.map(Number)}return r&&!d&&(n=p[0]/St,a=p[1]/St,s=p[2]/St,h=((l=Math.max(n,a,s))+(f=Math.min(n,a,s)))/2,l===f?o=u=0:(c=l-f,u=.5<h?c/(2-l-f):c/(l+f),o=l===n?(a-s)/c+(a<s?6:0):l===a?(s-n)/c+2:(n-a)/c+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*u+.5),p[2]=~~(100*h+.5)),i&&p.length<4&&(p[3]=1),p}function Bb(t){var r=[],i=[],n=-1;return t.split(Dt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function Cb(t,e,r){var i,n,a,s,o="",u=(t+o).match(Dt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=Ab(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=Bb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Dt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Dt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function Fb(t){var e,r=t.join(" ");if(Dt.lastIndex=0,Dt.test(r))return e=zt.test(r),t[1]=Cb(t[1],e),t[0]=Cb(t[0],e,Bb(t[1])),!0}function Ob(t){var e=(t+"").split("("),r=Bt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(It,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(oa)):Bt._CE&&Lt.test(t)?Bt._CE("",t):r}function Qb(t,e){for(var r,i=t._first;i;)i instanceof Xt?Qb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Qb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Sb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ha(t,function(t){for(var e in Bt[t]=ot[t]=a,Bt[n=t.toLowerCase()]=r,a)Bt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Bt[t+"."+e]=a[e]}),a}function Tb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Ub(r,t,e){function Jm(t){return 1===t?1:i*Math.pow(2,-10*t)*H((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/N*(Math.asin(1/i)||0),s="out"===r?Jm:"in"===r?function(t){return 1-Jm(1-t)}:Tb(Jm);
vendor: 5,252 bytes, line 27
27return n=N/n,s.config=function(t,e){return Ub(r,t,e)},s}function Vb(e,r){function Rm(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?Rm:"in"===e?function(t){return 1-Rm(1-t)}:Tb(Rm);return t.config=function(t){return Vb(e,t)},t}var B,L,l,I,h,n,a,i,o,f,c,d,p,_,m,g,b,k,M,O,A,C,E,D,z,F,Y,j,q={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},V={duration:.5,overwrite:!1,delay:0},U=1e8,X=1/U,N=2*Math.PI,W=N/4,G=0,K=Math.sqrt,J=Math.cos,H=Math.sin,Z="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,tt=/(?:-?\\.?\\d|\\.)+/gi,et=/[-+=.]*\\d+[.e\\-+]*\\d*[e\\-+]*\\d*/g,rt=/[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,it=/[-+=.]*\\d+\\.?\\d*(?:e-|e\\+)?\\d*/gi,nt=/[+-]=-?[.\\d]+/,at=/[^,'"\\[\\]\\s]+/gi,st=/^[+\\-=e\\s\\d]*\\d+[.\\d]*([a-z]*|%)\\s*$/i,ot={},ut={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},lt={suppressEvents:!0},ft={},ct=[],dt={},pt={},_t={},mt=30,gt=[],vt="",yt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},Tt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},bt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},wt={_start:0,endTime:T,totalDuration:T},xt=function _parsePosition(t,e,i){var n,a,s,o=t.labels,u=t._recent||wt,h=t.duration()>=U?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*($(i)?i[0]:i).totalDuration()),1<n?_parsePosition(t,e.substr(0,n-1),i)+a:h+a)):null==e?h:+e},kt=function _clamp(t,e,r){return r<t?t:e<r?e:r},Mt=[].slice,Ot=function toArray(t,e,i){return l&&!e&&l.selector?l.selector(t):!r(t)||i||!n&&Ft()?$(t)?function _flatten(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){return r(t)&&!e||_a(t,1)?i.push.apply(i,Ot(t)):i.push(t)})||i}(t,i):_a(t)?Mt.call(t,0):t?[t]:[]:Mt.call((e||a).querySelectorAll(t),0)},Pt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Wa(n,function(t){return r+((t-e)/a*s||0)})},At=function _callback(t,e,r){var i,n,a,s=t.vars,o=s[e],u=l,h=t._ctx;if(o)return i=s[e+"Params"],n=s.callbackScope||t,r&&ct.length&&ma(),h&&(l=h),a=i?o.apply(n,i):o.call(n),l=u,a},Ct=[],St=255,Et={aqua:[0,St,St],lime:[0,St,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,St],navy:[0,0,128],white:[St,St,St],olive:[128,128,0],yellow:[St,St,0],orange:[St,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[St,0,0],pink:[St,192,203],cyan:[0,St,St],transparent:[St,St,St,0]},Dt=function(){var t,e="(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3,4}){1,2}\\\\b";for(t in Et)e+="|"+t+"\\\\b";return new RegExp(e+")","gi")}(),zt=/hsl[a]?\\(/,Rt=(M=Date.now,O=500,A=33,C=M(),E=C,z=D=1e3/240,g={time:0,frame:0,tick:function tick(){yl(!0)},deltaRatio:function deltaRatio(t){return b/(1e3/(t||60))},wake:function wake(){o&&(!n&&x()&&(h=n=window,a=h.document||{},ot.gsap=Ee,(h.gsapVersions||(h.gsapVersions=[])).push(Ee.version),P(i||h.GreenSockGlobals||!h.gsap&&h||{}),m=h.requestAnimationFrame,Ct.forEach(wb)),p&&g.sleep(),_=m||function(t){return setTimeout(t,z-1e3*g.time+1|0)},d=1,yl(2))},sleep:function sleep(){(m?h.cancelAnimationFrame:clearTimeout)(p),d=0,_=T},lagSmoothing:function lagSmoothing(t,e){O=t||1/0,A=Math.min(e||33,O)},fps:function fps(t){D=1e3/(t||240),z=1e3*g.time+D},add:function add(n,t,e){var a=t?function(t,e,r,i){n(t,e,r,i),g.remove(a)}:n;return g.remove(n),F[e?"unshift":"push"](a),Ft(),a},remove:function remove(t,e){~(e=F.indexOf(t))&&F.splice(e,1)&&e<=k&&k--},_listeners:F=[]}),Ft=function _wake(){return!d&&Rt.wake()},Bt={},Lt=/^[\\d.\\-M][\\d.\\-,\\s]/,It=/["']/g,Yt=function _invertEase(e){return function(t){return 1-e(1-t)}},jt=function _parseEase(t,e){return t&&(s(t)?t:Bt[t]||Ob(t))||e};function yl(t){var e,r,i,n,a=M()-E,s=!0===t;if(O<a&&(C+=a-A),(0<(e=(i=(E+=a)-C)-z)||s)&&(n=++g.frame,b=i-1e3*g.time,g.time=i/=1e3,z+=e+(D<=e?4:D-e),r=1),s||(p=_(yl)),r)for(k=0;k<F.length;k++)F[k](i,b,n,t)}function gn(t){return t<j?Y*t*t:t<.7272727272727273?Y*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Y*(t-=2.25/2.75)*t+.9375:Y*Math.pow(t-2.625/2.75,2)+.984375}ha("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Sb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Bt.Linear.easeNone=Bt.none=Bt.Linear.easeIn,Sb("Elastic",Ub("in"),Ub("out"),Ub()),Y=7.5625,j=1/2.75,Sb("Bounce",function(t){return 1-gn(1-t)},gn),Sb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Sb("Circ",function(t){return-(K(1-t*t)-1)}),Sb("Sine",function(t){return 1===t?1:1-J(t*W)}),Sb("Back",Vb("in"),Vb("out"),Vb()),Bt.SteppedEase=Bt.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*kt(0,.99999999,t)|0)+n)*r}}},V.ease=Bt["quad.out"],ha("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vt+=t+","+t+"Param
27s,"});var qt,Vt=function GSCache(t,e){this.id=G++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:ga,this.set=e?e.getSetter:ne},Ut=((qt=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},qt.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},qt.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ra(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},qt.totalTime=function totalTime(t,e){if(Ft(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ia(this,t),!r._dp||r.parent||Ja(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Ka(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===X||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),na(this,t,e)),this},qt.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ea(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},qt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},qt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ea(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},qt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Tt(this._tTime,r)+1:1},qt.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ga(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-X?0:this._rts,this.totalTime(kt(-Math.abs(this._delay),this._tDur,e),!0),Ha(this),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},qt.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ft(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},qt.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Ka(e,this,t-this._delay),this}return this._start},qt.endTime=function endTime(t){return this._start+(w(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},qt.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ga(e.rawTime(t),this):this._tTime:this._tTime},qt.revert=function revert(t){void 0===t&&(t=lt);var e=L;return L=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),L=e,this},qt.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(t):r},qt.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Sa(this)):-2===this._repeat?1/0:this._repeat},qt.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Sa(this),e?this.time(e):this}return this._rDelay},qt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},qt.seek=function seek(t,e){return this.totalTime(xt(this,t),w(e))},qt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,w(e))},qt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},qt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},qt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},qt.resume=function resume(){return this.paused(!1)},qt.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-X:0)),this):this._rts<0}
vendor: 8,359 bytes, line 27
27,qt.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-X,this},qt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-X))},qt.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},qt.then=function then(t){var i=this;return new Promise(function(e){function Bo(){var t=i.then;i.then=null,s(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=s(t)?t:pa;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Bo():i._prom=Bo})},qt.kill=function kill(){tb(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ra(this,+t.duration,1,1),this.data=t.data,l&&(this._ctx=l).data.push(this),d||Rt.wake()}qa(Ut.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var Xt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=w(t.sortChildren),I&&Ka(t.parent||I,_assertThisInitialized(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&La(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var e=Timeline.prototype;return e.to=function to(t,e,r){return Va(0,arguments,this),this},e.from=function from(t,e,r){return Va(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Va(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,va(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Zt(t,e,xt(this,r),1),this},e.call=function call(t,e,r){return Ka(this,Zt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Zt(t,r,xt(this,n)),this},e.staggerFrom=function staggerFrom(t,e,r,i,n,a,s){return r.runBackwards=1,va(r).immediateRender=w(r.immediateRender),this.staggerTo(t,e,r,i,n,a,s)},e.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,s,o){return i.startAt=r,va(i).immediateRender=w(i.immediateRender),this.staggerTo(t,e,i,n,a,s,o)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:ja(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==I&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(d=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=ja(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),c=Tt(this._tTime,o),!_&&this._tTime&&c!==s&&this._tTime-c*o-this._dur<=0&&(c=s),d&&1&s&&(i=g-i,p=1),s!==c&&!this._lock){var T=d&&1&c,b=T===(d&&1&s);if(s<c&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(p?0:ja(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&At(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,b&&(this._lock=2,_=T?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Qb(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,ja(_),ja(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&i&&!e&&!s&&(At(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-X);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r||L&&(n._initted||n._startAt)),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-X:X);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-X)._zTime=_<=i?1:-1,this._ts))return this._start=f,Ha(this),this.render(t,e,r);this._onUpdate&&!e&&At(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||za(this,1),e||t<0&&!_||!v&&!_&&m||(At(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(e,i){var n=this;if(t(i)||(i=xt(this,i,e)),!(e instanceof Ut)){if($(e))return e.forEach(function(t){return n.add(t,i)}),this;if(r(e))return this.addLabel(e,i);if(!s(e))return this;e=Zt.delayedCall(0,e)}return this!==e?Ka(this,e,i):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-U);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Zt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(ya(this,t),t===this._recent&&(this._recent=this._last),Aa(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Rt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=xt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Zt.delayedCall(0,e||T,r);return i.data="isPause",this._hasPause=1,Ka(this,i,xt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=xt(this,t);e;)e._start===t&&"isPause"===e.data&&za(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Nt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(e,r){for(var i,n=[],a=Ot(e),s=this._first,o=t(r);s;)s instanceof Zt?la(s._targets,a)&&(o?(!Nt||s._initted&&s._ts)&&s.globalTime(0)<=r&&s.globalTime(s.totalDuration())>r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Zt.to(i,qa({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||X,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ra(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,qa({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Aa(this)}
vendor: 15,924 bytes, line 27
27,e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Aa(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=U;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ka(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ra(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(na(I,Ga(t,I)),f=Rt.frame),Rt.frame>=mt){mt+=q.autoSleep||120;var e=I._first;if((!e||!e._ts)&&q.autoSleep&&Rt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Rt.sleep()}}},Timeline}(Ut);qa(Xt.prototype,{_lock:0,_hasPause:0,_forcing:0});function ac(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Kt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||$(t)||Z(t))return r(t)?Kt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Kt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new _e(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==c))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function gc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if($(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Nt,Wt,Qt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var c,d=t[e],p="get"!==i?i:s(d)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():d,_=s(d)?l?re:te:$t;if(r(n)&&(~n.indexOf("random(")&&(n=ob(n)),"="===n.charAt(1)&&(!(c=ka(p,n)+(Ya(p)||0))&&0!==c||(n=c))),!f||p!==n||Wt)return isNaN(p*n)||""===n?(d||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,c,d,p,_=new _e(this._pt,t,e,0,1,ue,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(d=~(i+="").indexOf("random("))&&(i=ob(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?ka(c,l)-c:parseFloat(l)-c,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||d)&&(_.e=0),this._pt=_}.call(this,t,e,p,n,_,h||q.stringFilter,l)):(c=new _e(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof d?se:ae,0,_),l&&(c.fp=l),u&&c.modifier(u,this,t),this._pt=c)},Gt=function _initTween(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,b=m.onUpdate,x=m.onUpdateParams,k=m.callbackScope,M=m.runBackwards,O=m.yoyoEase,P=m.keyframes,A=m.autoRevert,C=t._dur,S=t._startAt,E=t._targets,D=t.parent,z=D&&"nested"===D.data?D.vars.targets:E,R="auto"===t._overwrite&&!B,F=t.timeline;if(!F||P&&g||(g="none"),t._ease=jt(g,V.ease),t._yEase=O?Yt(jt(!0===O?g:O,V.ease)):0,O&&t._yoyo&&!t._repeat&&(O=t._yEase,t._yEase=t._ease,t._ease=O),t._from=!F&&!!m.runBackwards,!F||P&&!m.stagger){if(p=(l=E[0]?fa(E[0]).harness:0)&&m[l.prop],i=ua(m,ft),S&&(S._zTime<0&&S.progress(1),e<0&&M&&y&&!A?S.render(-1,!0):S.revert(M&&C?ht:ut),S._lazy=0),v){if(za(t._startAt=Zt.set(E,qa({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!S&&w(T),startAt:null,delay:0,onUpdate:b,onUpdateParams:x,callbackScope:k,stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L||!y&&!A)&&t._startAt.revert(ht),y&&C&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(M&&C&&!S)if(e&&(y=!1),a=qa({overwrite:!1,data:"isFromStart",lazy:y&&!S&&w(T),immediateRender:y,stagger:0,parent:D},i),p&&(a[l.prop]=p),za(t._startAt=Zt.set(E,a)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L?t._startAt.revert(ht):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else _initTween(t._startAt,X,X);for(t._pt=t._ptCache=0,T=C&&w(T)||T&&!C,n=0;n<E.length;n++){if(h=(o=E[n])._gsap||ea(E)[n]._gsap,t._ptLookup[n]=c={},dt[h.id]&&ct.length&&ma(),d=z===E?n:z.indexOf(o),l&&!1!==(f=new l).init(o,p||i,t,d,z)&&(t._pt=s=new _e(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){c[t]=s}),f.priority&&(u=1)),!l||p)for(a in i)pt[a]&&(f=ac(a,i,t,d,o,z))?f.priority&&(u=1):c[a]=s=Qt.call(t,o,a,"get",i[a],d,z,0,m.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),R&&t._pt&&(Nt=t,I.killTweensOf(o,c,t.globalTime(e)),_=!t.parent,Nt=0),t._pt&&T&&(dt[h.id]=1)}u&&pe(t),t._onInit&&t._onInit(t)}t._onUpdate=b,t._initted=(!t._op||t._pt)&&!_,P&&e<=0&&F.render(U,!0,!0)},Kt=function _parseFuncOrString(t,e,i,n,a){return s(t)?t.call(e,i,n,a):r(t)&&~t.indexOf("random(")?ob(t):t},Jt=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ht={};ha(Jt+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Ht[t]=1});var Zt=function(z){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var s,o,u,h,l,f,c,d,p=(a=z.call(this,n?r:va(r))||this).vars,_=p.duration,m=p.delay,g=p.immediateRender,T=p.stagger,b=p.overwrite,x=p.keyframes,k=p.defaults,M=p.scrollTrigger,O=p.yoyoEase,P=r.parent||I,A=($(e)||Z(e)?t(e[0]):"length"in r)?[e]:Ot(e);if(a._targets=A.length?ea(A):R("GSAP target "+e+" not found. https://greensock.com",!q.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,x||T||y(_)||y(m)){if(r=a.vars,(s=a.timeline=new Xt({data:"nested",defaults:k||{},targets:P&&"nested"===P.data?P.vars.targets:A})).kill(),s.parent=s._dp=_assertThisInitialized(a),s._start=0,T||y(_)||y(m)){if(h=A.length,c=T&&eb(T),v(T))for(l in T)~Jt.indexOf(l)&&((d=d||{})[l]=T[l]);for(o=0;o<h;o++)(u=ua(r,Ht)).stagger=0,O&&(u.yoyoEase=O),d&&yt(u,d),f=A[o],u.duration=+Kt(_,_assertThisInitialized(a),o,f,A),u.delay=(+Kt(m,_assertThisInitialized(a),o,f,A)||0)-a._delay,!T&&1===h&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),s.to(f,u,c?c(o,f,A):0),s._ease=Bt.none;s.duration()?_=m=0:a.timeline=0}else if(x){va(qa(s.vars.defaults,{ease:"none"})),s._ease=jt(x.ease||r.ease||"none");var C,S,E,D=0;if($(x))x.forEach(function(t){return s.to(A,t,">")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||gc(l,x[l],u,x.easeEach);for(l in u)for(C=u[l].sort(function(t,e){return t.t-e.t}),o=D=0;o<C.length;o++)(E={ease:(S=C[o]).e,duration:(S.t-(o?C[o-1].t:0))/100*_})[l]=S.v,s.to(A,E,D),D+=E.duration;s.duration()<_&&s.to({},{duration:_-s.duration()})}}_||a.duration(_=s.duration())}else a.timeline=0;return!0!==b||B||(Nt=_assertThisInitialized(a),I.killTweensOf(A),Nt=0),Ka(P,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(g||!_&&!x&&a._start===ja(P._time)&&w(g)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==P.data)&&(a._tTime=-X,a.render(Math.max(0,-m)||0)),M&&La(_assertThisInitialized(a),M),a}_inheritsLoose(Tween,z);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c=this._time,d=this._tDur,p=this._dur,_=t<0,m=d-X<t&&!_?d:t<X?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=_){if(i=m,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*s+t,e,r);if(i=ja(m%s),m===d?(a=this._repeat,i=p):((a=~~(m/s))&&a===m/s&&(i=p,a--),p<i&&(i=p)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=Tt(this._tTime,s),i===c&&!r&&this._initted)return this._tTime=m,this;a!==o&&(l&&this._yEase&&Qb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(ja(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ma(this,_?t:i,r,e,m))return this._tTime=0,this;if(c!==this._time)return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),i&&!c&&!e&&!a&&(At(this,"onStart"),this._tTime!==m))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-X:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Ca(this,t,0,r),At(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&At(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Ca(this,t,0,!0),!t&&p||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||za(this,1),e||_&&!c||!(m||c||u)||(At(this,m===d?"onComplete":"onReverseComplete",!0),!this._prom||m<d&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!bt(t))||(t._ts<0||t._dp._ts<0)&&!bt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=kt(0,t._tDur,e),a=Tt(l,h),t._yoyo&&1&a&&(u=1-u),a!==Tt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||L||i||t._zTime===X||!e&&t._zTime){if(!t._initted&&Ma(t,e,i,r,l))return;for(s=t._zTime,t._zTime=e||(r?X:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;e<0&&Ca(t,e,0,!0),t._onUpdate&&!r&&At(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&At(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&za(t,1),r||L||(At(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),z.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i){d||Rt.wake(),this._ts||this.play();var n,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Gt(this,a),n=this._ease(a/this._dur),function _updatePropTweens(t,e,r,i,n,a,s){var o,u,h,l,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],h=t._ptLookup,l=t._targets.length;l--;){if((o=h[l][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Wt=1,t.vars[e]="+=0",Gt(t,s),Wt=0,1;f.push(o)}for(l=f.length;l--;)(o=(u=f[l])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+a*o.c:i,o.c=r-o.s,u.e&&(u.e=ia(r)+Ya(u.e)),u.b&&(u.b=o.s+Ya(u.b))}(this,t,e,r,i,n,a)?this.resetTo(t,e,r,i):(Ia(this,0),this.parent||xa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?tb(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Nt&&!0!==Nt.vars.overwrite)._first||tb(this),this.parent&&i!==this.timeline.totalDuration()&&Ra(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,c=t?Ot(t):f,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,c))return"all"===e&&(this._pt=0),tb(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~c.indexOf(f[l]))for(u in a=d[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ya(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&tb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Va(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Va(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Ut);qa(Zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){Zt[r]=function(){var t=new Xt,e=Mt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function oc(t,e,r){return t.setAttribute(e,r)}function wc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var $t=function _setterPlain(t,e,r){return t[e]=r},te=function _setterFunc(t,e,r){return t[e](r)},re=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},ne=function _getSetter(t,e){return s(t[e])?te:u(t[e])&&t.setAttribute?oc:$t},ae=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},se=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ue=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},he=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fe=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ce=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ya(this,i,"_pt"):i.dep||(e=1),i=r;return!e},pe=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},_e=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=wc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ae,this.d=s||this,this.set=o||$t,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=Zt,ot.TimelineLite=ot.TimelineMax=Xt,I=new Xt({sortChildren:!1,defaults:V,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),q.stringFilter=Fb;function Ec(t){return(ye[t]||Te).map(function(t){return t()})}function Fc(){var t=Date.now(),o=[];2<t-Me&&(Ec("matchMediaInit"),ge.forEach(function(t){var e,r,i,n,a=t.queries,s=t.conditions;for(r in a)(e=h.matchMedia(a[r]).matches)&&(i=1),e!==s[r]&&(s[r]=e,n=1);n&&(t.revert(),i&&o.push(t))}),Ec("matchMediaRevert"),o.forEach(function(t){return t.onMatch(t)}),Me=t,Ec("matchMedia"))}var me,ge=[],ye={},Te=[],Me=0,Oe=0,Pe=((me=Context.prototype).add=function add(t,i,n){function Ew(){var t,e=l,r=a.selector;return e&&e!==a&&e.data.push(a),n&&(a.selector=cb(n)),l=a,t=i.apply(a,arguments),s(t)&&a._r.push(t),l=e,a.selector=r,a.isReverted=!1,t}s(t)&&(n=i,i=t,t=s);var a=this;return a.last=Ew,t===s?Ew(a):t?a[t]=Ew:Ew},me.ignore=function ignore(t){var e=l;l=null,t(this),l=e},me.getTweens=function getTweens(){var e=[];return this.data.forEach(function(t){return t instanceof Context?e.push.apply(e,t.getTweens()):t instanceof Zt&&!(t.parent&&"nested"===t.parent.data)&&e.push(t)}),e},me.clear=function clear(){this._r.length=this.data.length=0},me.kill=function kill(e,t){var r=this;if(e){var i=this.getTweens();this.data.forEach(function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEac
27h(function(t){return i.splice(i.indexOf(t),1)}))}),i.map(function(t){return{g:t.globalTime(0),t:t}}).sort(function(t,e){return e.g-t.g||-1}).forEach(function(t){return t.t.revert(e)}),this.data.forEach(function(t){return t instanceof Xt?"nested"!==t.data&&t.kill():!(t instanceof Zt)&&t.revert&&t.revert(e)}),this._r.forEach(function(t){return t(e,r)}),this.isReverted=!0}else this.data.forEach(function(t){return t.kill&&t.kill()});if(this.clear(),t)for(var n=ge.length;n--;)ge[n].id===this.id&&ge.splice(n,1)},me.revert=function revert(t){this.kill(t||{})},Context);function Context(t,e){this.selector=e&&cb(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Oe++,t&&this.add(t)}var Ae,Ce=((Ae=MatchMedia.prototype).add=function add(t,e,r){v(t)||(t={matches:t});var i,n,a,s=new Pe(0,r||this.scope),o=s.conditions={};for(n in l&&!s.selector&&(s.selector=l.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t)"all"===n?a=1:(i=h.matchMedia(t[n]))&&(ge.indexOf(s)<0&&ge.push(s),(o[n]=i.matches)&&(a=1),i.addListener?i.addListener(Fc):i.addEventListener("change",Fc));return a&&e(s),this},Ae.revert=function revert(t){this.kill(t||{})}
vendor: 24,061 bytes, line 27
27,Ae.kill=function kill(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},MatchMedia);function MatchMedia(t){this.contexts=[],this.scope=t}var Se={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return wb(t)})},timeline:function timeline(t){return new Xt(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,n){r(i)&&(i=Ot(i)[0]);var a=fa(i||{}).get,s=e?pa:oa;return"native"===e&&(e=""),i?t?s((pt[t]&&pt[t].get||a)(i,t,e,n)):function(t,e,r){return s((pt[t]&&pt[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=Ot(r)).length){var n=r.map(function(t){return Ee.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=pt[e],o=fa(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&he(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function quickTo(t,i,e){function Wx(t,e,r){return n.resetTo(i,t,e,r)}var r,n=Ee.to(t,yt(((r={})[i]="+=0.1",r.paused=!0,r),e||{}));return Wx.tween=n,Wx},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=jt(t.ease,V.ease)),ta(V,t||{})},config:function config(t){return ta(q,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!pt[t]&&!ot[t]&&R(i+" effect requires "+t+" plugin.")}),_t[i]=function(t,e,r){return n(Ot(t),qa(e||{},a),r)},r&&(Xt.prototype[i]=function(t,e,r){return this.add(_t[i](t,v(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){Bt[t]=jt(e)},parseEase:function parseEase(t,e){return arguments.length?jt(t,e):Bt},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Xt(t);for(n.smoothChildTiming=w(t.smoothChildTiming),I.remove(n),n._dp=0,n._time=n._tTime=I._time,r=I._first;r;)i=r._next,!e&&!r._dur&&r instanceof Zt&&r.vars.onComplete===r._targets[0]||Ka(n,r,r._start-r._delay),r=i;return Ka(I,n,0),n},context:function context(t,e){return t?new Pe(t,e):l},matchMedia:function matchMedia(t){return new Ce(t)},matchMediaRefresh:function matchMediaRefresh(){return ge.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Fc()},addEventListener:function addEventListener(t,e){var r=ye[t]||(ye[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function removeEventListener(t,e){var r=ye[t],i=r&&r.indexOf(e);0<=i&&r.splice(i,1)},utils:{wrap:function wrap(e,t,r){var i=t-e;return $(e)?lb(e,wrap(0,e.length),t):Wa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return $(e)?lb(e,wrapYoyo(0,e.length-1),t):Wa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:eb,random:hb,snap:gb,normalize:function normalize(t,e,r){return Pt(t,e,0,1,r)},getUnit:Ya,clamp:function clamp(e,r,t){return Wa(t,function(t){return kt(e,r,t)})},splitColor:Ab,toArray:Ot,selector:cb,mapRange:Pt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ya(t))}},interpolate:function interpolate(e,i,t,n){var a=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!a){var s,o,u,h,l,f=r(e),c={};if(!0===t&&(n=1)&&(t=null),f)e={p:e},i={p:i};else if($(e)&&!$(i)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=i}else n||(e=yt($(e)?[]:{},e));if(!u){for(s in i)Qt.call(c,e,s,"get",i[s]);a=function func(t){return he(t,c)||(f?e.p:e)}}}return Wa(t,a)},shuffle:db},install:P,effects:_t,ticker:Rt,updateRoot:Xt.updateRoot,plugins:pt,globalTimeline:I,core:{PropTween:_e,globals:S,Tween:Zt,Timeline:Xt,Animation:Ut,getCache:fa,_removeLinkedListItem:ya,reverting:function reverting(){return L},context:function context(t){return t&&l&&(l.data.push(t),t._ctx=l),l},suppressOverwrites:function suppressOverwrites(t){return B=t}}};ha("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Se[t]=Zt[t]}),Rt.add(Xt.updateRoot),c=Se.to({},{duration:0});function Jc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function Lc(t,a){return{name:t,rawVars:1,init:function init(t,n,e){e._onInit=function(t){var e,i;if(r(n)&&(e={},ha(n,function(t){return e[t]=1}),n=e),a){for(i in e={},n)e[i]=a(n[i]);n=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=Jc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,n)}}}}var Ee=Se.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s,o;for(a in this.tween=r,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],i,n,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function render(t,e){for(var r=e._pt;r;)L?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Lc("roundProps",fb),Lc("modifiers"),Lc("snap",gb))||Se;Zt.version=Xt.version=Ee.version="3.12.1",o=1,x()&&Ft();function vd(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function wd(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function xd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function yd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function zd(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Ad(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Bd(t,e,r){return t.style[e]=r}function Cd(t,e,r){return t.style.setProperty(e,r)}function Dd(t,e,r){return t._gsap[e]=r}function Ed(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Fd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function Gd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function Jd(t,e){var r=this,i=this.target,n=i.style;if(t in ar&&n){if(this.tfm=this.tfm||{},"transform"===t)return cr.transform.split(",").forEach(function(t){return Jd.call(r,t,e)});if(~(t=cr[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=yr(i,t)}):this.tfm[t]=i._gsap.x?i._gsap[t]:yr(i,t),0<=this.props.indexOf(dr))return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(pr,e,"")),t=dr}(n||e)&&this.props.push(t,e,n[t])}function Kd(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function Ld(){var t,e,r=this.props,i=this.target,n=i.style,a=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(hr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(t=Ie())&&t.isStart||n[dr]||(Kd(n),a.uncache=1)}}function Md(t,e){var r={target:t,props:[],revert:Ld,save:Jd};return t._gsap||Ee.core.getCache(t),e&&e.split(",").forEach(function(t){return r.save(t)}),r}function Od(t,e){var r=ze.createElementNS?ze.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ze.createElement(t);return r.style?r:ze.createElement(t)}function Pd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(hr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&Pd(t,mr(e)||e,1)||""}function Sd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(De=window,ze=De.document,Re=ze.documentElement,Be=Od("div")||{style:{}},Od("div"),dr=mr(dr),pr=dr+"Origin",Be.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ye=!!mr("perspective"),Ie=Ee.core.reverting,Fe=1)}function Td(t){var e,r=Od("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(Re.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=Td}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),Re.removeChild(r),this.style.cssText=a,e}function Ud(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function Vd(e){var r;try{r=e.getBBox()}catch(t){r=Td.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===Td||(r=Td.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+Ud(e,["x","cx","x1"])||0,y:+Ud(e,["y","cy","y1"])||0,width:0,height:0}}function Wd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Vd(t))}function Xd(t,e){if(e){var r=t.style;e in ar&&e!==pr&&(e=dr),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(hr,"-$1").toLowerCase())):r.removeAttribute(e)}}function Yd(t,e,r,i,n,a){var s=new _e(t._pt,e,r,0,1,a?Ad:zd);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function _d(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=Be.style,f=lr.test(e),c="svg"===t.tagName.toLowerCase(),d=(c?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;return i===h||!u||gr[i]||gr[h]?u:("px"===h||p||(u=_d(t,e,r,"px")),o=t.getCTM&&Wd(t),!_&&"%"!==h||!ar[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(p?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!c?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ze&&a.appendChild||(a=ze.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Rt.time&&!s.uncache?ia(u/s.width*100):(!_&&"%"!==h||vr[Pd(a,"display")]||(l.position=Pd(t,"position")),a===t&&(l.position="static"),a.appendChild(Be),n=Be[d],a.removeChild(Be),l.position="absolute",f&&_&&((s=fa(a)).time=Rt.time,s.width=a[d]),ia(p?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[d],ia(_?u/n*100:u/100*n)))}function be(t,e,r,i){if(!r||"none"===r){var n=mr(e,t,1),a=n&&Pd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=Pd(t,"borderTopColor"))}var s,o,u,h,l,f,c,d,p,_,m,g=new _e(this._pt,t.style,e,0,1,ue),v=0,y=0;if(g.b=r,g.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=Pd(t,e)||i,t.style[e]=r),Fb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)c=o[0],p=i.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),c!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===c.charAt(1)&&(c=ka(h,c)+m),d=parseFloat(c),_=c.substr((d+"").length),v=rt.lastIndex-_.length,_||(_=_||q.units[e]||m,v===i.length&&(i+=_,g.e+=_)),m!==_&&(h=_d(t,e,f,_)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:d-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?Ad:zd;return nt.test(i)&&(g.e=0),this._pt=g}function de(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=Tr[r]||r,e[1]=Tr[i]||i,e.join(" ")}function ee(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],ar[r]&&(i=1,r="transformOrigin"===r?pr:dr),Xd(a,r);i&&(Xd(a,dr),u&&(u.svg&&a.removeAttribute("transform"),kr(a,1),u.uncache=1,Kd(s)))}}function ie(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function je(t){var e=Pd(t,dr);return ie(e)?wr:e.substr(7).match(et).map(ia)}function ke(t,e){var r,i,n,a,s=t._gsap||fa(t),o=t.style,u=je(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?wr:u:(u!==wr||t.offsetParent||t===Re||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextElementSibling,Re.appendChild(t)),u=je(t),n?o.display=n:Xd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):Re.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function le(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||ke(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,d=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==wr&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=Vd(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-c,h.xOffset=d+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[pr]="0px 0px",a&&(Yd(a,h,"xOrigin",f,w),Yd(a,h,"yOrigin",c,x),Yd(a,h,"xOffset",d,h.xOffset),Yd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function oe(t,e,r){var i=Ya(e);return ia(parseFloat(e)+parseFloat(_d(t,"x",r+"px",i)))+i}function ve(t,e,i,n,a){var s,o,u=360,h=r(a),l=parseFloat(a)*(h&&~a.indexOf("rad")?sr:1)-n,f=n+l+"deg";return h&&("short"===(s=a.split("_")[1])&&(l%=u)!==l%180&&(l+=l<0?u:-u),"cw"===s&&l<0?l=(l+36e9)%u-~~(l/u)*u:"ccw"===s&&0<l&&(l=(l-36e9)%u-~~(l/u)*u)),t._pt=o=new _e(t._pt,e,i,n,l,wd),o.e=f,o.u="deg",t._props.push(i),o}function we(t,e){for(var r in e)t[r]=e[r];return t}function xe(t,e,r){var i,n,a,s,o,u,h,l=we({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[dr]=e,i=kr(r,1),Xd(r,dr),r.setAttribute("transform",a)):(a=getComputedStyle(r)[dr],f[dr]=e,i=kr(r,1),f[dr]=a),ar)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ya(a)!==(h=Ya(s))?_d(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new _e(t._pt,i,n,o,u-o,vd),t._pt.u=h||0,t._props.push(n));we(i,l)}var De,ze,Re,Fe,Be,Le,Ie,Ye,qe=Bt.Power0,Ve=Bt.Power1,Ue=Bt.Power2,Xe=Bt.Power3,Ne=Bt.Power4,We=Bt.Linear,Qe=Bt.Quad,Ge=Bt.Cubic,Ke=Bt.Quart,Je=Bt.Quint,He=Bt.Strong,Ze=Bt.Elastic,$e=Bt.Back,tr=Bt.SteppedEase,er=Bt.Bounce,rr=Bt.Sine,ir=Bt.Expo,nr=Bt.Circ,ar={},sr=180/Math.PI,or=Math.PI/180,ur=Math.atan2,hr=/([A-Z])/g,lr=/(left|right|width|margin|padding|x)/i,fr=/[\\s,\\(]\\S/,cr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},dr="transform",pr=dr+"Origin",_r="O,Moz,ms,Ms,Webkit".split(","),mr=function _checkPropPrefix(t,e,r){var i=(e||Be).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(_r[n]+t in i););return n<0?null:(3===n?"ms":0<=n?_r[n]:"")+t},gr={deg:1,rad:1,turn:1},vr={grid:1,flex:1},yr=function _get(t,e,r,i){var n;return Fe||Sd(),e in cr&&"transform"!==e&&~(e=cr[e]).indexOf(",")&&(e=e.split(",")[0]),ar[e]&&"transform"!==e?(n=kr(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Mr(Pd(t,pr))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=br[e]&&br[e](t,e,r)||Pd(t,e)||ga(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?_d(t,e,n,r)+r:n},Tr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},br={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new _e(t._pt,e,r,0,0,ee);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},wr=[1,0,0,1,0,0],xr={},kr=function _parseTransform(t,e){var r=t._gsap||new Vt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w,x,k,M,O,P,A,C,S,E,D,z,R,F=t.style,B=r.scaleX<0,L="deg",I=getComputedStyle(t),Y=Pd(t,pr)||"0";return i=n=a=u=h=l=f=c=d=0,s=o=1,r.svg=!(!t.getCTM||!Wd(t)),I.translate&&("none"===I.translate&&"none"===I.scale&&"none"===I.rotate||(F[dr]=("none"!==I.translate?"translate3d("+(I.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==I.rotate?"rotate("+I.rotate+") ":"")+("none"!==I.scale?"scale("+I.scale.split(" ").join(",")+") ":"")+("none"!==I[dr]?I[dr]:"")),F.scale=F.rotate=F.translate="none"),m=ke(t,r.svg),r.svg&&(O=r.uncache?(P=t.getBBox(),Y=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),le(t,O||Y,!!O||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==wr&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=M=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?ur(b,T)*sr:0,(f=w||x?ur(w,x)*sr+u:0)&&(o*=Math.abs(Math.cos(f*or))),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(R=m[6],D=m[7],C=m[8],S=m[9],E=m[10],z=m[11],i=m[12],n=m[13],a=m[14],h=(g=ur(R,E))*sr,g&&(O=k*(v=Math.cos(-g))+C*(y=Math.sin(-g)),P=M*v+S*y,A=R*v+E*y,C=k*-y+C*v,S=M*-y+S*v,E=R*-y+E*v,z=D*-y+z*v,k=O,M=P,R=A),l=(g=ur(-w,E))*sr,g&&(v=Math.cos(-g),z=x*(y=Math.sin(-g))+z*v,T=O=T*v-C*y,b=P=b*v-S*y,w=A=w*v-E*y),u=(g=ur(b,T))*sr,g&&(O=T*(v=Math.cos(g))+b*(y=Math.sin(g)),P=k*v+M*y,b=b*v-T*y,M=M*v-k*y,T=O,k=P),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ia(Math.sqrt(T*T+b*b+w*w)),o=ia(Math.sqrt(M*M+R*R)),g=ur(k,M),f=2e-4<Math.abs(g)?g*sr:0,d=z?1/(z<0?-z:z):0),r.svg&&(O=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ie(Pd(t,dr)),O&&t.setAttribute("transform",O))),90<Math.abs(f)&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ia(s),r.scaleY=ia(o),r.rotation=ia(u)+L,r.rotationX=ia(h)+L,r.rotationY=ia(l)+L,r.skewX=f+L,r.skewY=c+L,r.transformPerspective=d+"px",(r.zOrigin=parseFloat(Y.split(" ")[2])||0)&&(F[pr]=Mr(Y)),r.xOffset=r.yOffset=0,r.force3D=q.force3D,r.renderTransform=r.svg?Er:Ye?Sr:Or,r.uncache=0,r},Mr=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Or=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Sr(t,e)},Pr="0deg",Ar="0px",Cr=") ",Sr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,c=r.skewY,d=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==Pr||h!==Pr)){var b,w=parseFloat(h)*or,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*or,b=Math.cos(w),a=oe(g,a,x*b*-v),s=oe(g,s,-Math.sin(w)*-v),o=oe(g,o,k*b*-v+v)}_!==Ar&&(y+="perspective("+_+Cr),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Ar&&s===Ar&&o===Ar||(y+=o!==Ar||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Cr),u!==Pr&&(y+="rotate("+u+Cr),h!==Pr&&(y+="rotateY("+h+Cr),l!==Pr&&(y+="rotateX("+l+Cr),f===Pr&&c===Pr||(y+="skew("+f+", "+c+Cr),1===d&&1===p||(y+="scale("+d+", "+p+Cr),g.style[dr]=y||"translate(0, 0)"},Er=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,d=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);c=parseFloat(c),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),c+=p),c||d?(c*=or,d*=or,r=Math.cos(c)*_,i=Math.sin(c)*_,n=Math.sin(c-d)*-m,a=Math.cos(c-d)*m,d&&(p*=or,s=Math.tan(d-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=ia(r),i=ia(i),n=ia(n),a=ia(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=_d(g,"x",l,"px"),k=_d(g,"y",f,"px")),(v||y||T||b)&&(x=ia(x+v-(v*r+y*n)+T),k=ia(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=ia(x+u/100*s.width),k=ia(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[dr]=s)};ha("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});br[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return yr(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var Dr,zr,Rr,Fr={name:"css",register:Sd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,i,n,a){var s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w=this._props,x=t.style,k=i.vars.startAt;for(c in Fe||Sd(),this.styles=this.styles||Md(t),b=this.styles.props,this.tween=i,e)if("autoRound"!==c&&(o=e[c],!pt[c]||!ac(c,e,i,n,t,a)))if(l=typeof o,f=br[c],"function"===l&&(l=typeof(o=o.call(i,n,t,a))),"string"===l&&~o.indexOf("random(")&&(o=ob(o)),f)f(this,t,c,o,i)&&(T=1);else if("--"===c.substr(0,2))s=(getComputedStyle(t).getPropertyValue(c)+"").trim(),o+="",Dt.lastIndex=0,Dt.test(s)||(d=Ya(s),p=Ya(o)),p?d!==p&&(s=_d(t,c,s,p)+p):d&&(o+=d),this.add(x,"setProperty",s,o,n,a,0,0,c),w.push(c),b.push(c,0,x[c]);else if("undefined"!==l){if(k&&c in k?(s="function"==typeof k[c]?k[c].call(i,n,t,a):k[c],r(s)&&~s.indexOf("random(")&&(s=ob(s)),Ya(s+"")||(s+=q.units[c]||Ya(yr(t,c))||""),"="===(s+"").charAt(1)&&(s=yr(t,c))):s=yr(t,c),h=parseFloat(s),(_="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),u=parseFloat(o),c in cr&&("autoAlpha"===c&&(1===h&&"hidden"===yr(t,"visibility")&&u&&(h=0),b.push("visibility",0,x.visibility),Yd(this,x,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==c&&"transform"!==c&&~(c=cr[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in ar)if(this.styles.save(c),g||((v=t._gsap).renderTransform&&!e.parseTransform||kr(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new _e(this._pt,x,dr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new _e(this._pt,v,"scaleY",v.scaleY,(_?ka(v.scaleY,_+u):u)-v.scaleY||0,vd),this._pt.u=0,w.push("scaleY",c),c+="X";else{if("transformOrigin"===c){b.push(pr,0,x[pr]),o=de(o),v.svg?le(t,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Yd(this,v,"zOrigin",v.zOrigin,p),Yd(this,x,c,Mr(s),Mr(o)));continue}if("svgOrigin"===c){le(t,o,1,y,0,this);continue}if(c in xr){ve(this,v,c,h,_?ka(h,_+o):o);continue}if("smoothOrigin"===c){Yd(this,v,"smooth",v.smooth,o);continue}if("force3D"===c){v[c]=o;continue}if("transform"===c){xe(this,o,t);continue}}else c in x||(c=mr(c)||c);if(m||(u||0===u)&&(h||0===h)&&!fr.test(o)&&c in x)u=u||0,(d=(s+"").substr((h+"").length))!==(p=Ya(o)||(c in q.units?q.units[c]:d))&&(h=_d(t,c,s,p)),this._pt=new _e(this._pt,m?v:x,c,h,(_?ka(h,_+u):u)-h,m||"px"!==p&&"zIndex"!==c||!1===e.autoRound?vd:yd),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=xd);else if(c in x)be.call(this,t,c,s,_?_+o:o);else if(c in t)this.add(t,c,s||t[c],_?_+o:o,n,a);else if("parseTransform"!==c){Q(c,o);continue}m||(c in x?b.push(c,0,x[c]):b.push(c,1,s||t[c])),w.push(c)}T&&pe(this)},render:function render(t,e){if(e.tween._time||!Ie())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:yr,aliases:cr,getSetter:function getSetter(t,e,r){var i=cr[e];return i&&i.indexOf(",")<0&&(e=i),e in ar&&e!==pr&&(t._gsap.x||yr(t,"x"))?r&&Le===r?"scale"===e?Ed:Dd:(Le=r||{})&&("scale"===e?Fd:Gd):t.style&&!u(t.style[e])?Bd:~e.indexOf("-")?Cd:ne(t,e)},core:{_removeProperty:Xd,_getMatrix:ke}};Ee.utils.checkPrefix=mr,Ee.core.getStyleSaver=Md,Rr=ha((Dr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(zr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){ar[t]=1}),ha(zr,function(t){q.units[t]="deg",xr[t]=1}),cr[Rr[13]]=Dr+","+zr,ha("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");cr[e[1]]=Rr[e[0]]}),ha("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){q.units[t]="px"}),Ee.registerPlugin(Fr);var Br=Ee.registerPlugin(Fr)||Ee,Lr=Br.core.Tween;e.Back=$e,e.Bounce=er,e.CSSPlugin=Fr,e.Circ=nr,e.Cubic=Ge,e.Elastic=Ze,e.Expo=ir,e.Linear=We,e.Power0=qe,e.Power1=Ve,e.Power2=Ue,e.Power3=Xe,e.Power4=Ne,e.Quad=Qe,e.Quart=Ke,e.Quint=Je,e.Sine=rr,e.SteppedEase=tr,e.Strong=He,e.TimelineLite=Xt,e.TimelineMax=Xt,e.TweenLite=Zt,e.TweenMax=Lr,e.default=Br,e.g
vendor: 13,247 bytes, lines 27-434
27sap=Br;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});
28
29`},5423:function(t){t.exports=`(function (root, factory) {
30  if (typeof define === 'function' && define.amd) {
31    // AMD. Register as an anonymous module unless amdModuleId is set
32    define(["jquery"], function (a0) {
33      return (root['Intercooler'] = factory(a0));
34    });
35  } else if (typeof module === 'object' && module.exports) {
36    // Node. Does not work with strict CommonJS, but
37    // only CommonJS-like environments that support module.exports,
38    // like Node.
39    module.exports = factory(require("jquery"));
40  } else {
41    root['Intercooler'] = factory(root["jQuery"]);
42  }
43}(this, function ($) {
44
45////////////////////////////////////
46
47/**
48 * Intercooler.js - there is no need to be upset.
49 */
50var Intercooler = Intercooler || (function() {
51  'use strict'; // inside function for better merging
52
53  // work around zepto build issue TODO - fix me
54  if((typeof Zepto !== "undefined") && ($ == null)) {
55    window["$"] = Zepto
56  }
57
58  //--------------------------------------------------
59  // Vars
60  //--------------------------------------------------
61  var USE_DATA = $('meta[name="intercoolerjs:use-data-prefix"]').attr("content") == "true";
62  var USE_ACTUAL_HTTP_METHOD = $('meta[name="intercoolerjs:use-actual-http-method"]').attr("content") == "true";
63
64  var _MACROS = $.map(['ic-get-from', 'ic-post-to', 'ic-put-to', 'ic-patch-to', 'ic-delete-from',
65                       'ic-style-src', 'ic-attr-src', 'ic-prepend-from', 'ic-append-from', 'ic-action'],
66                      function(elt){ return fixICAttributeName(elt) });
67
68  var _scrollHandler = null;
69  var _UUID = 1;
70  var _readyHandlers = [];
71
72  var _isDependentFunction = function(src, dest) {
73    if (!src || !dest) {
74      return false;
75    }
76
77    // For two urls to be considered dependant, either one must contain all
78    // of the path arguments the other has, like so:
79    //  - chomp off everything after ? or #. This is a design decision, so this
80    //    function will fail to determine dependencies for sites that store
81    //    their model IDs in query/hash params. If your usecase is not covered
82    //    by this you need to implement this function yourself by overriding
83    //    Intercooler.setIsDependentFunction(function(src, dest) { return bool; });
84    //  - split by / to get the individual path elements, clear out empty values,
85    //    then simply compare them
86    var asrc = src.split(/[\\?#]/, 1)[0].split("/").filter(function(e) {
87      return e != "";
88    });
89
90    var adest = dest.split(/[\\?#]/, 1)[0].split("/").filter(function(e) {
91      return e != "";
92    });
93
94    // ignore purely local tags (local transport)
95    if (asrc == "" || adest == "") {
96      return false;
97    }
98    return adest.slice(0, asrc.length).join("/") == asrc.join("/") ||
99      asrc.slice(0, adest.length).join("/") == adest.join("/");
100  };
101
102  //============================================================
103  // Base Swap Definitions
104  //============================================================
105  function remove(elt) {
106    elt.remove();
107  }
108
109  function showIndicator(elt) {
110    if (elt.closest('.ic-use-transition').length > 0) {
111      elt.data('ic-use-transition', true);
112      elt.removeClass('ic-use-transition');
113    } else {
114      elt.show();
115    }
116  }
117
118  function hideIndicator(elt) {
119    if (elt.data('ic-use-transition') || elt.data('ic-indicator-cleared')) {
120      elt.data('ic-use-transition', null);
121      elt.addClass('ic-use-transition');
122      elt.data('ic-indicator-cleared', true);
123    } else {
124      elt.hide();
125    }
126  }
127
128  function fixICAttributeName(s) {
129    if (USE_DATA) {
130      return 'data-' + s;
131    } else {
132      return s;
133    }
134  }
135
136  function getICAttribute(element, attributeName) {
137    return element.attr(fixICAttributeName(attributeName));
138  }
139
140  function setICAttribute(element, attributeName, attributeValue) {
141    element.attr(fixICAttributeName(attributeName), attributeValue);
142  }
143
144  function prepend(parent, responseContent) {
145    try {
146      parent.prepend(responseContent);
147    } catch (e) {
148      log(parent, formatError(e), "ERROR");
149    }
150    if (getICAttribute(parent, 'ic-limit-children')) {
151      var limit = parseInt(getICAttribute(parent, 'ic-limit-children'));
152      if (parent.children().length > limit) {
153        parent.children().slice(limit, parent.children().length).remove();
154      }
155    }
156  }
157
158  function append(parent, responseContent) {
159    try {
160      parent.append(responseContent);
161    } catch (e) {
162      log(parent, formatError(e), "ERROR");
163    }
164    if (getICAttribute(parent, 'ic-limit-children')) {
165      var limit = parseInt(getICAttribute(parent, 'ic-limit-children'));
166      if (parent.children().length > limit) {
167        parent.children().slice(0, parent.children().length - limit).remove();
168      }
169    }
170  }
171
172  //============================================================
173  // Utility Methods
174  //============================================================
175  function triggerEvent(elt, event, args){
176    if($.zepto) {
177      event = event.split(".").reverse().join(":");
178    }
179    elt.trigger(event, args);
180  }
181
182  function log(elt, msg, level) {
183    if (elt == null) {
184      elt = $('body');
185    }
186    triggerEvent(elt, "log.ic", [msg, level, elt]);
187    if (level == "ERROR") {
188      if (window.console) {
189        window.console.log("Intercooler Error : " + msg);
190      }
191      var errorUrl = closestAttrValue($('body'), 'ic-post-errors-to');
192      if (errorUrl) {
193        $.post(errorUrl, {'error': msg});
194      }
195    }
196  }
197
198  function uuid() {
199    return _UUID++;
200  }
201
202  function icSelectorFor(elt) {
203    return getICAttributeSelector("ic-id='" + getIntercoolerId(elt) + "'");
204  }
205
206  function parseInterval(str) {
207    log(null, "POLL: Parsing interval string " + str, 'DEBUG');
208    if (str == "null" || str == "false" || str == "") {
209      return null;
210    } else if (str.lastIndexOf("ms") == str.length - 2) {
211      return parseFloat(str.substr(0, str.length - 2));
212    } else if (str.lastIndexOf("s") == str.length - 1) {
213      return parseFloat(str.substr(0, str.length - 1)) * 1000;
214    } else {
215      return 1000;
216    }
217  }
218
219  function getICAttributeSelector(attribute) {
220    return "[" + fixICAttributeName(attribute) + "]";
221  }
222
223  function initScrollHandler() {
224    if (_scrollHandler == null) {
225      _scrollHandler = function() {
226        $(getICAttributeSelector("ic-trigger-on='scrolled-into-view'")).each(function() {
227          var _this = $(this);
228          if (isScrolledIntoView(getTriggeredElement(_this)) && _this.data('ic-scrolled-into-view-loaded') != true) {
229            _this.data('ic-scrolled-into-view-loaded', true);
230            fireICRequest(_this);
231          }
232        });
233      };
234      $(window).scroll(_scrollHandler);
235    }
236  }
237
238  function currentUrl() {
239    return window.location.pathname + window.location.search + window.location.hash;
240  }
241
242  // taken from turbolinks.js
243  function createDocument(html) {
244    var doc = null;
245    if (/<(html|body)/i.test(html)) {
246      doc = document.documentElement.cloneNode();
247      doc.innerHTML = html;
248    } else {
249      doc = document.documentElement.cloneNode(true);
250      doc.querySelector('body').innerHTML = html;
251    }
252    return $(doc);
253  }
254
255  //============================================================
256  // Request/Parameter/Include Processing
257  //============================================================
258  function getTarget(elt) {
259    return getTargetImpl(elt, 'ic-target')
260  }
261
262  function getTargetImpl(elt, attibuteName) {
263    var closest = $(elt).closest(getICAttributeSelector(attibuteName));
264    var targetValue = getICAttribute(closest, attibuteName);
265    if (targetValue == 'this') {
266      return closest;
267    } else if (targetValue && targetValue.indexOf('this.') != 0) {
268      if (targetValue.indexOf('closest ') == 0) {
269        return elt.closest(targetValue.substr(8));
270      } else if (targetValue.indexOf('find ') == 0) {
271        return elt.find(targetValue.substr(5));
272      } else {
273        return $(targetValue);
274      }
275    } else {
276      return elt;
277    }
278  }
279
280  function processHeaders(elt, xhr) {
281    elt = $(elt);
282    triggerEvent(elt, "beforeHeaders.ic", [elt, xhr]);
283    log(elt, "response headers: " + xhr.getAllResponseHeaders(), "DEBUG");
284    var target = null;
285
286    // set page title by header
287    if (xhr.getResponseHeader("X-IC-Title")) {
288      document.title = xhr.getResponseHeader("X-IC-Title");
289    }
290
291    if (xhr.getResponseHeader("X-IC-Title-Encoded")) {
292      var decodedTitle = decodeURIComponent((xhr.getResponseHeader("X-IC-Title-Encoded")).replace(/\\+/g, '%20'));
293      document.title = decodedTitle;
294    }
295
296    if (xhr.getResponseHeader("X-IC-Refresh")) {
297      var pathsToRefresh = xhr.getResponseHeader("X-IC-Refresh").split(",");
298      log(elt, "X-IC-Refresh: refreshing " + pathsToRefresh, "DEBUG");
299      $.each(pathsToRefresh, function(i, str) {
300        refreshDependencies(str.replace(/ /g, ""), elt);
301      });
302    }
303
304    if (xhr.getResponseHeader("X-IC-Script")) {
305      log(elt, "X-IC-Script: evaling " + xhr.getResponseHeader("X-IC-Script"), "DEBUG");
306      globalEval(xhr.getResponseHeader("X-IC-Script"), [["elt", elt]]);
307    }
308
309    if (xhr.getResponseHeader("X-IC-Redirect")) {
310      log(elt, "X-IC-Redirect: redirecting to " + xhr.getResponseHeader("X-IC-Redirect"), "DEBUG");
311      window.location = xhr.getResponseHeader("X-IC-Redirect");
312    }
313
314    if (xhr.getResponseHeader("X-IC-CancelPolling") == "true") {
315      cancelPolling(elt.closest(getICAttributeSelector('ic-poll')));
316    }
317
318    if (xhr.getResponseHeader("X-IC-ResumePolling") == "true") {
319      var pollingElt = elt.closest(getICAttributeSelector('ic-poll'));
320      setICAttribute(pollingElt, 'ic-pause-polling', null);
321      startPolling(pollingElt);
322    }
323
324    if (xhr.getResponseHeader("X-IC-SetPollInterval")) {
325      var pollingElt = elt.closest(getICAttributeSelector('ic-poll'));
326      cancelPolling(pollingElt);
327      setICAttribute(pollingElt, 'ic-poll', xhr.getResponseHeader("X-IC-SetPollInterval"));
328      startPolling(pollingElt);
329    }
330
331    if (xhr.getResponseHeader("X-IC-Open")) {
332      log(elt, "X-IC-Open: opening " + xhr.getResponseHeader("X-IC-Open"), "DEBUG");
333      window.open(xhr.getResponseHeader("X-IC-Open"));
334    }
335
336    var triggerValue = xhr.getResponseHeader("X-IC-Trigger");
337    if (triggerValue) {
338      log(elt, "X-IC-Trigger: found trigger " + triggerValue, "DEBUG");
339      target = getTarget(elt);
340      // Deprecated API
341      if (xhr.getResponseHeader("X-IC-Trigger-Data")) {
342        var triggerArgs = $.parseJSON(xhr.getResponseHeader("X-IC-Trigger-Data"));
343        triggerEvent(target, triggerValue, triggerArgs);
344      } else {
345        if (triggerValue.indexOf("{") >= 0) {
346          $.each($.parseJSON(triggerValue), function(event, args) {
347            triggerEvent(target, event, args);
348          });
349        } else {
350          triggerEvent(target, triggerValue, []);
351        }
352      }
353    }
354
355    var localVars = xhr.getResponseHeader("X-IC-Set-Local-Vars");
356    if (localVars) {
357      $.each($.parseJSON(localVars), function(key, val) {
358        localStorage.setItem(key, val);
359      });
360    }
361
362    if (xhr.getResponseHeader("X-IC-Remove")) {
363      if (elt) {
364        var removeVal = xhr.getResponseHeader("X-IC-Remove");
365        removeVal += ''; // normalize as string for zapto
366        var removeValAsInterval = parseInterval(removeVal);
367        log(elt, "X-IC-Remove header found.", "DEBUG");
368        target = getTarget(elt);
369        if(removeVal == "true" || removeValAsInterval == null) {
370          remove(target);
371        } else {
372          target.addClass('ic-removing');
373          setTimeout(function () {
374            remove(target);
375          }, removeValAsInterval);
376        }
377      }
378    }
379
380    triggerEvent(elt, "afterHeaders.ic", [elt, xhr]);
381
382    return true;
383  }
384
385
386  function beforeRequest(elt) {
387    elt.addClass('disabled');
388    elt.addClass('ic-request-in-flight');
389    elt.data('ic-request-in-flight', true);
390  }
391
392  function requestCleanup(indicator, globalIndicator, elt) {
393    if (indicator.length > 0) {
394      hideIndicator(indicator);
395    }
396    if (globalIndicator.length > 0) {
397      hideIndicator(globalIndicator);
398    }
399    elt.removeClass('disabled');
400    elt.removeClass('ic-request-in-flight');
401    elt.data('ic-request-in-flight', false);
402    if (elt.data('ic-next-request')) {
403      elt.data('ic-next-request')["req"]();
404      elt.data('ic-next-request', null);
405    }
406  }
407
408  function replaceOrAddMethod(data, actualMethod) {
409    if ($.type(data) === "string") {
410      var regex = /(&|^)_method=[^&]*/;
411      var content = "&_method=" + actualMethod;
412      if (regex.test(data)) {
413        return data.replace(regex, content)
414      } else {
415        return data + content;
416      }
417    } else {
418      data.append("_method", actualMethod);
419      return data;
420    }
421  }
422
423  /*
424    Is the provided text a valid JavaScript identifier path?
425
426    We should also probably check if an identifier is a JavaScript keyword here.
427  */
428  function isIdentifier(txt) {
429    return /^[$A-Z_][0-9A-Z_$]*$/i.test(txt);
430  }
431
432  /*
433    Evaluate a script snippet provided by the user.
434
435    script: A string. If this is an identifier, it is assumed to be a callable, retrieved from the
436    global namespace, and called. If it is a compound statement, it is evaluated using eval.
437    args: A list of [name, value] tuples. These will be injected into the namespace of evaluated
438    scripts, and be passed as arguments to safe evaluations.
439  */
440  // It would be nice to use the spread operator here globalEval(script, ...args) - but it breaks
441  // uglify and isn't supported in some older browsers.
442  function globalEval(script, args) {
443    var names = [];
444    var values = [];
445    if (args) {
446      for (var i = 0; i < args.length; i++) {
447        names.push(args[i][0]);
448        values.push(args[i][1]);
449      }
450    }
451    if (isIdentifier(script)) {
452      return window[script].apply(this, values);
453    } else {
454      var outerfunc  = window["eval"].call(
455        window,
456        '(function (' + names.join(", ") + ') {' + script + '})'
457      );
458      return outerfunc.apply(this, values);
459    }
460  }
461
462  function closestAttrValue(elt, attr) {
463    var closestElt = $(elt).closest(getICAttributeSelector(attr));
464    if (closestElt.length > 0) {
465      return getICAttribute(closestElt, attr);
466    } else {
467      return null;
468    }
469  }
470
471  function formatError(e) {
472    var msg = e.toString() + "\\n";
473    try {
474      msg += e.stack;
475    } catch (e) {
476      // ignore
477    }
478    return msg;
479  }
480
481  function getLocalURL(baseURL, paramsToPush, data) {
482    if (paramsToPush) {
483      baseURL = baseURL + "?";
484      var vars = {};
485      data.replace(/([^=&]+)=([^&]*)/gi, function(m,key,value) {
486        vars[key] = value;
487      });
488      $(paramsToPush.split(",")).each(function(index) {
489        var param = $.trim(this);
490        var value = vars[param] || "";
491        baseURL += (index == 0) ? "" : "&";
492        baseURL += param + "=" + value;
vendor: 40,702 bytes, lines 492-1747
492
493      });
494    }
495    return baseURL;
496  }
497
498  function handleRemoteRequest(elt, type, url, data, success) {
499
500    beforeRequest(elt);
501
502    data = replaceOrAddMethod(data, type);
503
504    // Global spinner support
505    var globalIndicator = findGlobalIndicator(elt);
506    if (globalIndicator && globalIndicator.length > 0) {
507      showIndicator(globalIndicator);
508    }
509
510    // Spinner support
511    var indicator = findIndicator(elt);
512    if (indicator.length > 0) {
513      showIndicator(indicator);
514    }
515
516    var requestId = uuid();
517    var requestStart = new Date();
518    var actualRequestType;
519    if(USE_ACTUAL_HTTP_METHOD) {
520      actualRequestType = type;
521    } else {
522      actualRequestType = type == 'GET' ? 'GET' : 'POST';
523    }
524
525    var ajaxSetup = {
526      type: actualRequestType,
527      url: url,
528      data: data,
529      dataType: 'text',
530      headers: {
531        "Accept": "text/html-partial, */*; q=0.9",
532        "X-IC-Request": true,
533        "X-HTTP-Method-Override": type
534      },
535      beforeSend: function(xhr, settings) {
536        triggerEvent(elt, "beforeSend.ic", [elt, data, settings, xhr, requestId]);
537        log(elt, "before AJAX request " + requestId + ": " + type + " to " + url, "DEBUG");
538        var onBeforeSend = closestAttrValue(elt, 'ic-on-beforeSend');
539        if (onBeforeSend) {
540          globalEval(onBeforeSend, [["elt", elt], ["data", data], ["settings", settings], ["xhr", xhr]]);
541        }
542        maybeInvokeLocalAction(elt, "-beforeSend");
543      },
544      success: function(responseData, textStatus, xhr) {
545        triggerEvent(elt, "success.ic", [elt, responseData, textStatus, xhr, requestId]);
546        log(elt, "AJAX request " + requestId + " was successful.", "DEBUG");
547        var onSuccess = closestAttrValue(elt, 'ic-on-success');
548        if (onSuccess) {
549          if (globalEval(onSuccess, [["elt", elt], ["data", responseData], ["textStatus", textStatus], ["xhr", xhr]]) == false) {
550            return;
551          }
552        }
553
554        var beforeHeaders = new Date();
555        var oldTitle = document.title;
556        try {
557          if (processHeaders(elt, xhr)) {
558            log(elt, "Processed headers for request " + requestId + " in " + (new Date() - beforeHeaders) + "ms", "DEBUG");
559            var beforeSuccess = new Date();
560
561            if (xhr.getResponseHeader("X-IC-PushURL") || closestAttrValue(elt, 'ic-push-url') == "true") {
562              try {
563                requestCleanup(indicator, globalIndicator, elt); // clean up before snap-shotting HTML
564                var baseURL = closestAttrValue(elt, 'ic-src');
565                var paramsToPush = closestAttrValue(elt, 'ic-push-params');
566                var newUrl = xhr.getResponseHeader("X-IC-PushURL") || getLocalURL(baseURL, paramsToPush, data);
567                if(_history) {
568                  _history.snapshotForHistory(newUrl, oldTitle);
569                } else {
570                  throw "History support not enabled";
571                }
572              } catch (e) {
573                log(elt, "Error during history snapshot for " + requestId + ": " + formatError(e), "ERROR");
574              }
575            }
576
577            success(responseData, textStatus, elt, xhr);
578
579            log(elt, "Process content for request " + requestId + " in " + (new Date() - beforeSuccess) + "ms", "DEBUG");
580          }
581          triggerEvent(elt, "after.success.ic", [elt, responseData, textStatus, xhr, requestId]);
582          maybeInvokeLocalAction(elt, "-success");
583        } catch (e) {
584          log(elt, "Error processing successful request " + requestId + " : " + formatError(e), "ERROR");
585        }
586      },
587      error: function(xhr, status, str) {
588        triggerEvent(elt, "error.ic", [elt, status, str, xhr]);
589        var onError = closestAttrValue(elt, 'ic-on-error');
590        if (onError) {
591          globalEval(onError, [["elt", elt], ["status", status], ["str", str], ["xhr", xhr]]);
592        }
593        processHeaders(elt, xhr);
594        maybeInvokeLocalAction(elt, "-error");
595        log(elt, "AJAX request " + requestId + " to " + url + " experienced an error: " + str, "ERROR");
596      },
597      complete: function(xhr, status) {
598        log(elt, "AJAX request " + requestId + " completed in " + (new Date() - requestStart) + "ms", "DEBUG");
599        requestCleanup(indicator, globalIndicator, elt);
600        try {
601          if ($.contains(document, elt[0])) {
602            triggerEvent(elt, "complete.ic", [elt, data, status, xhr, requestId]);
603          } else {
604            triggerEvent($('body'), "complete.ic", [elt, data, status, xhr, requestId]);
605          }
606        } catch (e) {
607          log(elt, "Error during complete.ic event for " + requestId + " : " + formatError(e), "ERROR");
608        }
609        var onComplete = closestAttrValue(elt, 'ic-on-complete');
610        if (onComplete) {
611          globalEval(onComplete, [["elt", elt], ["xhr", xhr], ["status", status]]);
612        }
613        maybeInvokeLocalAction(elt, "-complete");
614      }
615    };
616    if ($.type(data) != "string") {
617      ajaxSetup.dataType = null;
618      ajaxSetup.processData = false;
619      ajaxSetup.contentType = false;
620    }
621
622    triggerEvent($(document), "beforeAjaxSend.ic", [ajaxSetup, elt]);
623
624    if(ajaxSetup.cancel) {
625      requestCleanup(indicator, globalIndicator, elt);
626    } else {
627      $.ajax(ajaxSetup)
628    }
629  }
630
631  function findGlobalIndicator(elt) {
632    var indicator = $([]);
633    elt = $(elt);
634    var attr = closestAttrValue(elt, 'ic-global-indicator');
635    if (attr && attr !== "false") {
636      indicator = $(attr).first();
637    }
638    return indicator;
639  }
640
641  function findIndicator(elt) {
642    var indicator = $([]);
643    elt = $(elt);
644    if (getICAttribute(elt, 'ic-indicator')) {
645      indicator = $(getICAttribute(elt, 'ic-indicator')).first();
646    } else {
647      indicator = elt.find(".ic-indicator").first();
648      if (indicator.length == 0) {
649        var parent = closestAttrValue(elt, 'ic-indicator');
650        if (parent) {
651          indicator = $(parent).first();
652        } else {
653          if (elt.next().is('.ic-indicator')) {
654            indicator = elt.next();
655          }
656        }
657      }
658    }
659    return indicator;
660  }
661
662  function processIncludes(data, str) {
663    if ($.trim(str).indexOf("{") == 0) {
664      var obj = $.parseJSON(str);
665      $.each(obj, function(name, value) {
666        data = appendData(data, name, value);
667      });
668    } else {
669      $(str).each(function() {
670        var obj = $(this).serializeArray();
671        $.each(obj, function(i, input) {
672          data = appendData(data, input.name, input.value);
673        });
674      });
675    }
676    return data;
677  }
678
679  function processLocalVars(data, str) {
680    $(str.split(",")).each(function() {
681      var key = $.trim(this);
682      var item = localStorage.getItem(key);
683      if(item) {
684        data = appendData(data, key, item);
685      }
686    });
687    return data;
688  }
689
690  function appendData(data, key, value) {
691    if ($.type(data) === "string") {
692      if($.type(value) !== "string") {
693        value = JSON.stringify(value);
694      }
695      return data + "&" + key + "=" + encodeURIComponent(value);
696    } else {
697      data.append(key, value);
698      return data;
699    }
700  }
701
702  function getParametersForElement(verb, elt, triggerOrigin) {
703    var target = getTarget(elt);
704    var data = null;
705
706    if (elt.is('form') && elt.attr('enctype') == 'multipart/form-data') {
707      data = new FormData(elt[0]);
708      data = appendData(data, 'ic-request', true);
709    } else {
710      data = "ic-request=true";
711      // if the element is in a form, include the entire form
712      var closestForm = elt.closest('form');
713      if (elt.is('form') || (verb != "GET" && closestForm.length > 0)) {
714        data += "&" + closestForm.serialize();
715        // include data from a focused button (to capture clicked button value)
716        var buttonData = elt.data('ic-last-clicked-button');
717        if(buttonData) {
718          data = appendData(data, buttonData.name, buttonData.value);
719        }
720      } else { // otherwise include the element
721        data += "&" + elt.serialize();
722      }
723    }
724
725    var promptText = closestAttrValue(elt, 'ic-prompt');
726    if (promptText) {
727      var promptVal = prompt(promptText);
728      if (promptVal) {
729        var promptParamName = closestAttrValue(elt, 'ic-prompt-name') || 'ic-prompt-value';
730        data = appendData(data, promptParamName, promptVal);
731      } else {
732        return null;
733      }
734    }
735
736    if (elt.attr('id')) {
737      data = appendData(data, 'ic-element-id', elt.attr('id'));
738    }
739    if (elt.attr('name')) {
740      data = appendData(data, 'ic-element-name', elt.attr('name'));
741    }
742    if (getICAttribute(target, 'ic-id')) {
743      data = appendData(data, 'ic-id', getICAttribute(target, 'ic-id'));
744    }
745    if (target.attr('id')) {
746      data = appendData(data, 'ic-target-id', target.attr('id'));
747    }
748    if (triggerOrigin && triggerOrigin.attr('id')) {
749      data = appendData(data, 'ic-trigger-id', triggerOrigin.attr('id'));
750    }
751    if (triggerOrigin && triggerOrigin.attr('name')) {
752      data = appendData(data, 'ic-trigger-name', triggerOrigin.attr('name'));
753    }
754    var includeAttr = closestAttrValue(elt, 'ic-include');
755    if (includeAttr) {
756      data = processIncludes(data, includeAttr);
757    }
758    var localVars = closestAttrValue(elt, 'ic-local-vars');
759    if (localVars) {
760      data = processLocalVars(data, localVars);
761    }
762    $(getICAttributeSelector('ic-global-include')).each(function() {
763      data = processIncludes(data, getICAttribute($(this), 'ic-global-include'));
764    });
765    data = appendData(data, 'ic-current-url', currentUrl());
766
767    var selectFromResp = closestAttrValue(elt, 'ic-select-from-response');
768    if(selectFromResp) {
769      data = appendData(data, 'ic-select-from-response', selectFromResp);
770    }
771
772    log(elt, "request parameters " + data, "DEBUG");
773
774    return data;
775  }
776
777  function maybeSetIntercoolerInfo(elt) {
778    var target = getTarget(elt);
779    getIntercoolerId(target);
780    if (elt.data('elementAdded.ic') != true) {
781      elt.data('elementAdded.ic', true);
782      triggerEvent(elt, "elementAdded.ic");
783    }
784  }
785
786  function getIntercoolerId(elt) {
787    if (!getICAttribute(elt, 'ic-id')) {
788      setICAttribute(elt, 'ic-id', uuid());
789    }
790    return getICAttribute(elt, 'ic-id');
791  }
792
793  //============================================================
794  // Tree Processing
795  //============================================================
796
797  function processNodes(elt) {
798    elt = $(elt);
799    if (elt.length > 1) {
800      elt.each(function() {
801        processNodes(this);
802      });
803    } else {
804      processMacros(elt);
805      processEnhancement(elt);
806      processSources(elt);
807      processPolling(elt);
808      processEventSources(elt);
809      processTriggerOn(elt);
810      processRemoveAfter(elt);
811      processAddClasses(elt);
812      processRemoveClasses(elt);
813    }
814  }
815
816  function fireReadyStuff(elt) {
817    triggerEvent(elt, 'nodesProcessed.ic');
818    $.each(_readyHandlers, function(i, handler) {
819      try {
820        handler(elt);
821      } catch (e) {
822        log(elt, formatError(e), "ERROR");
823      }
824    });
825  }
826
827  function autoFocus(elt) {
828    elt.find('[autofocus]').last().focus();
829  }
830
831  function processMacros(elt) {
832    $.each(_MACROS, function(i, macro) {
833      if (elt.closest('.ic-ignore').length == 0) {
834        if (elt.is('[' + macro + ']')) {
835          processMacro(macro, elt);
836        }
837        elt.find('[' + macro + ']').each(function() {
838          var _this = $(this);
839          if (_this.closest('.ic-ignore').length == 0) {
840            processMacro(macro, _this);
841          }
842        });
843      }
844    });
845  }
846
847  function processSources(elt) {
848    if (elt.closest('.ic-ignore').length == 0) {
849      if (elt.is(getICAttributeSelector("ic-src"))) {
850        maybeSetIntercoolerInfo(elt);
851      }
852      elt.find(getICAttributeSelector("ic-src")).each(function() {
853        var _this = $(this);
854        if (_this.closest('.ic-ignore').length == 0) {
855          maybeSetIntercoolerInfo(_this);
856        }
857      });
858    }
859  }
860
861  function processPolling(elt) {
862    if (elt.closest('.ic-ignore').length == 0) {
863      if (elt.is(getICAttributeSelector("ic-poll"))) {
864        maybeSetIntercoolerInfo(elt);
865        startPolling(elt);
866      }
867      elt.find(getICAttributeSelector("ic-poll")).each(function() {
868        var _this = $(this);
869        if (_this.closest('.ic-ignore').length == 0) {
870          maybeSetIntercoolerInfo(_this);
871          startPolling(_this);
872        }
873      });
874    }
875  }
876
877  function processTriggerOn(elt) {
878    if (elt.closest('.ic-ignore').length == 0) {
879      handleTriggerOn(elt);
880      elt.find(getICAttributeSelector('ic-trigger-on')).each(function() {
881        var _this = $(this);
882        if (_this.closest('.ic-ignore').length == 0) {
883          handleTriggerOn(_this);
884        }
885      });
886    }
887  }
888
889  function processRemoveAfter(elt) {
890    if (elt.closest('.ic-ignore').length == 0) {
891      handleRemoveAfter(elt);
892      elt.find(getICAttributeSelector('ic-remove-after')).each(function() {
893        var _this = $(this);
894        if (_this.closest('.ic-ignore').length == 0) {
895          handleRemoveAfter(_this);
896        }
897      });
898    }
899  }
900
901  function processAddClasses(elt) {
902    if (elt.closest('.ic-ignore').length == 0) {
903      handleAddClasses(elt);
904      elt.find(getICAttributeSelector('ic-add-class')).each(function() {
905        var _this = $(this);
906        if (_this.closest('.ic-ignore').length == 0) {
907          handleAddClasses(_this);
908        }
909      });
910    }
911  }
912
913  function processRemoveClasses(elt) {
914    if (elt.closest('.ic-ignore').length == 0) {
915      handleRemoveClasses(elt);
916      elt.find(getICAttributeSelector('ic-remove-class')).each(function() {
917        var _this = $(this);
918        if (_this.closest('.ic-ignore').length == 0) {
919          handleRemoveClasses(_this);
920        }
921      });
922    }
923  }
924
925  function processEnhancement(elt) {
926    if (elt.closest('.ic-ignore').length == 0) {
927      if(closestAttrValue(elt, 'ic-enhance') === 'true') {
928        enhanceDomTree(elt);
929      } else {
930        elt.find(getICAttributeSelector('ic-enhance')).each(function(){
931          enhanceDomTree($(this));
932        });
933      }
934    }
935  }
936
937  function processEventSources(elt) {
938    if (elt.closest('.ic-ignore').length == 0) {
939      handleEventSource(elt);
940      elt.find(getICAttributeSelector('ic-sse-src')).each(function() {
941        var _this = $(this);
942        if (_this.closest('.ic-ignore').length == 0) {
943          handleEventSource(_this);
944        }
945      });
946    }
947  }
948
949  //============================================================
950  // Polling support
951  //============================================================
952
953  function startPolling(elt) {
954    if (elt.data('ic-poll-interval-id') == null && getICAttribute(elt, 'ic-pause-polling') != 'true') {
955      var interval = parseInterval(getICAttribute(elt, 'ic-poll'));
956      if (interval != null) {
957        var selector = icSelectorFor(elt);
958        var repeats = parseInt(getICAttribute(elt, 'ic-poll-repeats')) || -1;
959        var currentIteration = 0;
960        log(elt, "POLL: Starting poll for element " + selector, "DEBUG");
961        var timerId = setInterval(function() {
962          var target = $(selector);
963          triggerEvent(elt, "onPoll.ic", target);
964          if ((target.length == 0) || (currentIteration == repeats) || elt.data('ic-poll-interval-id') != timerId) {
965            log(elt, "POLL: Clearing poll for element " + selector, "DEBUG");
966            clearTimeout(timerId);
967          } else {
968            fireICRequest(target);
969          }
970          currentIteration++;
971        }, interval);
972        elt.data('ic-poll-interval-id', timerId);
973      }
974    }
975  }
976
977  function cancelPolling(elt) {
978    if (elt.data('ic-poll-interval-id') != null) {
979      clearTimeout(elt.data('ic-poll-interval-id'));
980      elt.data('ic-poll-interval-id', null);
981    }
982  }
983
984  //============================================================----
985  // Dependency support
986  //============================================================----
987
988  function refreshDependencies(dest, src) {
989    log(src, "refreshing dependencies for path " + dest, "DEBUG");
990    $(getICAttributeSelector('ic-src')).each(function() {
991      var fired = false;
992      var _this = $(this);
993      if (verbFor(_this) == "GET" && getICAttribute(_this, 'ic-deps') != 'ignore' ) {
994        if (isDependent(dest, getICAttribute(_this, 'ic-src'))) {
995          if (src == null || $(src)[0] != _this[0]) {
996            fireICRequest(_this);
997            fired = true;
998          }
999        } else if (isICDepsDependent(dest, getICAttribute(_this, 'ic-deps')) || getICAttribute(_this, 'ic-deps') == "*") {
1000          if (src == null || $(src)[0] != _this[0]) {
1001            fireICRequest(_this);
1002            fired = true;
1003          }
1004        }
1005      }
1006      if (fired) {
1007        log(_this, "depends on path " + dest + ", refreshing...", "DEBUG")
1008      }
1009    });
1010  }
1011
1012  function isICDepsDependent(src, dest) {
1013    if(dest) {
1014      var paths = dest.split(",");
1015      for (var i = 0; i < paths.length; i++) {
1016        var str = paths[i].trim();
1017        if(isDependent(src, str)) {
1018          return true;
1019        }
1020      }
1021    }
1022    return false;
1023  }
1024
1025  function isDependent(src, dest) {
1026    return !!_isDependentFunction(src, dest);
1027  }
1028
1029  //============================================================----
1030  // Trigger-On support
1031  //============================================================----
1032
1033  function verbFor(elt) {
1034    elt = $(elt);
1035    if (getICAttribute(elt, 'ic-verb')) {
1036      return getICAttribute(elt, 'ic-verb').toUpperCase();
1037    }
1038    return "GET";
1039  }
1040
1041  function eventFor(attr, elt) {
1042    if (attr == "default") {
1043      elt = $(elt);
1044      if (elt.is('button')) {
1045        return 'click';
1046      } else if (elt.is('form')) {
1047        return 'submit';
1048      } else if (elt.is('input, textarea, select, button')) {
1049        return 'change';
1050      } else {
1051        return 'click';
1052      }
1053    } else {
1054      return attr;
1055    }
1056  }
1057
1058  function preventDefault(elt, evt) {
1059    return elt.is('form') ||
1060          (elt.is('input[type="submit"], button') && elt.closest('form').length == 1) ||
1061          (elt.is('a') && elt.is('[href]') && elt.attr('href').indexOf('#') != 0);
1062  }
1063
1064  function handleRemoveAfter(elt) {
1065    elt = $(elt);
1066    if (getICAttribute(elt, 'ic-remove-after')) {
1067      var interval = parseInterval(getICAttribute(elt, 'ic-remove-after'));
1068      setTimeout(function() {
1069        remove(elt);
1070      }, interval);
1071    }
1072  }
1073
1074  function parseAndApplyClass(classInfo, elt, operation) {
1075    var cssClass = "";
1076    var delay = 50;
1077    if (classInfo.indexOf(":") > 0) {
1078      var split = classInfo.split(':');
1079      cssClass = split[0];
1080      delay = parseInterval(split[1]);
1081    } else {
1082      cssClass = classInfo;
1083    }
1084    setTimeout(function() {
1085      elt[operation](cssClass)
1086    }, delay);
1087  }
1088
1089  function handleAddClasses(elt) {
1090    elt = $(elt);
1091    if (getICAttribute(elt, 'ic-add-class')) {
1092      var values = getICAttribute(elt, 'ic-add-class').split(",");
1093      var arrayLength = values.length;
1094      for (var i = 0; i < arrayLength; i++) {
1095        parseAndApplyClass($.trim(values[i]), elt, 'addClass');
1096      }
1097    }
1098  }
1099
1100  function handleRemoveClasses(elt) {
1101    elt = $(elt);
1102    if (getICAttribute(elt, 'ic-remove-class')) {
1103      var values = getICAttribute(elt, 'ic-remove-class').split(",");
1104      var arrayLength = values.length;
1105      for (var i = 0; i < arrayLength; i++) {
1106        parseAndApplyClass($.trim(values[i]), elt, 'removeClass');
1107      }
1108    }
1109  }
1110
1111  function handleEventSource(elt) {
1112    elt = $(elt);
1113    if (getICAttribute(elt, 'ic-sse-src')) {
1114      var evtSrcUrl = getICAttribute(elt, 'ic-sse-src');
1115      var evtSrcWithCredentials = getICAttribute(elt, 'ic-sse-with-credentials') === 'true';
1116      var eventSource = initEventSource(elt, evtSrcUrl, evtSrcWithCredentials);
1117      elt.data('ic-event-sse-source', eventSource);
1118      elt.data('ic-event-sse-map', {});
1119    }
1120  }
1121
1122  function initEventSource(elt, evtSrcUrl, evtSrcWithCredentials) {
1123    var eventSource = Intercooler._internal.initEventSource(evtSrcUrl, evtSrcWithCredentials);
1124    eventSource.onmessage = function(e) {
1125      processICResponse(e.data, elt, false);
1126    };
1127    return eventSource;
1128  }
1129
1130  function registerSSE(sourceElement, event) {
1131    var source = sourceElement.data('ic-event-sse-source');
1132    var eventMap = sourceElement.data('ic-event-sse-map');
1133    if(source.addEventListener && eventMap[event] != true) {
1134      source.addEventListener(event, function(){
1135        sourceElement.find(getICAttributeSelector('ic-trigger-on')).each(function(){
1136          var _that = $(this);
1137          if(_that.attr('ic-trigger-on') == "sse:" + event) {
1138            fireICRequest(_that);
1139          }
1140        });
1141      })
1142    }
1143  }
1144
1145  function getTriggeredElement(elt) {
1146    var triggerFrom = getICAttribute(elt, 'ic-trigger-from');
1147    if(triggerFrom) {
1148      if (triggerFrom == "document") {
1149        return $(document);
1150      } else if (triggerFrom == "window") {
1151        return $(window);
1152      } else {
1153        return $(triggerFrom);
1154      }
1155    } else {
1156      return elt;
1157    }
1158  }
1159
1160  function handleTriggerOn(elt) {
1161
1162    var triggerOnValue = getICAttribute(elt, 'ic-trigger-on');
1163    if (triggerOnValue) {
1164      // record button or submit input click info
1165      if(elt.is('form')) {
1166        elt.on('click focus', 'input, button, select, textarea', function(e){
1167          if($(this).is('input[type="submit"], button') && $(this).is("[name]")) {
1168            elt.data('ic-last-clicked-button', {name:$(this).attr("name"), value:$(this).val()})
1169          } else {
1170            elt.data('ic-last-clicked-button', null)
1171          }
1172        });
1173      }
1174      var triggerOnArray = triggerOnValue.split(",");
1175      for (var i = 0; i < triggerOnArray.length; i++) {
1176        var triggerOn = $.trim(triggerOnArray[i]);
1177        var splitTriggerOn = triggerOn.split(" ");
1178        var eventString = eventFor(splitTriggerOn[0], $(elt));
1179        var eventModifier = splitTriggerOn[1];
1180
1181        if (triggerOn == 'load') {
1182          fireICRequest(elt);
1183        } else if (triggerOn == 'scrolled-into-view') {
1184          initScrollHandler();
1185          setTimeout(function() {
1186            triggerEvent($(window), 'scroll');
1187          }, 100); // Trigger a scroll in case element is already viewable
1188        } else {
1189          if(eventString.indexOf("sse:") == 0) {
1190            //Server-sent event, find closest event source and register for it
1191            var sourceElt = elt.closest(getICAttributeSelector('ic-sse-src'));
1192            if(sourceElt.length > 0) {
1193              registerSSE(sourceElt, splitTriggerOn[0].substr(4))
1194            }
1195          } else {
1196            $(getTriggeredElement(elt)).on(eventString, function(e) {
1197              var onBeforeTrigger = closestAttrValue(elt, 'ic-on-beforeTrigger');
1198              if (onBeforeTrigger) {
1199                if (globalEval(onBeforeTrigger, [["elt", elt], ["evt", e], ["elt", elt]]) == false) {
1200                  log(elt, "ic-trigger cancelled by ic-on-beforeTrigger", "DEBUG");
1201                  return false;
1202                }
1203              }
1204
1205              if (eventModifier == 'changed') {
1206                var currentVal = elt.val();
1207                var previousVal = elt.data('ic-previous-val');
1208                elt.data('ic-previous-val', currentVal);
1209                if (currentVal != previousVal) {
1210                  fireICRequest(elt);
1211                }
1212              } else if (eventModifier == 'once') {
1213                var alreadyTriggered = elt.data('ic-already-triggered');
1214                elt.data('ic-already-triggered', true);
1215                if (alreadyTriggered !== true) {
1216                  fireICRequest(elt);
1217                }
1218              } else {
1219                fireICRequest(elt);
1220              }
1221              if (preventDefault(elt, e)) {
1222                e.preventDefault();
1223                return false;
1224              }
1225              return true;
1226            });
1227            if(eventString && (eventString.indexOf("timeout:") == 0)) {
1228              var timeout = parseInterval(eventString.split(":")[1]);
1229              setTimeout(function () {
1230                $(getTriggeredElement(elt)).trigger(eventString);
1231              }, timeout);
1232            }
1233          }
1234        }
1235      }
1236    }
1237  }
1238
1239  //============================================================----
1240  // Macro support
1241  //============================================================----
1242
1243  function macroIs(macro, constant) {
1244    return macro == fixICAttributeName(constant);
1245  }
1246
1247  function processMacro(macro, elt) {
1248    // action attributes
1249    if (macroIs(macro, 'ic-post-to')) {
1250      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-post-to'));
1251      setIfAbsent(elt, 'ic-verb', 'POST');
1252      setIfAbsent(elt, 'ic-trigger-on', 'default');
1253      setIfAbsent(elt, 'ic-deps', 'ignore');
1254    }
1255    if (macroIs(macro, 'ic-put-to')) {
1256      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-put-to'));
1257      setIfAbsent(elt, 'ic-verb', 'PUT');
1258      setIfAbsent(elt, 'ic-trigger-on', 'default');
1259      setIfAbsent(elt, 'ic-deps', 'ignore');
1260    }
1261    if (macroIs(macro, 'ic-patch-to')) {
1262      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-patch-to'));
1263      setIfAbsent(elt, 'ic-verb', 'PATCH');
1264      setIfAbsent(elt, 'ic-trigger-on', 'default');
1265      setIfAbsent(elt, 'ic-deps', 'ignore');
1266    }
1267    if (macroIs(macro, 'ic-get-from')) {
1268      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-get-from'));
1269      setIfAbsent(elt, 'ic-trigger-on', 'default');
1270      setIfAbsent(elt, 'ic-deps', 'ignore');
1271    }
1272    if (macroIs(macro, 'ic-delete-from')) {
1273      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-delete-from'));
1274      setIfAbsent(elt, 'ic-verb', 'DELETE');
1275      setIfAbsent(elt, 'ic-trigger-on', 'default');
1276      setIfAbsent(elt, 'ic-deps', 'ignore');
1277    }
1278
1279    if (macroIs(macro, 'ic-action')) {
1280      setIfAbsent(elt, 'ic-trigger-on', 'default');
1281    }
1282
1283    // non-action attributes
1284    var value = null;
1285    var url = null;
1286    if (macroIs(macro, 'ic-style-src')) {
1287      value = getICAttribute(elt, 'ic-style-src').split(":");
1288      var styleAttribute = value[0];
1289      url = value[1];
1290      setIfAbsent(elt, 'ic-src', url);
1291      setIfAbsent(elt, 'ic-target', 'this.style.' + styleAttribute);
1292    }
1293    if (macroIs(macro, 'ic-attr-src')) {
1294      value = getICAttribute(elt, 'ic-attr-src').split(":");
1295      var attribute = value[0];
1296      url = value[1];
1297      setIfAbsent(elt, 'ic-src', url);
1298      setIfAbsent(elt, 'ic-target', 'this.' + attribute);
1299    }
1300    if (macroIs(macro, 'ic-prepend-from')) {
1301      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-prepend-from'));
1302      setIfAbsent(elt, 'ic-swap-style', 'prepend');
1303    }
1304    if (macroIs(macro, 'ic-append-from')) {
1305      setIfAbsent(elt, 'ic-src', getICAttribute(elt, 'ic-append-from'));
1306      setIfAbsent(elt, 'ic-swap-style', 'append');
1307    }
1308  }
1309
1310  function isLocalLink(anchor) {
1311    return location.hostname === anchor[0].hostname &&
1312      anchor.attr('href') &&
1313      !anchor.attr('href').startsWith("#")
1314  }
1315
1316  function enhanceAnchor(anchor) {
1317    if (closestAttrValue(anchor, 'ic-enhance') === "true") {
1318      if (isLocalLink(anchor)) {
1319        setIfAbsent(anchor, 'ic-src', anchor.attr('href'));
1320        setIfAbsent(anchor, 'ic-trigger-on', 'default');
1321        setIfAbsent(anchor, 'ic-deps', 'ignore');
1322        setIfAbsent(anchor, 'ic-push-url', 'true');
1323      }
1324    }
1325  }
1326
1327  function determineFormVerb(form) {
1328    return form.find('input[name="_method"]').val() || form.attr('method') || form[0].method;
1329  }
1330
1331  function enhanceForm(form) {
1332    if (closestAttrValue(form, 'ic-enhance') === "true") {
1333      setIfAbsent(form, 'ic-src', form.attr('action'));
1334      setIfAbsent(form, 'ic-trigger-on', 'default');
1335      setIfAbsent(form, 'ic-deps', 'ignore');
1336      setIfAbsent(form, 'ic-verb', determineFormVerb(form));
1337    }
1338  }
1339
1340  function enhanceDomTree(elt) {
1341    if(elt.is('a')) {
1342      enhanceAnchor(elt);
1343    }
1344    elt.find('a').each(function(){
1345      enhanceAnchor($(this));
1346    });
1347    if(elt.is('form')){
1348      enhanceForm(elt);
1349    }
1350    elt.find('form').each(function(){
1351      enhanceForm($(this));
1352    });
1353  }
1354
1355  function setIfAbsent(elt, attr, value) {
1356    if (getICAttribute(elt, attr) == null) {
1357      setICAttribute(elt, attr, value);
1358    }
1359  }
1360
1361  //============================================================----
1362  // Utilities
1363  //============================================================----
1364
1365  function isScrolledIntoView(elem) {
1366    elem = $(elem);
1367    if (elem.height() == 0 && elem.width() == 0) {
1368      return false;
1369    }
1370    var docViewTop = $(window).scrollTop();
1371    var docViewBottom = docViewTop + $(window).height();
1372
1373    var elemTop = elem.offset().top;
1374    var elemBottom = elemTop + elem.height();
1375
1376    return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)
1377      && (elemBottom <= docViewBottom) && (elemTop >= docViewTop));
1378  }
1379
1380  function maybeScrollToTarget(elt, target) {
1381    if (closestAttrValue(elt, 'ic-scroll-to-target') != "false" &&
1382      (closestAttrValue(elt, 'ic-scroll-to-target') == 'true' ||
1383        closestAttrValue(target, 'ic-scroll-to-target') == 'true')) {
1384      var offset = -50; // -50 px default offset padding
1385      if (closestAttrValue(elt, 'ic-scroll-offset')) {
1386        offset = parseInt(closestAttrValue(elt, 'ic-scroll-offset'));
1387      } else if (closestAttrValue(target, 'ic-scroll-offset')) {
1388        offset = parseInt(closestAttrValue(target, 'ic-scroll-offset'));
1389      }
1390      var currentPosition = target.offset().top;
1391      var portalTop = $(window).scrollTop();
1392      var portalEnd = portalTop + window.innerHeight;
1393      //if the current top of this element is not visible, scroll it to the top position
1394      if (currentPosition < portalTop || currentPosition > portalEnd) {
1395        offset += currentPosition;
1396        $('html,body').animate({scrollTop: offset}, 400);
1397      }
1398    }
1399  }
1400
1401  function getTransitionDuration(elt, target) {
1402    var transitionDuration = closestAttrValue(elt, 'ic-transition-duration');
1403    if (transitionDuration) {
1404      return parseInterval(transitionDuration);
1405    }
1406    transitionDuration = closestAttrValue(target, 'ic-transition-duration');
1407    if (transitionDuration) {
1408      return parseInterval(transitionDuration);
1409    }
1410    target = $(target);
1411    var duration = 0;
1412    var durationStr = target.css('transition-duration');
1413    if (durationStr) {
1414      duration += parseInterval(durationStr);
1415    }
1416    var delayStr = target.css('transition-delay');
1417    if (delayStr) {
1418      duration += parseInterval(delayStr);
1419    }
1420    return duration;
1421  }
1422
1423  function closeSSESource(elt) {
1424    var src = elt.data('ic-event-sse-source');
1425    try {
1426      if(src) {
1427        src.close();
1428      }
1429    } catch (e) {
1430      log(elt, "Error closing ServerSentEvent source" + e, "ERROR");
1431    }
1432  }
1433
1434  function beforeSwapCleanup(target) {
1435    target.find(getICAttributeSelector('ic-sse-src')).each(function() {
1436      closeSSESource($(this));
1437    });
1438    triggerEvent(target, 'beforeSwap.ic');
1439  }
1440
1441  function processICResponse(responseContent, elt, forHistory, url) {
1442    if (responseContent && responseContent != "" && responseContent != " ") {
1443
1444      log(elt, "response content: \\n" + responseContent, "DEBUG");
1445      var target = getTarget(elt);
1446
1447      var transformer = closestAttrValue(elt, 'ic-transform-response');
1448      if(transformer) {
1449        responseContent = globalEval(transformer, [["content", responseContent], ["url", url], ["elt", elt]]);
1450      }
1451
1452      var contentToSwap = maybeFilter(responseContent, closestAttrValue(elt, 'ic-select-from-response'));
1453
1454      if (closestAttrValue(elt, 'ic-fix-ids') == "true") {
1455        fixIDs(contentToSwap);
1456      }
1457
1458      var doSwap = function() {
1459        if (closestAttrValue(elt, 'ic-replace-target') == "true") {
1460          try {
1461            beforeSwapCleanup(target);
1462            closeSSESource(target);
1463            target.replaceWith(contentToSwap);
1464            target = contentToSwap;
1465          } catch (e) {
1466            log(elt, formatError(e), "ERROR");
1467          }
1468          processNodes(contentToSwap);
1469          fireReadyStuff(target);
1470          autoFocus(target);
1471        } else {
1472          if (getICAttribute(elt, 'ic-swap-style') == "prepend") {
1473            prepend(target, contentToSwap);
1474            processNodes(contentToSwap);
1475            fireReadyStuff(target);
1476            autoFocus(target);
1477          } else if (getICAttribute(elt, 'ic-swap-style') == "append") {
1478            append(target, contentToSwap);
1479            processNodes(contentToSwap);
1480            fireReadyStuff(target);
1481            autoFocus(target);
1482          } else {
1483            try {
1484              beforeSwapCleanup(target);
1485              target.empty().append(contentToSwap);
1486            } catch (e) {
1487              log(elt, formatError(e), "ERROR");
1488            }
1489            target.children().each(function() {
1490              processNodes(this);
1491            });
1492            fireReadyStuff(target);
1493            autoFocus(target);
1494          }
1495          if (forHistory != true) {
1496            maybeScrollToTarget(elt, target);
1497          }
1498
1499          var switchClass = elt.closest(getICAttributeSelector('ic-switch-class'));
1500          var classToSwitch = switchClass.attr(fixICAttributeName('ic-switch-class'));
1501          if(classToSwitch) {
1502            switchClass.children().removeClass(classToSwitch);
1503            switchClass.children().each(function(){
1504              if($.contains($(this)[0], $(elt)[0]) || $(this)[0] == $(elt)[0]) {
1505                $(this).addClass(classToSwitch);
1506                $(this).addClass(classToSwitch);
1507              }
1508            })
1509          }
1510
1511        }
1512      };
1513
1514      if (target.length == 0) {
1515        //TODO cgross - refactor getTarget to return printable string here
1516        log(elt, "Invalid target for element: " + getICAttribute(elt.closest(getICAttributeSelector('ic-target')), 'ic-target'), "ERROR");
1517        return;
1518      }
1519
1520      var delay = getTransitionDuration(elt, target);
1521      target.addClass('ic-transitioning');
1522      setTimeout(function() {
1523        try {
1524          doSwap();
1525        } catch (e) {
1526          log(elt, "Error during content swap : " + formatError(e), "ERROR");
1527        }
1528        setTimeout(function() {
1529          try {
1530            target.removeClass('ic-transitioning');
1531            if(_history) {
1532              _history.updateHistory();
1533            }
1534            triggerEvent(target, "complete_transition.ic", [target]);
1535          } catch (e) {
1536            log(elt, "Error during transition complete : " + formatError(e), "ERROR");
1537          }
1538        }, 20);
1539      }, delay);
1540    } else {
1541      log(elt, "Empty response, nothing to do here.", "DEBUG");
1542    }
1543  }
1544
1545  function maybeFilter(newContent, filter) {
1546    var asQuery;
1547    if ($.zepto) {
1548      var newDoc = createDocument(newContent);
1549      asQuery = $(newDoc).find('body').contents();
1550    } else {
1551      asQuery = $($.parseHTML(newContent, null, true));
1552    }
1553    if (filter) {
1554      return walkTree(asQuery, filter).contents();
1555    } else {
1556      return asQuery;
1557    }
1558  }
1559
1560  function walkTree(elt, filter) {
1561    return elt.filter(filter).add(elt.find(filter));
1562  }
1563
1564  function fixIDs(contentToSwap) {
1565    var fixedIDs = {};
1566    walkTree(contentToSwap, "[id]").each(function() {
1567      var originalID = $(this).attr("id");
1568      var fixedID;
1569      do {
1570        fixedID = "ic-fixed-id-" + uuid();
1571      } while ($("#" + fixedID).length > 0);
1572      fixedIDs[originalID] = fixedID;
1573      $(this).attr("id", fixedID);
1574    });
1575    walkTree(contentToSwap, "label[for]").each(function () {
1576      var originalID = $(this).attr("for");
1577      $(this).attr("for", fixedIDs[originalID] || originalID);
1578    });
1579    walkTree(contentToSwap, "*").each(function () {
1580      $.each(this.attributes, function () {
1581        if (this.value.indexOf("#") !== -1) {
1582          this.value = this.value.replace(/#([-_A-Za-z0-9]+)/g, function(match, originalID) {
1583            return "#" + (fixedIDs[originalID] || originalID);
1584          });
1585        }
1586      })
1587    });
1588  }
1589
1590  function getStyleTarget(elt) {
1591    var val = closestAttrValue(elt, 'ic-target');
1592    if (val && val.indexOf("this.style.") == 0) {
1593      return val.substr(11)
1594    } else {
1595      return null;
1596    }
1597  }
1598
1599  function getAttrTarget(elt) {
1600    var val = closestAttrValue(elt, 'ic-target');
1601    if (val && val.indexOf("this.") == 0) {
1602      return val.substr(5)
1603    } else {
1604      return null;
1605    }
1606  }
1607
1608  function fireICRequest(elt, alternateHandler) {
1609    elt = $(elt);
1610
1611    var triggerOrigin = elt;
1612    if (!elt.is(getICAttributeSelector('ic-src')) && getICAttribute(elt, 'ic-action') == undefined) {
1613      elt = elt.closest(getICAttributeSelector('ic-src'));
1614    }
1615
1616    var confirmText = closestAttrValue(elt, 'ic-confirm');
1617    if (confirmText) {
1618      if (!confirm(confirmText)) {
1619        return;
1620      }
1621    }
1622
1623    if("true" == closestAttrValue(elt, 'ic-disable-when-doc-hidden')) {
1624      if(document['hidden']) {
1625        return;
1626      }
1627    }
1628
1629    if("true" == closestAttrValue(elt, 'ic-disable-when-doc-inactive')) {
1630      if(!document.hasFocus()) {
1631        return;
1632      }
1633    }
1634
1635    if (elt.length > 0) {
1636      var icEventId = uuid();
1637      elt.data('ic-event-id', icEventId);
1638      var invokeRequest = function() {
1639
1640        // if an existing request is in flight for this element, push this request as the next to be executed
1641        if (elt.data('ic-request-in-flight') == true) {
1642          elt.data('ic-next-request', {"req" : invokeRequest});
1643          return;
1644        }
1645
1646        if (elt.data('ic-event-id') == icEventId) {
1647          var styleTarget = getStyleTarget(elt);
1648          var attrTarget = styleTarget ? null : getAttrTarget(elt);
1649          var verb = verbFor(elt);
1650          var url = getICAttribute(elt, 'ic-src');
1651          if (url) {
1652            var success = alternateHandler || function(data) {
1653              if (styleTarget) {
1654                elt.css(styleTarget, data);
1655              } else if (attrTarget) {
1656                elt.attr(attrTarget, data);
1657              } else {
1658                processICResponse(data, elt, false, url);
1659                if (verb != 'GET') {
1660                  refreshDependencies(getICAttribute(elt, 'ic-src'), elt);
1661                }
1662              }
1663            };
1664            var data = getParametersForElement(verb, elt, triggerOrigin);
1665            if(data) {
1666              handleRemoteRequest(elt, verb, url, data, success);
1667            }
1668          }
1669          maybeInvokeLocalAction(elt, "");
1670        }
1671      };
1672
1673      var triggerDelay = closestAttrValue(elt, 'ic-trigger-delay');
1674      if (triggerDelay) {
1675        setTimeout(invokeRequest, parseInterval(triggerDelay));
1676      } else {
1677        invokeRequest();
1678      }
1679    }
1680  }
1681
1682  function maybeInvokeLocalAction(elt, modifier) {
1683    var actions = getICAttribute(elt, 'ic' + modifier + '-action');
1684    if (actions) {
1685      invokeLocalAction(elt, actions, modifier);
1686    }
1687  }
1688
1689  function invokeLocalAction(elt, actions, modifier) {
1690    var actionTargetVal = closestAttrValue(elt, 'ic' + modifier + '-action-target');
1691    if(actionTargetVal === null && modifier !== "") {
1692      actionTargetVal = closestAttrValue(elt, 'ic-action-target');
1693    }
1694
1695    var target = null;
1696    if(actionTargetVal) {
1697      target = getTargetImpl(elt, 'ic-action-target');
1698    } else {
1699      target = getTarget(elt);
1700    }
1701    var actionArr = actions.split(";");
1702
1703    var actionsArr = [];
1704    var delay = 0;
1705
1706    $.each(actionArr, function(i, actionStr) {
1707      var actionDef = $.trim(actionStr);
1708      var action = actionDef;
1709      var actionArgs = [];
1710      if (actionDef.indexOf(":") > 0) {
1711        action = actionDef.substr(0, actionDef.indexOf(":"));
1712        actionArgs = computeArgs(actionDef.substr(actionDef.indexOf(":") + 1, actionDef.length));
1713      }
1714      if (action == "") {
1715        // ignore blanks
1716      } else if (action == "delay") {
1717        if (delay == null) {
1718          delay = 0;
1719        }
1720        delay += parseInterval(actionArgs[0] + "");  // custom interval increase
1721      } else {
1722        if (delay == null) {
1723          delay = 420; // 420ms default interval increase (400ms jQuery default + 20ms slop)
1724        }
1725        actionsArr.push([delay, makeApplyAction(target, action, actionArgs)]);
1726        delay = null;
1727      }
1728    });
1729
1730    delay = 0;
1731    $.each(actionsArr, function(i, action) {
1732      delay += action[0];
1733      setTimeout(action[1], delay);
1734    });
1735  }
1736
1737  function computeArgs(args) {
1738    try {
1739      return eval("[" + args + "]")
1740    } catch (e) {
1741      return [$.trim(args)];
1742    }
1743  }
1744
1745  function makeApplyAction(target, action, args) {
1746    return function() {
1747      var 
vendor: 7,531 bytes, lines 1747-1974
1747func = target[action] || window[action];
1748      if (func) {
1749        func.apply(target, args);
1750      } else {
1751        log(target, "Action " + action + " was not found", "ERROR");
1752      }
1753    };
1754  }
1755
1756  //============================================================
1757  // History Support
1758  //============================================================
1759
1760  function newIntercoolerHistory(storage, history, slotLimit, historyVersion) {
1761
1762    /* Constants */
1763    var HISTORY_SUPPORT_SLOT = 'ic-history-support';
1764    var HISTORY_SLOT_PREFIX = "ic-hist-elt-";
1765
1766    /* Instance Vars */
1767    var historySupportData = JSON.parse(storage.getItem(HISTORY_SUPPORT_SLOT));
1768    var _snapshot = null;
1769
1770    // Reset history if the history config has changed
1771    if (historyConfigHasChanged(historySupportData)) {
1772      log(getTargetForHistory($('body')), "Intercooler History configuration changed, clearing history", "INFO");
1773      clearHistory();
1774    }
1775
1776    if (historySupportData == null) {
1777      historySupportData = {
1778        slotLimit: slotLimit,
1779        historyVersion: historyVersion,
1780        lruList: []
1781      };
1782    }
1783
1784    /* Instance Methods  */
1785    function historyConfigHasChanged(historySupportData) {
1786      return historySupportData == null ||
1787        historySupportData.slotLimit != slotLimit ||
1788        historySupportData.historyVersion != historyVersion ||
1789        historySupportData.lruList == null
1790    }
1791
1792    function clearHistory() {
1793      var keys = [];
1794      for (var i = 0; i < storage.length; i++) {
1795        if (storage.key(i).indexOf(HISTORY_SLOT_PREFIX) == 0) {
1796          keys.push(storage.key(i));
1797        }
1798      }
1799      for (var j = 0; j < keys.length; j++) {
1800        storage.removeItem(keys[j]);
1801      }
1802      storage.removeItem(HISTORY_SUPPORT_SLOT);
1803      historySupportData = {
1804        slotLimit: slotLimit,
1805        historyVersion: historyVersion,
1806        lruList: []
1807      };
1808    }
1809
1810    function updateLRUList(url) {
1811      var lruList = historySupportData.lruList;
1812      var currentIndex = lruList.indexOf(url);
1813      var t = getTargetForHistory($('body'));
1814      // found in current list, shift it to the end
1815      if (currentIndex >= 0) {
1816        log(t, "URL found in LRU list, moving to end", "INFO");
1817        lruList.splice(currentIndex, 1);
1818        lruList.push(url);
1819      } else {
1820        // not found, add and shift if necessary
1821        log(t, "URL not found in LRU list, adding", "INFO");
1822        lruList.push(url);
1823        if (lruList.length > historySupportData.slotLimit) {
1824          var urlToDelete = lruList.shift();
1825          log(t, "History overflow, removing local history for " + urlToDelete, "INFO");
1826          storage.removeItem(HISTORY_SLOT_PREFIX + urlToDelete);
1827        }
1828      }
1829
1830      // save history metadata
1831      storage.setItem(HISTORY_SUPPORT_SLOT, JSON.stringify(historySupportData));
1832      return lruList;
1833    }
1834
1835    function saveHistoryData(restorationData) {
1836      var content = JSON.stringify(restorationData);
1837      try {
1838        storage.setItem(restorationData.id, content);
1839      } catch (e) {
1840        //quota error, nuke local cache
1841        try {
1842          clearHistory();
1843          storage.setItem(restorationData.id, content);
1844        } catch (e) {
1845          log(getTargetForHistory($('body')), "Unable to save intercooler history with entire history cleared, is something else eating " +
1846            "local storage? History Limit:" + slotLimit, "ERROR");
1847        }
1848      }
1849    }
1850
1851    function makeHistoryEntry(html, yOffset, url, title) {
1852      var restorationData = {
1853        "url": url,
1854        "id": HISTORY_SLOT_PREFIX + url,
1855        "content": html,
1856        "yOffset": yOffset,
1857        "timestamp": new Date().getTime(),
1858        "title": title
1859      };
1860      updateLRUList(url);
1861      // save to the history slot
1862      saveHistoryData(restorationData);
1863      return restorationData;
1864    }
1865
1866    function addPopStateHandler(windowToAdd) {
1867      if (windowToAdd.onpopstate == null || windowToAdd.onpopstate['ic-on-pop-state-handler'] != true) {
1868        var currentOnPopState = windowToAdd.onpopstate;
1869        windowToAdd.onpopstate = function(event) {
1870          triggerEvent(getTargetForHistory($('body')), 'handle.onpopstate.ic');
1871          if (!handleHistoryNavigation(event)) {
1872            if (currentOnPopState) {
1873              currentOnPopState(event);
1874            }
1875          }
1876          triggerEvent(getTargetForHistory($('body')), 'pageLoad.ic');
1877        };
1878        windowToAdd.onpopstate['ic-on-pop-state-handler'] = true;
1879      }
1880    }
1881
1882    function updateHistory() {
1883      if (_snapshot) {
1884        pushUrl(_snapshot.newUrl, currentUrl(), _snapshot.oldHtml, _snapshot.yOffset, _snapshot.oldTitle);
1885        _snapshot = null;
1886      }
1887    }
1888
1889    function pushUrl(newUrl, originalUrl, originalHtml, yOffset, originalTitle) {
1890
1891      var historyEntry = makeHistoryEntry(originalHtml, yOffset, originalUrl, originalTitle);
1892      history.replaceState({"ic-id": historyEntry.id}, "", "");
1893
1894      var t = getTargetForHistory($('body'));
1895      var restorationData = makeHistoryEntry(t.html(), window.pageYOffset, newUrl, document.title);
1896      history.pushState({'ic-id': restorationData.id}, "", newUrl);
1897
1898      triggerEvent(t, "pushUrl.ic", [t, restorationData]);
1899    }
1900
1901    function handleHistoryNavigation(event) {
1902      var data = event.state;
1903      if (data && data['ic-id']) {
1904        var historyData = JSON.parse(storage.getItem(data['ic-id']));
1905        if (historyData) {
1906          processICResponse(historyData["content"], getTargetForHistory($('body')), true);
1907          if (historyData["yOffset"]) {
1908            setTimeout(function () {
1909              window.scrollTo(0, historyData["yOffset"]);
1910            }, 100);
1911          }
1912          if (historyData["title"]) {
1913            document.title = historyData["title"];
1914          }
1915          return true;
1916        } else {
1917          $.get(currentUrl(), {'ic-restore-history': true}, function(data, status) {
1918            var newDoc = createDocument(data);
1919            var replacementHtml = getTargetForHistory(newDoc).html();
1920            processICResponse(replacementHtml, getTargetForHistory($('body')), true);
1921          });
1922        }
1923      }
1924      return false;
1925    }
1926
1927    function getTargetForHistory(elt) {
1928      var explicitHistoryTarget = elt.find(getICAttributeSelector('ic-history-elt'));
1929      if (explicitHistoryTarget.length > 0) {
1930        return explicitHistoryTarget;
1931      } else {
1932        return elt;
1933      }
1934    }
1935
1936    function snapshotForHistory(newUrl, oldTitle) {
1937      var t = getTargetForHistory($('body'));
1938      triggerEvent(t, "beforeHistorySnapshot.ic", [t]);
1939      _snapshot = {
1940        newUrl: newUrl,
1941        oldHtml: t.html(),
1942        yOffset: window.pageYOffset,
1943        oldTitle: oldTitle
1944      };
1945    }
1946
1947    function dumpLocalStorage() {
1948      var str = "";
1949      var keys = [];
1950      for (var x in storage) {
1951        keys.push(x);
1952      }
1953      keys.sort();
1954      var total = 0;
1955      for (var i in keys) {
1956        var size = (storage[keys[i]].length * 2);
1957        total += size;
1958        str += keys[i] + "=" + (size / 1024 / 1024).toFixed(2) + " MB\\n";
1959      }
1960      return str + "\\nTOTAL LOCAL STORAGE: " + (total / 1024 / 1024).toFixed(2) + " MB";
1961    }
1962
1963    function supportData() {
1964      return historySupportData;
1965    }
1966
1967    /* API */
1968    return {
1969      clearHistory: clearHistory,
1970      updateHistory: updateHistory,
1971      addPopStateHandler: addPopStateHandler,
1972      snapshotForHistory: snapshotForHistory,
1973      _internal: {
1974        addPopStateHandler: addPopStateHandler,
1975        supportData: supportData,
1976        dumpLocalStorage: dumpLocalStorage,
1977        updateLRUList: updateLRUList
1978      }
1979    };
1980  }
1981
1982  function getSlotLimit() {
1983    return 20;
1984  }
1985
1986  function refresh(val) {
1987    if (typeof val == 'string' || val instanceof String) {
1988      refreshDependencies(val);
1989    } else {
1990      fireICRequest(val);
1991    }
1992    return Intercooler;
1993  }
1994
1995  var _history = null;
1996  try {
1997    _history = newIntercoolerHistory(localStorage, window.history, getSlotLimit(), .1);
1998  } catch(e) {
1999    log($('body'), "Could not initialize history", "WARN");
2000  }
2001
2002  //============================================================
2003  // Local references transport
2004  //============================================================
2005
2006  if($.ajaxTransport) {
2007    $.ajaxTransport("text", function(options, origOptions) {
2008        if (origOptions.url[0] == "#") {
2009          var ltAttr = fixICAttributeName("ic-local-");
2010          var src = $(origOptions.url);
2011          var rsphdr = [];
2012          var status = 200;
2013          var statusText = "OK";
2014          src.each(function(i, el) {
2015            $.each(el.attributes, function(j, attr) {
2016              if (attr.name.substr(0, ltAttr.length) == ltAttr) {
2017                var lhName = attr.name.substring(ltAttr.length);
2018                if (lhName == "status") {
2019                  var statusLine = attr.value.match(/(\\d+)\\s?(.*)/);
2020                  if (statusLine != null) {
2021                    status = statusLine[1];
2022                    statusText = statusLine[2];
2023                  } else {
2024                    status = "500";
2025                    statusText = "Attribute Error";
2026                  }
2027                } else {
2028                  rsphdr.push(lhName + ": " + attr.value);
2029                }
2030              }
2031            });
2032          });
2033          var rsp = src.length > 0 ? src.html() : "";
2034          return {
2035            send: function(reqhdr, completeCallback) {
2036              completeCallback(status, statusText, {html: rsp}, rsphdr.join("\\n"));
2037            },
2038            abort: function() {
2039            }
2040          };
2041        } else {
2042          return null;
2043        }
2044      }
2045    );
2046
2047  }
2048
2049  //============================================================
2050  // Bootstrap
2051  //============================================================
2052
2053  function init() {
2054    var elt = $('body');
2055    processNodes(elt);
2056    fireReadyStuff(elt);
2057    if(_history) {
2058      _history.addPopStateHandler(window);
2059    }
2060    if($.zepto) {
2061      $('body').data('zeptoDataTest', {});
2062      if(typeof($('body').data('zeptoDataTest')) == "string") {
2063        log(null,
2064          "!!!! Please include the data module with Zepto!  Intercooler requires full data support to function !!!!",
2065          "ERROR")
2066      }
2067    }
2068  }
2069
2070  $(function() {
2071    init();
2072  });
2073
2074  /* ===================================================
2075   * API
2076   * =================================================== */
2077  return {
2078    refresh: refresh,
2079    history: _history,
2080    triggerRequest: fireICRequest,
2081    processNodes: processNodes,
2082    closestAttrValue: closestAttrValue,
2083    verbFor: verbFor,
2084    isDependent: isDependent,
2085    getTarget: getTarget,
2086    processHeaders: processHeaders,
2087    startPolling: startPolling,
2088    cancelPolling: cancelPolling,
2089    setIsDependentFunction: function(func) {
2090      _isDependentFunction = func;
2091    },
2092    ready: function(readyHandler) {
2093      _readyHandlers.push(readyHandler);
2094    },
2095    _internal: {
2096      init: init,
2097      replaceOrAddMethod: replaceOrAddMethod,
2098      initEventSource: function(url, withCredentials) {
2099        return new EventSource(url, {withCredentials: withCredentials});
2100      },
2101      globalEval: globalEval,
2102      getLocalURL: getLocalURL
2103    }
2104  };
2105})();
2106
2107return Intercooler;
2108
2109}));
2110`},3054:function(t){t.exports=`'use strict';var pdfflip=pdfflip||{},PRESENTATION=pdfflip;!function(e,t){e.version="1.4.31",e.PAGE_MODE={SINGLE:1,DOUBLE:2,AUTO:null},e.SINGLE_PAGE_MODE={ZOOM:1,BOOKLET:2,AUTO:null},e.CONTROLSPOSITION={HIDDEN:"hide",TOP:"top",BOTTOM:"bottom"},e.DIRECTION={LTR:1,RTL:2},e.CORNERS={TL:"tl",TR:"tr",BL:"bl",BR:"br",L:"l",R:"r",NONE:null},e.SOURCE_TYPE={IMAGE:"image",PDF:"pdf",HTML:"html"},e.DISPLAY_TYPE={WEBGL:"3D",HTML:"2D"},e.PAGE_SIZE={AUTO:0,SINGLE:1,DOUBLEINTERNAL:2};var n,i,o,a,r=e.defaults={webgl:!0,webglShadow:!0,enableSound:!0,height:"100%",autoEnableOutline:!1,autoEnableThumbnail:!1,overwritePDFOutline:!0,downloadEnable:!0,duration:800,direction:e.DIRECTION.LTR,pageMode:e.PAGE_MODE.AUTO,singlePageMode:e.SINGLE_PAGE_MODE.AUTO,backgroundColor:"#fff",forceFit:!0,transparent:!1,hard:"none",openPage:1,annotationClass:"",autoPlay:!0,autoPlayDuration:3e3,autoPlayStart:!1,maxTextureSize:1600,minTextureSize:256,rangeChunkSize:524288,icons:{altnext:"ti-angle-right",altprev:"ti-angle-right",next:"fa fa-chevron-right",prev:"fa fa-chevron-left",end:"ti-angle-double-right",start:"ti-angle-double-left",share:"fa fa-share",help:"ti-help-alt",more:"ti-more-alt",download:"fa fa-file-ppdff-o",zoomin:"ti-zoom-in",zoomout:"ti-zoom-out",fullscreen:"fa fa-arrows-alt",fitscreen:"ti-arrows-corner",thumbnail:"ti-layout-grid2",outline:"ti-menu-alt",close:"ti-close",doublepage:"ti-book",singlepage:"ti-file",sound:"ti-volume",facebook:"ti-facebook",google:"ti-google",twitter:"ti-twitter-alt",mail:"ti-email",play:"ti-control-play",pause:"ti-control-pause"},text:{toggleSound:"Sound",toggleThumbnails:"Thumbnails",toggleOutline:"Contents",previousPage:"Previous Page",nextPage:"Next Page",toggleFullscreen:"Fullscreen",zoomIn:"Zoom In",zoomOut:"Zoom Out",downloadPDFFile:"Download PDF",gotoFirstPage:"First Page",gotoLastPage:"Last Page",play:"AutoPlay On",pause:"AutoPlay Off",share:"Share"},allControls:"startPage,altPrev,pageNumber,altNext,endPage,play,outline,thumbnail,zoomIn,zoomOut,fullScreen,share,download,sound",moreControls:"",hideControls:"",controlsPosition:e.CONTROLSPOSITION.BOTTOM,paddingTop:15,paddingLeft:15,paddingRight:15,paddingBottom:-10,scrollWheel:!0,onCreate:function(e){},onCreateUI:function(e){},onFlip:function(e){},beforeFlip:function(e){},onReady:function(e){},zoomRatio:1.5,pageSize:e.PAGE_SIZE.AUTO,pdfjsSrc:"js/libs/pdf.min.js",pdfjsCompatibilitySrc:"js/libs/compatibility.js",pdfjsWorkerSrc:"js/libs/pdf.worker.min.js",threejsSrc:"js/libs/three.min.js",utilsSrc:"js/libs/utils.min.js",soundFile:"sound/turn.mp3",imagesLocation:"images",imageResourcesPath:"images/pdfjs/",cMapUrl:"cmaps/",enableDebugLog:!1,canvasToBlob:!1,enableAnnotation:!0,pdfRenderQuality:.9,textureLoadFallback:"blank",stiffness:3,backgroundImage:"pflip/background.jpg",pageRatio:null,pixelRatio:window.devicePixelRatio||1,thumbElement:"div",spotLightIntensity:.22,ambientLightColor:"#fff",ambientLightIntensity:.8,shadowOpacity:.08},s="WebKitCSSMatrix"in window||document.body&&"MozPerspective"in document.body.style,l="onmousedown"in window,c=(window,navigator.userAgent),d=e.utils={drag:{left:0,right:1,none:-1}
2110,mouseEvents:l?{type:"mouse",start:"mousedown",move:"mousemove",end:"mouseup"}:{type:"touch",start:"touchstart",move:"touchmove",end:"touchend"},html:{div:"<div/>",img:"<img/>",a:"<a>",input:"<input type='text'/>"},toRad:function(e){return e*Math.PI/180},isset:function(e,t){return null==e?t:e},isnull:function(e){return null==e||null==e},toDeg:function(e){return 180*e/Math.PI},transition:function(e,t){return e?t/1e3+"s ease-out":"0s none"},display:function(e){return e?"block":"none"},resetTranslate:function(){return b(0,0)},translateStr:function(e,t){return s?" translate3d("+e+"px,"+t+"px, 0px) ":" translate("+e+"px, "+t+"px) "},httpsCorrection:function(e){var t=window.location;return t.href.indexOf("https://")>-1&&e.indexOf(t.hostname)>-1&&(e=e.replace("http://","https://")),e},resetBoxShadow:function(){return"rgba(0, 0, 0, 0) 0px 0px 20px"},rotateStr:function(e){return" rotateZ("+e+"deg) "},bg:function(e){return"#fff"+y(e)},bgImage:function(e){return null==e||"blank"==e?"":" url("+e+")"},src:function(e){return null!=e?""+e:""},limitAt:function(e,t,n){return e<t?t:e>n?n:e},distOrigin:function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))},distPoints:function(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))},calculateScale:function(e,t){var n=C(e[0].x,e[0].y,e[1].x,e[1].y);return C(t[0].x,t[0].y,t[1].x,t[1].y)/n},getVectorAvg:function(e){return{x:e.map(function(e){return e.x}).reduce(d.sum)/e.length,y:e.map(function(e){return e.y}).reduce(d.sum)/e.length}},sum:function(e,t){return e+t},getTouches:function(e,t){return t=t||{left:0,top:0},Array.prototype.slice.call(e.touches).map(function(e){return{x:e.pageX-t.left,y:e.pageY-t.top}})},angleByDistance:function(e,t){var n=t/2,i=P(e,0,t);return i<n?v(Math.asin(i/n)):90+v(Math.asin((i-n)/n))},log:function(e){1==r.enableDebugLog&&window.console&&console.log(e)},lowerPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},nearestPowerOfTwo:function(e,t){return Math.min(t||2048,Math.pow(2,Math.ceil(Math.log(e)/Math.LN2)))},zoomStops:function(e,t,n,i,o){null==i&&(i=256),null==o&&(o=2048);var a=Math.log(e/i)/Math.log(t);return i*Math.pow(t,null==n?Math.round(a):1==n?Math.ceil(a):Math.floor(a))},extendOptions:function(e,n){return t.extend(!0,{},e,n)},getFullscreenElement:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},hasFullscreenEnabled:function(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},getBasePage:function(e){return 2*Math.floor(e/2)},loadResources:function(e,t,n){var i=document,o=i.createElement(e),a=i.getElementsByTagName(e)[0];o.async=!0,n&&o.addEventListener("load",function(e){n(null,e)},!1),o.src=t,a.parentNode.insertBefore(o,a)},getScript:function(e,t,n){var i=document.createElement("script"),o=document.body.getElementsByTagName("script")[0];function a(e,o){null!=i&&(o||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i=null,i=null,o||(t&&t(),t=null,n=null))}i.async=1,i.setAttribute("data-cfasync",!1),null!=o?(o.parentNode.insertBefore(i,o),o=null):document.body.appendChild(i),i.addEventListener("load",a,!1),i.addEventListener("readystatechange",a,!1),i.addEventListener("complete",a,!1),n&&i.addEventListener("error",n,!1),i.src=e+("MS"==R.dom?"?"+Math.random(1):"")},isHardPage:function(e,t,n,i){if(null!=e){if("cover"==e)return 0==t||i&&1==t||t==Math.floor(n/(i?1:2))-(i?0:1);if("all"==e)return!0;var o=(","+e+",").indexOf(","+(2*t+1)+",")>-1,a=(","+e+",").indexOf(","+(2*t+2)+",")>-1;return o||a}return!1},fixMouseEvent:function(e){if(e){var n=e.originalEvent||e;if(n.changedTouches&&n.changedTouches.length>0){var i=t.event.fix(e),o=n.changedTouches[0];return i.clientX=o.clientX,i.clientY=o.clientY,i.pageX=o.pageX,i.touches=n.touches,i.pageY=o.pageY,i.movementX=o.movementX,i.movementY=o.movementY,i}return e}return e},hasWebgl:function(){try{var e=document.createElement("canvas");return!(!window.WebGLRenderingContext||!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(e){return!1}}(),isBookletMode:function(t){return t.pageMode==e.PAGE_MODE.SINGLE&&t.singlePageMode==e.SINGLE_PAGE_MODE.BOOKLET},isRTLMode:function(t){return t.direction==e.DIRECTION.RTL},isMobile:(a=!1,o=c||navigator.vendor||window.opera,(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-
2110)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(o.substr(0,4)))&&(a=!0),a),isIOS:/(iPad|iPhone|iPod)/g.test(c),isSafari:/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||safari.pushNotification).toString(),prefix:(n=window.getComputedStyle(document.documentElement,""),i=Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)[1],{dom:"WebKit|Moz|MS".match(new RegExp("("+i+")","i"))[1],lowercase:i,css:"-"+i+"-",js:i[0].toUpperCase()+i.substr(1)}),__extends:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super=t.prototype,e}},u=e.SOURCE_TYPE,p=(e.DISPLAY_TYPE,d.drag),h=d.mouseEvents,f=d.html,g=d.isset,m=(d.isnull,d.toRad),v=d.toDeg,b=(d.transition,d.translateStr),w=(d.resetBoxShadow,d.rotateStr),y=(d.bg,d.bgImage),P=(d.src,d.limitAt),x=d.distOrigin,C=d.distPoints,E=d.angleByDistance,S=d.log,k=d.nearestPowerOfTwo,T=d.extendOptions,L=d.getBasePage,O=d.getScript,I=d.fixMouseEvent,R=d.prefix,M=d.isBookletMode,D=d.isRTLMode,F=d.isMobile,z=d.hasWebgl,N=d.isSafari,A=d.isIOS,B=d.__extends;!function(){if(window.CanvasPixelArray)"function"!=typeof window.CanvasPixelArray.prototype.set&&(window.CanvasPixelArray.prototype.set=function(e){for(var t=0,n=this.length;t<n;t++)this[t]=e[t]});else{var e,t=!1;if(N&&(t=(e=c.match(/Version\\/([0-9]+)\\.([0-9]+)\\.([0-9]+) Safari\\//))&&parseInt(e[1])<6),t){var n=window.CanvasRenderingContext2D.prototype,i=n.createImageData;n.createImageData=function(e,t){var n=i.call(this,e,t);return n.data.set=function(e){for(var t=0,n=this.length;t<n;t++)this[t]=e[t]},n},n=null}}}(),"requestAnimationFrame"in window||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,20)}),function(){if("undefined"!=typeof Uint8Array)return void 0===Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(e,t){return new Uint8Array(this.slice(e,t))},Float32Array.prototype.subarray=function(e,t){return new Float32Array(this.slice(e,t))}),void("undefined"==typeof Float64Array&&(window.Float64Array=Float32Array));function e(e,t){return new n(this.slice(e,t))}function t(e,t){arguments.length<2&&(t=0);for(var n=0,i=e.length;n<i;++n,++t)this[t]=255&e[n]}function n(n){var i,o,a;if("number"==typeof n)for(i=[],o=0;o<n;++o)i[o]=0;else if("slice"in n)i=n.slice(0);else for(i=[],o=0,a=n.length;o<a;++o)i[o]=n[o];return i.subarray=e,i.buffer=i,i.byteLength=i.length,i.set=t,"object"==typeof n&&n.buffer&&(i.buffer=n.buffer),i}window.Uint8Array=n,window.Int8Array=n,window.Uint32Array=n,window.Int32Array=n,window.Uint16Array=n,window.Float32Array=n,window.Float64Array=n}();var j=function(n,i){var o="pdff-ui",a="pdff-ui-wrapper",r=o+"-btn",s=i.ui=t(f.div,{class:o}),l=i.options;s.dispose=function(){n.find("."+r).each(function(){t(this).off()}),y.off(),u.off(),p.off(),h.off(),g.off(),m.off(),v.off(),b.off(),P.off(),x.off(),T.off(),L.off(),I.off(),R.off(),M.off(),D.off(),F.off(),z.off(),N.off(),A.off(),O.remove(),w.remove(),p.remove(),u.remove(),g.remove(),s.shareBox&&(s.shareBox.dispose&&s.shareBox.dispose(),s.shareBox=null),document.removeEventListener("keyup",X,!1),window.removeEventListener("click",C,!1),s.update=null,i=null};var c=function(e){return isNaN(e)?e=i.target._activePage:e<1?e=1:e>i.target.pageCount&&(e=i.target.pageCount),e},u=s.next=t(f.div,{class:r+" "+o+"-next "+l.icons.next,title:l.text.nextPage,html:"<span>"+l.text.nextPage+"</span>"}).on("click",function(){i.next()}),p=s.prev=t(f.div,{class:r+" "+o+"-prev "+l.icons.prev,title:l.text.previousPage,html:"<span>"+l.text.previousPage+"</span>"}).on("click",function(){i.prev()}),h=t(f.div,{class:r+" "+o+"-play "+l.icons.play,title:l.text.play,html:"<span>"+l.text.play+"</span>"}).on("click",function(){var e=t(this);i.setAutoPlay(!e.hasClass(l.icons.pause))});1==l.autoPlay&&(s.play=h,i.setAutoPlay(l.autoPlayStart));var g=t(f.div,{class:a+" "+o+"-zoom"}),m=s.zoomIn=t(f.div,{class:r+" "+o+"-zoomin "+l.icons.zoomin,title:l.text.zoomIn,html:"<span>"+l.text.zoomIn+"</span>"}).on("click",function(){i.zoom(1),s.update(),i.target.startPoint&&i.target.pan&&i.target.pan(i.target.startPoint)}),v=s.zoomOut=t(f.div,{class:r+" "+o+"-zoomout "+l.icons.zoomout,title:l.text.zoomOut,html:"<span>"+l.text.zoomOut+"</span>"}).on("click",function(){i.zoom(-1),s.update(),i.target.startPoint&&i.target.pan&&i.target.pan(i.target.startPoint)});g.append(m).append(v);var b=s.pageNumber=t(f.div,{class:r+" "+o+"-page"}).on("change",function(){var e=parseInt(s.pageInput.val(),10);e=c(e),i.gotoPage(e)}
2110).on("keyup",function(e){if(13==e.keyCode){var t=parseInt(s.pageInput.val(),10);(t=c(t))!==c(i.target._activePage||i._activePage)&&i.gotoPage(t)}});s.pageInput=t('<input id="df_book_page_number" type="text"/>').appendTo(b),s.pageLabel=t('<label for="df_book_page_number"/>').appendTo(b);var w=t(f.div,{class:a+" "+o+"-size"}),y=t(f.div,{class:r+" "+o+"-help "+l.icons.help,title:l.text.toggleHelp,html:"<span>"+l.text.toggleHelp+"</span>"}).on("click",function(){}),P=s.sound=t(f.div,{class:r+" "+o+"-sound "+l.icons.sound,title:l.text.toggleSound,html:"<span>"+l.text.toggleSound+"</span>"}).on("click",function(){l.enableSound=!l.enableSound,s.updateSound()});s.updateSound=function(){0==l.enableSound||"false"==l.enableSound?P.addClass("disabled"):P.removeClass("disabled")},s.updateSound();var x=s.more=t(f.div,{class:r+" "+o+"-more "+l.icons.more}).on("click",function(e){x.hasClass("pdff-active")||(t(this).addClass("pdff-active"),e.stopPropagation())});function C(e){x.removeClass("pdff-active")}window.addEventListener("click",C,!1);var E=t(f.div,{class:"more-container"});if(x.append(E),"string"==typeof l.source&&1==l.downloadEnable){var k=r+" "+o+"-download "+l.icons.download;(s.download=t('<a download target="_blank" class="'+k+'"><span>'+l.text.downloadPDFFile+"</span></a>")).attr("href",l.source).attr("title",l.text.downloadPDFFile)}d.hasFullscreenEnabled()||n.addClass("pdff-custom-fullscreen"),s.switchFullscreen=function(){d.getFullscreenElement();var e=i.container[0];1!=s.isFullscreen?(i.container.addClass("pdff-fullscreen"),e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen(),s.isFullscreen=!0):(i.container.removeClass("pdff-fullscreen"),s.isFullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),d.hasFullscreenEnabled()||setTimeout(function(){i.resize()},50)};var T=s.fullScreen=t(f.div,{class:r+" "+o+"-fullscreen "+l.icons.fullscreen,title:l.text.toggleFullscreen,html:"<span>"+l.text.toggleFullscreen+"</span>"}).on("click",s.switchFullscreen),L=s.fit=t(f.div,{class:r+" "+o+"-fit "+l.icons.fitscreen}).on("click",function(){t(this).toggleClass("pdff-button-fit-active")});w.append(T);var O=t(f.div,{class:a+" "+o+"-controls"}),I=(s.shareBox=new e.Share(n,l),s.share=t(f.div,{class:r+" "+o+"-share "+l.icons.share,title:l.text.share,html:"<span>"+l.text.share+"</span>"}).on("click",function(e){1==s.shareBox.isOpen?s.shareBox.close():(s.shareBox.update(i.getURLHash()),s.shareBox.show())})),R=s.startPage=t(f.div,{class:r+" "+o+"-start "+l.icons.start,title:l.text.gotoFirstPage,html:"<span>"+l.text.gotoFirstPage+"</span>"}).on("click",function(){i.start()}),M=s.endPage=t(f.div,{class:r+" "+o+"-end "+l.icons.end,title:l.text.gotoLastPage,html:"<span>"+l.text.gotoLastPage+"</span>"}).on("click",function(){i.end()}),D=s.pageMode=t(f.div,{class:r+" "+o+"-pagemode "+l.icons.singlepage,html:"<span>"+l.text.singlePageMode+"</span>"}).on("click",function(){var e=t(this);i.setPageMode(!e.hasClass(l.icons.doublepage))});i.setPageMode(i.target.pageMode==e.PAGE_MODE.SINGLE);for(var F=s.altPrev=t(f.div,{class:r+" "+o+"-prev "+o+"-alt "+l.icons.prev,title:l.text.previousPage,html:"<span>"+l.text.previousPage+"</span>"}).on("click",function(){i.prev()}),z=s.altNext=t(f.div,{class:r+" "+o+"-next "+o+"-alt "+l.icons.next,title:l.text.nextPage,html:"<span>"+l.text.nextPage+"</span>"}).on("click",function(){i.next()}),N=s.thumbnail=t(f.div,{class:r+" "+o+"-thumbnail "+l.icons.thumbnail,title:l.text.toggleThumbnails,html:"<span>"+l.text.toggleThumbnails+"</span>"}).on("click",function(){var e=t(this);i.target.thumbContainer?(i.target.thumbContainer.toggleClass("pdff-sidemenu-visible"),e.toggleClass("pdff-active")):(i.contentProvider.initThumbs(),e.toggleClass("pdff-active")),e.hasClass("pdff-active")&&e.siblings(".pdff-active").trigger("click"),s.update(!0)}),A=s.outline=t(f.div,{class:r+" "+o+"-outline "+l.icons.outline,title:l.text.toggleOutline,html:"<span>"+l.text.toggleOutline+"</span>"}).on("click",function(){var e=t(this);if(i.target.outlineContainer){var n=i.target.outlineContainer;e.toggleClass("pdff-active"),n.toggleClass("pdff-sidemenu-visible"),e.hasClass("pdff-active")&&e.siblings(".pdff-active").trigger("click"),s.update(!0)}}),B=l.allControls.replace(/ /g,"").split(","),j=","+l.moreControls.replace(/ /g,"")+",",_=","+l.hideControls.replace(/ /g,"")+",",U=(j.split(","),0);U<B.length;U++){var H=B[U];if(_.indexOf(","+H+",")<0){var W=s[H];null!=W&&(j.indexOf(","+H+",")>-1&&"more"!==H&&"pageNumber"!==H?E.append(W):O.append(W))}}n.append(O).append(p).append(u).append(g);var G=16,V=17,q=18,Z=39,Y=37,K=27;function X(e){switch(e.keyCode){case K:1==s.isFullscreen&&s.fullScreen.trigger("click");break;case G:case V:case q:break;case Y:i.prev();break;case Z:i.next()}}document.addEventListener("keyup",X,!1),s.update=function(t){S("ui update");var o=i.target,a=c(o._activePage||i._activePage),r=o.pageCount||i.pageCount,l=o.direction==e.DIRECTION.RTL,d=1==a||0==a,u=a==r;s.next.show(),s.prev.show(),s.altNext.removeClass("disabled"),s.altPrev.removeClass("disabled"),(
2110d&&!l||u&&l)&&(s.prev.hide(),s.altPrev.addClass("disabled")),(u&&!l||d&&l)&&(s.next.hide(),s.altNext.addClass("disabled")),s.pageInput.val(a),s.pageLabel.html(a+"/"+r),n.find(".pdff-sidemenu-visible").length>0?n.addClass("pdff-sidemenu-open"):n.removeClass("pdff-sidemenu-open"),1==t&&i.resize(),o.contentProvider.zoomScale==o.contentProvider.maxZoom?s.zoomIn.addClass("disabled"):s.zoomIn.removeClass("disabled"),1==o.contentProvider.zoomScale?s.zoomOut.addClass("disabled"):s.zoomOut.removeClass("disabled")},null!=i.target&&(i.target.ui=s),null!=l.onCreateUI&&l.onCreateUI(i)},_=null;var U=function(n){function i(t){t=t||{},this.type="PreviewObject";var n=this;function i(){setTimeout(function(){n.resize()},50)}n.zoomValue=1,window.addEventListener("resize",i,!1),this.sound=document.createElement("audio"),this.sound.setAttribute("src",t.soundFile+"?ver="+e.version),this.sound.setAttribute("type","audio/mpeg"),this.autoPlayFunction=function(){n&&n.target.autoPlay&&(n.target.direction==e.DIRECTION.RTL?n.target.prev():n.target.next())},this.dispose=function(){if(clearInterval(this.autoPlayTimer),this.autoPlayTimer=null,this.autoPlayFunction=null,this.target&&this.target.children)for(var e=0;e<this.target.children.length;e++){var t=this.target.children[e];t&&t.currentTween&&t.currentTween.stop()}this.zoomTween&&(this.zoomTween.stop&&this.zoomTween.stop(),this.zoomTween=null),this.container&&this.container.info&&this.container.info.remove&&this.container.info.remove(),this.target&&this.target.dispose&&this.target.dispose(),this.target=null,this.stage&&this.stage.dispose&&this.stage.dispose(),this.stage=null,this.ui&&this.ui.dispose&&this.ui.dispose(),this.ui=null,this.contentProvider&&this.contentProvider.dispose&&this.contentProvider.dispose(),this.contentProvider=null,window.removeEventListener("resize",i)}}return i.prototype={start:function(){this.target.gotoPage(this.target.startPage)},end:function(){this.target.gotoPage(this.target.endPage)},next:function(){},prev:function(){},zoom:function(e){this.pendingZoom=!0,this.zoomDelta=e,this.resize(),this.ui.update()},resize:function(){var n=this;if(null!=n.target&&null!=n.target.ui&&null!=n.target.contentProvider&&null!=n.target.contentProvider.viewport&&null!=n.target.stage){this.ui&&1==this.ui.isFullscreen&&1==d.hasFullscreenEnabled()&&null==d.getFullscreenElement()&&this.ui.switchFullscreen();var i,o,a,r,s,l,c=n.target,p=n.container,h=n.options,f=c.stage,g=c.contentProvider,m=g.pageRatio,v=(g.zoomViewport,D(c)),b="css"!==c.mode,w=(g.pageRatio,p.hasClass("pdff-sidemenu-open")?220:0),y=this.target.pageMode==e.PAGE_MODE.SINGLE;p.height(h.height);var C=Math.min(p.height(),t(window).height());p.height(C);var E=p.width();E<400?n.container.addClass("pdff-xs"):n.container.removeClass("pdff-xs");var S=p.find(".pdff-ui-controls").height(),k=h.paddingTop+(h.controlsPosition==e.CONTROLSPOSITION.TOP?S:0),T=h.paddingRight,L=h.paddingBottom+(h.controlsPosition==e.CONTROLSPOSITION.BOTTOM?S:0),O=h.paddingLeft,I=E-w,R=C,M=(k=isNaN(k)?0:P(k,0,k))+(L=isNaN(L)?0:P(L,0,L)),F=(O=isNaN(O)?0:P(O,0,O))+(T=isNaN(T)?0:P(T,0,T)),z=I-F,N=R-M;if(a=Math.floor(y?z:z/2),(i=(o=Math.floor(a/m))>N)&&(a=(o=N)*m),l=g.maxZoom=g.zoomViewport.height/o,null==n.zoomValue&&(n.zoomValue=1),null==g.zoomScale&&(g.zoomScale=1),1==n.pendingZoom&&null!=n.zoomDelta){n.zoomDelta;var A,B=Math.max(o,a);n.zoomValue=n.zoomDelta>0?n.zoomValue*n.options.zoomRatio:n.zoomValue/n.options.zoomRatio,n.zoomValue=P(n.zoomValue,1,l),1==n.zoomValue?g.zoomScale=1:(A=o*n.zoomValue,A=d.zoomStops(A,n.options.zoomRatio,n.zoomDelta>0,Math.max(a,o)),g.zoomScale=P(A/B,1,l))}s=g.zoomScale,g.checkViewportSize(a,o,s),g.contentSourceType==u.PDF&&(a=g.imageViewport.width/s,o=g.imageViewport.height/s),1!=g.zoomScale&&this.target.container.addClass("pdff-zoom-enabled");var j=c.zoomWidth=Math.floor(a*s),_=c.zoomHeight=Math.floor(o*s),U=2*j;if(b){var H=_/c.height,W=i?s*(o+M)/H:s*(a*(y?1:2)+F)/H/(I/R);f.resizeCanvas(I,R),r=1/(2*Math.tan(Math.PI*f.camera.fov*.5/180)/(W/s))+2.2,f.camera.updateProjectionMatrix(),f.renderRequestPending=!0;var G=(k-L)*(c.height/o)/s/2,V=1==g.zoomScale;f.camera.position.z!==r&&1==n.pendingZoom?(null!=n.zoomTween&&n.zoomTween.stop(),n.zoomTween=new TWEEN.Tween({campos:f.camera.position.z,otx:f.orbitControl.target.x,oty:f.orbitControl.target.y,otz:f.orbitControl.target.z}).delay(0).to({campos:r,otx:0,oty:G,otz:0}
2110,100).onUpdate(function(){f.camera.position.z=this.campos,V&&(f.camera.position.y=this.oty,f.orbitControl.target=new THREE.Vector3(this.otx,this.oty,this.otz)),f.orbitControl.update()}).easing(TWEEN.Easing.Linear.None).onComplete(function(){f.camera.position.z=r,1==g.zoomScale&&(f.camera.position.set(0,G,r),f.orbitControl.target=new THREE.Vector3(0,G,0)),f.orbitControl.update()}).start()):(1==g.zoomScale&&(f.camera.position.set(0,G,r),f.orbitControl.target=new THREE.Vector3(0,G,0)),f.orbitControl.update()),f.orbitControl.update(),f.orbitControl.mouseButtons.ORBIT=1!=s?-1:THREE.MOUSE.RIGHT,f.orbitControl.mouseButtons.PAN=1!=s?THREE.MOUSE.LEFT:-1}else{c.pageWidth=Math.round(a),c.fullWidth=2*c.pageWidth,c.height=Math.round(o);var q=c.shiftHeight=Math.round(P((_-R+M)/2,0,_)),Z=c.shiftWidth=Math.round(P((U-I+F)/2,0,U));1==s&&(c.left=0,c.top=0),c.stage.css({top:-q,bottom:-q,right:-Z+(v?w:0),left:-Z+(v?0:w),paddingTop:k,paddingRight:T,paddingBottom:L,paddingLeft:O,transform:"translate3d("+c.left+"px,"+c.top+"px,0)"}),c.stageHeight=f.height(),c.wrapper.css({width:U,height:_,marginTop:C-_-M>0?(C-M-_)/2:0});var Y=Math.floor(x(a,o)*s);c.stage.find(".pdff-page-wrapper").width(Y).height(Y),c.stage.find(".ppdff-flipbook-page, .pdff-page-front , .pdff-page-back, .pdff-page-fold-inner-shadow").height(_).width(j)}n.checkCenter({type:"resize"}),1==g.zoomScale&&this.target.container.removeClass("pdff-zoom-enabled"),c.thumblist&&c.thumblist.reset(t(c.thumblist.container).height()),n.pendingZoom=!1}},playSound:function(){try{this.options&&1==this.options.enableSound&&(this.sound.currentTime=0,this.sound.play())}catch(e){}},setPageMode:function(t){1==t?(this.ui.pageMode.addClass(this.options.icons.doublepage),this.ui.pageMode.html("<span>"+this.options.text.doublePageMode+"</span>"),this.ui.pageMode.attr("title",this.options.text.doublePageMode),this.target.pageMode=e.PAGE_MODE.SINGLE):(this.ui.pageMode.removeClass(this.options.icons.doublepage),this.ui.pageMode.html("<span>"+this.options.text.singlePageMode+"</span>"),this.ui.pageMode.attr("title",this.options.text.singlePageMode),this.target.pageMode=e.PAGE_MODE.DOUBLE),this.target&&this.target.singlePageMode==e.SINGLE_PAGE_MODE.BOOKLET&&this.target.reset(),this.resize()},setAutoPlay:function(e){if(this.options.autoPlay){var t=(e=1==e)?this.options.text.pause:this.options.text.play;this.ui.play.toggleClass(this.options.icons.pause,e),this.ui.play.html("<span>"+t+"</span>"),this.ui.play.attr("title",t),clearInterval(this.autoPlayTimer),e&&(this.autoPlayTimer=setInterval(this.autoPlayFunction,this.options.autoPlayDuration)),this.target.autoPlay=e}},height:function(e){if(null==e)return this.container.height();this.options.height=e,this.container.height(e),this.resize()},checkCenter:function(t){t=null==t?{}:t,this.centerType=this.centerType||"start";var n,i=this.target,o=0,a=0,r=0,s=d.getBasePage(i._activePage),l=i._activePage%2==0,c=i.direction==e.DIRECTION.RTL,u=i.pageMode==e.PAGE_MODE.SINGLE,p=u&&i.singlePageMode==e.SINGLE_PAGE_MODE.BOOKLET,h=i.stage.width();if("css"==i.mode)n=i.wrapper.width(),o=Math.max((n-h)/2,0),a=-n/4,r=n/4,0==s||p?(i.wrapper.css({left:u?c?r-o:a-o:c?r:a}),i.shadow.css({width:"50%",left:c?0:"50%",transitionDelay:""})):s==i.pageCount?(i.wrapper.css({left:u?c?a-o:r-o:c?a:r}),i.shadow.css({width:"50%",left:c?"50%":0,transitionDelay:""})):(i.wrapper.css({left:u?c?l?a-o:r-o:l?r-o:a-o:0}),i.shadow.css({width:"100%",left:0,transitionDelay:parseInt(i.duration,10)+50+"ms"})),i.wrapper.css({transition:"resize"==t.type?"none":""});else if(null!=i.stage){var f,g=i.position.x;o=i.width/4,a=-(n=i.width)/2,r=n/2,(f=0==s||p?c?r:a:s==i.pageCount?c?a:r:u?c?l?a:r:l?r:a:0)!==this.centerEnd&&(this.centerTween=new TWEEN.Tween({x:g}).delay(0).to({x:f},i.duration).onUpdate(function(){i.position.x=this.x,i.stage.cssScene.position.x=this.x}).easing(i.ease).start(),this.centerEnd=f)}},width:function(e){if(null==e)return this.container.width();this.options.width=e,this.container.width(e),this.resize()}},i}();e.PreviewObject=U;var H=function(n){function i(n,i,o,a){o=o||{};var s=this;if(s.contentRawSource=n||[r.textureLoadFallback],s.contentSource=s.contentRawSource,s.contentSourceType=null,s.minDimension=o.minTextureSize||256,s.maxDimension=o.maxTextureSize||2048,s.pdfRenderQuality=o.pdfRenderQuality||e.defaults.pdfRenderQuality,s.flipbook=a,s.waitPerio
2110d=50,s.maxLength=297,s.enableDebug=!1,s.zoomScale=1,s.maxZoom=2,s.options=o,s.outline=o.outline,s.links=o.links,s.html=o.html,s.isCrossOrigin=o.isCrossOrigin,s.normalViewport={height:297,width:210,scale:1},s.viewport={height:297,width:210,scale:1},s.imageViewport={height:297,width:210,scale:1},s.bookSize={height:297,width:210},s.zoomViewport={height:297,width:210},s.thumbsize=128,s.cacheIndex=256,s.cache=[],s.pageRatio=o.pageRatio||s.viewport.width/s.viewport.height,s.textureLoadTimeOut=null,s.type="TextureLibrary",Array===s.contentSource.constructor||Array.isArray(s.contentSource)||s.contentSource instanceof Array)s.contentSourceType=u.IMAGE,s.pageCount=s.contentSource.length,t("<img/>").attr("src",s.contentSource[0]).on("load",function(){s.viewport.height=this.height,s.viewport.width=this.width,s.pageRatio=s.viewport.width/s.viewport.height,s.bookSize={width:(s.pageRatio>1?1:s.pageRatio)*s.maxLength,height:s.maxLength/(s.pageRatio<1?1:s.pageRatio)},s.zoomViewport={width:(s.pageRatio>1?1:s.pageRatio)*s.maxDimension,height:s.maxDimension/(s.pageRatio<1?1:s.pageRatio)},s.linkService=new PDFLinkService,t(this).off(),s.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&(s.pageCount=2*s.contentSource.length-2,1==s.options.webgl&&(s.requiresImageTextureScaling=!0)),null!=i&&(i(s),i=null),S(this.height+":"+this.width)});else if("string"==typeof s.contentSource||s.contentSource instanceof String){var l=function(){if(s){PDFJS.workerSrc=r.pdfjsWorkerSrc,s.contentSourceType=u.PDF,PDFJS.disableAutoFetch=!0,PDFJS.disableStream=!0,(N||A||1==s.options.disableFontFace)&&(PDFJS.disableFontFace=N||A||1==s.options.disableFontFace),PDFJS.imageResourcesPath=r.imageResourcesPath,PDFJS.cMapUrl=r.cMapUrl,PDFJS.cMapPacked=!0,PDFJS.externalLinkTarget=PDFJS.LinkTarget.BLANK;var t=s.loading=PDFJS.getDocument(s.options.docParameters?s.options.docParameters:{url:d.httpsCorrection(n),rangeChunkSize:isNaN(e.defaults.rangeChunkSize)?524288:e.defaults.rangeChunkSize});t.then(function(t){s.pdfDocument=t,t.getPage(1).then(function(n){s.normalViewport=n.getViewport(1),s.viewport=n.getViewport(1),s.viewport.height=s.viewport.height/10,s.viewport.width=s.viewport.width/10,s.pageRatio=s.viewport.width/s.viewport.height,s.bookSize={width:(s.pageRatio>1?1:s.pageRatio)*s.maxLength,height:s.maxLength/(s.pageRatio<1?1:s.pageRatio)},s.zoomViewport={width:(s.pageRatio>1?1:s.pageRatio)*s.maxDimension,height:s.maxDimension/(s.pageRatio<1?1:s.pageRatio)},s.refPage=n,t.numPages>1?t.getPage(2).then(function(n){if(s.options.pageSize==e.PAGE_SIZE.AUTO){var o=n.getViewport(1);o.width/o.height>1.5*s.pageRatio?(s.options.pageSize=e.PAGE_SIZE.DOUBLEINTERNAL,s.pageCount=2*t.numPages-2):s.options.pageSize=e.PAGE_SIZE.SINGLE}null!=i&&(i(s),i=null)}):null!=i&&(i(s),i=null)}),s.linkService=new PDFLinkService,s.linkService.setDocument(t,null),s.pageCount=t.numPages,s.contentSource=t},function(e){if(s){var t="",n=document.createElement("a");n.href=s.contentSource,n.hostname!==window.location.hostname&&(t="CROSS ORIGIN!! "),s.updateInfo(t+"Error Loading File -  "+s.contentSource)}}),t.onProgress=function(e){if(s){var t=100*e.loaded/e.total;isNaN(t)?e&&e.loaded?s.updateInfo("Loading Pages "+(Math.ceil(e.loaded/1e4)/100).toString()+"MB ..."):s.updateInfo("Loading Pages ..."):s.updateInfo("Loading Pages "+t.toString().split(".")[0]+"% ...")}}}},c=function(){if(s){r.pdfjsWorkerSrc+="?ver="+e.version,s.updateInfo("Loading Interface ...");var n=document.createElement("a");n.href=r.pdfjsWorkerSrc,n.hostname!==window.location.hostname?(s.updateInfo("Loading Interface ..."),t.ajax({url:r.pdfjsWorkerSrc,cache:!0,success:function(t){r.pdfjsWorkerSrc=e.createObjectURL(t,"text/javascript"),l()}})):l()}};null==window.PDFJS?s&&(s.updateInfo("Loading Interface ..."),O(r.pdfjsSrc+"?ver="+e.version,function(){"function"==typeof define&&define.amd?(s.updateInfo("Loading Interface ..."),require.config({paths:{"pdfjs-dist/build/pdf.worker":r.pdfjsWorkerSrc.replace(".js","")}}),require(["pdfjs-dist/build/pdf"],function(e){c()})):c()},function(){s.updateInfo("Unable to load Interface ..")})):l()}else console.error("Unsupported source type. Please load a valid PDF file.");return this.dispose=function(){s.loading&&s.loading.destroy&&s.loading.destroy(),s.loading=null,s.textureLoadTimeOut&&(clearTimeout(s.textureLoadTimeOut),s.textureLoadTimeOut=null),this.targetObject&&(this.targetObject.thumbContainer&&this.targetObject.thumbContainer.remove&&this.targetObject.thumbContainer.remove(),this.targetObject.outlineContainer&&this.targetObject.outlineContainer.remove&&this.targetObject.outlineContainer.remove(),this.targetObject.dispose&&this.targetObject.dispose(),this.targetObject.processPage=null,this.targetObject.requestPage=null,this.targetObject.container&&this.targetObject.container.off&&this.targetObject.container.off()),this.pdfDocument&&this.pdfDocument.destroy&&this.pdfDocument.destroy(),this.linkService&&this.linkService.dispose&&this.linkService.dispose(),this.outlineViewer&&this.outlineViewer.dispose&&this.outlineViewer.dispose(),this.thumblist&&this.thumblist.dispose&&(this.thumblist.review=null,this.thumblist.dispose()),this.activeThumb=null,this.targetObject=null,this.pdfDocument=null,this.linkService=null,this.outlineViewer=null,this.thumblist=null,s=null},this}return B(i,{}),i.prototype.updateInfo=function(e){this.flipbook&&this.flipbook.updateInfo&&this.flipbook.updateInfo(e)},i.prototype.initThumbs=function(){var e,n=this;null==n.cache[n.thumbsize]&&(n.cache[n.thumbsize]=[]);var i=function(){clearTimeout(e),e=setTimeout(function(){e=setTimeout(o,n.waitPerio
2110d/2)},n.waitPeriod)},o=function(){var o=0;if(Date.now()-n.thumblist.lastScrolled<100?o=1:(n.targetObject.container.find(".pdff-thumb-container .pdff-vrow").each(function(){var e=t(this);if(!e.hasClass("pdff-thumb-loaded")){o++;var a=t(this).attr("id").replace("pdff-thumb","");return n.getPage(a,i,!0),e.addClass("pdff-thumb-loaded"),!1}}),0==o&&clearTimeout(e)),o>0&&i(),n.activeThumb!=n.targetObject._activePage&&null!=n.targetObject.thumbContainer&&n.targetObject.thumbContainer.hasClass("pdff-sidemenu-visible")){var a=n.thumblist.container,r=a.scrollTop,s=a.getBoundingClientRect().height,l=n.targetObject.thumbContainer.find("#pdff-thumb"+n.targetObject._activePage);l.length>0?(n.targetObject.thumbContainer.find(".pdff-selected").removeClass("pdff-selected"),l.addClass("pdff-selected"),r+s<(l=l[0]).offsetTop+l.scrollHeight?l.scrollIntoView(!1):r>l.offsetTop&&l.scrollIntoView(),n.activeThumb=n.targetObject._activePage):(t(a).scrollTop(124*n.targetObject._activePage),i())}};n.thumblist=n.targetObject.thumblist=new ThumbList({h:500,addFn:function(e){},scrollFn:i,itemHeight:128,totalRows:n.pageCount,generatorFn:function(e){var t=document.createElement("div"),n=e+1;t.id="pdff-thumb"+n;var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i),t}}),n.thumblist.lastScrolled=Date.now(),n.thumblist.review=i,i();var a=t("<div>").addClass("pdff-thumb-container pdff-sidemenu-visible pdff-sidemenu");a.append(t(n.thumblist.container).addClass("pdff-thumb-wrapper")),n.targetObject.thumbContainer=a,n.targetObject.container.append(a);var r=t(f.div,{class:"pdff-ui-btn pdff-ui-sidemenu-close ti-close"});a.append(r),n.thumblist.reset(t(n.thumblist.container).height()),n.targetObject.container.on("click",".pdff-thumb-container .pdff-vrow",function(e){e.stopPropagation();var i=t(this).attr("id").replace("pdff-thumb","");n.targetObject.gotoPage(parseInt(i,10))})},i.prototype.initOutline=function(){var e=this,n=t("<div>").addClass("pdff-outline-container pdff-sidemenu"),i=t("<div>").addClass("pdff-outline-wrapper"),o=t(f.div,{class:"pdff-ui-btn pdff-ui-sidemenu-close ti-close"});function a(t){if(1==e.options.overwritePDFOutline&&(t=[]),t=t||[],e.outline)for(var n=0;n<e.outline.length;n++)e.outline[n].custom=!0,t&&t.push(e.outline[n]);e.outlineViewer.render({outline:t})}n.append(o).append(i),e.targetObject.container.append(n),e.targetObject.outlineContainer=n,e.outlineViewer=new BookMarkViewer({container:i[0],linkService:e.linkService,outlineItemClass:"pdff-outline-item",outlineToggleClass:"pdff-outline-toggle",outlineToggleHiddenClass:"pdff-outlines-hidden"}),e.pdfDocument?e.pdfDocument.getOutline().then(function(e){a(e)}):a([]),1==e.options.autoEnableOutline&&e.targetObject.ui.outline.trigger("click"),1==e.options.autoEnableThumbnail&&e.targetObject.ui.thumbnail.trigger("click")},i.prototype.checkViewportSize=function(e,t,n){var i=this,o=i.targetObject,a=e*n,s=t*n,l=i.cacheIndex;if(i.contentSourceType==u.PDF){if(i.cacheIndex=Math.ceil(Math.max(a,s)),i.cacheIndex=Math.floor(Math.max(a,s)),i.cacheIndex=P(i.cacheIndex*r.pixelRatio,i.minDimension,i.maxDimension),null==i.cache[i.cacheIndex]&&(i.cache[i.cacheIndex]=[]),l!==i.cacheIndex){for(var c=0;c<o.children.length;c++)o.children[c];o.refresh()}i.imageViewport=i.refPage.getViewport(s/i.normalViewport.height),i.viewport="css"==o.mode?i.imageViewport:i.refPage.getViewport(i.bookSize.height/i.normalViewport.height),S(i.cacheIndex);var d=o.container.find(".linkAnnotation"),p=i.viewport.clone({dontFlip:!0});d.css({transform:"matrix("+p.transform.join(",")+")"})}else null==i.cache[i.cacheIndex]&&(i.cache[i.cacheIndex]=[])},i.prototype.getCache=function(e,t){return 1==t?null==this.cache[this.thumbsize]?null:this.cache[this.thumbsize][e]:null==this.cache[this.cacheIndex]?null:this.cache[this.cacheIndex][e]},i.prototype.setCache=function(e,t,n,i){if(1==n)null!=this.cache[this.thumbsize]&&(this.cache[this.thumbsize][e]=t);else{var o=null==i?this.cacheIndex:i;
2110null!=this.cache[o]&&(this.cache[o][e]=t)}},i.prototype.setTarget=function(e){var t=this;if(null==e)return this.targetObject;this.targetObject=e,e.contentProvider=this,e.container.removeClass("pdff-loading pdff-init"),null!=t.linkService&&(t.linkService.setViewer(e),t.initOutline()),e.processPage=function(e,n){e>0&&e<=t.pageCount?t.getPage(e,n):t.setPage(e,r.textureLoadFallback,n)},e.requestPage=function(){t.review("Request")},null!=e.resize&&e.resize()},i.prototype.review=function(e){var t=this;e=e||"timer review",clearTimeout(t.textureLoadTimeOut),t.textureLoadTimeOut=setTimeout(function(){t.textureLoadTimeOut=setTimeout(t.reviewPages,t.waitPeriod/2,t,e)},t.waitPeriod)},i.prototype.reviewPages=function(e,n){var i=(e=e||this).targetObject;if(null!=i){var o=M(i);null!=n&&S(n);var a,r=!1;for(a=0;a<e.targetObject.children.length;a++)if(1==i.children[a].isFlipping){r=!0;break}if(0==r){var s=i.children.length>3?3:i.children.length,l=o?i._activePage:L(i._activePage);for(e.baseNumber=l,e.zoomScale>1&&(s=1),a=0;a<s;a++){var c=Math.floor(a/2),d=a%2==0?-c*(o?1:2):(0==c?1:c)*(o?1:2),u=l+d,p=l+d+1,h=i.getPageByNumber(u),f=i.getPageByNumber(p),g=u+"|"+e.cacheIndex,m=p+"|"+e.cacheIndex,v=0;if(null!=h&&h.frontPageStamp!=g&&1==h.visible&&(h.frontTextureLoaded=!1,i.processPage(u,function(){e.review("Batch Call")}),h.frontPageStamp=g,v++),null==f||f.backPageStamp==m||1!=f.visible||o||(f.backTextureLoaded=!1,i.processPage(p,function(){e.review("Batch Call")}),f.backPageStamp=m,v++),0==d&&e.annotedPage!==l&&(e.getAnnotations(u),o||e.getAnnotations(p),e.annotedPage=l),v>0)break}0==v&&"css"!==i.mode&&e.setLoading(l)}else if(e.review("Revisit request"),null!=e.annotedPage&&"css"!==i.mode){var b=L(i._activePage);t(i.getContentLayer(b)).html(""),t(i.getContentLayer(b+1)).html(""),e.annotedPage=null}}},i.prototype.getPage=function(t,n,i){var o,a,s,l,c=this,d=t=parseInt(t,10),p=c.contentSource;t<=0&&t>=c.pageCount?c.setPage(t,r.textureLoadFallback,n,i):c.contentSourceType==u.PDF?null!=c.getCache(t,i)?(c.setPage(t,c.getCache(t,i),n,i),S("Page "+t+" loaded from cache")):(!0!==i&&c.setLoading(t,!0),c.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&t>2&&(d=Math.ceil((t-1)/2)+1),p.getPage(d,i).then(function(o){!function(t,n,i,o){var a=c.options.forceFit,r=c.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&n>1&&n<c.pageCount,s=r&&a?2:1,l=a?t.getViewport(1):c.normalViewport,d=c.cacheIndex/Math.max(l.width/s,l.height);1==c.webgl&&(d=k(c.cacheIndex)/(c.pageRatio>1?l.width/s:l.height));var u=document.createElement("canvas"),p=performance.now(),h=c.cacheIndex,f=u.getContext("2d");1==o&&(d=c.thumbsize/c.normalViewport.height),u.height=Math.round(l.height*d),u.width=Math.round(l.width/s*d),"css"==c.targetObject.mode&&Math.abs(c.targetObject.zoomHeight-u.height)<2&&(u.height=c.targetObject.zoomHeight+0,u.width=c.targetObject.zoomWidth+0),l=t.getViewport(d),S("rendering "+n+" at "+u.width+"x"+u.height),r&&(D(c.targetObject)?n%2==0&&(l.transform[4]=-u.width):n%2==1&&(l.transform[4]=-u.width));var g={canvasContext:f,viewport:l};t.cleanupAfterRender=!0,t.render(g).promise.then(function(){S(performance.now()-p),p=performance.now(),1==o||1==c.options.canvasToBlob&&!0!==c.webgl?u.toBlob(function(t){var a=e.createObjectURL(t,"image/jpeg");S(performance.now()-p),c.setCache(n,a,o,h),c.setPage(n,a,i,o)},"image/jpeg",c.pdfRenderQuality):(S("Setting Page "+n),c.setPage(n,u,i,o)),g=null})}(o,t,n,i)})):c.contentSourceType!=u.IMAGE&&c.contentSourceType!=u.HTML||(null!=c.getCache(t,i)?(c.setPage(t,c.getCache(t,i),n,i),S("Page "+t+" loaded from cache")):(!0!==i&&c.setLoading(t,!0),c.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&t>2&&(d=Math.ceil((t-1)/2)+1),o=p[d-1],a=function(e){c.setCache(t,e,i,c.cacheIndex),c.setPage(t,e,n,i),null!=n&&n()},s=c.isCrossOrigin,(l=new Image).crossOrigin="Anonymous",l.onload=function(){if(1==s){var t=document.createElement("canvas"),n=t.getContext("2d");t.width=l.width,t.height=l.height,n.drawImage(l,0,0),1==r.canvasToBlob?t.toBlob(function(t){var n=e.createObjectURL(t,"image/jpeg");null!=a&&a(n)},"image/jpeg",.85):null!=a&&a(t)}else null!=a&&a(o);l.onload=null,l=null},l.src=o,(l.complete||void 0===l.complete)&&(l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",l.src=o)))},i.prototype.getTargetPage=function(e){},i.prototype.setLoading=function(e,n){if(null!=this.targetObject)if(1==this.webgl){var i=this.targetObject.container;1==n?!0!==i.isLoading&&(i.addClass("pdff-loading"),i.isLoading=!0,S("Loading icon at "+e+" as "+n)):null!=i.isLoading&&(i.removeClass("pdff-loading"),i.isLoading=null,S("Loading icon at "+e+" as "+n))}else{var o=t(this.targetObject.getContentLayer(e));null!=o&&(1==n?o.addClass("pdff-page-loading"):o.removeClass("pdff-page-loading"),S("Loading icon at "+e+" as "+n))}},i.prototype.getAnnotations=function(n){var i=this;if(0!=i.options.enableAnnotation){var o=i.targetObject;n=parseInt(n,10);var a=i.contentSource,r=t(o.getContentLayer(n));if(r.empty(),n>0&&n<=i.pageCount){if(i.contentSourceType==u.PDF){L(n);var s=n;i.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&n>2&&(s=Math.ceil((n-1)/2)+1),a.getPage(s).then(function(e){null!=r&&r.length>0&&i.setupAnnotations(e,i.viewport,r,n)})}if(null!=i.links&&null!=i.links[n])for(var l=i.links[n],c=0;c<l.length;c++){var d,p=l[c];p.dest&&p.dest.indexOf&&0==p.dest.indexOf("[html]")?((d=document.createElement("div")).innerHTML=p.dest.substr(6),d.className="
2110customHtmlAnnotation"):((d=document.createElement("a")).setAttribute("dest",p.dest),d.className="customLinkAnnotation",d.href="#"+p.dest,d.onclick=function(){var e=this.getAttribute("dest");return e&&i.linkService.customNavigateTo(e),!1}),d.style.left=p.x+"%",d.style.top=p.y+"%",d.style.width=p.w+"%",d.style.height=p.h+"%",r[0].appendChild(d)}if(null!=i.html&&null!=i.html[n]){var h=i.html[n];r.append(t("<div class='customHTMLAnnotation'>").html(h))}}}},i.prototype.setPage=function(e,t,n,i){var o=this,a=o.targetObject,s=D(a),l=M(a);if(1==i)o.targetObject.container.find("#pdff-thumb"+e).css({backgroundImage:y(t)});else{t==r.textureLoadFallback&&S("Fallback on "+e);var c=a.getPageByNumber(e);null!=c?e%2!=0&&!s||e%2!=1&&s&&!l||l&&!s?(S(e+"rendered to back of "+c.color),c.backImage(t,function(t,i){c.backTextureLoaded=!0,o.setLoading(e),o.requiresImageTextureScaling&&i&&1!=e&&e!=o.pageCount&&(i.repeat.x=.5,i.offset.x=.5),null!=n&&n()})):(S(e+"rendered to front of "+c.color),c.frontImage(t,function(t,i){c.frontTextureLoaded=!0,o.setLoading(e),o.requiresImageTextureScaling&&i&&1!=e&&e!=o.pageCount&&(i.repeat.x=.5),null!=n&&n()})):S("Invalid set request on Page "+e)}},i.prototype.setupAnnotations=function(n,i,o,a){if(null!=o&&0!=t(o).length){var r=this;return n.getAnnotations().then(function(s){if(i=i.clone({dontFlip:!0}),r.options.pageSize,e.PAGE_SIZE.DOUBLEINTERNAL,null!=o){0==(o=t(o)).find(".annotationDiv").length&&o.append(t("<div class='annotationDiv'>"));var l=o.find(".annotationDiv");l.empty(),r.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&a>2&&a%2==1?l.css({left:"-100%"}):1==a&&l.css({left:""}),PDFJS.AnnotationLayer.render({annotations:s,div:l[0],page:n,viewport:i,linkService:r.linkService}),r.options.annotationClass&&""!==r.options.annotationClass&&l.find(" > section").addClass(r.options.annotationClass)}})}},i}(),W=function(){function n(e){this.angles=e.angles||[0,0,0,0,0,0],this.stiffness=e.angles||.1,this.segments=e.segments||1,this.canvasMode=e.contentSourceType!==u.IMAGE&&0==e.canvasToBlob,this.initDOM()}function i(e){var n=e.contentLayer=t(f.div,{class:"pdff-page-content"});e.append(n)}return n.prototype={initDOM:function(){var e=this.element=t(f.div,{class:"ppdff-flipbook-page"}),n=this.wrapper=t(f.div,{class:"pdff-page-wrapper"}),o=this.front=t(f.div,{class:"pdff-page-front"}),a=this.back=t(f.div,{class:"pdff-page-back"}),r=this.foldInnerShadow=t(f.div,{class:"pdff-page-fold-inner-shadow"}),s=this.foldOuterShadow=t(f.div,{class:"pdff-page-fold-outer-shadow"});this.frontIMG=new Image,this.backIMG=new Image,i(o,this.segments),i(a,this.segments),e.append(n).append(s),n.append(o).append(a).append(r)},updatePoint:function(t){if(null!=t){var n=null!=this.parent.dragPage?this.parent.dragPage:null!=t.page?t.page:this,i=n.element.width(),o=n.element.height(),a=null!=this.parent.corner?this.parent.corner:t.corner,r=e.CORNERS,s=n.side==p.right,l=a==r.BL||a==r.BR;t.rx=1==s?2*i-t.x:t.x,t.ry=1==l?o-t.y:t.y;var c=Math.atan2(t.ry,t.rx);c=Math.PI/2-P(c,0,m(90));var d=s?t.x/2:i-t.x/2,u=t.ry/2,h=Math.max(0,Math.sin(c-Math.atan2(u,d))*x(d,u)),f=.5*x(t.rx,t.ry),g=Math.round(i-h*Math.sin(c)),y=Math.round(h*Math.cos(c)),C=v(c),E=l?s?90-C+180:180+C:s?C:90-C,S=l?s?90-C+180:C:s?C+180:E,k=l?s?90-C:C+90:s?E-90:E+180,T=s?i-g:g,L=l?o+y:-y,O=s?-g:g-i,I=l?-o-y:y,M=P(.5*t.distance/i,0,.5),D=P(.5*(2*i-t.rx)/i,.05,.3);n.element.addClass("pdff-folding");var F=s?n.back:n.front,z=s?n.front:n.back,N=n.foldOuterShadow,A=n.foldInnerShadow;n.wrapper.css({transform:b(T,L)+w(E)}),F.css({transform:w(-E)+b(-T,-L)}),z.css({transform:w(S)+b(O,I),boxShadow:"rgba(0, 0, 0, "+M+") 0px 0px 20px"}),A.css({transform:w(S)+b(O,I),opacity:D/2,backgroundImage:R.css+"linear-gradient( "+k+"deg, rgba(0, 0, 0, 0.25) , rgb(0, 0, 0) "+.7*f+"px, rgb(255, 255, 255) "+f+"px)"}),N.css({opacity:D/2,left:s?"auto":0,right:s?0:"auto",backgroundImage:R.css+"linear-gradient( "+(180-k)+"deg, rgba(0, 0, 0,0) "+f/3+"px, rgb(0, 0, 0) "+f+"px)"})}},updateAngle:function(e,t){var n=5*this.element.width();this.wrapper.css({perspective:n,perspectiveOrigin:1==t?"0% 50%":"100% 50%"}),this.front.css({display:1==t?e<=-90?"block":"none":e<90?"block":"none",transform:("MfS"!==R.dom?"":"perspective("+n+"px) ")+(1==t?"translateX(-100%) ":"")+"rotateY("+((1==t?180:0)+e)+"deg)"}),this.back.css({display:1==t?e>-90?"block":"none":e>=90?"block":"none",transform:("MSd"!==R.dom?"":"perspective("+n+"px) ")+(0==t?"translateX(100%) ":"")+"rotateY("+((0==t?-180:0)+e)+"deg)"})},tween:function(t){var n=this;if(null!=n&&null!=n.parent){var i,o=M(n.parent),a=n.side==p.right,r=n.parent.direction==e.DIRECTION.RTL,s=n.parent.corner==e.CORNERS.BL||n.parent.corner==e.CORNERS.BR,l=1==n.magnetic,c=s?n.parent.height:0,d=0,u=n.end=n&&1==n.animateToReset?{x:a?n.parent.fullWidth:0,y:c}:{x:a?0:n.parent.fullWidth,y:c};n.ease=n.isHard?TWEEN.Easing.Quadratic.InOut:TWEEN.Easing.Linear.None;var h=n.parent.duration;1==n.isHard?(null!=t&&(d=E(t.distance,t.fullWidth)),i=n.init={angle:d*(a?-1:1)},u=n.end=n&&1==n.animateToReset?{angle:a?0:-0}:{angle:a?-180:180}):null==t?(i=n.init=n&&1==n.animateToReset?{x:a?0:n.parent.fullWidth,y:0}:{x:a?n.parent.fullWidth:0,y:0},n.first={x:(a?3:1)*n.parent.fullWidth/4,y:0},n.mid={x:(a?1:3)*n.parent.fullWidth/4,y:0}):(i=n.init={x:t.x,y:t.y,opacity:1},n.first={x:3*t.x/4,y:3*t.y/4,opacity:1},n.mid={x:t.x/4,y:t.y/4,opacity:1},h=n.parent.duration*C(i.x,i.y,u.x,u.y)/n.parent.fullWidth,h=P(h,n.parent.duration/3,n.parent.duration)),i.index=0,u.index=1,n.isFlipping=!0;var f=function(e){1==n.isHard?(n.updateAngle(e.angle,a),n.angle=e.angle):(n.updatePoint({x:e.x,y:e.y}),n.x=e.x,n.y=e.y),o&&!l&&(n.element[0].style.opacity=a&&!r||!a&&r?e.index>.5?2*(1-e.index):1:e.index<.5?2*e.index:1)};o&&(!a&&!r||a&&r)&&(n.element[0].style.opacity=0),n.completeTween=n.completeTween||function(t){n.isFlipping=!1,1==n.isHard?(n.updateAngle(n.end.angle),n.back.css({display:"block"}),n.front.css({display:"block"})):n.updatePoint({x:n.end.x,y:n.end.y}),n.element[0].style.opacity=1,!0!==n.animateToReset?n.side=n.side==p.right?p.left:p.right:n.animateToReset=null,n.currentTween=null,n.pendingPoint=null,n.magnetic=!1,n.parent.dragPage=null,n.parent.corner=e.CORNERS.NONE,1!=t&&n.parent.refresh()},1==n.isHard?n.currentTween=new TWEEN.Tween(i).delay(0).to(u,n.parent.duration).onUp
2110date(function(){f(this)}).easing(n.ease).onComplete(n.completeTween).start():null==t?n.currentTween=new TWEEN.Tween(i).delay(0).to(u,n.parent.duration).onUpdate(function(){f(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(n.completeTween).start():(n.currentTween=new TWEEN.Tween(i).delay(0).to(u,h).onUpdate(function(){f(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(n.completeTween),n.currentTween.start())}},frontImage:function(e,n){var i=this;function o(){i.front.css({backgroundImage:y(e)}),null!=n&&n()}1==i.canvasMode?(i.front.find(">canvas").remove(),e!==r.textureLoadFallback&&i.front.append(t(e)),null!=n&&n()):e==r.textureLoadFallback?o():(i.frontIMG.onload=o,i.frontIMG.src=e)},backImage:function(e,n){var i=this;function o(){i.back.css({backgroundImage:y(e)}),null!=n&&n()}1==i.canvasMode?(i.back.find(">canvas").remove(),e!==r.textureLoadFallback&&i.back.append(t(e)),null!=n&&n()):e==r.textureLoadFallback?o():(i.backIMG.onload=o,i.backIMG.src=e)},updateCSS:function(e){this.element.css(e)},resetCSS:function(){this.wrapper.css({transform:""}),this.front.css({transform:"",boxShadow:""}),this.back.css({transform:"",boxShadow:""})},clearTween:function(e){this.currentTween.stop(),this.completeTween(1==e),this.resetCSS()}},n}(),G=function(n){function i(e){for(var t=!1,n=0;n<e.pages.length;n++)if(1==e.pages[n].isFlipping){t=!0;break}return t}function o(n,o){var a=this;function r(e){a.dragPage!=e.page&&1==e.page.visible&&(a.dragPage.clearTween(!0),a.dragPage=e.page,a.corner=e.corner,a.dragPage.pendingPoint=e)}a.type="BookCSS",a.images=n.images||[],a.pageCount=n.pageCount||2,a.foldSense=50,a.stackCount=4,a.mode="css",a.pages=[],a.duration=n.duration,a.container=t(o),a.options=n,a.drag=p.none,a.pageCount=1==a.pageCount?a.pageCount:2*Math.ceil(a.pageCount/2),a.pageMode=n.pageMode||(F||a.pageCount<=2?e.PAGE_MODE.SINGLE:e.PAGE_MODE.DOUBLE),a.singlePageMode=n.singlePageMode||(F?e.SINGLE_PAGE_MODE.BOOKLET:e.SINGLE_PAGE_MODE.ZOOM),a.swipe_threshold=F?15:50,a.direction=n.direction||e.DIRECTION.LTR,a.startPage=1,a.endPage=a.pageCount,a._activePage=n.openPage||a.startPage,a.hardConfig=n.hard,s="WebKitCSSMatrix"in window||document.body&&"MozPerspective"in document.body.style,a.animateF=function(){TWEEN.getAll().length>0?TWEEN.update():clearInterval(a.animate)},a.init(n),a.skipDrag=!1;var l=function(t){var n=a.eventToPoint(t);if(null!=t.touches&&2==t.touches.length&&null!=a.startTouches){a.zoomDirty=!0;var o=d.getVectorAvg(d.getTouches(t,a.container.offset())),r=d.calculateScale(a.startTouches,d.getTouches(t));a.lastScale,a.contentProvider.zoomScale,o.x,o.y,a.stage.css({transform:"translate3d("+a.left+"px,"+a.top+"px,0) scale3d("+r+","+r+",1)"}),a.lastScale=r,a.lastZoomCenter=o,t.preventDefault()}if(!(null!=t.touches&&t.touches.length>1||null==a.startPoint||null!=a.startTouches)){var s=a.dragPage||n.page;if(1!==a.contentProvider.zoomScale)null==t.touches&&1!=a.isPanning||(a.pan(n),t.preventDefault());else if(!0!==a.skipDrag&&(n.distance,!i(a))){if(null!=a.dragPage||1==n.isInside){null!=a.dragPage?S("set mouse down move"):(n.y=P(n.y,1,a.height-1),n.x=P(n.x,1,n.fullWidth-1));var l=a.corner||n.corner;if(s.isHard){var c=l==e.CORNERS.BR||l==e.CORNERS.TR,u=E(n.distance,n.fullWidth);s.updateAngle(u*(c?-1:1),c)}else s.updatePoint(n,a);s.magnetic=!0,s.magneticCorner=n.corner,t.preventDefault()}if(null==a.dragPage&&null!=s&&0==n.isInside&&1==s.magnetic&&(s.pendingPoint=n,s.animateToReset=!0,a.corner=s.magneticCorner,a.animatePage(s),s.pendingPoint=null,s.magnetic=!1,s.magneticCorner=null),1==a.isPanning&&null==a.dragPage&&1==a.contentProvider.zoomScale){var h=n.x-a.lastPos;performance.now(),a.lastTime,Math.abs(h)>a.swipe_threshold&&(h<0?a.next():a.prev(),a.drag=p.none,a.isPanning=!1,t.preventDefault()),a.lastPos=n.x,a.lastTime=performance.now()}}}},c=function(t){if(null!=t.touches&&0==t.touches.length&&(a.contentProvider.zoomScale,1==a.zoomDirty&&(a.previewObject.contentProvider.zoomScale=d.limitAt(a.previewObject.contentProvider.zoomScale*a.lastScale,1,a.previewObject.contentProvider.maxZoom),a.previewObject.zoomValue=1*a.previewObject.contentProvider.zoomScale,a.previewObject.resize(),a.zoomDirty=!1),a.wrapper.css({transform:""}),a.lastScale=null,a.startTouches=null),a.isPanning=!1,!(null!=t.touches&&t.touches.length>1)&&!0!==a.skipDrag){var n=a.eventToPoint(t);a.dragPage&&(t.preventDefault(),a.dragPage.pendingPoint=n,n.x==a.startPoint.x&&n.y==a.startPoint.y&&1==n.isInside?a.corner==e.CORNERS.BR||a.corner==e.CORNERS.TR?(r(n),!0!==a.dragPage.isFlipping&&a.next()):a.corner!=e.CORNERS.BL&&a.corner!=e.CORNERS.TL||(r(n),!0!==a.dragPage.isFlipping&&a.prev()):!0!==a.dragPage.isFlipping&&(n.distance>n.fullWidth/2?n.x>n.fullWidth/2?a.prev():a.next():(a.dragPage.animateToReset=!0,a.animatePage(a.dragPage))),a.dragPage&&(a.dragPage.pendingPoint=null,a.dragPage.magnetic=!1)),a.drag=p.none}},u=function(t){var n=a.eventToPoint(t),i=t.srcElement||t.originalTarget;a.dragPage&&a.dragPage.magnetic||a.wrapper[0].contains(t.target)&&1==a.contentProvider.zoomScale&&n.x==a.startPoint.x&&n.y==a.startPoint.y&&n.isInsidePage&&a.startPoint.page==n.page&&!n.page.isFlipping&&"A"!==i.nodeName&&(0==a.startPoint.page.side?(a.corner=e.CORNERS.TL,a.prev(),a.startPoint.page=null):(a.corner=e.CORNERS.TR,a.next(),a.startPoint.page=null),a.isPanning=!1)},h=function(t){if(null!=t.touches&&2==t.touches.length&&null==a.startTouches&&(a.startTouches=d.getTouches(t),a.lastScale=1),!(null!=t.touches&&t.touches.length>1||null==t.touches&&0!==t.button)){var n,o=a.eventToPoint(t);a.startPoint=o,a.left=a.left||0,a.top=a.top||0,a.isPanning=!0,a.lastPos=o.x,a.lastTime=performance.now(),!0!==a.skipDrag&&(1!=o.isInside||i(a)||(a.startPoint=o,a.drag=o.drag,a.dragPage=o.page,a.corner=o.corner,S(a.corner),(n=a.dragPage).parent.container.find(".pdff-folding").removeClass("pdff-folding"),n.element.addClass("pdff-folding"),o.page.isHard||o.page.updatePoint(o,a),"0"==o.page.name?a.shadow.css({width:"50%",left:a.direction==e.DIRECTION.RTL?0:"50%",transitionDelay:""}):o.page.name==Math.ceil(a.pageCount/2)-1&&a.shadow.css({width:"50%",left:a.direction==e.DIRECTION.RTL?"50%":0,transitionDelay:""})))}},f=function(e){var t=0;null!=e.wheelDelta?t=e.wheelDelta/120:null!=e.detail&&(t=-e.detail/3);var n=a.contentProvider.zoomScale,i=a.contentProvider.maxZoom;if(t&&(t>0&&n<i||t<0&&n>1)){e.stopPropagation(),e.preventDefault();var o=a.eventToPoint(e),r=a.eventToPoint(e),s=a.container.width()/2,l=a.container.height()/2-23;a.previewObject.zoom(t);var c=a.contentProvider.zoomScale;if(n!==c){var d=c/n;1==c?(a.left=0,a.top=0):(a.left*=d,a.top*=d);var u=(o.raw.x-s)*d,p=(o.raw.y-l)*d;r.raw.x=s+u,r.raw.y=l+p,a.startPoint=r,a.pan(o);var h=a.dragPage||o.page;null==a.dragPage&&null!=h&&1==o.isInside&&1==h.magnetic&&(h.pendingPoint=o,h.animateToReset=!0,a.corner=h.magneticCorner,a.animatePage(h),h.pendingPoint=null,h.magnetic=!1,h.magneticCorner=null)}}},g=a.container[0],m=a.stage[0];g&&(m.addEventListener("mousemove",l,!1),m.addEventListener("touchmove",l,!1),m.addEventListener("mousedown",h,!1),m.addEventListener("click",u,!1),m.addEventListener("mouseup",c,!1),m.addEventListener("touchend",c,!1),m.addEventListener("touchstart",h,!1),1==a.options.scrollWheel&&(m.addEventListener("mousewheel",f,!1),m.addEventListener("DOMMouseScroll",f,!1))),this.dispose=function(){m.removeEventListener("mousemove",l,!1),m.removeEventListener("touchmove",l,!1),m.removeEventListener("mousedown",h,!1),m.removeEventListener("click",u,!1),m.removeEventListener("mouseup",c,!1),m.removeEventListener("touchend",c,!1),m.removeEventListener("touchstart",h,!1),1==a.options.scrollWheel&&(m.removeEventListener("mousewheel",f,!1),m.removeEventListener("DOMMouseScroll",f,!1)),a.updatePageCallback=null,a.flipCallback=null,a.animateF=null,a.stage.remove()}}return B(o,{}),o.prototype={add:function(e){e instanceof W?this.container.append(t(e.element)):this.container.append(t(e))},pan:function(e){var t=this.startPoint,n=this.contentProvider.zoomScale,i=this.left+(e.raw.x-t.raw.x),o=this.top+(e.raw.y-t.raw.y);this.left=Math.round(P(i,-this.shiftWidth,this.shiftWidth)),this.top=Math.round(P(o,-this.shiftHeight,this.shiftHeight)),1==n&&(this.left=0,this.top=0),this.startPoint=e,this.stage.css({transform:"translate3d("+this.left+"px,"+this.top+"px,0)"})},getPageByNumber:function(e){for(var t,n=M(this)?D(this)?e+1:e:Math.floor((e-1)/2),i=0;i<this.pages.length;i++)n==parseInt(this.pages[i].name,10)&&(t=this.pages[i]);return t},getPageSide:function(t){var n=this.direction==e.DIRECTION.RTL,i=this.getPageByNumber(t);if(null!=i)return M(this)?n?i.front:i.back:t%2==0?n?i.back:i.front:n?i.front:i.back},getContentLayer:function(e){var t=this.getPageSide(e);return null==t?null:t.contentLayer}},o.prototype.init=function(e){var n=this;
2110n.stage=t(f.div,{class:"ppdff-flipbook-stage"}),n.wrapper=t(f.div,{class:"ppdff-flipbook-wrapper"}),n.shadow=t(f.div,{class:"ppdff-flipbook-shadow"}),n.container.append(n.stage),n.stage.append(n.wrapper),n.wrapper.append(n.shadow),n.createStack(e)},o.prototype.createStack=function(e){for(var t="red,green,blue,yellow,orange,black".split(","),n=0;n<this.stackCount;n++){e.angles=[,this.stackCount-n],e.stiffness=(this.stackCount-n)/100;var i=new W(e);i.angles[1]=180,i.index=n,i.parent=this,i.textureReady=!1,i.textureRequested=!1,this.wrapper.append(i.element),i.isFlipping=!1,this.pages.push(i),i.color=t[n]}this.children=this.pages},o.prototype.isPageHard=function(e){return d.isHardPage(this.hardConfig,e,this.pageCount,M(this))},o.prototype.setDuration=function(e){this.duration=e},o.prototype.moveBy=function(e){var t=this._activePage+e;t=P(t,this.startPage,this.endPage),this.gotoPage(t)},o.prototype.next=function(t){null==t&&(t=this.direction==e.DIRECTION.RTL?-this.pageMode:this.pageMode),this.moveBy(t)},o.prototype.prev=function(t){null==t&&(t=this.direction==e.DIRECTION.RTL?this.pageMode:-this.pageMode),this.moveBy(t)},o.prototype.eventToPoint=function(n){n=I(n);var i=this.wrapper,o=this.pages,a=this.pageWidth,r=this.fullWidth,s=this.height,l=(t(window),{x:n.clientX,y:n.clientY}),c=l.x-i[0].getBoundingClientRect().left,d=l.y-i[0].getBoundingClientRect().top;l.x=l.x-this.container[0].getBoundingClientRect().left,l.y=l.y-this.container[0].getBoundingClientRect().top;var u,h=this.drag==p.none?c<a?c:r-c:this.drag==p.left?c:r-c,f=c<a?o[this.stackCount/2-1]:o[this.stackCount/2],g=c<this.foldSense?p.left:c>r-this.foldSense?p.right:p.none,m=c,v=d,b=s,w=r,y=this.foldSense,P=e.CORNERS;return u=m>=0&&m<y?v>=0&&v<=y?P.TL:v>=b-y&&v<=b?P.BL:v>y&&v<b-y?P.L:P.NONE:m>=w-y&&m<=w?v>=0&&v<=y?P.TR:v>=b-y&&v<=b?P.BR:v>y&&v<b-y?P.R:P.NONE:P.NONE,{isInsidePage:m>=0&&m<=w&&v>=0&&v<=b,isInside:u!==P.NONE&&u!==P.L&&u!==P.R,x:c,y:d,fullWidth:r,rawDistance:r-c,distance:h,page:f,drag:g,foldSense:this.foldSense,event:n,raw:l,corner:u}},o.prototype.gotoPage=function(e){e=parseInt(e,10),this._activePage=e,1==this.autoPlay&&this.previewObject.setAutoPlay(this.autoPlay),this.updatePage(e),this&&this.thumblist&&this.thumblist.review&&this.thumblist.review()},o.prototype.refresh=function(){this.updatePage(this._activePage),null!=this.flipCallback&&this.flipCallback()},o.prototype.updatePage=function(n){var i=this.direction==e.DIRECTION.RTL,o=M(this),a=(L(n),o?1:2);n=Math.floor(n/a),i&&(n=this.pageCount/a-n);var s=this.oldBaseNumber||0,l=this.pageCount/a,c=this.stackCount,d=Math.floor(c/2);s>n?(this.children[c-1].skipFlip=!0,this.children.unshift(this.children.pop())):s<n&&(this.children[0].skipFlip=!0,this.children.push(this.children.shift()));for(var u=0;u<c;u++){var h=this.children[u];s!==n&&null!=h.currentTween&&h.clearTween(!0);var f,g=h.side,m=n-d+u;i&&(m=o?this.pageCount-m:Math.floor(this.pageCount/2)-m-1);var v=h.name;h.isHard=this.isPageHard(m),h.isHard?h.element.addClass("pdff-hard-page"):(h.element.removeClass("pdff-hard-page"),h.front.css({display:"block"}),h.back.css({display:"block"})),0==m||m==l?h.element.addClass("pdff-cover-page"):h.element.removeClass("pdff-cover-page"),t(h.element).attr("pageNumber")!=m&&(h.front.contentLayer.empty(),h.back.contentLayer.empty()),t(h.element).attr("pageNumber",m),h.isEdge=!1,0==u||u==c-1||(h.isEdge=!1),f=u<d?p.left:p.right,0==h.isFlipping&&(f!==g&&0==h.skipFlip?(this.animatePage(h),null!=this.preFlipCallback&&this.preFlipCallback()):(h.skipFlip=!1,h.element.removeClass("pdff-flipping pdff-quick-turn pdff-folding pdff-left-side pdff-right-side"),h.element.addClass(u<d?"pdff-left-side":"pdff-right-side"),h.side=f)),h.visible=o?i?u<d||h.isFlipping:u>=d||h.isFlipping:m>=0&&m<l||o&&m==l,null!=this.requestPage&&1==h.visible&&(h.name=m.toString(),h.name!=v&&(h.backTextureLoaded=!1,h.frontTextureLoaded=!1,h.backPageStamp="-1",h.frontPageStamp="-1",h.thumbLoaded=!1,h.front.contentLayer.html(""),h.back.contentLayer.html(""),h.frontImage(r.textureLoadFallback),h.backImage(r.textureLoadFallback),this.requestPage())),h.oldDepth=h.depth,h.updateCSS({display:1==h.visible?"block":"none",zIndex:6+(u<d?u-d:d-u),transform:""}),null==h.pendingPoint&&0==h.isFlipping&&h.resetCSS()}0==TWEEN.getAll().length&&clearInterval(this.animate),t(".quick-hint").html(n),this.oldBaseNumber=n,this.updatePageCallback&&this.updatePageCallback()},o.prototype.animatePage=function(e){e.element.addClass("pdff-flipping"),e.isFlipping=!0,null!=this.animate&&clearInterval(this.animate),this.animate=setInterval(this.animateF,30),e.tween(e.pendingPoint)},o}(),V=function(n){function i(i,o,a){n.call(this,a);var r=this;r.type="FlipBook",r.container=i,r.options=a,r.options.source=o,r.contentSource=o,null!=a.height&&a.height.toString().indexOf("%")<0?r.container.height(Math.min(a.height,t(window).height())):r.container.height(a.height),r.options.isLightBox&&window.dfLightBox.closeButton.addClass(r.options.icons.close),r.options.pageSize==e.PAGE_SIZE.DOUBLEINTERNAL&&((Array===r.contentSource.constructor||Array.isArray(r.contentSource)||r.contentSource instanceof Array)&&(r.options.singlePageMode=e.SINGLE_PAGE_MODE.ZOOM),r.container.addClass("pdff-double-internal")),r.options.isLightBox||null==r.container.attr("id")||(r.options.id=r.container.attr("id")),!0!==r.options.parsed&&null!=r.options.links&&e.parseLinks(r.options.links);var s=r.webgl=1==a.webgl&&1==z;
2110if(i.addClass("pdff-container pdff-loading pdff-init pdff-floating pdff-controls-"+r.options.controlsPosition),1==r.options.transparent&&i.addClass("pdff-transparent"),r.options.direction==e.DIRECTION.RTL&&i.addClass("pdff-rtl"),r.container.info=t(f.div,{class:"loading-info"}).appendTo(r.container).html("Loading..."),(-1!==c.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0||N&&!A)&&(r.options.webgl=!1),c.match(/msie\\s[5-9]/i))return r.container.info.html("Your browser (Internet Explorer) is out of date to run pdfflip Flipbook Plugin. <br><a href='http://browsehappy.com/'>Upgrade to a new one</a>").addClass("pdff-old-browser"),i.removeClass("pdff-loading"),r;var l=null==a.backgroundImage||""==a.backgroundImage?"":"url('"+a.backgroundImage+"')";return r.container.css({position:"relative",overflow:"hidden",backgroundColor:a.backgroundColor,backgroundImage:l}),r.init(s,o),null!=r.options.onCreate&&r.options.onCreate(r),r}return B(i,n),i.prototype.init=function(n){var i,o,a=this,s=a.target,l=a.options;1==n?(i=function(){a.container.css({minHeight:300,minWidth:300}),a.stage=new _(T(a.options,{container:a.container})),a.stage.previewObject=a,a.contentProvider=new H(a.contentSource,function(i){var o={pageCount:i.pageCount,stackCount:6,segments:20,width:i.bookSize.width,height:i.bookSize.height};a.checkOpenPage(),a.target=s=a.stage.target=new MOCKUP.Book(T(a.options,o),a.stage),a.extendtarget(),j(a.container,a),s.ui=a.ui,s.container=a.container,i.webgl=n,i.setTarget(a.target),s.getContentLayer=function(t){var n=s.direction==e.DIRECTION.RTL,i=a.stage.cssScene.divLeft.element,o=a.stage.cssScene.divRight.element;return L(s._activePage),M(s)?n?i:o:t%2==0?n?o:i:n?i:o},s.stage=a.stage,s.flipCallback=function(){if(a.contentProvider){a.contentProvider.review("flipCallback");var n,i,o=L(s._activePage),r=s.getPageByNumber(o),l=s.getPageByNumber(o+1),c=s.parent.cssScene.divLeft,d=s.parent.cssScene.divRight;s.pageMode,e.PAGE_MODE.SINGLE,s.direction,e.DIRECTION.RTL,null!=r&&null!=c&&(n=Math.abs(r.geometry.boundingBox.max.x-r.geometry.boundingBox.min.x),i=Math.abs(r.geometry.boundingBox.max.z-r.geometry.boundingBox.min.z),c.rotation.y=.9*-Math.atan2(i,n),c.position.z=.8*i,c.position.x=i/2.5,t(c.element).css({width:n,left:-n/2})),null!=l&&null!=d&&(n=Math.abs(l.geometry.boundingBox.max.x-l.geometry.boundingBox.min.x),i=Math.abs(l.geometry.boundingBox.max.z-l.geometry.boundingBox.min.z),d.rotation.y=.9*Math.atan2(i,n),d.position.z=.8*i,d.position.x=-i/2.5,t(d.element).css({width:n,left:n/2})),null!=a.options.onFlip&&a.options.onFlip(a)}},s.resize=void a.resize(),s.updatePageCallback=function(){a.ui.update(),a.checkCenter(),a.stage.renderRequestPending=!0};var r=t(a.stage.cssScene.divLeft.element),l=t(a.stage.cssScene.divRight.element);s.preFlipCallback=function(){r.empty(),l.empty(),null!=a.options.beforeFlip&&a.options.beforeFlip(a),a.playSound()},t(window).trigger("resize"),r.css({width:i.bookSize.width,height:i.bookSize.height,left:-i.bookSize.width/2}),l.css({width:i.bookSize.width,height:i.bookSize.height,left:i.bookSize.width/2}),s.ease=TWEEN.Easing.Cubic.InOut,s.contentProvider=i,s.duration=a.options.duration,s.gotoPage(s._activePage),s.flipCallback(),null!=a.options.onReady&&a.options.onReady(a)},l,a)},o=function(){MOCKUP.defaults.anisotropy=0,MOCKUP.defaults.groundTexture="blank",THREE.skipPowerOfTwo=!0,function(){_=function(e){function n(n){n=n||{};var i=this;e.call(this,n),i.options=n,i.canvas=t(i.renderer.domElement).addClass("pdff-3dcanvas"),i.container=n.container,i.container.append(i.canvas),i.type="PreviewStage",i.mouse=new THREE.Vector2,i.raycaster=new THREE.Raycaster,i.camera.position.set(0,20,600),i.camera.lookAt(new THREE.Vector3(0,0,0)),i.spotLight.position.set(-220,330,550),i.spotLight.castShadow=!F&&n.webglShadow,i.spotLight.shadow&&(i.spotLight.shadow.bias=-8e-4),i.spotLight.intensity=g(n.spotLightIntensity,r.spotLightIntensity),i.ambientLight.color=new THREE.Color(g(n.ambientLightColor,r.ambientLightColor)),i.ambientLight.intensity=g(n.ambientLightIntensity,r.ambientLightIntensity);var o=new THREE.ShadowMaterial;o.opacity=g(n.shadowOpacity,r.shadowOpacity),i.ground.material=o,i.ground.position.z=-2,i.orbitControl.maxAzimuthAngle=0,i.orbitControl.minAzimuthAngle=0,i.orbitControl.minPolarAngle=1.57,i.orbitControl.maxPolarAngle=1.57,i.orbitControl.mouseButtons.ORBIT=THREE.MOUSE.RIGHT,i.orbitControl.mouseButtons.PAN=-1,i.orbitControl.maxDistance=5e3,i.orbitControl.minDistance=50,i.orbitControl.noZoom=!0,i.selectiveRendering=!0,i.orbitControl.zoomSpeed=5,i.orbitControl.ke
2110yPanSpeed=0,i.orbitControl.center.set(0,0,0),i.orbitControl.update(),i.swipe_threshold=F?15:20;var a=i.cssRenderer=new THREE.CSS3DRenderer;t(a.domElement).css({position:"absolute",top:0,pointerEvents:"none"}).addClass("pdff-3dcanvas pdff-csscanvas"),i.container[0].appendChild(a.domElement);var s=i.cssScene=new THREE.Scene,l=document.createElement("div");l.className="pdff-page-content pdff-page-content-left";var c=document.createElement("div");c.className="pdff-page-content pdff-page-content-right";var u=s.divLeft=new THREE.CSS3DObject(l),p=s.divRight=new THREE.CSS3DObject(c);function f(){i.renderRequestPending=!0}s.add(u),s.add(p),i.resizeCallback=function(){a.setSize(i.canvas.width(),i.canvas.height())},window.addEventListener(h.move,f,!1),window.addEventListener("keyup",f,!1),i.dispose=function(){i.clearChild(),i.render(),window.removeEventListener(h.move,f,!1),1==i.options.scrollWheel&&(i.renderer.domElement.removeEventListener("mousewheel",m,!1),i.renderer.domElement.removeEventListener("DOMMouseScroll",m,!1)),window.removeEventListener("keyup",f,!1),i.renderer.domElement.removeEventListener("mousemove",v,!1),i.renderer.domElement.removeEventListener("touchmove",v,!1),i.renderer.domElement.removeEventListener("mousedown",b,!1),i.renderer.domElement.removeEventListener("touchstart",b,!1),i.renderer.domElement.removeEventListener("mouseup",w,!1),i.renderer.domElement.removeEventListener("touchend",w,!1),i.canvas.remove(),a.domElement.parentNode.removeChild(a.domElement),a=null,i.renderCallback=null,i.renderCallback=null,i.orbitControl.dispose(),i.orbitControl=null,i.renderer.dispose(),i.cancelRAF()},i.renderCallback=function(){TWEEN.getAll().length>0&&(i.renderRequestPending=!0),TWEEN.update(),a.render(s,i.camera)};var m=function(e){var t=0;if(null!=e.wheelDelta?t=e.wheelDelta:null!=e.detail&&(t=-e.detail),t){var n=i.previewObject.contentProvider.zoomScale;(t>0&&1==n||t<0&&n>1)&&e.preventDefault(),i.previewObject.zoom(t>0?1:-1)}f()},v=function(e){if(i.renderRequestPending=!0,e=I(e),i.isMouseDown&&0!=e.movementX&&0!=e.movementY&&(i.isMouseMoving=!0),null!=e.touches&&2==e.touches.length&&null!=i.startTouches){i.zoomDirty=!0;var t=d.getVectorAvg(d.getTouches(e,i.container.offset())),n=d.calculateScale(i.startTouches,d.getTouches(e));return i.lastScale,i.previewObject.contentProvider.zoomScale,t.x,t.y,i.camera.position.z=i.originalZ/n,i.lastScale=n,i.lastZoomCenter=t,void e.preventDefault()}if(1==i.isMouseDown&&1==i.previewObject.contentProvider.zoomScale){var o=e.pageX-i.lastPos;performance.now(),i.lastTime,Math.abs(o)>i.swipe_threshold&&(o<0?i.target.next():i.target.prev(),e.preventDefault(),i.isMouseDown=!1),i.lastPos=e.pageX,i.lastTime=performance.now()}},b=function(e){null!=(e=I(e)).touches&&2==e.touches.length&&null==i.startTouches&&(i.startTouches=d.getTouches(e),i.lastScale=1,i.originalZ=1*i.camera.position.z),document.activeElement.blur(),i.mouseValue=e.pageX+","+e.pageY,i.isMouseMoving=!1,i.isMouseDown=!0,i.lastPos=e.pageX,i.lastTime=performance.now()},w=function(e){null!=(e=I(e)).touches&&0==e.touches.length&&(i.previewObject.contentProvider.zoomScale,1==i.zoomDirty&&(i.previewObject.contentProvider.zoomScale=d.limitAt(i.previewObject.contentProvider.zoomScale*i.lastScale,1,i.previewObject.contentProvider.maxZoom),i.previewObject.zoomValue=1*i.previewObject.contentProvider.zoomScale,i.previewObject.resize(),i.zoomDirty=!1),i.lastScale=null,i.startTouches=null),null!=e.touches&&e.touches.length>1||function(e){if(i.isMouseDown=!1,0!==e.button)return this;var n=e.pageX+","+e.pageY;if(i.isMouseMoving);else if(n==i.mouseValue){e=e||window.event,e=t.event.fix(e);var o=i.mouse,a=i.raycaster;o.x=e.offsetX/i.canvas.innerWidth()*2-1,o.y=1-e.offsetY/i.canvas.innerHeight()*2,a.setFromCamera(o,i.camera);var r=a.intersectObjects(i.target instanceof MOCKUP.Bundle?i.target.children:[i.target],!0);if(r.length>0){var s,l=0;do{s=null!=r[l]?r[l].object:null,l++}while((s instanceof THREE.BoxHelper||!(s instanceof MOCKUP.Paper)||1==s.isFlipping)&&l<r.length);null!=s.userData.object||(s.angles[1]>90?1!=s.isEdge&&i.target.next():1!=s.isEdge&&i.target.prev())}}}(e)};return i.renderer.domElement.addEventListener("mousemove",v,!1),i.renderer.domElement.addEventListener("touchmove",v,!1),i.renderer.domElement.addEventListener("mousedown",b,!1),i.renderer.domElement.addEventListener("touchstart",b,!1),i.renderer.domElement.addEventListener("mouseup",w,!1),i.renderer.domElement.addEventListener("touchend",w,!1),1==i.options.scrollWheel&&(i.renderer.domElement.addEventListener("mousewheel",m,!1),i.renderer.domElement.addEventListener("DOMMouseScroll",m,!1)),t(i.renderer.domElement).css({display:"block"}),t(window).trigger("resize"),this}return B(n,e),n.prototype.width=function(){return this.container.width()},n.prototype.height=function(){return this.container.height()},n}(MOCKUP.Stage),MOCKUP.PreviewStage=_;var n=function(t){function n(e,n){(e=e||{}).folds=1,t.call(this,e,n),this.angle=0,this.isFlipping=!1,this.material.materials[5].transparent=!0,this.material.materials[4].transparent=!0,this.type="BookPaper"}return B(n,t),n.prototype.tween=function(t,n){var i=this;i.originalStiff=i.stiffness;
2110var o=i.newStiffness,a=M(i.parent),r=n-t,s=t>90,l=i.parent.direction==e.DIRECTION.RTL;i.init={angle:t,angle2:t<90?0:180,stiff:i.originalStiff,index:s&&!l||!s&&l?1:0},i.first={angle:t+r/4,angle2:90,stiff:i.originalStiff,index:s&&!l||!s&&l?1:.25},i.mid={angle:t+2*r/4,angle2:t<90?135:45,stiff:i.newStiffness,index:.5},i.mid2={angle:t+3*r/4,angle2:t<90?180:0,stiff:i.newStiffness,index:s&&!l||!s&&l?.25:1},i.end={angle:n,angle2:t<90?180:0,stiff:i.newStiffness,index:s&&!l||!s&&l?0:1},i.isFlipping=!0,a&&(!s&&!l||s&&l)&&(i.material.materials[5].opacity=i.material.materials[4].opacity=0,i.castShadow=!1),i.currentTween=new TWEEN.Tween(i.init).to({angle:[i.first.angle,i.mid.angle,i.mid2.angle,i.end.angle],angle2:[i.first.angle2,i.mid.angle2,i.mid2.angle2,i.end.angle2],stiff:[i.first.stiff,i.mid.stiff,i.mid2.stiff,i.end.stiff],index:[i.first.index,i.mid.index,i.mid2.index,i.end.index]},i.parent.duration).onUpdate(function(e){var t;t=this,i.angles[1]=t.angle,i.angles[4]=i.isHard?t.angle:t.angle2,1==i.isHard?i.stiffness=0:(i.stiffness=t.stiff/(o+1e-5)*(i.newStiffness+1e-5),i.stiffness=isNaN(i.stiffness)?0:t.stiff),a&&(i.material.materials[5].opacity=i.material.materials[4].opacity=t.index,i.castShadow=t.index>.5),i.updateAngle(!0)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(function(e){i.stiffness=i.newStiffness,i.updateAngle(),i.material.materials[5].opacity=i.material.materials[4].opacity=1,i.castShadow=!0,i.isFlipping=!1,i.parent&&i.parent.refresh&&i.parent.refresh()}).start()},n}(MOCKUP.FlexBoxPaper);MOCKUP.BookPaper=n;var i=function(t){function n(n,i){(n=n||{}).segments=n.segments||50,this.pageCount=n.pageCount,this.height=n.height,this.width=n.width,this.pageCount=1==this.pageCount?this.pageCount:2*Math.ceil(this.pageCount/2),this.direction=n.direction||e.DIRECTION.LTR,this.startPage=1,this.endPage=this.pageCount,this.stackCount=n.stackCount||6,this.materials=[],t.call(this,n,i),this.angles=[0,0,0,0,0,0],this.stiffness=null==n.stiffness?1.5:n.stiffness,this.hardConfig=n.hard,this._activePage=n.openPage||this.startPage,this.createStack(n),this.pageMode=n.pageMode||(F||this.pageCount<=2?e.PAGE_MODE.SINGLE:e.PAGE_MODE.DOUBLE),this.singlePageMode=n.singlePageMode||(F?e.SINGLE_PAGE_MODE.BOOKLET:e.SINGLE_PAGE_MODE.ZOOM),this.type="Book"}return B(n,t),n.prototype.getPageByNumber=function(e){var t=M(this)?D(this)?e+1:e:Math.floor((e-1)/2);return this.getObjectByName(t.toString())},n.prototype.isPageHard=function(e){return d.isHardPage(this.hardConfig,e,this.pageCount)},n.prototype.activePage=function(e){if(null==e)return this._activePage;this.gotoPage(e)},n.prototype.gotoPage=function(e){e=parseInt(e,10),this._activePage=e,1==this.autoPlay&&this.previewObject.setAutoPlay(this.autoPlay),this.updatePage(e),this&&this.thumblist&&this.thumblist.review&&this.thumblist.review()},n.prototype.moveBy=function(e){var t=this._activePage+e;t=P(t,this.startPage,this.endPage),this.gotoPage(t)},n.prototype.next=function(t){null==t&&(t=this.direction==e.DIRECTION.RTL?-this.pageMode:this.pageMode),this.moveBy(t)},n.prototype.prev=function(t){null==t&&(t=this.direction==e.DIRECTION.RTL?this.pageMode:-this.pageMode),this.moveBy(t)},n.prototype.updateAngle=function(){for(var e=this.angles[1],t=this.angles[4]-e,n=this.stackCount,i=0;i<n;i++){var o=this.children[i];o.angles[1]=e+i*t/(100*n),o.stiffness=this.stiffness,o.updateAngle()}},n.prototype.refresh=function(){this.updatePage(this._activePage),null!=this.flipCallback&&this.flipCallback()},n.prototype.updatePage=function(t){var n=this.direction==e.DIRECTION.RTL,i=M(this),o=(L(t),i?1:2);t=Math.floor(t/o),n&&(t=this.pageCount/o-t);var a=this.oldBaseNumber||0,s=this.pageCount/o,l=this.stackCount,c=i?0:(.5-Math.abs(s/2-t)/s)/this.stiffness,d=Math.floor(l/2),u=!1;a>t?(u=!0,this.children[l-1].skipFlip=!0,this.children.unshift(this.children.pop())):a<t&&(this.children[0].skipFlip=!0,this.children.push(this.children.shift()));for(var p=5/s,h=p*t/2,f=p*(s-t)/2,g=h<f?f:h,m=0;m<l;m++){var v,b=this.children[m],w=(b.color,b.angles[1]),y=t-d+m;n&&(y=i?this.pageCount-y:Math.floor(this.pageCount/2)-y-1);var P=b.isHard=this.isPageHard(y),x=b.name;b.isEdge=!1,0==m?b.depth=h<.4?.4:h:m==l-1?b.depth=f<.4?.4:f:(b.depth=.4,b.isEdge=!1),1==b.isFlipping&&(b.depth=.4),b.position.x=0;var C=.02*m,E=180-.02*(m-d)+.02*m;if(m<d?(b.newStiffness=P||0==this.stiffness?0:c/(t/s)/4,v=C,b.position.z=g-.4*(-m+d),1==u&&(b.position.z-=.4)):(v=E,b.newStiffness=P||0==this.stiffness?0:c/(Math.abs(s-t)/s)/4,b.position.z=g-.4*(-l+m+d+1)-b.depth),0==b.isFlipping)if(Math.abs(w-v)>20&&0==b.skipFlip){b.depth=.4;var S=b.stiffness;S=w>v?c/(Math.abs(s-t)/s)/4:c/(t/s)/4,b.position.z+=.4,b.stiffness=isNaN(S)?b.stiffness:S,b.updateAngle(!0),b.targetStiffness=P?0:m<t?c/(Math.abs(s-t)/s)/4:c/(t/s)/4,b.targetStiffness=P?0:isNaN(b.targetStiffness)?b.stiffness:b.targetStiffness,b.isFlipping=!0,b.tween(w,v),null!=this.preFlipCallback&&this.preFlipCallback()}else b.skipFlip=!1,b.newStiffness=isNaN(b.newStiffness)?0:b.newStiffness,b.angles[1]==v&&b.stiffness==b.newStiffness&&b.depth==b.oldDepth||(b.angles[1]=b.angles[4]=v,b.stiffness=b.newStiffness,b.updateAngle(!0));b.visible=i?n?m<d||b.isFlipping:m>=d||b.isFlipping:y>=0&&y<s||i&&y==s,null!=this.requestPage&&1==b.visible&&(b.name=y.toString(),b.name!=x&&(b.textureLoaded=!1,b.frontImage(r.textureLoadFallback),b.frontPageStamp="-1",b.frontTextureLoaded=!1,b.thumbLoaded=!1,b.backImage(r.textureLoadFallback),b.backPageStamp="-1",b.backTextureLoaded=!1,this.requestPage())),b.oldDepth=b.depth;var k=Math.abs(b.geometry.boundingBox.max.x)<Math.abs(b.geometry.boundingBox.min.x)?b.geometry.boundingBox.max.x:b.geometry.boundingBox.min.x;b.position.x=1==b.isEdge&&0==b.isFlipping?m<d?k:-k:0}this.oldBaseNumber=t,null!=this.updatePageCallback&&this.updatePageCallback()},n.prototype.createCover=function(e){e.width=2*e.width,this.cover=new MOCKUP.BiFold(e),this.add(this.cover)},n.prototype.createStack=function(e){for(var t="red,green,blue,yellow,orange,black".split(","),n=0;n<this.stackCount;n++){e.angles=[,this.stackCount-n],e.stiffness=(this.stackCount-n)/100;var i=new MOCKUP.BookPaper(e);i.angles[1]=180,i.index=n,i.updateAngle(),i.textureReady=!1,i.textureRequested=!1,this.add(i),i.color=t[n],i.position.z=-1*n}},n.prototype.shininess=function(e){if(null==e)return this.mainObject.
2110shininess();this.mainObject.shininess(e)},n.prototype.bumpScale=function(e){if(null==e)return this.mainObject.bumpScale();this.mainObject.bumpScale(e)},n.prototype.frontImage=function(e){if(null==e)return this.mainObject.frontImage();this.mainObject.frontImage(e)},n.prototype.backImage=function(e){if(null==e)return this.mainObject.backImage();this.mainObject.backImage(e)},n}(MOCKUP.Bundle);MOCKUP.Book=i}(),null!=i&&i()},null==window.MOCKUP?(a.updateInfo("Loading Interface ..."),"function"==typeof define&&define.amd?(requirejs.config({paths:{three:r.threejsSrc.replace(".js","")},shim:{three:{exports:"THREE"}}}),require(["three"],function(t){return window.THREE=t,O(r.utilsSrc+"?ver="+e.version,function(){o()}),t})):O(r.threejsSrc+"?ver="+e.version,function(){O(r.utilsSrc+"?ver="+e.version,function(){o()})})):o()):a.contentProvider=new H(a.contentSource,function(e){var i={pageCount:e.pageCount,contentSourceType:e.contentSourceType};a.checkOpenPage(),a.target=s=new G(T(a.options,i),a.container),a.target.previewObject=a,a.extendtarget(),j(a.container,a),e.webgl=n,e.setTarget(a.target),e.waitPerio
2110d=2,s.ease=TWEEN.Easing.Quadratic.InOut,s.duration=a.options.duration,s.container=a.container,s.updatePageCallback=function(){a.ui.update(),a.checkCenter()},s.resize=void a.resize(),t(window).trigger("resize"),s.flipCallback=function(){a.contentProvider&&(a.contentProvider.review("flipCallback"),null!=a.options.onFlip&&a.options.onFlip(a))},s.preFlipCallback=function(){null!=a.options.beforeFlip&&a.options.beforeFlip(a),a.playSound()},s.gotoPage(s._activePage),s.flipCallback(),null!=a.options.onReady&&a.options.onReady(a)},l,a)},i.prototype.extendtarget=function(){var e=this;e.target.previewObject=e,e.target.reset=function(){for(var t=0;t<e.target.children.length;t++){var n=e.target.children[t];n.skipFlip=!0,n.name="-2"}e.contentProvider.annotedPage="-2",e.target.refresh()}},i.prototype.getURLHash=function(){if(null!=this.options.id){var e="pdfflip-"+(null!=this.options.slug?this.options.slug:this.options.id)+"/";null!=this.target&&null!=this.target._activePage&&(e+=this.target._activePage+"/"),window.location.hash=e}return window.location.href},i.prototype.checkOpenPage=function(){if(null!=this.options.id){var e=t("#"+this.options.id);if(e.length>0&&null!=e.data("page")){var n=parseInt(e.data("page"),10);isNaN(n)||(this.options.openPage=n)}}},i.prototype.end=function(){this.target.gotoPage(this.target.endPage)},i.prototype.gotoPage=function(e){this.target.gotoPage(e),null!=this.ui&&this.ui.update()},i.prototype.prev=function(){this.target.prev()},i.prototype.next=function(){this.target.next()},i.prototype.updateInfo=function(e){this.container&&this.container.info&&this.container.info.html&&this.container.info.html(e)},i}(U);t.fn.extend({shelf:function(){},flipBook:function(e,n){return new V(t(this),e,(i=n,t.extend(!0,{},r,i)));var i}})}(pdfflip,jQuery),function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(e){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\\[object\\s(.*)\\]$/)[1]},n=function(){this.data=[]},i=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},o=n.prototype,a=i.prototype,r=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,d=e.URL||e.webkitURL||e,u=d.createObjectURL,p=d.revokeObjectURL,h=d,f=e.btoa,g=e.atob,m=e.ArrayBuffer,v=e.Uint8Array,b=/^[\\w-]+:\\/*\\[?[\\w\\.:-]+\\]?(?::[0-9]+)?/;for(i.fake=a.fake=!0;c--;)s.prototype[l[c]]=c+1;return d.createObjectURL||(h=e.URL=function(e){var t,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=e,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(t=e.match(b),n.origin=t&&t[1])),n}),h.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof i?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):f?t+";base64,"+f(e.data):t+","+encodeURIComponent(e.data)):u?u.call(d,e):void 0},h.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&p&&p.call(d,e)},o.append=function(e){var n=this.data;if(v&&(e instanceof m||e instanceof v)){for(var o="",a=new v(e),l=0,c=a.length;l<c;l++)o+=String.fromCharCode(a[l]);n.push(o)}else if("Blob"===t(e)||"File"===t(e)){if(!r)throw new s("NOT_READABLE_ERR");var d=new r;n.push(d.readAsBinaryString(e))}else e instanceof i?"base64"===e.encoding&&g?n.push(g(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},o.getBlob=function(e){return arguments.length||(e=null),new i(this.data.join(""),e,"raw")},o.toString=function(){return"[object BlobBuilder]"},a.slice=function(e,t,n){var o=arguments.length;return o<3&&(n=null),new i(this.data.slice(e,o>1?t:this.data.length),n,this.encoding)},a.toString=function(){return"[object Blob]"},a.close=function(){this.size=0,delete this.data},n}(e);e.Blob=function(e,n){var i=n&&n.type||"",o=new t;if(e)for(var a=0,r=e.length;a<r;a++)Uint8Array&&e[a]instanceof Uint8Array?o.append(e[a].buffer):o.append(e[a]);var s=o.getBlob(i);
2110return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=n(new e.Blob)}(window),function(e){var t,n=e.Uint8Array,i=e.HTMLCanvasElement,o=i&&i.prototype,a=/\\s*;\\s*base64\\s*(?:;|$)/i,r="toDataURL";n&&(t=new n([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),i&&!o.toBlob&&(o.toBlob=function(e,i){if(i||(i="image/png"),this.mozGetAsFile)e(this.mozGetAsFile("canvas",i));else if(this.msToBlob&&/^\\s*image\\/png\\s*(?:$|;)/i.test(i))e(this.msToBlob());else{var o,s=Array.prototype.slice.call(arguments,1),l=this[r].apply(this,s),c=l.indexOf(","),d=l.substring(c+1),u=a.test(l.substring(0,c));Blob.fake?((o=new Blob).encoding=u?"base64":"URI",o.data=d,o.size=d.length):n&&(o=u?new Blob([function(e){for(var i,o,a=e.length,r=new n(a/4*3|0),s=0,l=0,c=[0,0],d=0,u=0;a--;)o=e.charCodeAt(s++),255!==(i=t[o-43])&&null!=i&&(c[1]=c[0],c[0]=o,u=u<<6|i,4==++d&&(r[l++]=u>>>16,61!==c[1]&&(r[l++]=u>>>8),61!==c[0]&&(r[l++]=u),d=0));return r}(d)],{type:i}):new Blob([decodeURIComponent(d)],{type:i})),e(o)}},o.toDataURLHD?o.toBlobHD=function(){r="toDataURLHD";var e=this.toBlob();return r="toDataURL",e}:o.toBlobHD=o.toBlob)}(window),function(){if("performance"in window==0&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==0){var e=window.performance.timing&&window.performance.timing.navigationStart?window.performance.timing.navigationStart:Date.now();window.performance.now=function(){return Date.now()-e}}}(),function(){var e,t,n=n||(e=[],{getAll:function(){return e},removeAll:function(){e=[]},add:function(t){e.push(t)},remove:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},update:function(t){if(0===e.length)return!1;var n=0;for(t=null!=t?t:window.performance.now();n<e.length;)e[n].update(t)?n++:e.splice(n,1);return!0}});n.Tween=function(e){var t=e,i={},o={},a={},r=1e3,s=0,l=!1,c=!1,d=!1,u=0,p=null,h=n.Easing.Linear.None,f=n.Interpolation.Linear,g=[],m=null,v=!1,b=null,w=null,y=null;for(var P in e)i[P]=parseFloat(e[P],10);this.to=function(e,t){return null!=t&&(r=t),o=e,this},this.start=function(e){n.add(this),c=!0,v=!1,p=null!=e?e:window.performance.now(),p+=u;for(var r in o){if(o[r]instanceof Array){if(0===o[r].length)continue;o[r]=[t[r]].concat(o[r])}null!==i[r]&&(i[r]=t[r],i[r]instanceof Array==0&&(i[r]*=1),a[r]=i[r]||0)}return this},this.stop=function(){return c?(n.remove(this),c=!1,null!==y&&y.call(t),this.stopChainedTweens(),this):this},this.stopChainedTweens=function(){for(var e=0,t=g.length;e<t;e++)g[e].stop()},this.complete=function(){return c?(n.remove(this),c=!1,null!==w&&w.call(t),this.completeChainedTweens(),this):this},this.completeChainedTweens=function(){for(var e=0,t=g.length;e<t;e++)g[e].complete()},this.delay=function(e){return u=e,this},this.repeat=function(e){return s=e,this},this.yoyo=function(e){return l=e,this},this.easing=function(e){return h=null==e?h:e,this},this.interpolation=function(e){return f=e,this},this.chain=function(){return g=arguments,this},this.onStart=function(e){return m=e,this},this.onUpdate=function(e){return b=e,this},this.onComplete=function(e){return w=e,this},this.onStop=function(e){return y=e,this},this.update=function(e){var n,c,y;if(e<p)return!0;!1===v&&(null!==m&&m.call(t),v=!0),y=h(c=(c=(e-p)/r)>1?1:c);for(n in o)if(null!==i[n]){var P=i[n]||0,x=o[n];x instanceof Array?t[n]=f(x,y):("string"==typeof x&&(x=x.startsWith("+")||x.startsWith("-")?P+parseFloat(x,10):parseFloat(x,10)),"number"==typeof x&&(t[n]=P+(x-P)*y))}if(null!==b&&b.call(t,y),1===c){if(s>0){isFinite(s)&&s--;for(n in a){if("string"==typeof o[n]&&(a[n]=a[n]+parseFloat(o[n],10)),l){var C=a[n];a[n]=o[n],o[n]=C}i[n]=a[n]}return l&&(d=!d),p=e+u,!0}null!==w&&w.call(t);for(var E=0,S=g.length;E<S;E++)g[E].start(p+r);return!1}return!0}},n.Easing={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}}
2110,Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}},n.Interpolation={Linear:function(e,t){var i=e.length-1,o=i*t,a=Math.floor(o),r=n.Interpolation.Utils.Linear;return t<0?r(e[0],e[1],o):t>1?r(e[i],e[i-1],i-o):r(e[a],e[a+1>i?i:a+1],o-a)},Bezier:function(e,t){for(var i=0,o=e.length-1,a=Math.pow,r=n.Interpolation.Utils.Bernstein,s=0;s<=o;s++)i+=a(1-t,o-s)*a(t,s)*e[s]*r(o,s);return i},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var i=n.Interpolation.Utils.Factorial;return i(e)/i(t)/i(e-t)},Factorial:(t=[1],function(e){var n=1;if(t[e])return t[e];for(var i=e;i>1;i--)n*=i;return t[e]=n,n}),CatmullRom:function(e,t,n,i,o){var a=.5*(n-e),r=.5*(i-t),s=o*o;return(2*t-2*n+a+r)*(o*s)+(-3*t+3*n-2*a-r)*s+a*o+t}}},window.TWEEN=n}(),pdfflip.createBlob=function(e,t){if("undefined"!=typeof Blob)return new Blob([e],{type:t});var n=new MozBlobBuilder;return n.append(e),n.getBlob(t)},pdfflip.createObjectURL=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){if("undefined"!=typeof URL&&URL.createObjectURL){var i=pdfflip.createBlob(t,n);return URL.createObjectURL(i)}for(var o="data:"+n+";base64,",a=0,r=t.length;a<r;a+=3){var s=255&t[a],l=255&t[a+1],c=255&t[a+2];o+=e[s>>2]+e[(3&s)<<4|l>>4]+e[a+1<r?(15&l)<<2|c>>6:64]+e[a+2<r?63&c:64]}return o}}();var ThumbList=function(){function e(t){var n=t&&t.w+"px"||"100%",i=t&&t.h+"px"||"100%",o=this.itemHeight=t.itemHeight;this.items=t.items,this.generatorFn=t.generatorFn,this.totalRows=t.totalRows||t.items&&t.items.length,this.addFn=t.addFn,this.scrollFn=t.scrollFn;var a=e.createScroller(o*this.totalRows);this.container=e.createContainer(n,i),this.container.appendChild(a),this.screenItemsLen=Math.ceil(t.h/o),this.offsetItems=this.screenItemsLen,this.cachedItemsLen=this.screenItemsLen+2*this.offsetItems,this._renderChunk(this.container,0);var r=this;function s(e){var t=e.target.scrollTop;if(!r.lastRepaintY||Math.abs(t-r.lastRepaintY)>=r.offsetItems*r.itemHeight){var n=parseInt(t/o,10)-r.offsetItems;r._renderChunk(r.container,n<0?0:n),r.lastRepaintY=t}r.lastScrolled=Date.now(),null!=r.scrollFn&&r.scrollFn(),e.preventDefault&&e.preventDefault()}r.lastRepaintY=0,this.screenItemsLen,r.dispose=function(){r.container&&r.container.parentNode&&r.container.parentNode.removeChild(r.container),r.container.removeEventListener("scroll",s)},r.container.addEventListener("scroll",s)}return e.prototype.reset=function(e){this.screenItemsLen=Math.ceil(e/this.itemHeight),this.cachedItemsLen=this.screenItemsLen+2*this.offsetItems;var t=parseInt(this.lastRepaintY/this.itemHeight,10)-this.offsetItems;this.needReset=!0,this._renderChunk(this.container,Math.max(t,0))},e.prototype.createRow=function(e){var t;return this.generatorFn&&((t=this.generatorFn(e)).classList.add("pdff-vrow"),t.style.position="absolute",t.style.top=e*this.itemHeight+"px",t.setAttribute("index",e)),t},e.prototype._renderChunk=function(e,t){var n=null==this.range;this.range=this.range||{min:0,max:this.cachedItemsLen};var i=this.range,o=i.min,a=i.max,r=!!n||t>=o;if(n||t!=o||0!=this.needReset){var s,l=n?o:r?a:t;l=l>this.totalRows?this.totalRows:l<0?0:l;var c=t+this.cachedItemsLen;for(c=c>this.totalRows?this.totalRows:c,s=l;s<c;s++)r?e.appendChild(this.createRow(s)):e.insertBefore(this.createRow(s),e.childNodes[1+s-l]),null!=this.addFn&&this.addFn(s);if(Math.abs(t-o),this.needReset=!1,!n&&e.childNodes.length>this.cachedItemsLen+1)for(var d=r?1:1+this.cachedItemsLen,u=d+(c-l);u>d;u--)e.childNodes[d]&&this.container.removeChild(e.childNodes[d]);this.range.min=t,this.range.max=c}},e.createContainer=function(e,t){var n=document.createElement("div");return n.style.width=e,n.style.height=t,n.style.overflow="auto",n.style.position="relative",n.style.padding=0,n},e.createScroller=function(e){var t=document.createElement("div");return t.style.opacity=0,t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.width="1px",t.style.height=e+"px",t},e}(),BookMarkViewer=function(){function e(e){this.outline=null,this.lastToggleIsShow=!0,this.container=e.container,this.linkService=e.linkService,this.outlineItemClass=e.outlineItemClass||"outlineItem",this.outlineToggleClass=e.outlineToggleClass||"outlineItemToggler",this.outlineToggleHiddenClass=e.outlineToggleHiddenClass||"outlineItemsHidden"}return e.prototype={dispose:function(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.linkService=null},reset:function(){this.outline=null,this.lastToggleIsShow=!0;for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},_dispatchEvent:function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}
2110),this.container.dispatchEvent(t)},_bindLink:function(e,t){var n=this.linkService;if(1==t.custom)e.href=n.getCustomDestinationHash(t.dest),e.onclick=function(e){return n.customNavigateTo(t.dest),!1};else{if(t.url)return void PDFJS.addLinkAttributes(e,{url:t.url});e.href=n.getDestinationHash(t.dest),e.onclick=function(e){return n.navigateTo(t.dest),!1}}},_addToggleButton:function(e){var t=document.createElement("div");t.className=this.outlineToggleClass+" "+this.outlineToggleHiddenClass,t.onclick=function(n){if(n.stopPropagation(),t.classList.toggle(this.outlineToggleHiddenClass),n.shiftKey){var i=!t.classList.contains(this.outlineToggleHiddenClass);this._toggleOutlineItem(e,i)}}.bind(this),e.insertBefore(t,e.firstChild)},_toggleOutlineItem:function(e,t){this.lastToggleIsShow=t;for(var n=e.querySelectorAll("."+this.outlineToggleClass),i=0,o=n.length;i<o;++i)n[i].classList[t?"remove":"add"](this.outlineToggleHiddenClass)},toggleOutlineTree:function(){this.outline&&this._toggleOutlineItem(this.container,!this.lastToggleIsShow)},render:function(e){var t=e&&e.outline||null,n=0;if(this.outline&&this.reset(),this.outline=t,t){for(var i=document.createDocumentFragment(),o=[{parent:i,items:this.outline}],a=!1;o.length>0;)for(var r=o.shift(),s=r.custom,l=0,c=r.items.length;l<c;l++){var d=r.items[l],u=document.createElement("div");u.className=this.outlineItemClass;var p=document.createElement("a");if(null==d.custom&&null!=s&&(d.custom=s),this._bindLink(p,d),p.textContent=d.title.replace(/\\x00/g,""),u.appendChild(p),d.items&&d.items.length>0){a=!0,this._addToggleButton(u);var h=document.createElement("div");h.className=this.outlineItemClass+"s",u.appendChild(h),o.push({parent:h,custom:d.custom,items:d.items})}r.parent.appendChild(u),n++}a&&(null!=this.container.classList?this.container.classList.add(this.outlineItemClass+"s"):null!=this.container.className&&(this.container.className+=" picWindow")),this.container.appendChild(i),this._dispatchEvent(n)}}},e}(),DFLightBox=function(e){function t(t,n){this.duration=300;var i=this;return i.lightboxWrapper=e("<div>").addClass("pdff-lightbox-wrapper"),i.container=e("<div>").addClass("pdff-container").appendTo(i.lightboxWrapper),i.controls=e("<div>").addClass("pdff-lightbox-controls").appendTo(i.lightboxWrapper),i.closeButton=e("<div>").addClass("pdff-lightbox-close pdff-ui-btn").on("click",function(){$("body").css("overflow","visible"),i.close(t)}).appendTo(i.controls),i.lightboxWrapper.append(i.container),i}return t.prototype.show=function(t){return 0==this.lightboxWrapper.parent().length&&e("body").append(this.lightboxWrapper),this.lightboxWrapper.fadeIn(this.duration,t),this},t.prototype.close=function(e){return this.lightboxWrapper.fadeOut(this.duration),setTimeout(e,this.duration),this},t}(jQuery);pdfflip.Share=function(e){function t(t,n){var i=this,o="<div>",a="pdff-share-button",r="width=500,height=400";i.isOpen=!1,i.shareUrl="",i.wrapper=e('<div class="pdff-share-wrapper" style="display: none;">').on("click",function(e){i.close()}),i.box=e('<div class="pdff-share-box">').on("click",function(e){e.preventDefault(),e.stopPropagation()}).appendTo(i.wrapper).html('<span class="pdff-share-title">'+n.text.share+"</span>"),i.urlInput=e('<textarea class="pdff-share-url">').on("click",function(){e(this).select()}),i.facebook=e(o,{class:a+" pdff-share-facebook "+n.icons.facebook}).on("click",function(e){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i.shareUrl),"Sharer",r)}),i.google=e(o,{class:a+" pdff-share-google "+n.icons.google}).on("click",function(e){window.open("https://plus.google.com/share?url="+encodeURIComponent(i.shareUrl),"Sharer",r)}),i.twitter=e(o,{class:a+" pdff-share-twitter "+n.icons.twitter}).on("click",function(e){window.open("http://twitter.com/share?url="+encodeURIComponent(i.shareUrl),"Sharer",r)}),i.mail=e("<a>",{class:a+" pdff-share-mail "+n.icons.mail,href:"mailto:?subject=I wanted you to see this FlipBook&body=Check out this site "+encodeURIComponent(i.shareUrl),target:"_blank"}).on("click",function(t){e(this).attr("href","mailto:?subject=I wanted y
2110ou to see this FlipBook&body=Check out this site "+encodeURIComponent(i.shareUrl)),t.stopPropagation()}),i.box.append(i.urlInput).append(i.facebook).append(i.google).append(i.twitter).append(i.mail),e(t).append(i.wrapper)}return t.prototype.show=function(){this.wrapper.fadeIn(300),this.urlInput.val(this.shareUrl),this.urlInput.trigger("click"),this.isOpen=!0},t.prototype.dispose=function(){var e=this;e.box.off(),e.google.off(),e.twitter.off(),e.facebook.off(),e.mail.off(),e.urlInput.off(),e.wrapper.off().remove()},t.prototype.close=function(){this.wrapper.fadeOut(300),this.isOpen=!1},t.prototype.update=function(e){this.shareUrl=e},t}(jQuery),pdfflip.Popup=function(e){function t(t,n){var i=this;i.isOpen=!1,i.wrapper=e('<div class="pdff-popup-wrapper" style="display: none;">').on("click",function(e){i.close()}),i.box=e('<div class="pdff-popup-box">').on("click",function(e){e.preventDefault(),e.stopPropagation()}).appendTo(i.wrapper),e(t).append(i.wrapper)}return t.prototype.show=function(){this.wrapper.fadeIn(300),this.isOpen=!0},t.prototype.dispose=function(){this.box.off(),this.wrapper.off().remove()},t.prototype.close=function(){this.wrapper.fadeOut(300),this.isOpen=!1},t}(jQuery);var PDFLinkService=function(){function e(){this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return e.prototype={dispose:function(){this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null},setDocument:function(e,t){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)},setViewer:function(e){this.pdfViewer=e},setHistory:function(e){this.pdfHistory=e},get pagesCount(){return this.pdfDocument.numPages},get page(){return this.pdfViewer.currentPageNumber},set page(e){this.pdfViewer.currentPageNumber=e},navigateTo:function(e){var t,n="",i=this,o=function(t){var a=t instanceof Object?i._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;a?(i.pdfViewer.contentProvider.options.pageSize==pdfflip.PAGE_SIZE.DOUBLEINTERNAL&&a>2&&(a=2*a-1),a>i.pdfViewer.pageCount&&(a=i.pdfViewer.pageCount),i.pdfViewer.gotoPage(a),i.pdfHistory&&i.pdfHistory.push({dest:e,hash:n,page:a})):i.pdfDocument.getPageIndex(t).then(function(e){var n=e+1,a=t.num+" "+t.gen+" R";i._pagesRefCache[a]=n,o(t)})};"string"==typeof e?(n=e,t=this.pdfDocument.getDestination(e)):t=Promise.resolve(e),t.then(function(t){e=t,t instanceof Array&&o(t[0])})},customNavigateTo:function(e){if(""!=e&&null!=e&&"null"!=e){var t=null;if(isNaN(Math.round(e))){if("string"==typeof e&&(t=parseInt(e.replace("#",""),10),isNaN(t)))return void window.open(e)}else t=e;null!=t&&this.pdfViewer.gotoPage(t)}},getDestinationHash:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(e instanceof Array){var t=e[0],n=t instanceof Object?this._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;if(n){var i=this.getAnchorUrl("#page="+n),o=e[1];if("object"==typeof o&&"name"in o&&"XYZ"===o.name){var a=e[4]||this.pdfViewer.currentScaleValue,r=parseFloat(a);r&&(a=100*r),i+="&zoom="+a,(e[2]||e[3])&&(i+=","+(e[2]||0)+","+(e[3]||0))}return i}}return this.getAnchorUrl("")},getCustomDestinationHash:function(e){return"#"+escape(e)},getAnchorUrl:function(e){return(this.baseUrl||"")+e},setHash:function(e){if(e.indexOf("=")>=0){var t,n,i=parseQueryString(e);if("nameddest"in i)return this.pdfHistory&&this.pdfHistory.updateNextHashParam(i.nameddest),void this.navigateTo(i.nameddest);if("page"in i&&(t=0|i.page||1),"zoom"in i){var o=i.zoom.split(","),a=o[0],r=parseFloat(a);-1===a.indexOf("Fit")?n=[null,{name:"XYZ"},o.length>1?0|o[1]:null,o.length>2?0|o[2]:null,r?r/100:a]:"Fit"===a||"FitB"===a?n=[null,{name:a}]:"FitH"===a||"FitBH"===a||"FitV"===a||"FitBV"===a?n=[null,{name:a},o.length>1?0|o[1]:null]:"FitR"===a?5!==o.length?console.error("PDFLinkService_setHash: Not enough parameters for 'FitR'."):n=[null,{name:a},0|o[1],0|o[2],0|o[3],0|o[4]]:console.error("PDFLinkService_setHash: '"+a+"' is not a valid zoom value.")}if(n?this.pdfViewer.scrollPageIntoView(t||this.page,n):t&&(this.page=t),"pagemode"in i){var s=document.createEvent("CustomEvent");s.initCustomEvent("pagemode",!0,!0,{mode:i.pagemode}
2110),this.pdfViewer.container.dispatchEvent(s)}}else/^\\d+$/.test(e)?this.page=e:(this.pdfHistory&&this.pdfHistory.updateNextHashParam(unescape(e)),this.navigateTo(unescape(e)))},executeNamedAction:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page++;break;case"PrevPage":this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e}),this.pdfViewer.container.dispatchEvent(t)},cachePageRef:function(e,t){var n=t.num+" "+t.gen+" R";this._pagesRefCache[n]=e}},e}();pdfflip.TextLayerBuilder=function(){function e(e){this.textLayerDiv=e.textLayerDiv,this.renderingDone=!1,this.divContentDone=!1,this.pageIdx=e.pageIndex,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=e.viewport,this.textDivs=[],this.findController=e.findController||null,this.textLayerRenderTask=null,this.enhanceTextSelection=e.enhanceTextSelection,this._bindMouse()}return e.prototype={_finishRendering:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}},render:function(e){if(this.divContentDone&&!this.renderingDone){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.textDivs=[];var t=document.createDocumentFragment();this.textLayerRenderTask=PDFJS.renderTextLayer({textContent:this.textContent,container:t,viewport:this.viewport,textDivs:this.textDivs,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){this.textLayerDiv.appendChild(t),this._finishRendering(),this.updateMatches()}.bind(this),function(e){})}},setTextContent:function(e){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.textContent=e,this.divContentDone=!0},convertMatches:function(e,t){var n=0,i=0,o=this.textContent.items,a=o.length-1,r=null===this.findController?0:this.findController.state.query.length,s=[];if(!e)return s;for(var l=0,c=e.length;l<c;l++){for(var d=e[l];n!==a&&d>=i+o[n].str.length;)i+=o[n].str.length,n++;n===o.length&&console.error("Could not find a matching mapping");var u={begin:{divIdx:n,offset:d-i}};for(d+=t?t[l]:r;n!==a&&d>i+o[n].str.length;)i+=o[n].str.length,n++;u.end={divIdx:n,offset:d-i},s.push(u)}return s},renderMatches:function(e){if(0!==e.length){var t=this.textContent.items,n=this.textDivs,i=null,o=this.pageIdx,a=null!==this.findController&&o===this.findController.selected.pageIdx,r=null===this.findController?-1:this.findController.selected.matchIdx,s=void 0,l=r,c=l+1;if(null!==this.findController&&this.findController.state.highlightAll)l=0,c=e.length;else if(!a)return;for(var d=l;d<c;d++){var u=e[d],p=u.begin,h=u.end,f=a&&d===r?" selected":"";if(this.findController&&this.findController.updateMatchPosition(o,d,n,p.divIdx),i&&p.divIdx===i.divIdx?b(i.divIdx,i.offset,p.offset):(null!==i&&b(i.divIdx,i.offset,s),v(p)),p.divIdx===h.divIdx)b(p.divIdx,p.offset,h.offset,"highlight"+f);else{b(p.divIdx,p.offset,s,"highlight begin"+f);for(var g=p.divIdx+1,m=h.divIdx;g<m;g++)n[g].className="highlight middle"+f;v(h,"highlight end"+f)}i=h}i&&b(i.divIdx,i.offset,s)}function v(e,t){var i=e.divIdx;n[i].textContent="",b(i,0,e.offset,t)}function b(e,i,o,a){var r=n[e],s=t[e].str.substring(i,o),l=document.createTextNode(s);if(a){var c=document.createElement("span");return c.className=a,c.appendChild(l),void r.appendChild(c)}r.appendChild(l)}},updateMatches:function(){if(this.renderingDone){for(var e,t,n=this.matches,i=this.textDivs,o=this.textContent.items,a=-1,r=0,s=n.length;r<s;r++){for(var l=n[r],c=Math.max(a,l.begin.divIdx),d=l.end.divIdx;c<=d;c++){var u=i[c];u.textContent=o[c].str,u.className=""}a=l.end.divIdx+1}null!==this.findController&&this.findController.active&&(null!==this.findController&&(e=this.findController.pageMatches[this.pageIdx]||null,t=this.findController.pageMatchesLength&&this.findController.pageMatchesLength[this.pageIdx]||null),this.matches=this.convertMatches(e,t),this.renderMatches(this.matches))}},_bindMouse:function(){var e=this.textLayerDiv,t=this;e.addEventListener("mousedown",function(n){if(t.enhanceTextSelection&&t.textLayerRenderTask)t.textLayerRenderTask.expandTextDivs(!0);else{var i=e.querySelector(".endOfContent");
2110if(i){var o=n.target!==e;if(o=o&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select")){var a=e.getBoundingClientRect(),r=Math.max(0,(n.pageY-a.top)/a.height);i.style.top=(100*r).toFixed(2)+"%"}i.classList.add("active")}}}),e.addEventListener("mouseup",function(n){if(t.enhanceTextSelection&&t.textLayerRenderTask)t.textLayerRenderTask.expandTextDivs(!1);else{var i=e.querySelector(".endOfContent");i&&(i.style.top="",i.classList.remove("active"))}})}},e}(),pdfflip.ConvertPageLinks=function(){for(var e,t=arguments[0]/100,n=arguments[1]/100,i=function(e,i,o,a,r){return{x:e/t,y:i/n,w:o/t,h:a/n,dest:r}},o=[],a=2;a<arguments.length;a++)e=arguments[a],o[a-2]=i.apply(this,e);return o},pdfflip.parseLinks=function(e){var t;if(null!=e&&e.length>0)for(var n=0;n<e.length;n++)null!=(t=e[n])&&null!=t[0]&&null==t[0].dest&&(t=pdfflip.ConvertPageLinks.apply(this,t),e[n]=t);return e},function(e){function t(e){return"true"==e||1==e}function n(e){null!=e.webgl&&(e.webgl=t(e.webgl)),null!=e.downloadEnable&&(e.downloadEnable=t(e.downloadEnable)),null!=e.scrollWheel&&(e.scrollWheel=t(e.scrollWheel)),null!=e.autoEnableOutline&&(e.autoEnableOutline=t(e.autoEnableOutline)),null!=e.autoEnableThumbnail&&(e.autoEnableThumbnail=t(e.autoEnableThumbnail)),null!=e.transparent&&(e.transparent=t(e.transparent)),null!=e.overwritePDFOutline&&(e.overwritePDFOutline=t(e.overwritePDFOutline)),null!=e.enableSound&&(e.enableSound=t(e.enableSound)),null!=e.forceFit&&(e.forceFit=t(e.forceFit)),null!=e.enableAnnotation&&(e.enableAnnotation=t(e.enableAnnotation)),null!=e.webglShadow&&(e.webglShadow=t(e.webglShadow)),null!=e.autoPlay&&(e.autoPlay=t(e.autoPlay)),null!=e.autoPlayStart&&(e.autoPlayStart=t(e.autoPlayStart)),null!=e.paddingTop&&(e.paddingTop=parseInt(e.paddingTop,10)),null!=e.paddingRight&&(e.paddingRight=parseInt(e.paddingRight,10)),null!=e.paddingBottom&&(e.paddingBottom=parseInt(e.paddingBottom,10)),null!=e.paddingLeft&&(e.paddingLeft=parseInt(e.paddingLeft,10)),null!=e.zoomRatio&&(e.zoomRatio=parseFloat(e.zoomRatio,10)),null!=e.stiffness&&(e.stiffness=parseFloat(e.stiffness,10)),null!=e.autoPlayDuration&&(e.autoPlayDuration=parseInt(e.autoPlayDuration,10)),0!=e.pageMode&&"0"!=e.pageMode||(e.pageMode=null),0!=e.singlePageMode&&"0"!=e.singlePageMode||(e.singlePageMode=null)}pdfflip.getOptions=function(t){var i="option_"+(t=e(t)).attr("id"),o=t.attr("source")||t.attr("pdff-source");(i=null==i||""==i||null==window[i]?{}:window[i]).source=null==o||""==o?i.source:o;var a={webgl:t.attr("webgl"),height:t.attr("height"),enableSound:t.attr("sound"),transparent:t.attr("transparent"),downloadEnable:t.attr("download"),duration:t.attr("duration"),hard:t.attr("hard"),pageMode:t.attr("pagemode"),direction:t.attr("direction"),backgroundColor:t.attr("backgroundcolor"),scrollWheel:t.attr("scrollwheel"),backgroundImage:t.attr("backgroundimage"),paddingTop:t.attr("paddingtop"),paddingRight:t.attr("paddingright"),paddingBottom:t.attr("paddingbottom"),paddingLeft:t.attr("paddingleft"),wpOptions:t.attr("wpoptions")};return function(e){if(1!=e.parsed){e.parsed=!0;var t=[];if(n(e),"undefined"!=typeof pdfflipWPGlobal&&"true"==e.wpOptions){try{for(var i in e.links){for(var o=e.links[i],a=[100,100],r=0;r<o.length;r++){for(var s=o[r].substr(1).slice(0,-1).split(","),l=[],c=0;c<5;c++)l[c]=s[c];a.push(l)}t[parseInt(i,10)+1]=a}}catch(e){console.error(e.stack)}e.links=pdfflip.parseLinks(t)}else e.links=pdfflip.parseLinks(e.links)}}(i=e.extend(!0,{},i,a)),i},pdfflip.parseBooks=function(){e("._PDFF_btt, ._pdff_thumb, ._PDFF_link, .PDFFlip").each(function(){var t=e(this);if("true"!==(t.attr("parsed")||t.attr("pdff-parsed")))if(t.attr("pdff-parsed","true"),t.hasClass("PDFFlip")){var n=t.attr("id"),i=t.attr("slug"),o=pdfflip.getOptions(t);o.id=n,null!=i&&(o.slug=i),n?window[n.toString()]=e(t).flipBook(o.source,o):e(t).flipBook(o.source,o)}else if(t.hasClass("_pdff_thumb")){var a=e("<div class='PDFFlip-cover'>"),r=t.html().trim();t.html(""),e("<span class='PDFFlip-title'>").html(r).appendTo(a);var s=t.attr("thumb")||t.attr("pdff-thumb"),l=t.attr("thumbtype")||pdfflip.defaults.thumbElement||"div",c=t.attr("tags")||t.attr("pdff-tags");if(c&&(c=c.split(",")).length>0)for(var d=0;d<c.length;d++)t.append("<span class='PDFFlip-tag'>"+c[d]+"</span>");null!=s&&""!=s.toString().trim()?"img"==l?(a.append('<img src="'+s+'" alt="'+r+'"/>'),t.attr("thumb-type","img")):a.css({backgroundImage:"url("+s+")"}):a.addClass("_pdff_thumb-not-found"),t.append(a)}})},e(document).ready(function(){if("undefined"==typeof pdfflipLocation&&0!=pdfflip.autoDetectLocation&&e("script").each(function(){var t=e(this)[0].src;if((t.indexOf("/pdfflip.js")>-1||t.indexOf("/pdfflip.min.js")>-1)&&(t.indexOf("https://")>-1||t.indexOf("http://")>-1)&&t.indexOf("js/pdfflip.")>-1){var n=t.split("/");window.pdfflipLocation=n.slice(0,-2).join("/")}}),"undefined"!=typeof pdfflipLocation&&(pdfflipLocation.length>2&&"/"!==pdfflipLocation.slice(-1)&&(window.pdfflipLocation+="/"),pdfflip.defaults.utilsSrc=pdfflipLocation+"js/libs/utils.min.js",pdfflip.defaults.pdfjsSrc=pdfflipLocation+"js/libs/pdf.min.js",pdfflip.defaults.pdfjsCompatibilitySrc=pdfflipLocation+"js/libs/compatibility.js",pdfflip.defaults.threejsSrc=pdfflipLocation+"js/libs/three.min.js",pdfflip.defaults.pdfjsWorkerSrc=pdfflipLocation+"js/libs/pdf.worker.min.js",pdfflip.defaults.soundFile=pdfflipLocation+"sound/turn.mp3",pdfflip.defaults.imagesLocation=pdfflipLocation+"images",pdfflip.defaults.imageResourcesPath=
2110pdfflipLocation+"images/pdfjs/",pdfflip.defaults.cMapUrl=pdfflipLocation+"js/libs/cmaps/","undefined"!=typeof pdfflipWPGlobal&&(n(pdfflipWPGlobal),e.extend(pdfflip.defaults,pdfflipWPGlobal))),pdfflip.preParseHash=window.location.hash,pdfflip.parseBooks(),e("body").on("click","._PDFF_btt, ._pdff_thumb, ._PDFF_link",function(){$("body").css("overflow","hidden");var t=e(this);window.dfLightBox||(window.dfLightBox=new DFLightBox(function(){0==window.location.hash.indexOf("#pdfflip-")&&(window.location.hash="#_"),window.dfActiveLightBoxBook.dispose(),window.dfActiveLightBoxBook=null})),window.dfLightBox.duration=500,window.dfActiveLightBoxBook&&window.dfActiveLightBoxBook.dispose?window.dfActiveLightBoxBook.dispose():window.dfLightBox.show(function(){var n=pdfflip.getOptions(t);n.transparent=!1,n.id=t.attr("id");var i=t.attr("slug");null!=i&&(n.slug=i),n.isLightBox=!0,window.dfActiveLightBoxBook=e(window.dfLightBox.container).flipBook(n.source,n)})}),(pdfflip.utils.isSafari||pdfflip.utils.isIOS)&&e("body").addClass("pdff-webkit"),pdfflip.preParseHash&&pdfflip.preParseHash.indexOf("pdfflip-")>=0){var t,i=pdfflip.preParseHash.split("pdfflip-")[1].split("/")[0],o=pdfflip.preParseHash.split("pdfflip-")[1].split("/")[1];null!=o&&(o=o.split("/")[0]),0==(t=e("[slug="+i+"]")).length&&(t=e("#"+i)),t.length>0&&(null!=o&&t.data("page",o),t.is("._PDFF_btt, ._pdff_thumb, ._PDFF_link")&&t.trigger("click"))}e("body").on("click",".pdff-ui-sidemenu-close",function(){e(this).closest(".pdff-container").find(".pdff-ui-outline.pdff-active , .pdff-ui-thumbnail.pdff-active").trigger("click")})})}(jQuery);
2111`},6713:function(t){t.exports=`//override original pdf-flip setting
2112
2113var option_PDFF = {
2114
2115    /* BASIC SETTINGS */
2116    openPage: 1,
2117    height: '100%',
2118    enableSound: false,
2119    downloadEnable: true,
2120    direction: 1, // LTR = 1, RTL = 2
2121    autoPlay: true,
2122    autoPlayStart: false,
2123    autoPlayDuration: 3000,
2124    autoEnableOutline: false,
2125    autoEnableThumbnail: false,
2126
2127
2128    /* TRANSLATE INTERFACE */
2129
2130    text: {
2131        toggleSound: "Sound",
2132        toggleThumbnails: "Thumbnails",
2133        toggleOutline: "Contents",
2134        previousPage: "Previous Page",
2135        nextPage: "Next Page",
2136        toggleFullscreen: "Fullscreen",
2137        zoomIn: "Zoom In",
2138        zoomOut: "Zoom Out",
2139        downloadPDFFile: "Download PDF",
2140        gotoFirstPage: "First Page",
2141        gotoLastPage: "Last Page",
2142        play: "AutoPlay On",
2143        pause: "AutoPlay Off",
2144        share: "Share"
2145    },
2146
2147    /* ADVANCED SETTINGS */
2148
2149    hard: "none",
2150    overwritePDFOutline: true,
2151    duration: 1000,
2152    pageMode: null, //single = 1, double = 2, auto = null
2153    singlePageMode: null, // zoom = 1, booklet = 2, auto = null
2154    transparent: false,
2155    scrollWheel: true,
2156    zoomRatio: 1.5,
2157    maxTextureSize: 1600,
2158    backgroundImage: "/assets/flipbook/background.jpg",
2159    backgroundColor: "#fff",
2160    controlsPosition: 'bottom', //hidden= 'hide', top: 'top', bottom: 'bottom'
2161    allControls: "thumbnail,play,altPrev,pageNumber,altNext,zoomIn,zoomOut,fullScreen,download,sound",
2162    hideControls: "outline,startPage,endPage",
2163
2164};
2165var pdfflipLocation = "/assets/flipbook/";
2166
2167`},3530:function(t){t.exports=`(function(q,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():q.Rellax=g()})("undefined"!==typeof window?window:global,function(){var q=function(g,u){function C(){if(3===a.options.breakpoints.length&&Array.isArray(a.options.breakpoints)){var f=!0,c=!0,b;a.options.breakpoints.forEach(function(a){"number"!==typeof a&&(c=!1);null!==b&&a<b&&(f=!1);b=a});if(f&&c)return}a.options.breakpoints=[576,768,1201];console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}
2168var a=Object.create(q.prototype),l=0,v=0,m=0,n=0,d=[],w=!0,A=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a){return setTimeout(a,1E3/60)},p=null,x=!1;try{var k=Object.defineProperty({},"passive",{get:function(){x=!0}});window.addEventListener("testPassive",null,k);window.removeEventListener("testPassive",null,k)}catch(f){}var D=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
2169clearTimeout,E=window.transformProp||function(){var a=document.createElement("div");if(null===a.style.transform){var c=["Webkit","Moz","ms"],b;for(b in c)if(void 0!==a.style[c[b]+"Transform"])return c[b]+"Transform"}return"transform"}();a.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}};u&&Object.keys(u).forEach(function(d){a.options[d]=
2170u[d]});u&&u.breakpoints&&C();g||(g=".rellax");k="string"===typeof g?document.querySelectorAll(g):[g];if(0<k.length){a.elems=k;if(a.options.wrapper&&!a.options.wrapper.nodeType)if(k=document.querySelector(a.options.wrapper))a.options.wrapper=k;else{console.warn("Rellax: The wrapper you're trying to use doesn't exist.");return}var F,B=function(){for(var f=0;f<d.length;f++)a.elems[f].style.cssText=d[f].style;d=[];v=window.innerHeight;n=window.innerWidth;f=a.options.breakpoints;F=n<f[0]?"xs":n>=f[0]&&n<
2171f[1]?"sm":n>=f[1]&&n<f[2]?"md":"lg";H();for(f=0;f<a.elems.length;f++){var c=void 0,b=a.elems[f],e=b.getAttribute("data-rellax-percentage"),y=b.getAttribute("data-rellax-speed"),t=b.getAttribute("data-rellax-xs-speed"),g=b.getAttribute("data-rellax-mobile-speed"),h=b.getAttribute("data-rellax-tablet-speed"),k=b.getAttribute("data-rellax-desktop-speed"),l=b.getAttribute("data-rellax-vert
vendor: 4,172 bytes, lines 2171-2179
2171ical-speed"),m=b.getAttribute("data-rellax-horizontal-speed"),p=b.getAttribute("data-rellax-vertical-scroll-axis"),
2172q=b.getAttribute("data-rellax-horizontal-scroll-axis"),u=b.getAttribute("data-rellax-zindex")||0,x=b.getAttribute("data-rellax-min"),A=b.getAttribute("data-rellax-max"),C=b.getAttribute("data-rellax-min-x"),D=b.getAttribute("data-rellax-max-x"),E=b.getAttribute("data-rellax-min-y"),L=b.getAttribute("data-rellax-max-y"),r=!0;t||g||h||k?c={xs:t,sm:g,md:h,lg:k}:r=!1;t=a.options.wrapper?a.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;a.options.relativeToWrapper&&
2173(t=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-a.options.wrapper.offsetTop);var z=a.options.vertical?e||a.options.center?t:0:0,I=a.options.horizontal?e||a.options.center?a.options.wrapper?a.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0:0;t=z+b.getBoundingClientRect().top;g=b.clientHeight||b.offsetHeight||b.scrollHeight;h=I+b.getBoundingClientRect().left;k=b.clientWidth||b.offsetWidth||b.scrollWidth;
2174z=e?e:(z-t+v)/(g+v);e=e?e:(I-h+n)/(k+n);a.options.center&&(z=e=.5);c=r&&null!==c[F]?Number(c[F]):y?y:a.options.speed;l=l?l:a.options.verticalSpeed;m=m?m:a.options.horizontalSpeed;p=p?p:a.options.verticalScrollAxis;q=q?q:a.options.horizontalScrollAxis;y=J(e,z,c,l,m);b=b.style.cssText;r="";if(e=/transform\\s*:/i.exec(b))r=b.slice(e.index),r=(e=r.indexOf(";"))?" "+r.slice(11,e).replace(/\\s/g,""):" "+r.slice(11).replace(/\\s/g,"");d.push({baseX:y.x,baseY:y.y,top:t,left:h,height:g,width:k,speed:c,verticalSpeed:l,
2175horizontalSpeed:m,verticalScrollAxis:p,horizontalScrollAxis:q,style:b,transform:r,zindex:u,min:x,max:A,minX:C,maxX:D,minY:E,maxY:L})}K();w&&(window.addEventListener("resize",B),w=!1,G())},H=function(){var d=l,c=m;l=a.options.wrapper?a.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;m=a.options.wrapper?a.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset;
2176a.options.relativeToWrapper&&(l=((document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset)-a.options.wrapper.offsetTop);return d!=l&&a.options.vertical||c!=m&&a.options.horizontal?!0:!1},J=function(d,c,b,e,g){var f={};d=100*(g?g:b)*(1-d);c=100*(e?e:b)*(1-c);f.x=a.options.round?Math.round(d):Math.round(100*d)/100;f.y=a.options.round?Math.round(c):Math.round(100*c)/100;return f},h=function(){window.removeEventListener("resize",h);window.removeEventListener("orientationchange",
2177h);(a.options.wrapper?a.options.wrapper:window).removeEventListener("scroll",h);(a.options.wrapper?a.options.wrapper:document).removeEventListener("touchmove",h);p=A(G)},G=function(){H()&&!1===w?(K(),p=A(G)):(p=null,window.addEventListener("resize",h),window.addEventListener("orientationchange",h),(a.options.wrapper?a.options.wrapper:window).addEventListener("scroll",h,x?{passive:!0}:!1),(a.options.wrapper?a.options.wrapper:document).addEventListener("touchmove",h,x?{passive:!0}:!1))},K=function(){for(var f,
2178c=0;c<a.elems.length;c++){var b=d[c].verticalScrollAxis.toLowerCase(),e=d[c].horizontalScrollAxis.toLowerCase();f=-1!=b.indexOf("x")?l:0;b=-1!=b.indexOf("y")?l:0;var g=-1!=e.indexOf("x")?m:0;e=-1!=e.indexOf("y")?m:0;f=J((f+g-d[c].left+n)/(d[c].width+n),(b+e-d[c].top+v)/(d[c].height+v),d[c].speed,d[c].verticalSpeed,d[c].horizontalSpeed);e=f.y-d[c].baseY;b=f.x-d[c].baseX;null!==d[c].min&&(a.options.vertical&&!a.options.horizontal&&(e=e<=d[c].min?d[c].min:e),a.options.horizontal&&!a.options.vertical&&
2179(b=b<=d[c].min?d[c].min:b));null!=d[c].minY&&(e=e<=d[c].minY?d[c].minY:e);null!=d[c].minX&&(b=b<=d[c].minX?d[c].minX:b);null!==d[c].max&&(a.options.vertical&&!a.options.horizontal&&(e=e>=d[c].max?d[c].max:e),a.options.horizontal&&!a.options.vertical&&(b=b>=d[c].max?d[c].max:b));null!=d[c].maxY&&(e=e>=d[c].maxY?d[c].maxY:e);null!=d[c].maxX&&(b=b>=d[c].maxX?d[c].maxX:b);a.elems[c].style[E]="translate3d("+(a.options.horizontal?b:"0")+"px,"+(a.options.vertical?e:"
21790")+"px,"+d[c].zindex+"px) "+d[c].transform}a.options.callback(f)};
2180a.destroy=function(){for(var f=0;f<a.elems.length;f++)a.elems[f].style.cssText=d[f].style;w||(window.removeEventListener("resize",B),w=!0);D(p);p=null};B();a.refresh=B;return a}console.warn("Rellax: The elements you're trying to select don't exist.")};return q});
2181`},8628:function(t,n,e){e(5714)(e(2906))},9493:function(t,n,e){e(5714)(e(6563))},8698:function(t,n,e){e(5714)(e(1282))},9118:function(t,n,e){e(5714)(e(5134))},9203:function(t,n,e){e(5714)(e(5423))},4377:function(t,n,e){e(5714)(e(3054))},7557:function(t,n,e){e(5714)(e(6713))},7410:function(t,n,e){e(5714)(e(3530))},4286:function(t){"use strict";t.exports=Popper},5311:function(t){"use strict";t.exports=jQuery}},function(t){var n=function(r){return t(t.s=r)};t.O(0,[577],function(){return n(4080)});var e=t.O()}]);

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