@hippovideo/video-sdk 0.0.0-experimental-d22bdfbd9cd1-20230710 → 0.0.0-experimental-143250fd6532-20230711

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/app/104-bundle-hippo-531xxzhsmog-0b359abe4c6a5ee2f315.js +1 -0
  2. package/app/105-bundle-hippo-531xxzhsmog-f9a48d5a6676f5658571.js +1 -0
  3. package/app/134-bundle-hippo-531xxzhsmog-33e5751ee8eabaf8325d.js +1 -0
  4. package/app/160-bundle-hippo-531xxzhsmog-6a53a0cfc890b1018823.js +1 -0
  5. package/app/199-bundle-hippo-531xxzhsmog-0847c9cdc2dd13978db4.js +2 -0
  6. package/app/199-bundle-hippo-531xxzhsmog-0847c9cdc2dd13978db4.js.LICENSE.txt +222 -0
  7. package/app/200-bundle-hippo-531xxzhsmog-cc4ce14507b481adce4a.js +1 -0
  8. package/app/224-bundle-hippo-531xxzhsmog-c5f0078ca66c66961376.js +1 -0
  9. package/app/227-bundle-hippo-531xxzhsmog-054097cd9811599fbb52.js +2 -0
  10. package/app/227-bundle-hippo-531xxzhsmog-054097cd9811599fbb52.js.LICENSE.txt +26 -0
  11. package/app/242-bundle-hippo-531xxzhsmog-65d7bd902bf92d642fd9.js +1 -0
  12. package/app/{245-bundle-hippo-e40n59i1x7-55dc39d840acd491f20b.js → 245-bundle-hippo-531xxzhsmog-d51f9b953f38044cfbab.js} +1 -1
  13. package/app/248-bundle-hippo-531xxzhsmog-f7f2950aeaeff9dff8a1.js +2 -0
  14. package/app/248-bundle-hippo-531xxzhsmog-f7f2950aeaeff9dff8a1.js.LICENSE.txt +108 -0
  15. package/app/252-bundle-hippo-531xxzhsmog-f16bffc6544697f84316.js +1 -0
  16. package/app/256-bundle-hippo-531xxzhsmog-b77bb3ac388b037011b4.js +1 -0
  17. package/app/27-bundle-hippo-531xxzhsmog-c12d06feeaf69ad6e754.js +1 -0
  18. package/app/292-bundle-hippo-531xxzhsmog-233bb3cc2573ab8fdae6.js +1 -0
  19. package/app/300-bundle-hippo-531xxzhsmog-af37f6f49f987d3b1d4e.js +1 -0
  20. package/app/337-bundle-hippo-531xxzhsmog-af1d31f808b1fadaefb8.js +1 -0
  21. package/app/343-bundle-hippo-531xxzhsmog-74e9cd68bfd58e14b900.js +1 -0
  22. package/app/362-bundle-hippo-531xxzhsmog-a8775ff8dd1026d63c63.js +1 -0
  23. package/app/365-bundle-hippo-531xxzhsmog-ac90d27b0c3d70c85e28.js +1 -0
  24. package/app/40-bundle-hippo-531xxzhsmog-99a14accde069837cb73.js +1 -0
  25. package/app/435-bundle-hippo-531xxzhsmog-a8cb770f9b97ef589b22.js +2 -0
  26. package/app/435-bundle-hippo-531xxzhsmog-a8cb770f9b97ef589b22.js.LICENSE.txt +3 -0
  27. package/app/48-bundle-hippo-531xxzhsmog-e2ff976a0367bb013cad.js +1 -0
  28. package/app/{520-bundle-hippo-e40n59i1x7-1288906c2276b5252408.js → 520-bundle-hippo-531xxzhsmog-d23078f76b266375b506.js} +1 -1
  29. package/app/522-bundle-hippo-531xxzhsmog-2f2efd9e442fa7de3cfd.js +1 -0
  30. package/app/524-bundle-hippo-531xxzhsmog-f1422ef6fabf36708c4b.js +1 -0
  31. package/app/556-bundle-hippo-531xxzhsmog-b5275c01aaeaed24c81b.js +1 -0
  32. package/app/578-bundle-hippo-531xxzhsmog-b314d782985def0b4d47.js +1 -0
  33. package/app/628-bundle-hippo-531xxzhsmog-50191e0883760bd5feab.js +1 -0
  34. package/app/685-bundle-hippo-531xxzhsmog-ccc5045d7aad29577351.js +1 -0
  35. package/app/69-bundle-hippo-531xxzhsmog-663b3d265f426b438f2d.js +2 -0
  36. package/app/69-bundle-hippo-531xxzhsmog-663b3d265f426b438f2d.js.LICENSE.txt +9 -0
  37. package/app/69.hv_recorder.css +1 -0
  38. package/app/693-bundle-hippo-531xxzhsmog-06900303db93b087ffa4.js +1 -0
  39. package/app/708-bundle-hippo-531xxzhsmog-0768898f682eb8a1df2d.js +1 -0
  40. package/app/716-bundle-hippo-531xxzhsmog-c4338e6a3a2533f7e973.js +1 -0
  41. package/app/762-bundle-hippo-531xxzhsmog-9c086bbc3477dfdeab74.js +1 -0
  42. package/app/768-bundle-hippo-531xxzhsmog-3dd6361f635c53d7850c.js +1 -0
  43. package/app/782-bundle-hippo-531xxzhsmog-7f69a88c298e22961d5c.js +1 -0
  44. package/app/798-bundle-hippo-531xxzhsmog-7431372ff7f1f55f1fa2.js +1 -0
  45. package/app/834-bundle-hippo-531xxzhsmog-ad8da7cd03ab1d44bacd.js +1 -0
  46. package/app/850-bundle-hippo-531xxzhsmog-a67a83cf8eda07ca65aa.js +1 -0
  47. package/app/889-bundle-hippo-531xxzhsmog-e090fc90803ec69556bd.js +1 -0
  48. package/app/903-bundle-hippo-531xxzhsmog-ad831c454afa8f565475.js +1 -0
  49. package/app/923-bundle-hippo-531xxzhsmog-98c6e38704b3ea4eacec.js +1 -0
  50. package/app/927-bundle-hippo-531xxzhsmog-34f0c401aea5918c9e55.js +1 -0
  51. package/app/946-bundle-hippo-531xxzhsmog-2ada4f0f786cbebe525f.js +1 -0
  52. package/app/949-bundle-hippo-531xxzhsmog-0dfd4113c6af68379afb.js +1 -0
  53. package/app/994-bundle-hippo-531xxzhsmog-9f08763feb63e3dea419.js +1 -0
  54. package/app/hv_recorder.js +1 -1
  55. package/app/hv_recorder.js.LICENSE.txt +0 -146
  56. package/app/webpack-common-manifest.json +50 -4
  57. package/package.json +1 -1
  58. /package/app/{188-bundle-hippo-e40n59i1x7-6e9300c4f156ca5b8ce8.js → 188-bundle-hippo-531xxzhsmog-6e9300c4f156ca5b8ce8.js} +0 -0
  59. /package/app/{245-bundle-hippo-e40n59i1x7-55dc39d840acd491f20b.js.LICENSE.txt → 245-bundle-hippo-531xxzhsmog-d51f9b953f38044cfbab.js.LICENSE.txt} +0 -0
  60. /package/app/{520-bundle-hippo-e40n59i1x7-1288906c2276b5252408.js.LICENSE.txt → 520-bundle-hippo-531xxzhsmog-d23078f76b266375b506.js.LICENSE.txt} +0 -0
  61. /package/app/{881-bundle-hippo-e40n59i1x7-1e41c84326fac8446b66.js → 881-bundle-hippo-531xxzhsmog-1e41c84326fac8446b66.js} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 248-bundle-hippo-531xxzhsmog-f7f2950aeaeff9dff8a1.js.LICENSE.txt */
2
+ (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[248],{28038:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(67294),i=n(73935),o=n(8317),s=n(45697),a=n.n(s),l=n(61233).ZP.div.withConfig({displayName:"styles__StyledToaster",componentId:"RC__sc-19wudur-0"})(["padding:0;.hv-banneralert{position:fixed;top:10px;left:50%;transform:translate(-50%,-100%);z-index:1000000;max-width:calc(100vw - 20px);padding:1.1875rem 1.875rem 1.25rem;color:#272727;text-align:center;white-space:nowrap;background-color:#e5f5fd;border-radius:0 0 0.3125rem 0.3125rem;opacity:1;pointer-events:none;display:flex;align-items:center;animation:fadein 0.5s;@keyframes fadein{from{top:0;opacity:0;}to{top:10px;opacity:1;}}img,svg{width:1.125rem;margin-right:0.625rem;vertical-align:top;margin-top:0.125rem;}&.hv-banneralert{&-show{transform:translate(-50%,0);opacity:1;pointer-events:all;}&-error{color:#ffffff;background-color:#fc3b52;}&-success{color:#ffffff;background-color:#00bc87;}&-info{color:#272727;background-color:#f5b93f;}}}"]);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=function(e){return r.createElement("svg",e,r.createElement("path",{fill:"#fff",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 464c-118.7 0-216-96.1-216-216 0-118.7 96.1-216 216-216 118.7 0 216 96.1 216 216 0 118.7-96.1 216-216 216zm94.8-285.3L281.5 256l69.3 69.3c4.7 4.7 4.7 12.3 0 17l-8.5 8.5c-4.7 4.7-12.3 4.7-17 0L256 281.5l-69.3 69.3c-4.7 4.7-12.3 4.7-17 0l-8.5-8.5c-4.7-4.7-4.7-12.3 0-17l69.3-69.3-69.3-69.3c-4.7-4.7-4.7-12.3 0-17l8.5-8.5c4.7-4.7 12.3-4.7 17 0l69.3 69.3 69.3-69.3c4.7-4.7 12.3-4.7 17 0l8.5 8.5c4.6 4.7 4.6 12.3 0 17z"}))};f.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};var d=function(e){return r.createElement("svg",e,r.createElement("path",{fill:"#fff",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 464c-118.664 0-216-96.055-216-216 0-118.663 96.055-216 216-216 118.664 0 216 96.055 216 216 0 118.663-96.055 216-216 216zm141.63-274.961L217.15 376.071c-4.705 4.667-12.303 4.637-16.97-.068l-85.878-86.572c-4.667-4.705-4.637-12.303.068-16.97l8.52-8.451c4.705-4.667 12.303-4.637 16.97.068l68.976 69.533 163.441-162.13c4.705-4.667 12.303-4.637 16.97.068l8.451 8.52c4.668 4.705 4.637 12.303-.068 16.97z"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};var g=function(e){return r.createElement("svg",e,r.createElement("defs",null,r.createElement("style",null,".cls-1","{","fill:#272727","}")),r.createElement("title",null,"icon-info"),r.createElement("g",{id:"Layer_2","'data-name'":"Layer 2"},r.createElement("path",{className:"cls-1",d:"M10 20a10 10 0 1 1 10-10 10 10 0 0 1-10 10zm0-18.77A8.77 8.77 0 1 0 18.77 10 8.78 8.78 0 0 0 10 1.23zM10.16 7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm-.27 8.14a.62.62 0 0 1-.62-.62V9.33a.62.62 0 1 1 1.23 0v5.23a.61.61 0 0 1-.62.62z",id:"Layer_1-2","'data-name'":"Layer 1"})))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};var m={none:{class:"hv-banneralert hv-banneralert-success"},success:{icon:d,class:"hv-banneralert hv-banneralert-success"},warning:{icon:g,class:"hv-banneralert hv-banneralert-info"},danger:{icon:f,class:"hv-banneralert hv-banneralert-error"}},v=(0,r.memo)((function(e){var t,n,i=e.bindNotify,o=e.bindRemove,s=(t=(0,r.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=s[0],c=s[1],h=(0,r.useRef)(null),f=(0,r.useMemo)((function(){var e=m[null==a?void 0:a.intent]?m[a.intent].class:"hv-banneralert hv-banneralert-success hv-banneralert-show";return(null==a?void 0:a.className)||"".concat(e," hv-banneralert-show ")}),[a]),d=(0,r.useMemo)((function(){var e=m[null==a?void 0:a.intent]?m[a.intent].icon:null;return(null==a?void 0:a.Icon)||e}),[a]),g=function(){h.current&&(clearTimeout(h.current),h.current=null)},v=(0,r.useCallback)((function(){g(),c(null)}),[]),y=(0,r.useCallback)((function(e){g(),h.current=setTimeout((function(){v()}),e||3e3)}),[v]),b=(0,r.useCallback)((function(e,t){c(u(u({},t),{},{title:e})),y(null==t?void 0:t.duration)}),[y]),x=function(){c(null)};return(0,r.useEffect)((function(){i(b),o(x)}),[i,o,b]),r.createElement(l,null,a&&r.createElement("div",{className:f},d&&r.createElement(d,null),r.createElement("div",null,(null==a?void 0:a.title)||"")))}));v.propTypes={bindNotify:a().func.isRequired,bindRemove:a().func.isRequired};var y=v;function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,"bindNotify",(function(e){t.notifyHandler=e})),w(this,"bindRemove",(function(e){t.removeHandler=e})),w(this,"notify",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.notifyHandler(e,x(x({},n),{},{intent:"none"}))})),w(this,"success",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.notifyHandler(e,x(x({},n),{},{intent:"success"}))})),w(this,"warning",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.notifyHandler(e,x(x({},n),{},{intent:"warning"}))})),w(this,"danger",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.notifyHandler(e,x(x({},n),{},{intent:"danger"}))})),w(this,"remove",(function(){return t.removeHandler()}));var n=document.createElement("div");n.setAttribute("hippo-toaster-container",""),document.body.appendChild(n),i.render(r.createElement(o.Z,null,r.createElement(y,{bindNotify:this.bindNotify,bindRemove:this.bindRemove})),n)},_=S},52378:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(67294),i=n(61233),o=i.ZP.div.withConfig({displayName:"styles__StyledTagWrapper",componentId:"RC__sc-pdf5dr-0"})(["display:flex;flex-direction:column;"]),s=i.ZP.div.attrs((function(e){return{className:e.canShowDropdown?"dropDownOpen":"dropDownClose"}})).withConfig({displayName:"styles__StyledTagComponent",componentId:"RC__sc-pdf5dr-1"})(["cursor:pointer;p{margin:0px;}position:relative;background:#ffffff;border:1px solid #dddfe4;border-radius:8px;max-width:293px;.tag-title-wrapper{font-size:12px !important;display:flex;align-items:center;gap:8px;padding:4px;width:80%;}.dropBoxOpen{display:flex;align-items:center;justify-content:center;img{transform:",";width:10px;height:10px;}}.selected-tags{display:flex;align-items:center;padding-left:12px;padding-right:12px;.tag-title{font-weight:600;font-size:12px;color:#40444f;}.selected-tag-name{padding:4px 8px;background:#f0eefc;border-radius:8px;font-weight:600;font-size:12px;color:#40444f;height:24px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}.onlyonetag{display:flex;align-items:center;justify-content:center;}.selected-count{width:30px;height:24px;background:#f0eefc;border-radius:8px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:black;}}.title-wrapper{display:flex;align-items:center;justify-content:center;padding:0.5rem 1rem 0.5rem 1rem;gap:8px;.bytag{font-weight:600;font-size:0.75rem;line-height:1rem;letter-spacing:-0.02em;color:#40444f;}}"],(function(e){return e.canShowDropdown?"rotate(180deg)":"rotate(0deg)"})),a=i.ZP.div.attrs({className:"newTagDropdown"}).withConfig({displayName:"styles__StyledDropdown",componentId:"RC__sc-pdf5dr-2"})(["p,input{margin:0px;}input::placeholder{color:#616161;font-family:Open Sans;font-style:normal;font-weight:normal;}input[type=text]:focus{outline:none;}position:absolute;top:4px;left:0px;height:auto;padding:16px;display:",";flex-direction:column;gap:16px;width:293px;background:#ffffff;border:1px solid #dddfe4;box-shadow:0px 8px 16px rgb(198 202 210 / 60%);border-radius:16px;cursor:default;.search-tag:has(input:focus){border:1px solid #eb602d;box-shadow:0px 0px 0px 4px rgba(235,96,45,0.1);}.search-tag{display:flex;align-items:center;justify-content:space-between;background:#ffffff;border:0.0625rem solid #DDDFE4;border-radius:8px;padding:2px;height:28px;.clearInput{cursor:pointer}.hide{display:none;}input{border:none;height:100%;}img{cursor:pointer;}}.tags{display:flex;flex-direction:column;height:200px;padding-right:16px;overflow-y:auto;::-webkit-scrollbar{width:4px;height:288px;}::-webkit-scrollbar-track{width:4px;height:288px;background:#f4f4f6;border-radius:4px;}::-webkit-scrollbar-thumb{width:4px;height:37px;background:#dddfe4;border-radius:4px;}.tag:hover{background-color:#f4f4f6;cursor:pointer;}.tag{display:flex;align-items:center;justify-content:start;gap:8px;border-radius:8px;padding:3px 8px;.tag-input{margin:0px;width:16px;height:16px;border-radius:4px;border:1px solid #82899b;appearance:none;background-color:#ffffff;cursor:pointer;}.tag-input:checked{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='24' height='24' rx='8' fill='%23EB602D'/%3e%3cpath d='M17 8L11 16L8 13.8182' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e \");background-size:100%;background-repeat:no-repeat;background-color:#eb602d;border:1px solid #FF936B;}.tag-title{cursor:pointer;background-color:#f0eefc;border-radius:8px;padding:2px 8px;margin:0px;font-weight:600;font-size:14px;line-height:1.6;max-width:200px;word-wrap:break-word;}}.emptystate{display:flex;align-items:center;justify-content:center;flex-direction:column;margin:0px 4px 0 8px;text-align:center;svg{width:64%;height:64%;}.notfoundtext{color:#728595;}}}.header{display:flex;align-items:center;justify-content:space-between;margin:0px 4px 0 8px;p{font-weight:700;font-size:14px;color:#40444f;}u{color:#6250e0;font-weight:600;cursor:pointer;font-size:12px;}}"],(function(e){return e.canShowDropdown?"flex":"none"})),l=n(45697),c=n.n(l);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e){return r.createElement("svg",e,r.createElement("circle",{cx:"27.101",cy:"33.342",r:"5.101",fill:"#DDDFE4"}),r.createElement("circle",{cx:"39.852",cy:"18.55",r:"2.55",fill:"#DDDFE4"}),r.createElement("circle",{cx:"155.248",cy:"35.973",r:"1.53",fill:"#DDDFE4"}),r.createElement("circle",{cx:"161.369",cy:"41.074",r:"2.55",fill:"#DDDFE4"}),r.createElement("circle",{cx:"87.409",cy:"94.631",r:"71.409",fill:"#DDDFE4"}),r.createElement("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"16",y:"23",width:"143",height:"144"},r.createElement("circle",{cx:"87.409",cy:"94.631",r:"71.409",fill:"#F4F4F6"})),r.createElement("g",{mask:"url(#a)"},r.createElement("path",{d:"M126.327 138.311c2.261-7.005 10.885-21.16 27.299-21.747-2.654 6.638-11.83 20.281-27.299 21.747z",fill:"#B0B4BF"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M139.689 128.004c-3.634 2.862-7.875 6.512-9.983 8.474l-.076-1.138c2.125-1.978 5.768-5.255 9.428-8.138 3.644-2.87 7.674-5.094 10.419-6.217-2.597 1.062-6.138 4.144-9.788 7.019z",fill:"#A2A7B4"}),r.createElement("path",{d:"M126.342 138.946c-.351-7.352 2.735-23.638 17.89-29.967-.146 7.147-3.928 23.147-17.89 29.967z",fill:"#C6CAD2"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M133.125 126.311c-2.245 4.045-4.744 9.051-5.93 11.676l-.51-1.02c1.195-2.646 3.287-7.077 5.548-11.151 2.251-4.056 5.107-7.665 7.204-9.762-1.983 1.983-4.058 6.195-6.312 10.257z",fill:"#EAECF1"})),r.createElement("circle",{cx:"162.9",cy:"130.336",r:"5.101",fill:"#DDDFE4"}),r.createElement("circle",{cx:"155.248",cy:"141.047",r:"2.55",fill:"#DDDFE4"}),r.createElement("rect",{x:"44.565",y:"75.249",width:"87.731",height:"63.248",rx:"4",fill:"#C6CAD2"}),r.createElement("path",{d:"M44.565 118.095h87.731v16.402a4 4 0 0 1-4 4H48.565a4 4 0 0 1-4-4v-16.402z",fill:"#F4F4F6"}),r.createElement("path",{d:"M48.642 138.509c-1.138-3.528-6.004-10.64-14.27-10.935 1.337 3.343 6.48 10.197 14.27 10.935z",fill:"#B0B4BF"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.392 133.335c1.83 1.442 6.189 4.186 7.25 5.174-1.07-.996-5.09-4.126-6.933-5.577-1.835-1.446-3.864-2.566-5.247-3.132 1.308.535 3.091 2.088 4.93 3.535z",fill:"#A2A7B4"}),r.createElement("path",{d:"M48.642 138.509c.177-3.702-1.536-11.567-9.168-14.755.074 3.599 2.137 11.321 9.168 14.755z",fill:"#C6CAD2"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.696 132.483c1.13 2.037 3.349 4.704 3.946 6.026l-.045-.094c-.601-1.332-2.313-4.13-3.452-6.182-1.133-2.042-2.572-3.86-3.628-4.916 1 .999 2.044 3.12 3.18 5.166z",fill:"#EAECF1"}),r.createElement("rect",{x:"52.725",y:"122.175",width:"18.362",height:"4.081",rx:"2.04",fill:"#C6CAD2"}),r.createElement("rect",{x:"52.725",y:"130.336",width:"38.765",height:"4.081",rx:"2.04",fill:"#B0B4BF"}),r.createElement("circle",{cx:"78.228",cy:"91.57",r:"3.06",fill:"#A2A7B4"}),r.createElement("circle",{cx:"97.611",cy:"91.57",r:"3.06",fill:"#A2A7B4"}),r.createElement("path",{d:"M84.227 106.332l8.407.061",stroke:"#A2A7B4",strokeWidth:"5",strokeLinecap:"round"}),r.createElement("rect",{x:"103.117",y:"119.246",width:"4.081",height:"47.946",rx:"2.04",transform:"rotate(-33.024 103.117 119.246)",fill:"url(#b)"}),r.createElement("rect",{x:"103.117",y:"119.246",width:"4.081",height:"47.946",rx:"2.04",transform:"rotate(-33.024 103.117 119.246)",fill:"url(#c)",fillOpacity:".4"}),r.createElement("circle",{cx:"87.999",cy:"93.18",r:"28.634",transform:"rotate(-33.024 87.999 93.18)",stroke:"url(#d)",strokeWidth:"7"}),r.createElement("path",{d:"M56.074 88.989c-.24-8.605 8.453-17.256 12.83-20.506 9.707-7.527 23.304-9.162 35.389-1.71 12.874 7.937 17.79 27.37 11.568 39.322-.927 2.631-3.866 8.84-8.211 12.638",stroke:"#E3DFFF",filter:"url(#e)"}),r.createElement("path",{d:"M76.302 64.89c3.891-2.124 17.547-5.2 28.546 2.737",stroke:"url(#g)",filter:"url(#f)"}),r.createElement("path",{d:"M98.63 116.08c-8.405 4.854-21.58 6.117-32.291-9.43",stroke:"url(#i)",filter:"url(#h)"}),r.createElement("path",{d:"M134.335 73.208l5.101-4.08M136.376 79.329h6.121M128.215 71.168v-6.12",stroke:"#A2A7B4",strokeWidth:"2",strokeLinecap:"round"}),r.createElement("defs",null,r.createElement("filter",{id:"e",x:"52.569",y:"58.441",width:"69.473",height:"63.668",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"1.5",result:"effect1_foregroundBlur_443_10571"})),r.createElement("filter",{id:"f",x:"74.562",y:"60.485",width:"32.079",height:"9.048",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:".75",result:"effect1_foregroundBlur_443_10571"})),r.createElement("filter",{id:"h",x:"64.427",y:"104.867",width:"35.952",height:"16.471",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:".75",result:"effect1_foregroundBlur_443_10571"})),r.createElement("linearGradient",{id:"b",x1:"103.117",y1:"130.468",x2:"107.197",y2:"130.468",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#53479E"}),r.createElement("stop",{offset:"1",stopColor:"#7A6CCF"})),r.createElement("linearGradient",{id:"c",x1:"105.157",y1:"121.287",x2:"105.157",y2:"126.387",gradientUnits:"userSpaceOnUse"},r.createElement("stop",null),r.createElement("stop",{offset:"1",stopOpacity:"0"})),r.createElement("radialGradient",{id:"d",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(89.076 -2.583 92.082) scale(31.6283)"},r.createElement("stop",{offset:".796",stopColor:"#463A96"}),r.createElement("stop",{offset:"1",stopColor:"#8370FC"})),r.createElement("radialGradient",{id:"g",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(86.144 8.945 82.118) scale(12.5589 15.7884)"},r.createElement("stop",{offset:".138",stopColor:"#fff"}),r.createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"}),r.createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"})),r.createElement("radialGradient",{id:"i",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(2.43582 -16.35956 20.56628 3.06217 83.748 111.572)"},r.createElement("stop",{offset:".138",stopColor:"#D8D2FF"}),r.createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"}),r.createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"}))))};p.defaultProps={width:"184",height:"192",viewBox:"0 0 184 192",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var f=function(e){return r.createElement("svg",e,r.createElement("path",{d:"M1 1l4 4 4-4",stroke:"#24272D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))};f.defaultProps={width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var d=function(e){return r.createElement("svg",e,r.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"#B0B4BF"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 8.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414z",fill:"#EEF1F4"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.707 8.293a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414l6-6a1 1 0 0 1 1.414 0z",fill:"#EEF1F4"}))};d.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var g=function(e){var t=e.title,n=e.actionHandler,i=e.placeholder,l=e.availableOptions,c=(void 0===l?{}:l).objectArr,h=u((0,r.useState)(!1),2),g=h[0],m=h[1],v=u((0,r.useState)(c),2),y=v[0],b=v[1],x=u((0,r.useState)(),2),w=x[0],S=x[1],_=u((0,r.useState)(!1),2),C=_[0],T=_[1];(0,r.useEffect)((function(){b(c)}),[c]),(0,r.useEffect)((function(){w&&n(w)}),[w]);var k=(0,r.useCallback)((function(e){e.target.closest(".newTagDropdown")||(m(!1),e.stopPropagation())}),[]);(0,r.useEffect)((function(){return g&&document.body.addEventListener("click",k,!1),function(){document.body.removeEventListener("click",k,!1)}}),[k,g]);var E=function(e,t){var n=w?w.map((function(e){return"tag-".concat(e.id)})):[];e.target.checked?n.push(e.target.id):n=n.filter((function(t){return t!==e.target.id})),S(c.filter((function(e){return n.includes("tag-".concat(e.id))})))};return r.createElement(o,null,r.createElement(s,{canShowDropdown:g,onClick:function(){m(!g)}},w&&w.length>0?r.createElement("div",{className:"selected-tags handleBodyClick"},w.length>=2?r.createElement(r.Fragment,null,r.createElement("div",{className:"tag-title"},t,": "),r.createElement("div",{className:"tag-title-wrapper"},r.createElement("div",{className:"selected-tag-name"},w[0].name),r.createElement("div",{className:"selected-tag-name"},w[1].name),w.length>2&&r.createElement("div",{className:"selected-count"},"+",w.length-2)),r.createElement("div",{className:"dropBoxOpen"},r.createElement(f,null))):r.createElement(r.Fragment,null,r.createElement("div",{className:"tag-title"},t,": "),r.createElement("div",{className:"tag-title-wrapper"},r.createElement("div",{className:"selected-tag-name onlyonetag"},w[0].name," ")),r.createElement("div",{className:"dropBoxOpen"},r.createElement(f,null)))):r.createElement("div",{className:"title-wrapper handleBodyClick"},r.createElement("div",{className:"bytag"},t),r.createElement("div",{className:"dropBoxOpen"},r.createElement(f,null)))),r.createElement("div",{style:{position:"relative"}},r.createElement(a,{canShowDropdown:g},r.createElement("div",{className:"search-tag"},r.createElement("input",{type:"text",id:"tag-search-input",placeholder:i,onChange:function(e){var t=e.target.value;T(t&&t.length>0);var n=(c||[]).filter((function(e){return e.name.toLowerCase().includes(t.toLowerCase())}));b(n)}}),r.createElement("div",{onClick:function(){document.getElementById("tag-search-input").value="",b(c),T(!1)},className:C?"clearInput":"hide"},r.createElement(d,null))),r.createElement("div",{className:"header"},r.createElement("p",null,t),w&&w.length>0&&r.createElement("u",{onClick:function(){b(c),S([])}},"Clear All")),r.createElement("div",{className:"tags"},y&&y.length>0?y.map((function(e){return r.createElement("label",{htmlFor:"tag-".concat(e.id),className:"tag"},r.createElement("input",{id:"tag-".concat(e.id),className:"tag-input",onChange:E,checked:(t=e.id,!!w&&w.some((function(e){return e.id===t}))),type:"checkbox"}),r.createElement("p",{className:"tag-title"},e.name));var t})):r.createElement("div",{className:"emptystate"},r.createElement(p,null),r.createElement("div",{className:"notfoundtext"},"We couldn't find any results that match your search criteria."))))))};g.propTypes={title:c().string.isRequired,placeholder:c().string.isRequired,actionHandler:c().func,availableOptions:c().any.isRequired};var m=g},8317:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r,i=n(67294),o=n(45697),s=n.n(o),a=n(73935);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,i,o,s=(i=h,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(i);if(o){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function h(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),e=s.call(this),r||((r=document.createElement("div")).setAttribute("hippovideo-portal-container",""),document.body.appendChild(r)),e.el=document.createElement("div"),r.appendChild(e.el),e}return t=h,(n=[{key:"componentWillUnmount",value:function(){r.removeChild(this.el)}},{key:"render",value:function(){return a.createPortal(this.props.children,this.el)}}])&&l(t.prototype,n),h}(i.Component);h.propTypes={children:s().node.isRequired}},32932:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(67294),i=n(45697),o=n.n(i),s=n(53989),a=n(61233),l=a.ZP.div.withConfig({displayName:"styles__StyledTagInput",componentId:"RC__sc-1mznmfg-0"})(["background:",";border:",";border-radius:4px;display:flex;align-items:center;gap:12px;padding:7px;flex-wrap:wrap;max-height:5.5rem;overflow:",";.withoutTags{color:#6e8190;font-size:1em;font-family:var(--asset-font-opensans-name);margin:0;}.hv-tag-input__add{padding:6px 8px;border-radius:5px;background:#e4eaef;cursor:pointer;}.hv-tag-input__entrybox{display:",";border:none;outline:none;flex-grow:1;background:#ffffff;font-size:1em;font-family:var(--asset-font-opensans-name);}"],(function(e){return e.isFocused?"#ffffff":"none"}),(function(e){var t=e.isFocused,n=e.bordered;return t||n?"1px solid #d4d8dc":"none"}),(function(e){return e.isFocused?"auto":"unset"}),(function(e){return e.isFocused?"inline":"none"})),c=a.ZP.div.withConfig({displayName:"styles__StyledDropdown",componentId:"RC__sc-1mznmfg-1"})(["display:",";padding:14px;box-shadow:var(--border-boxshadow-small);border-radius:var(--border-radius-small);background:var(--color-background-base);font-size:1em;font-family:var(--asset-font-opensans-name);top:100%;width:100%;flex-direction:column;gap:12px;.hv-tag-input-dropdown__tags{display:flex;flex-wrap:wrap;gap:12px;}.hv-tag-input-dropdown__create{display:flex;flex-wrap:wrap;gap:12px;vertical-align:middle;&__button{margin:auto 0;cursor:pointer;}&__icon{margin-right:3px;}}"],(function(e){return e.isFocused?"flex":"none"})),u=a.ZP.div.attrs((function(e){var t=e.testId;return{"data-testid":t&&"".concat(t,"-wrapper")}})).withConfig({displayName:"styles__Wrapper",componentId:"RC__sc-1mznmfg-2"})(["width:100%;display:flex;flex-direction:column;position:relative;.overlay{","}"],(function(e){return e.isFocused?(0,a.iv)(["position:absolute;z-index:99;width:100%;display:flex;flex-direction:column;"]):""})),h=a.ZP.div.attrs((function(e){var t=e.name;return{"data-val":e.fullValue||t}})).withConfig({displayName:"styles__StyledTag",componentId:"RC__sc-1mznmfg-3"})(["width:fit-content;padding:8px 12px;background:",";border:",";border-radius:14px;font-size:0.923em;font-family:var(--asset-font-opensans-name);cursor:",";display:flex;flex-direction:row;line-height:1;.hv-tag__remove{margin-left:17px;cursor:pointer;}"],(function(e){return e.isSelected?"#cfe8fc":"#ffffff"}),(function(e){return e.isSelected?"none":"1px solid #B3C1CC"}),(function(e){return e.noCross?"pointer":"auto"})),p=function(e){return r.createElement("svg",e,r.createElement("path",{d:"M4.33 3.499l2.5-2.5a.586.586 0 1 0-.828-.828l-2.5 2.5-2.5-2.5a.586.586 0 1 0-.828.828l2.5 2.5-2.5 2.5a.586.586 0 0 0 .828.828l2.5-2.5 2.5 2.5a.586.586 0 0 0 .828-.828z",fill:"#30546f"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"7",height:"6.998",viewBox:"0 0 7 6.998"};var f=function(e){var t=e.name,n=e.fullValue,i=e.handleRemove,o=e.onClick,s=e.isSelected,a=e.noCross;return r.createElement(h,{className:"hv-tag",isSelected:s,onClick:o,noCross:a,name:t,fullValue:n},t,!a&&r.createElement("span",{className:"hv-tag__remove",onClick:function(e){e.stopPropagation(),i(e)},onFocus:function(e){e.stopPropagation()},onKeyPress:function(e){"Enter"===e.key&&i(e)},role:"button",tabIndex:-1},r.createElement(p,null)))};f.propTypes={name:o().string.isRequired,fullValue:o().string,handleRemove:o().func,onClick:o().func,isSelected:o().bool,noCross:o().bool},f.defaultProps={fullValue:null,onClick:function(){},handleRemove:function(){},isSelected:!1,noCross:!1};var d=f;function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S=function(e){return r.createElement("svg",e,r.createElement("g",{fill:"none",stroke:"#43525f",strokeLinecap:"round",strokeWidth:"1.5"},r.createElement("path",{d:"M5.606.75v9.713M.75 5.606h9.713"})))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"11.213",height:"11.213",viewBox:"0 0 11.213 11.213"};var _=function(e,t,n){if(n)return t.find((function(t){return String(t).toLowerCase()===String(e).toLowerCase()}));var r=t.objectArr,i=t.valueKey;return r.find((function(t){return String(t[i]).toLowerCase()===String(e).toLowerCase()}))},C=function(e){var t,n,i,o=e.placeholder,a=e.dropdownPlaceholder,h=e.selectedOptions,p=e.availableOptions,f=e.onAdd,g=e.onRemove,x=e.isStrict,w=e.maxChars,C=e.induvidualChipLimit,T=e.testId,k=e.title,E=e.bordered,O=b((0,r.useState)(""),2),P=O[0],A=O[1],R=b((0,r.useState)(!1),2),I=R[0],U=R[1],D=(0,r.useRef)(null),L=(0,r.useMemo)((function(){return Array.isArray(h)}),[h]),M=(0,r.useMemo)((function(){return L?y(new Set([].concat(y(p),y(h)))):{objectArr:y(new Set([].concat(y(p.objectArr),y(h.objectArr)))),idKey:p.idKey,valueKey:p.valueKey}}),[p,L,h]),N=(0,r.useMemo)((function(){return _(P,M,L)}),[P,M,L]),B=(0,r.useMemo)((function(){return!!N}),[N]),F=(0,r.useMemo)((function(){return!!_(P,h,L)}),[P,L,h]),z=(0,r.useCallback)((function(e){return L?e:e[p.valueKey]}),[p.valueKey,L]),H=(0,r.useCallback)((function(e){return L?e:e[p.idKey]||e[p.valueKey]||e}),[p.idKey,p.valueKey,L]),G=(0,r.useMemo)((function(){if(!Number.isNaN(C)){var e,t=L?[]:m(m({},h),{},{objectArr:[]});return L?t=null==h?void 0:h.map((function(e){return e.length>C?"".concat(null==e?void 0:e.substring(0,C)," ..."):e})):t.objectArr=null==h||null===(e=h.objectArr)||void 0===e?void 0:e.map((function(e){var n;return(null===(n=e[t.valueKey])||void 0===n?void 0:n.length)>C?m(m({},e),{},v({},t.valueKey,"".concat(e[t.valueKey].substring(0,C)," ..."))):e})),t}return h}),[C,L,h]),$=(0,r.useMemo)((function(){if(!Number.isNaN(w)){var e,t=L?[]:m(m({},G),{},{objectArr:[]}),n="";return L?t=null==G?void 0:G.map((function(e,t){var r;return(null===(r=n+e+"123")||void 0===r?void 0:r.length)<=w?(n+=e+"123",{bestFitValue:e,fullValue:h[t]}):null})).filter((function(e){return null!=e})):t.objectArr=null==G||null===(e=G.objectArr)||void 0===e?void 0:e.map((function(e,r){var i;return(null===(i=n+e[t.valueKey]+"123")||void 0===i?void 0:i.length)<=w?(n+=e[t.valueKey]+"123",m(m({},e),{},{bestFitValue:z(e),fullValue:z(h.objectArr[r])})):null})).filter((function(e){return null!=e})),t}return G}),[w,G,L,h,z]),W=(0,r.useMemo)((function(){var e,t;return L?null!=h&&h.length&&null!=$&&$.length?h.filter((function(e){return!$.some((function(t){return t.fullValue===e}))})):[]:null!=h&&null!==(e=h.objectArr)&&void 0!==e&&e.length&&null!=$&&null!==(t=$.objectArr)&&void 0!==t&&t.length?h.objectArr.filter((function(e){return!$.objectArr.some((function(t){return H(t)===H(e)}))})):[]}),[$,H,L,h]),j=(0,r.useMemo)((function(){return null==W?void 0:W.map((function(e){return r.createElement("div",null,L?e:z(e))}))}),[W,z,L]),q=(0,r.useCallback)((function(e,t){e.length>0&&!t?(!F&&B?f(L?N:{isNew:!1,entry:N}):F||B||x||f(L?e:{isNew:!0,entry:e}),A("")):t&&f(L?e:{isNew:!1,entry:e})}),[N,F,B,L,x,f]),Y=(0,r.useCallback)((function(e,t){t.stopPropagation(),g(L?e:v({},p.idKey,e)),I&&D.current.focus()}),[p.idKey,I,L,g]),X=(0,r.useCallback)((function(e){if("Enter"===e.key||"Tab"===e.key)q(P);else if("Delete"===e.key)A("");else if("Backspace"===e.key&&""===P)if(L)Y(h[h.length-1],e);else{var t=h.objectArr,n=h.idKey;Y(t[t.length-1][n],e)}}),[P,q,Y,L,h]),V=function(){D.current.focus(),U(!0)},K=(0,r.useMemo)((function(){return P.length>0&&!B&&!x}),[P.length,B,x]),Z=function(){q(P)},Q=(0,r.useCallback)((function(){return(L?M:M.objectArr).map((function(e){return(L?e.toLowerCase().includes(P.toLowerCase()):z(e).toLowerCase().includes(P.toLowerCase()))?(L?h.includes(e):h.objectArr.find((function(t){return t[h.idKey]===H(e)})))?r.createElement(d,{name:z(e),isSelected:!0,noCross:!0,key:H(e)}):r.createElement(d,{name:z(e),onClick:function(){q(e,!0)},noCross:!0,key:H(e)}):null}))}),[M,P,H,z,q,L,h]);return r.createElement(u,{onClick:V,onFocus:V,onBlur:function(e){e.currentTarget.contains(e.relatedTarget)||(U(!1),A(""),D.current.blur())},tabIndex:0,isFocused:I,testId:T},r.createElement("div",{className:"overlay"},r.createElement(l,{className:"hv-tag-input",isFocused:I,testId:T,bordered:E},0===(null===(t=L?$:$.objectArr)||void 0===t?void 0:t.length)&&r.createElement("p",{className:"withoutTags"},k),!I&&(null===(n=L?$:$.objectArr)||void 0===n?void 0:n.map((function(e){return r.createElement(d,{name:e.bestFitValue,fullValue:e.fullValue,isSelected:!0,noCross:!0,key:H(e.fullValue)})}))),I&&(null===(i=L?h:h.objectArr)||void 0===i?void 0:i.map((function(e){return r.createElement(d,{name:z(e),handleRemove:function(t){Y(H(e),t)},isSelected:!0,key:H(e)})}))),(null==W?void 0:W.length)>0&&!I&&r.createElement(s.Z,{content:j,position:"bottom"},r.createElement(d,{name:"+".concat(W.length),noCross:!0})),!E&&!I&&r.createElement("div",{className:"hv-tag-input__add"},r.createElement(S,null)),r.createElement("input",{ref:D,onFocus:function(e){e.stopPropagation()},type:"text",placeholder:h?"":o,className:"hv-tag-input__entrybox",onChange:function(e){A(e.target.value)},onKeyDown:X,value:P})),r.createElement(c,{isFocused:I},a&&r.createElement("p",{className:"hv-tag-input-dropdown__desc"},a),r.createElement("div",{className:"hv-tag-input-dropdown__tags"},Q()),K&&r.createElement("div",{className:"hv-tag-input-dropdown__create",onClick:Z,onKeyDown:Z,role:"button",tabIndex:0},r.createElement("div",{className:"hv-tag-input-dropdown__create__button"},r.createElement("span",{className:"hv-tag-input-dropdown__create__icon"},r.createElement(S,null)),"Create"),r.createElement(d,{name:P,noCross:!0})))))};C.propTypes={placeholder:o().string,dropdownPlaceholder:o().string,selectedOptions:o().any.isRequired,availableOptions:o().any.isRequired,onAdd:o().func.isRequired,onRemove:o().func.isRequired,isStrict:o().bool,maxChars:o().number,induvidualChipLimit:o().number,testId:o().string,title:o().string,bordered:o().bool},C.defaultProps={placeholder:"",dropdownPlaceholder:"",isStrict:!1,maxChars:1/0,induvidualChipLimit:10,testId:void 0,title:"Click plus to add tags",bordered:!1};var T=C},53989:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),i=n(45697),o=n.n(i),s=n(61233),a=s.ZP.div.withConfig({displayName:"styles__StyledToolTip",componentId:"RC__sc-1ody5af-0"})(["position:relative;.Tooltip-Tip{position:absolute;border-radius:4px;border:solid transparent;padding:6px;color:white;background:black;opacity:0.6;font-size:14px;line-height:1;z-index:100;white-space:nowrap;",";}&:before{content:'';border:solid transparent;height:0;width:0;position:absolute;pointer-events:none;border-width:6px;opacity:0.6;",";}"],(function(e){var t=e.position;return"left"===t?(0,s.iv)(["right:calc(100% + 30px);top:50%;transform:translateY(-50%);"]):"right"===t?(0,s.iv)(["left:calc(100% + 30px);top:50%;transform:translateY(-50%);"]):"bottom"===t?(0,s.iv)(["top:calc(100% + 12px);transform:translateX(-50%);left:50%;"]):(0,s.iv)(["bottom:calc(100% + 12px);transform:translateX(-50%);left:50%;"])}),(function(e){var t=e.position;return e.active?"left"===t?(0,s.iv)(["right:calc(100% + 18px);top:50%;transform:translateY(-50%);border-left-color:black;"]):"right"===t?(0,s.iv)(["left:calc(100% + 18px);top:50%;transform:translateY(-50%);border-right-color:black;"]):"bottom"===t?(0,s.iv)(["margin-left:0px;top:calc(100%);transform:translateX(-50%);left:50%;border-bottom-color:black;"]):(0,s.iv)(["margin-left:0px;border-top-color:black;bottom:calc(100%);transform:translateX(-50%);left:50%;"]):(0,s.iv)(["display:none;"])}));function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function(e){var t,n,i=e.delay,o=e.children,s=e.position,c=e.content,u=(0,r.useRef)(null),h=(t=(0,r.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=h[0],f=h[1],d=function(){clearInterval(u.current),f(!1)};return r.createElement(a,{onMouseEnter:function(){u.current=setTimeout((function(){f(!0)}),i)},onMouseLeave:d,onClick:d,position:s,active:p},o,p&&r.createElement("div",{className:"Tooltip-Tip"},c))};c.propTypes={children:o().node.isRequired,position:o().string,content:o().oneOfType([o().string,o().node]),delay:o().number},c.defaultProps={position:"top",content:"",delay:400};var u=c},14316:function(e,t,n){var r,i;r=[n(19755)],i=function(e){return function(e){var t,n,r;n={ESC:27,TAB:9,ENTER:13,CTRL:17,A:65,P:80,N:78,LEFT:37,UP:38,RIGHT:39,DOWN:40,BACKSPACE:8,SPACE:32},t={beforeSave:function(e){return i.arrayToDefaultHash(e)},matcher:function(e,t,n,r){var i,o,s;return e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n&&(e="(?:^|\\s)"+e),i=decodeURI("%C3%80"),o=decodeURI("%C3%BF"),(s=new RegExp(e+"([A-Za-z"+i+"-"+o+"0-9_"+(r?" ":"")+"'.+-]*)$|"+e+"([^\\x00-\\xff]*)$","gi").exec(t))?s[2]||s[1]:null},filter:function(e,t,n){var r,i,o,s;for(r=[],i=0,s=t.length;i<s;i++)o=t[i],~new String(o[n]).toLowerCase().indexOf(e.toLowerCase())&&r.push(o);return r},remoteFilter:null,sorter:function(e,t,n){var r,i,o,s;if(!e)return t;for(r=[],i=0,s=t.length;i<s;i++)(o=t[i]).atwho_order=new String(o[n]).toLowerCase().indexOf(e.toLowerCase()),o.atwho_order>-1&&r.push(o);return r.sort((function(e,t){return e.atwho_order-t.atwho_order}))},tplEval:function(e,t){var n;n=e;try{return"string"!=typeof e&&(n=e(t)),n.replace(/\$\{([^\}]*)\}/g,(function(e,n,r){return t[n]}))}catch(e){return""}},highlighter:function(e,t){var n;return t?(n=new RegExp(">\\s*([^<]*?)("+t.replace("+","\\+")+")([^<]*)\\s*<","ig"),e.replace(n,(function(e,t,n,r){return"> "+t+"<strong>"+n+"</strong>"+r+" <"}))):e},beforeInsert:function(e,t,n){return e},beforeReposition:function(e){return e},afterMatchFailed:function(e,t){}},r=function(){function t(t){this.currentFlag=null,this.controllers={},this.aliasMaps={},this.$inputor=e(t),this.setupRootElement(),this.listen()}return t.prototype.createContainer=function(t){var n;return null!=(n=this.$el)&&n.remove(),e(t.body).append(this.$el=e("<div class='atwho-container'></div>"))},t.prototype.setupRootElement=function(t,n){var r,i;if(null==n&&(n=!1),t)this.window=t.contentWindow,this.document=t.contentDocument||this.window.document,this.iframe=t;else{this.document=this.$inputor[0].ownerDocument,this.window=this.document.defaultView||this.document.parentWindow;try{this.iframe=this.window.frameElement}catch(i){if(r=i,this.iframe=null,e.fn.atwho.debug)throw new Error("iframe auto-discovery is failed.\nPlease use `setIframe` to set the target iframe manually.\n"+r)}}return this.createContainer((this.iframeAsRoot=n)?this.document:document)},t.prototype.controller=function(e){var t,n,r,i;if(this.aliasMaps[e])n=this.controllers[this.aliasMaps[e]];else for(r in i=this.controllers)if(t=i[r],r===e){n=t;break}return n||this.controllers[this.currentFlag]},t.prototype.setContextFor=function(e){return this.currentFlag=e,this},t.prototype.reg=function(e,t){var n,r;return r=(n=this.controllers)[e]||(n[e]=this.$inputor.is("[contentEditable]")?new a(this,e):new s(this,e)),t.alias&&(this.aliasMaps[t.alias]=e),r.init(t),this},t.prototype.listen=function(){return this.$inputor.on("compositionstart",(e=this,function(t){var n;return null!=(n=e.controller())&&n.view.hide(),e.isComposing=!0,null})).on("compositionend",function(e){return function(t){return e.isComposing=!1,setTimeout((function(t){return e.dispatch(t)})),null}}(this)).on("keyup.atwhoInner",function(e){return function(t){return e.onKeyup(t)}}(this)).on("keydown.atwhoInner",function(e){return function(t){return e.onKeydown(t)}}(this)).on("blur.atwhoInner",function(e){return function(t){var n;if(n=e.controller())return n.expectedQueryCBId=null,n.view.hide(t,n.getOpt("displayTimeout"))}}(this)).on("click.atwhoInner",function(e){return function(t){return e.dispatch(t)}}(this)).on("scroll.atwhoInner",function(e){return function(){var t;return t=e.$inputor.scrollTop(),function(n){var r,i;return r=n.target.scrollTop,t!==r&&null!=(i=e.controller())&&i.view.hide(n),t=r,!0}}}(this)());var e},t.prototype.shutdown=function(){var e,t;for(e in t=this.controllers)t[e].destroy(),delete this.controllers[e];return this.$inputor.off(".atwhoInner"),this.$el.remove()},t.prototype.dispatch=function(e){var t,n,r,i;if(void 0!==e){for(t in i=[],r=this.controllers)n=r[t],i.push(n.lookUp(e));return i}},t.prototype.onKeyup=function(t){var r;switch(t.keyCode){case n.ESC:t.preventDefault(),null!=(r=this.controller())&&r.view.hide();break;case n.DOWN:case n.UP:case n.CTRL:case n.ENTER:e.noop();break;case n.P:case n.N:t.ctrlKey||this.dispatch(t);break;default:this.dispatch(t)}},t.prototype.onKeydown=function(t){var r,i;if((i=null!=(r=this.controller())?r.view:void 0)&&i.visible())switch(t.keyCode){case n.ESC:t.preventDefault(),i.hide(t);break;case n.UP:t.preventDefault(),i.prev();break;case n.DOWN:t.preventDefault(),i.next();break;case n.P:if(!t.ctrlKey)return;t.preventDefault(),i.prev();break;case n.N:if(!t.ctrlKey)return;t.preventDefault(),i.next();break;case n.TAB:case n.ENTER:case n.SPACE:if(!i.visible())return;if(!this.controller().getOpt("spaceSelectsMatch")&&t.keyCode===n.SPACE)return;if(!this.controller().getOpt("tabSelectsMatch")&&t.keyCode===n.TAB)return;i.highlighted()?(t.preventDefault(),i.choose(t)):i.hide(t);break;default:e.noop()}},t}();var i,o=[].slice;i=function(){function n(t,n){this.app=t,this.at=n,this.$inputor=this.app.$inputor,this.id=this.$inputor[0].id||this.uid(),this.expectedQueryCBId=null,this.setting=null,this.query=null,this.pos=0,this.range=null,0===(this.$el=e("#atwho-ground-"+this.id,this.app.$el)).length&&this.app.$el.append(this.$el=e("<div id='atwho-ground-"+this.id+"'></div>")),this.model=new l(this),this.view=new c(this)}return n.prototype.uid=function(){return(Math.random().toString(16)+"000000000").substr(2,8)+(new Date).getTime()},n.prototype.init=function(t){return this.setting=e.extend({},this.setting||e.fn.atwho.default,t),this.view.init(),this.model.reload(this.setting.data)},n.prototype.destroy=function(){return this.trigger("beforeDestroy"),this.model.destroy(),this.view.destroy(),this.$el.remove()},n.prototype.callDefault=function(){var n,r,i,s;s=arguments[0],n=2<=arguments.length?o.call(arguments,1):[];try{return t[s].apply(this,n)}catch(i){return r=i,e.error(r+" Or maybe At.js doesn't have function "+s)}},n.prototype.trigger=function(e,t){var n,r;return null==t&&(t=[]),t.push(this),r=(n=this.getOpt("alias"))?e+"-"+n+".atwho":e+".atwho",this.$inputor.trigger(r,t)},n.prototype.callbacks=function(e){return this.getOpt("callbacks")[e]||t[e]},n.prototype.getOpt=function(e,t){try{return this.setting[e]}catch(e){return null}},n.prototype.insertContentFor=function(t){var n,r;return r=this.getOpt("insertTpl"),n=e.extend({},t.data("item-data"),{"atwho-at":this.at}),this.callbacks("tplEval").call(this,r,n,"onInsert")},n.prototype.renderView=function(e){var t;return t=this.getOpt("searchKey"),e=this.callbacks("sorter").call(this,this.query.text,e.slice(0,1001),t),this.view.render(e.slice(0,this.getOpt("limit")))},n.arrayToDefaultHash=function(t){var n,r,i,o;if(!e.isArray(t))return t;for(o=[],n=0,i=t.length;n<i;n++)r=t[n],e.isPlainObject(r)?o.push(r):o.push({name:r});return o},n.prototype.lookUp=function(e){var t,n;if((!e||"click"!==e.type||this.getOpt("lookUpOnClick"))&&(!this.getOpt("suspendOnComposing")||!this.app.isComposing))return(t=this.catchQuery(e))?(this.app.setContextFor(this.at),(n=this.getOpt("delay"))?this._delayLookUp(t,n):this._lookUp(t),t):(this.expectedQueryCBId=null,t)},n.prototype._delayLookUp=function(e,t){var n,r,i;return n=Date.now?Date.now():(new Date).getTime(),this.previousCallTime||(this.previousCallTime=n),0<(r=t-(n-this.previousCallTime))&&r<t?(this.previousCallTime=n,this._stopDelayedCall(),this.delayedCallTimeout=setTimeout((i=this,function(){return i.previousCallTime=0,i.delayedCallTimeout=null,i._lookUp(e)}),t)):(this._stopDelayedCall(),this.previousCallTime!==n&&(this.previousCallTime=0),this._lookUp(e))},n.prototype._stopDelayedCall=function(){if(this.delayedCallTimeout)return clearTimeout(this.delayedCallTimeout),this.delayedCallTimeout=null},n.prototype._generateQueryCBId=function(){return{}},n.prototype._lookUp=function(t){var n;return n=function(e,t){if(e===this.expectedQueryCBId)return t&&t.length>0?this.renderView(this.constructor.arrayToDefaultHash(t)):this.view.hide()},this.expectedQueryCBId=this._generateQueryCBId(),this.model.query(t.text,e.proxy(n,this,this.expectedQueryCBId))},n}();var s,a,l,c,u,h=function(e,t){for(var n in t)p.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty;s=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return h(n,t),n.prototype.catchQuery=function(){var e,t,n,r,i,o,s;if(t=this.$inputor.val(),e=this.$inputor.caret("pos",{iframe:this.app.iframe}),s=t.slice(0,e),!((r="string"==typeof(i=this.callbacks("matcher").call(this,this.at,s,this.getOpt("startWithSpace"),this.getOpt("acceptSpaceBar"))))&&i.length<this.getOpt("minLen",0)))return r&&i.length<=this.getOpt("maxLen",20)?(n=(o=e-i.length)+i.length,this.pos=o,i={text:i,headPos:o,endPos:n},this.trigger("matched",[this.at,i.text])):(i=null,this.view.hide()),this.query=i},n.prototype.rect=function(){var t,n,r;if(t=this.$inputor.caret("offset",this.pos-1,{iframe:this.app.iframe}))return this.app.iframe&&!this.app.iframeAsRoot&&(n=e(this.app.iframe).offset(),t.left+=n.left,t.top+=n.top),r=this.app.document.selection?0:2,{left:t.left,top:t.top,bottom:t.top+t.height+r}},n.prototype.insert=function(e,t){var n,r,i,o,s;return s=""+(i=(r=(n=this.$inputor).val()).slice(0,Math.max(this.query.headPos-this.at.length,0)))+(e+=o=""===(o=this.getOpt("suffix"))?o:o||" ")+r.slice(this.query.endPos||0),n.val(s),n.caret("pos",i.length+e.length,{iframe:this.app.iframe}),n.is(":focus")||n.focus(),n.change()},n}(i),h=function(e,t){for(var n in t)p.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty,a=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return h(r,t),r.prototype._getRange=function(){var e;if((e=this.app.window.getSelection()).rangeCount>0)return e.getRangeAt(0)},r.prototype._setRange=function(t,n,r){if(null==r&&(r=this._getRange()),r&&n)return n=e(n)[0],"after"===t?(r.setEndAfter(n),r.setStartAfter(n)):(r.setEndBefore(n),r.setStartBefore(n)),r.collapse(!1),this._clearRange(r)},r.prototype._clearRange=function(e){var t;if(null==e&&(e=this._getRange()),t=this.app.window.getSelection(),null==this.ctrl_a_pressed)return t.removeAllRanges(),t.addRange(e)},r.prototype._movingEvent=function(e){var t;return"click"===e.type||(t=e.which)===n.RIGHT||t===n.LEFT||t===n.UP||t===n.DOWN},r.prototype._unwrap=function(t){var n;return(n=(t=e(t).unwrap().get(0)).nextSibling)&&n.nodeValue&&(t.nodeValue+=n.nodeValue,e(n).remove()),t},r.prototype.catchQuery=function(t){var r,i,o,s,a,l,c,u,h,p,f,d;if((d=this._getRange())&&d.collapsed){if(t.which===n.ENTER)return(i=e(d.startContainer).closest(".atwho-query")).contents().unwrap(),i.is(":empty")&&i.remove(),(i=e(".atwho-query",this.app.document)).text(i.text()).contents().last().unwrap(),void this._clearRange();if(/firefox/i.test(navigator.userAgent)){if(e(d.startContainer).is(this.$inputor))return void this._clearRange();t.which===n.BACKSPACE&&d.startContainer.nodeType===document.ELEMENT_NODE&&(h=d.startOffset-1)>=0?((o=d.cloneRange()).setStart(d.startContainer,h),e(o.cloneContents()).contents().last().is(".atwho-inserted")&&(a=e(d.startContainer).contents().get(h),this._setRange("after",e(a).contents().last()))):t.which===n.LEFT&&d.startContainer.nodeType===document.TEXT_NODE&&(r=e(d.startContainer.previousSibling)).is(".atwho-inserted")&&0===d.startOffset&&this._setRange("after",r.contents().last())}if(e(d.startContainer).closest(".atwho-inserted").addClass("atwho-query").siblings().removeClass("atwho-query"),(i=e(".atwho-query",this.app.document)).length>0&&i.is(":empty")&&0===i.text().length&&i.remove(),this._movingEvent(t)||i.removeClass("atwho-inserted"),i.length>0)switch(t.which){case n.LEFT:return this._setRange("before",i.get(0),d),void i.removeClass("atwho-query");case n.RIGHT:return this._setRange("after",i.get(0).nextSibling,d),void i.removeClass("atwho-query")}if(i.length>0&&(f=i.attr("data-atwho-at-query"))&&(i.empty().html(f).attr("data-atwho-at-query",null),this._setRange("after",i.get(0),d)),(o=d.cloneRange()).setStart(d.startContainer,0),l="string"==typeof(u=this.callbacks("matcher").call(this,this.at,o.toString(),this.getOpt("startWithSpace"),this.getOpt("acceptSpaceBar"))),0===i.length&&l&&(s=d.startOffset-this.at.length-u.length)>=0&&(d.setStart(d.startContainer,s),i=e("<span/>",this.app.document).attr(this.getOpt("editableAtwhoQueryAttrs")).addClass("atwho-query"),d.surroundContents(i.get(0)),(c=i.contents().last().get(0))&&(/firefox/i.test(navigator.userAgent)?(d.setStart(c,c.length),d.setEnd(c,c.length),this._clearRange(d)):this._setRange("after",c,d))),!(l&&u.length<this.getOpt("minLen",0)))return l&&u.length<=this.getOpt("maxLen",20)?(p={text:u,el:i},this.trigger("matched",[this.at,p.text]),this.query=p):(this.view.hide(),this.query={el:i},i.text().indexOf(this.at)>=0&&(this._movingEvent(t)&&i.hasClass("atwho-inserted")?i.removeClass("atwho-query"):!1!==this.callbacks("afterMatchFailed").call(this,this.at,i)&&this._setRange("after",this._unwrap(i.text(i.text()).contents().first()))),null)}},r.prototype.rect=function(){var t,n;if((n=this.query.el.offset())&&this.query.el[0].getClientRects().length)return this.app.iframe&&!this.app.iframeAsRoot&&(t=e(this.app.iframe).offset(),n.left+=t.left-this.$inputor.scrollLeft(),n.top+=t.top-this.$inputor.scrollTop()),n.bottom=n.top+this.query.el.height(),n},r.prototype.insert=function(e,t){var n,r,i,o,s;return this.$inputor.is(":focus")||this.$inputor.focus(),(r=this.getOpt("functionOverrides")).insert?r.insert.call(this,e,t):(o=""===(o=this.getOpt("suffix"))?o:o||" ",n=t.data("item-data"),this.query.el.removeClass("atwho-query").addClass("atwho-inserted").html(e).attr("data-atwho-at-query",""+n["atwho-at"]+this.query.text).attr("contenteditable","false"),(i=this._getRange())&&(this.query.el.length&&i.setEndAfter(this.query.el[0]),i.collapse(!1),i.insertNode(s=this.app.document.createTextNode(""+o)),this._setRange("after",s,i)),this.$inputor.is(":focus")||this.$inputor.focus(),this.$inputor.change())},r}(i),l=function(){function t(e){this.context=e,this.at=this.context.at,this.storage=this.context.$inputor}return t.prototype.destroy=function(){return this.storage.data(this.at,null)},t.prototype.saved=function(){return this.fetch()>0},t.prototype.query=function(e,t){var n,r,i;return r=this.fetch(),i=this.context.getOpt("searchKey"),r=this.context.callbacks("filter").call(this.context,e,r,i)||[],n=this.context.callbacks("remoteFilter"),r.length>0||!n&&0===r.length?t(r):n.call(this.context,e,t)},t.prototype.fetch=function(){return this.storage.data(this.at)||[]},t.prototype.save=function(e){return this.storage.data(this.at,this.context.callbacks("beforeSave").call(this.context,e||[]))},t.prototype.load=function(e){if(!this.saved()&&e)return this._load(e)},t.prototype.reload=function(e){return this._load(e)},t.prototype._load=function(t){return"string"==typeof t?e.ajax(t,{dataType:"json"}).done((n=this,function(e){return n.save(e)})):this.save(t);var n},t}(),c=function(){function t(t){this.context=t,this.$el=e("<div class='atwho-view'><ul class='atwho-view-ul'></ul></div>"),this.$elUl=this.$el.children(),this.timeoutID=null,this.context.$el.append(this.$el),this.bindEvent()}return t.prototype.init=function(){var e,t;return t=this.context.getOpt("alias")||this.context.at.charCodeAt(0),(e=this.context.getOpt("headerTpl"))&&1===this.$el.children().length&&this.$el.prepend(e),this.$el.attr({id:"at-view-"+t})},t.prototype.destroy=function(){return this.$el.remove()},t.prototype.bindEvent=function(){var t,n,r,i;return t=this.$el.find("ul"),n=0,r=0,t.on("mousemove.atwho-view","li",(function(i){var o;if((n!==i.clientX||r!==i.clientY)&&(n=i.clientX,r=i.clientY,!(o=e(i.currentTarget)).hasClass("cur")))return t.find(".cur").removeClass("cur"),o.addClass("cur")})).on("click.atwho-view","li",(i=this,function(n){return t.find(".cur").removeClass("cur"),e(n.currentTarget).addClass("cur"),i.choose(n),n.preventDefault()}))},t.prototype.visible=function(){return e.expr.filters.visible(this.$el[0])},t.prototype.highlighted=function(){return this.$el.find(".cur").length>0},t.prototype.choose=function(e){var t,n;if((t=this.$el.find(".cur")).length&&(n=this.context.insertContentFor(t),this.context._stopDelayedCall(),this.context.insert(this.context.callbacks("beforeInsert").call(this.context,n,t,e),t),this.context.trigger("inserted",[t,e]),this.hide(e)),this.context.getOpt("hideWithoutSuffix"))return this.stopShowing=!0},t.prototype.reposition=function(t){var n,r,i,o;return n=this.context.app.iframeAsRoot?this.context.app.window:window,t.bottom+this.$el.height()-e(n).scrollTop()>e(n).height()&&(t.bottom=t.top-this.$el.height()),t.left>(i=e(n).width()-this.$el.width()-5)&&(t.left=i),r={left:t.left,top:t.bottom},null!=(o=this.context.callbacks("beforeReposition"))&&o.call(this.context,r),this.$el.offset(r),this.context.trigger("reposition",[r])},t.prototype.next=function(){var e,t,n;return(e=this.$el.find(".cur").removeClass("cur").next()).length||(e=this.$el.find("li:first")),e.addClass("cur"),n=(t=e[0]).offsetTop+t.offsetHeight+(t.nextSibling?t.nextSibling.offsetHeight:0),this.scrollTop(Math.max(0,n-this.$el.height()))},t.prototype.prev=function(){var e,t,n;return(t=this.$el.find(".cur").removeClass("cur").prev()).length||(t=this.$el.find("li:last")),t.addClass("cur"),e=(n=t[0]).offsetTop+n.offsetHeight+(n.nextSibling?n.nextSibling.offsetHeight:0),this.scrollTop(Math.max(0,e-this.$el.height()))},t.prototype.scrollTop=function(e){var t;return(t=this.context.getOpt("scrollDuration"))?this.$elUl.animate({scrollTop:e},t):this.$elUl.scrollTop(e)},t.prototype.show=function(){var e;if(!this.stopShowing)return this.visible()||(this.$el.show(),this.$el.scrollTop(0),this.context.trigger("shown")),(e=this.context.rect())?this.reposition(e):void 0;this.stopShowing=!1},t.prototype.hide=function(e,t){var n,r;if(this.visible())return isNaN(t)?(this.$el.hide(),this.context.trigger("hidden",[e])):(r=this,n=function(){return r.hide()},clearTimeout(this.timeoutID),this.timeoutID=setTimeout(n,t))},t.prototype.render=function(t){var n,r,i,o,s,a,l;if(e.isArray(t)&&t.length>0){for(this.$el.find("ul").empty(),r=this.$el.find("ul"),l=this.context.getOpt("displayTpl"),i=0,s=t.length;i<s;i++)o=t[i],o=e.extend({},o,{"atwho-at":this.context.at}),a=this.context.callbacks("tplEval").call(this.context,l,o,"onDisplay"),(n=e(this.context.callbacks("highlighter").call(this.context,a,this.context.query.text))).data("item-data",o),r.append(n);return this.show(),this.context.getOpt("highlightFirst")?r.find("li:first").addClass("cur"):void 0}this.hide()},t}(),u={load:function(e,t){var n;if(n=this.controller(e))return n.model.load(t)},isSelecting:function(){var e;return!!(null!=(e=this.controller())?e.view.visible():void 0)},hide:function(){var e;return null!=(e=this.controller())?e.view.hide():void 0},reposition:function(){var e;if(e=this.controller())return e.view.reposition(e.rect())},setIframe:function(e,t){return this.setupRootElement(e,t),null},run:function(){return this.dispatch()},destroy:function(){return this.shutdown(),this.$inputor.data("atwho",null)}},e.fn.atwho=function(t){var n,i;return n=arguments,i=null,this.filter('textarea, input, [contenteditable=""], [contenteditable=true]').each((function(){var o,s;return(s=(o=e(this)).data("atwho"))||o.data("atwho",s=new r(this)),"object"!=typeof t&&t?u[t]&&s?i=u[t].apply(s,Array.prototype.slice.call(n,1)):e.error("Method "+t+" does not exist on jQuery.atwho"):s.reg(t.at,t)})),null!=i?i:this},e.fn.atwho.default={at:void 0,alias:void 0,data:null,displayTpl:"<li>${name}</li>",insertTpl:"${atwho-at}${name}",headerTpl:null,callbacks:t,functionOverrides:{},searchKey:"name",suffix:void 0,hideWithoutSuffix:!1,startWithSpace:!0,acceptSpaceBar:!1,highlightFirst:!0,limit:5,maxLen:20,minLen:0,displayTimeout:300,delay:null,spaceSelectsMatch:!1,tabSelectsMatch:!0,editableAtwhoQueryAttrs:{},scrollDuration:150,suspendOnComposing:!0,lookUpOnClick:!0},e.fn.atwho.debug=!1}(e)}.apply(t,r),void 0===i||(e.exports=i)},23013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:function(e,t,n){"use strict";var r,i,o,s=n(23013),a=n(19781),l=n(17854),c=n(60614),u=n(70111),h=n(92597),p=n(70648),f=n(66330),d=n(68880),g=n(98052),m=n(47045),v=n(47976),y=n(79518),b=n(27674),x=n(5112),w=n(69711),S=n(29909),_=S.enforce,C=S.get,T=l.Int8Array,k=T&&T.prototype,E=l.Uint8ClampedArray,O=E&&E.prototype,P=T&&y(T),A=k&&y(k),R=Object.prototype,I=l.TypeError,U=x("toStringTag"),D=w("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",M=s&&!!b&&"Opera"!==p(l.opera),N=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},z=function(e){var t=y(e);if(u(t)){var n=C(t);return n&&h(n,L)?n[L]:z(t)}},H=function(e){if(!u(e))return!1;var t=p(e);return h(B,t)||h(F,t)};for(r in B)(o=(i=l[r])&&i.prototype)?_(o)[L]=i:M=!1;for(r in F)(o=(i=l[r])&&i.prototype)&&(_(o)[L]=i);if((!M||!c(P)||P===Function.prototype)&&(P=function(){throw I("Incorrect invocation")},M))for(r in B)l[r]&&b(l[r],P);if((!M||!A||A===R)&&(A=P.prototype,M))for(r in B)l[r]&&b(l[r].prototype,A);if(M&&y(O)!==A&&b(O,A),a&&!h(A,U))for(r in N=!0,m(A,U,{configurable:!0,get:function(){return u(this)?this[D]:void 0}}),B)l[r]&&d(l[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:N&&D,aTypedArray:function(e){if(H(e))return e;throw I("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(P,e)))return e;throw I(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(a){if(n)for(var i in B){var o=l[i];if(o&&h(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}A[e]&&!n||g(A,e,n?t:M&&k[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(a){if(b){if(n)for(r in B)if((i=l[r])&&h(i,e))try{delete i[e]}catch(e){}if(P[e]&&!n)return;try{return g(P,e,n?t:M&&P[e]||t)}catch(e){}}for(r in B)!(i=l[r])||i[e]&&!n||g(i,e,t)}},getTypedArrayConstructor:z,isView:function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||h(B,t)||h(F,t)},isTypedArray:H,TypedArray:P,TypedArrayPrototype:A}},13331:function(e,t,n){"use strict";var r=n(17854),i=n(1702),o=n(19781),s=n(23013),a=n(76530),l=n(68880),c=n(47045),u=n(89190),h=n(47293),p=n(25787),f=n(19303),d=n(17466),g=n(57067),m=n(11179),v=n(79518),y=n(27674),b=n(8006).f,x=n(21285),w=n(41589),S=n(58003),_=n(29909),C=a.PROPER,T=a.CONFIGURABLE,k="ArrayBuffer",E="DataView",O="prototype",P="Wrong index",A=_.getterFor(k),R=_.getterFor(E),I=_.set,U=r[k],D=U,L=D&&D[O],M=r[E],N=M&&M[O],B=Object.prototype,F=r.Array,z=r.RangeError,H=i(x),G=i([].reverse),$=m.pack,W=m.unpack,j=function(e){return[255&e]},q=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},V=function(e){return $(e,23,4)},K=function(e){return $(e,52,8)},Z=function(e,t,n){c(e[O],t,{configurable:!0,get:function(){return n(this)[t]}})},Q=function(e,t,n,r){var i=R(e),o=g(n),s=!!r;if(o+t>i.byteLength)throw z(P);var a=i.bytes,l=o+i.byteOffset,c=w(a,l,l+t);return s?c:G(c)},J=function(e,t,n,r,i,o){var s=R(e),a=g(n),l=r(+i),c=!!o;if(a+t>s.byteLength)throw z(P);for(var u=s.bytes,h=a+s.byteOffset,p=0;p<t;p++)u[h+p]=l[c?p:t-p-1]};if(s){var ee=C&&U.name!==k;if(h((function(){U(1)}))&&h((function(){new U(-1)}))&&!h((function(){return new U,new U(1.5),new U(NaN),1!=U.length||ee&&!T})))ee&&T&&l(U,"name",k);else{(D=function(e){return p(this,L),new U(g(e))})[O]=L;for(var te,ne=b(U),re=0;ne.length>re;)(te=ne[re++])in D||l(D,te,U[te]);L.constructor=D}y&&v(N)!==B&&y(N,B);var ie=new M(new D(2)),oe=i(N.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(N,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else L=(D=function(e){p(this,L);var t=g(e);I(this,{type:k,bytes:H(F(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[O],N=(M=function(e,t,n){p(this,N),p(e,L);var r=A(e),i=r.byteLength,s=f(t);if(s<0||s>i)throw z("Wrong offset");if(s+(n=void 0===n?i-s:d(n))>i)throw z("Wrong length");I(this,{type:E,buffer:e,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=s)})[O],o&&(Z(D,"byteLength",A),Z(M,"buffer",R),Z(M,"byteLength",R),Z(M,"byteOffset",R)),u(N,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return X(Q(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return X(Q(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(Q(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(Q(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){J(this,1,e,j,t)},setUint8:function(e,t){J(this,1,e,j,t)},setInt16:function(e,t){J(this,2,e,q,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){J(this,2,e,q,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){J(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){J(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){J(this,4,e,V,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){J(this,8,e,K,t,arguments.length>2&&arguments[2])}});S(D,k),S(M,E),e.exports={ArrayBuffer:D,DataView:M}},1048:function(e,t,n){"use strict";var r=n(47908),i=n(51400),o=n(26244),s=n(85117),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=o(n),c=i(e,l),u=i(t,l),h=arguments.length>2?arguments[2]:void 0,p=a((void 0===h?l:i(h,l))-u,l-c),f=1;for(u<c&&c<u+p&&(f=-1,u+=p-1,c+=p-1);p-- >0;)u in n?n[c]=n[u]:s(n,c),c+=f,u+=f;return n}},21285:function(e,t,n){"use strict";var r=n(47908),i=n(51400),o=n(26244);e.exports=function(e){for(var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>a;)t[a++]=e;return t}},97745:function(e,t,n){var r=n(26244);e.exports=function(e,t){for(var n=0,i=r(t),o=new e(i);i>n;)o[n]=t[n++];return o}},86583:function(e,t,n){"use strict";var r=n(22104),i=n(45656),o=n(19303),s=n(26244),a=n(9341),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,h=a("lastIndexOf"),p=u||!h;e.exports=p?function(e){if(u)return r(c,this,arguments)||0;var t=i(this),n=s(t),a=n-1;for(arguments.length>1&&(a=l(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},53671:function(e,t,n){var r=n(19662),i=n(47908),o=n(68361),s=n(26244),a=TypeError,l=function(e){return function(t,n,l,c){r(n);var u=i(t),h=o(u),p=s(u),f=e?p-1:0,d=e?-1:1;if(l<2)for(;;){if(f in h){c=h[f],f+=d;break}if(f+=d,e?f<0:p<=f)throw a("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=d)f in h&&(c=n(c,h[f],f,u));return c}};e.exports={left:l(!1),right:l(!0)}},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},11179:function(e){var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2;e.exports={pack:function(e,a,l){var c,u,h,p=t(l),f=8*l-a-1,d=(1<<f)-1,g=d>>1,m=23===a?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=d):(c=i(o(e)/s),e*(h=r(2,-c))<1&&(c--,h*=2),(e+=c+g>=1?m/h:m*r(2,1-g))*h>=2&&(c++,h/=2),c+g>=d?(u=0,c=d):c+g>=1?(u=(e*h-1)*r(2,a),c+=g):(u=e*r(2,g-1)*r(2,a),c=0));a>=8;)p[y++]=255&u,u/=256,a-=8;for(c=c<<a|u,f+=a;f>0;)p[y++]=255&c,c/=256,f-=8;return p[--y]|=128*v,p},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,l=o-7,c=i-1,u=e[c--],h=127&u;for(u>>=7;l>0;)h=256*h+e[c--],l-=8;for(n=h&(1<<-l)-1,h>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===h)h=1-a;else{if(h===s)return n?NaN:u?-1/0:1/0;n+=r(2,t),h-=a}return(u?-1:1)*n*r(2,h-t)}}},44067:function(e,t,n){var r=n(70648);e.exports=function(e){var t=r(e);return"BigInt64Array"==t||"BigUint64Array"==t}},55988:function(e,t,n){var r=n(70111),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},38415:function(e,t,n){"use strict";var r=n(19303),i=n(41340),o=n(84488),s=RangeError;e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a==1/0)throw s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},64599:function(e,t,n){var r=n(57593),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw i("Can't convert number to bigint");return BigInt(t)}},57067:function(e,t,n){var r=n(19303),i=n(17466),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw o("Wrong length or index");return n}},84590:function(e,t,n){var r=n(73002),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw i("Wrong offset");return n}},73002:function(e,t,n){var r=n(19303),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw i("The argument can't be less than 0");return t}},19843:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(46916),s=n(19781),a=n(63832),l=n(90260),c=n(13331),u=n(25787),h=n(79114),p=n(68880),f=n(55988),d=n(17466),g=n(57067),m=n(84590),v=n(34948),y=n(92597),b=n(70648),x=n(70111),w=n(52190),S=n(70030),_=n(47976),C=n(27674),T=n(8006).f,k=n(97321),E=n(42092).forEach,O=n(96340),P=n(47045),A=n(3070),R=n(31236),I=n(29909),U=n(79587),D=I.get,L=I.set,M=I.enforce,N=A.f,B=R.f,F=Math.round,z=i.RangeError,H=c.ArrayBuffer,G=H.prototype,$=c.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,j=l.TYPED_ARRAY_TAG,q=l.TypedArray,Y=l.TypedArrayPrototype,X=l.aTypedArrayConstructor,V=l.isTypedArray,K="BYTES_PER_ELEMENT",Z="Wrong length",Q=function(e,t){X(e);for(var n=0,r=t.length,i=new e(r);r>n;)i[n]=t[n++];return i},J=function(e,t){P(e,t,{configurable:!0,get:function(){return D(this)[t]}})},ee=function(e){var t;return _(G,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},te=function(e,t){return V(e)&&!w(t)&&t in e&&f(+t)&&t>=0},ne=function(e,t){return t=v(t),te(e,t)?h(2,e[t]):B(e,t)},re=function(e,t,n){return t=v(t),!(te(e,t)&&x(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};s?(W||(R.f=ne,A.f=re,J(Y,"buffer"),J(Y,"byteOffset"),J(Y,"byteLength"),J(Y,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:ne,defineProperty:re}),e.exports=function(e,t,n){var s=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,h="set"+e,f=i[l],v=f,y=v&&v.prototype,b={},w=function(e,t){N(e,t,{get:function(){return function(e,t){var n=D(e);return n.view[c](t*s+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=D(e);n&&(r=(r=F(r))<0?0:r>255?255:255&r),i.view[h](t*s+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};W?a&&(v=t((function(e,t,n,r){return u(e,y),U(x(t)?ee(t)?void 0!==r?new f(t,m(n,s),r):void 0!==n?new f(t,m(n,s)):new f(t):V(t)?Q(v,t):o(k,v,t):new f(g(t)),e,v)})),C&&C(v,q),E(T(f),(function(e){e in v||p(v,e,f[e])})),v.prototype=y):(v=t((function(e,t,n,r){u(e,y);var i,a,l,c=0,h=0;if(x(t)){if(!ee(t))return V(t)?Q(v,t):o(k,v,t);i=t,h=m(n,s);var p=t.byteLength;if(void 0===r){if(p%s)throw z(Z);if((a=p-h)<0)throw z(Z)}else if((a=d(r)*s)+h>p)throw z(Z);l=a/s}else l=g(t),i=new H(a=l*s);for(L(e,{buffer:i,byteOffset:h,byteLength:a,length:l,view:new $(i)});c<l;)w(e,c++)})),C&&C(v,q),y=v.prototype=S(Y)),y.constructor!==v&&p(y,"constructor",v),M(y).TypedArrayConstructor=v,j&&p(y,j,l);var _=v!=f;b[l]=v,r({global:!0,constructor:!0,forced:_,sham:!W},b),K in v||p(v,K,s),K in y||p(y,K,s),O(l)}):e.exports=function(){}},63832:function(e,t,n){var r=n(17854),i=n(47293),o=n(17072),s=n(90260).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,l=r.Int8Array;e.exports=!s||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new a(2),1,void 0).length}))},43074:function(e,t,n){var r=n(97745),i=n(66304);e.exports=function(e,t){return r(i(e),t)}},97321:function(e,t,n){var r=n(49974),i=n(46916),o=n(39483),s=n(47908),a=n(26244),l=n(18554),c=n(71246),u=n(97659),h=n(44067),p=n(90260).aTypedArrayConstructor,f=n(64599);e.exports=function(e){var t,n,d,g,m,v,y,b,x=o(this),w=s(e),S=arguments.length,_=S>1?arguments[1]:void 0,C=void 0!==_,T=c(w);if(T&&!u(T))for(b=(y=l(w,T)).next,w=[];!(v=i(b,y)).done;)w.push(v.value);for(C&&S>2&&(_=r(_,arguments[2])),n=a(w),d=new(p(x))(n),g=h(d),t=0;n>t;t++)m=C?_(w[t],t):w[t],d[t]=g?f(m):+m;return d}},66304:function(e,t,n){var r=n(90260),i=n(36707),o=r.aTypedArrayConstructor,s=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,s(e)))}},39575:function(e,t,n){"use strict";var r=n(82109),i=n(21470),o=n(47293),s=n(13331),a=n(19670),l=n(51400),c=n(17466),u=n(36707),h=s.ArrayBuffer,p=s.DataView,f=p.prototype,d=i(h.prototype.slice),g=i(f.getUint8),m=i(f.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(d&&void 0===t)return d(a(this),e);for(var n=a(this).byteLength,r=l(e,n),i=l(void 0===t?n:t,n),o=new(u(this,h))(c(i-r)),s=new p(this),f=new p(o),v=0;r<i;)m(f,v++,g(s,r++));return o}})},34553:function(e,t,n){"use strict";var r=n(82109),i=n(42092).findIndex,o=n(51223),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},85827:function(e,t,n){"use strict";var r=n(82109),i=n(53671).left,o=n(9341),s=n(7392);r({target:"Array",proto:!0,forced:!n(35268)&&s>79&&s<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},2707:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(19662),s=n(47908),a=n(26244),l=n(85117),c=n(41340),u=n(47293),h=n(94362),p=n(9341),f=n(68886),d=n(30256),g=n(7392),m=n(98008),v=[],y=i(v.sort),b=i(v.push),x=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),S=p("sort"),_=!u((function(){if(g)return g<70;if(!(f&&f>3)){if(d)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:x||!w||!S||!_},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(_)return void 0===e?y(t):y(t,e);var n,r,i=[],u=a(t);for(r=0;r<u;r++)r in t&&b(i,t[r]);for(h(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=a(i),r=0;r<n;)t[r]=i[r++];for(;r<u;)l(t,r++);return t}})},56977:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(19303),s=n(50863),a=n(38415),l=n(47293),c=RangeError,u=String,h=Math.floor,p=i(a),f=i("".slice),d=i(1..toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=h(i/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=h(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!l((function(){d({})}))},{toFixed:function(e){var t,n,r,i,a=s(this),l=o(e),h=[0,0,0,0,0,0],d="",b="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return u(a);if(a<0&&(d="-",a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*g(2,69,1))-69)<0?a*g(2,-t,1):a/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(h,0,n),r=l;r>=7;)m(h,1e7,0),r-=7;for(m(h,g(10,r,1),0),r=t-1;r>=23;)v(h,1<<23),r-=23;v(h,1<<r),m(h,1,1),v(h,2),b=y(h)}else m(h,0,n),m(h,1<<-t,0),b=y(h)+p("0",l);return l>0?d+((i=b.length)<=l?"0."+p("0",l-i)+b:f(b,0,i-l)+"."+f(b,i-l)):d+b}})},50915:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("bold")},{bold:function(){return i(this,"b","","")}})},58734:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("italics")},{italics:function(){return i(this,"i","","")}})},4723:function(e,t,n){"use strict";var r=n(46916),i=n(27007),o=n(19670),s=n(68554),a=n(17466),l=n(41340),c=n(84488),u=n(58173),h=n(31530),p=n(97651);i("match",(function(e,t,n){return[function(t){var n=c(this),i=s(t)?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),s=n(t,r,i);if(s.done)return s.value;if(!r.global)return p(r,i);var c=r.unicode;r.lastIndex=0;for(var u,f=[],d=0;null!==(u=p(r,i));){var g=l(u[0]);f[d]=g,""===g&&(r.lastIndex=h(i,a(r.lastIndex),c)),d++}return 0===d?null:f}]}))},41817:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(17854),s=n(1702),a=n(92597),l=n(60614),c=n(47976),u=n(41340),h=n(47045),p=n(99920),f=o.Symbol,d=f&&f.prototype;if(i&&l(f)&&(!("description"in d)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(d,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};p(m,f),m.prototype=d,d.constructor=m;var v="Symbol(test)"==String(f("test")),y=s(d.valueOf),b=s(d.toString),x=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),S=s("".slice);h(d,"description",{configurable:!0,get:function(){var e=y(this);if(a(g,e))return"";var t=b(e),n=v?S(t,7,-1):w(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},32165:function(e,t,n){n(26800)("iterator")},92990:function(e,t,n){"use strict";var r=n(1702),i=n(90260),o=r(n(1048)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,n){"use strict";var r=n(90260),i=n(42092).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,n){"use strict";var r=n(90260),i=n(21285),o=n(64599),s=n(70648),a=n(46916),l=n(1702),c=n(47293),u=r.aTypedArray,h=r.exportTypedArrayMethod,p=l("".slice);h("fill",(function(e){var t=arguments.length;u(this);var n="Big"===p(s(this),0,3)?o(e):+e;return a(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},35035:function(e,t,n){"use strict";var r=n(90260),i=n(42092).filter,o=n(43074),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(s(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},7174:function(e,t,n){"use strict";var r=n(90260),i=n(42092).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,n){"use strict";var r=n(90260),i=n(42092).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,n){"use strict";var r=n(90260),i=n(42092).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,n){"use strict";var r=n(90260),i=n(41318).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,n){"use strict";var r=n(90260),i=n(41318).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,n){"use strict";var r=n(17854),i=n(47293),o=n(1702),s=n(90260),a=n(66992),l=n(5112)("iterator"),c=r.Uint8Array,u=o(a.values),h=o(a.keys),p=o(a.entries),f=s.aTypedArray,d=s.exportTypedArrayMethod,g=c&&c.prototype,m=!i((function(){g[l].call([1])})),v=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,y=function(){return u(f(this))};d("entries",(function(){return p(f(this))}),m),d("keys",(function(){return h(f(this))}),m),d("values",y,m||!v,{name:"values"}),d(l,y,m||!v,{name:"values"})},58867:function(e,t,n){"use strict";var r=n(90260),i=n(1702),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=i([].join);s("join",(function(e){return a(o(this),e)}))},37789:function(e,t,n){"use strict";var r=n(90260),i=n(22104),o=n(86583),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,s(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,n){"use strict";var r=n(90260),i=n(42092).map,o=n(66304),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},14483:function(e,t,n){"use strict";var r=n(90260),i=n(53671).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,n){"use strict";var r=n(90260),i=n(53671).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,n){"use strict";var r=n(90260),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var e,t=this,n=i(t).length,r=s(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},3462:function(e,t,n){"use strict";var r=n(17854),i=n(46916),o=n(90260),s=n(26244),a=n(84590),l=n(47908),c=n(47293),u=r.RangeError,h=r.Int8Array,p=h&&h.prototype,f=p&&p.set,d=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){d(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return i(f,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw u("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!m||v)},30678:function(e,t,n){"use strict";var r=n(90260),i=n(66304),o=n(47293),s=n(50206),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=s(a(this),e,t),r=i(this),o=0,l=n.length,c=new r(l);l>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},27462:function(e,t,n){"use strict";var r=n(90260),i=n(42092).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,n){"use strict";var r=n(17854),i=n(21470),o=n(47293),s=n(19662),a=n(94362),l=n(90260),c=n(68886),u=n(30256),h=n(7392),p=n(98008),f=l.aTypedArray,d=l.exportTypedArrayMethod,g=r.Uint16Array,m=g&&i(g.prototype.sort),v=!(!m||o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),y=!!m&&!o((function(){if(h)return h<74;if(c)return c<67;if(u)return!0;if(p)return p<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));d("sort",(function(e){return void 0!==e&&s(e),y?m(this,e):a(f(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||v)},55021:function(e,t,n){"use strict";var r=n(90260),i=n(17466),o=n(51400),s=n(66304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=a(this),r=n.length,l=o(e,r);return new(s(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-l))}))},12974:function(e,t,n){"use strict";var r=n(17854),i=n(22104),o=n(90260),s=n(47293),a=n(50206),l=r.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,h=[].toLocaleString,p=!!l&&s((function(){h.call(new l(1))}));u("toLocaleString",(function(){return i(h,p?a(c(this)):c(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!s((function(){l.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,n){"use strict";var r=n(90260).exportTypedArrayMethod,i=n(47293),o=n(17854),s=n(1702),a=o.Uint8Array,l=a&&a.prototype||{},c=[].toString,u=s([].join);i((function(){c.call({})}))&&(c=function(){return u(this)});var h=l.toString!=c;r("toString",c,h)},82472:function(e,t,n){n(19843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},26400:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,r){return!!e.data(t,r[3])}})})?r.apply(t,i):r)||(e.exports=o)}()},42064:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t})?r.apply(t,i):r)||(e.exports=o)}()},63762:function(e,t,n){var r,i,o,s=n(19755);!function(a){"use strict";i=[n(19755),n(59676),n(96921),n(85592)],r=function(e){var t,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated";return e.effects={effect:{}},function(){var t,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(e){var t,n,r,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[t=i[n]]&&(o[(r=t,r.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})))]=i[t]);else for(t in i)"string"==typeof i[t]&&(o[t]=i[t]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(s.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,s,a){var l=e.speed(o,s,a);return this.queue((function(){var o,s=e(this),a=s.attr("class")||"",c=l.children?s.find("*").addBack():s;c=c.map((function(){return{el:e(this),start:i(this)}})),(o=function(){e.each(n,(function(e,n){t[n]&&s[n+"Class"](t[n])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=function(t,n){var i,o,s={};for(i in n)o=n[i],t[i]!==o&&(r[i]||!e.fx.step[i]&&isNaN(parseFloat(o))||(s[i]=o));return s}(this.start,this.end),this})),s.attr("class",a),c=c.map((function(){var t=this,n=e.Deferred(),r=e.extend({},l,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(s[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(n,r,i,o){return r?e.effects.animateClass.call(this,{add:n},r,i,o):t.apply(this,arguments)}),removeClass:function(t){return function(n,r,i,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},r,i,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,r,i,o,s){return"boolean"==typeof r||void 0===r?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,s):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},r,i,o)}}(e.fn.toggleClass),switchClass:function(t,n,r,i,o){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,o)}})}(),function(){var t;function o(t,n,r,i){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),"function"==typeof n&&(i=n,r=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(i=r,r=n,n={}),"function"==typeof r&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:"number"==typeof r?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function s(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function a(e,t){var n=t.outerWidth(),r=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(t=e.expr.pseudos.animated,function(n){return!!e(n).data(i)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var r=0,i=t.length;r<i;r++)null!==t[r]&&e.data(n+t[r],e[0].style[t[r]])},restore:function(e,t){for(var r,i=0,o=t.length;i<o;i++)null!==t[i]&&(r=e.data(n+t[i]),e.css(t[i],r))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(r),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),r=t.parent(),"static"===t.css("position")?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,n,r){return r||(r=n,n="effect"),e.effects.effect[t]=r,e.effects.effect[t].mode=n,r},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(t||100)/100:1,i="vertical"!==n?(t||100)/100:1;return{height:e.height()*i,width:e.width()*r,outerHeight:e.outerHeight()*i,outerWidth:e.outerWidth()*r}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var r=e.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createPlaceholder:function(t){var r,i=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",r)),t.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(e){var t=n+"placeholder",r=e.data(t);r&&(r.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,r,i){return i=i||{},e.each(n,(function(e,n){var o=t.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,s=t.queue,a=s||"fx",l=t.complete,c=t.mode,u=[],h=function(t){var n=e(this),o=e.effects.mode(n,c)||r;n.data(i,!0),u.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||e.effects.saveStyle(n),"function"==typeof t&&t()};if(e.fx.off||!n)return c?this[c](t.duration,l):this.each((function(){l&&l.call(this)}));function p(o){var s=e(this);function a(){"function"==typeof l&&l.call(s[0]),"function"==typeof o&&o()}t.mode=u.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(s[c](),a()):n.call(s[0],t,(function(){s.removeData(i),e.effects.cleanUp(s),"hide"===t.mode&&s.hide(),a()})):(s.is(":hidden")?"hide"===c:"show"===c)?(s[c](),a()):n.call(s[0],t,a)}return!1===s?this.each(h).each(p):this.queue(a,h).queue(a,p)},show:function(e){return function(t){if(s(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(s(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(s(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])})),r},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):a(this.css("clip"),this)},transfer:function(t,n){var r=e(this),i=e(t.to),o="fixed"===i.css("position"),s=e("body"),a=o?s.scrollTop():0,l=o?s.scrollLeft():0,c=i.offset(),u={top:c.top-a,left:c.left-l,height:i.innerHeight(),width:i.innerWidth()},h=r.offset(),p=e("<div class='ui-effects-transfer'></div>");p.appendTo("body").addClass(t.className).css({top:h.top-a,left:h.left-l,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(u,t.duration,t.easing,(function(){p.remove(),"function"==typeof n&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=a(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,n){t[n]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects},void 0===(o=r.apply(t,i))||(e.exports=o)}()},68573:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592),n(63762)],void 0===(o="function"==typeof(r=function(e){return e.effects.define("fade","toggle",(function(t,n){var r="show"===t.mode;e(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}))})?r.apply(t,i):r)||(e.exports=o)}()},85341:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592),n(63762)],void 0===(o="function"==typeof(r=function(e){return e.effects.define("size",(function(t,n){var r,i,o,s=e(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,h="effect"!==u,p=t.scale||"both",f=t.origin||["middle","center"],d=s.css("position"),g=s.position(),m=e.effects.scaledDimensions(s),v=t.from||m,y=t.to||e.effects.scaledDimensions(s,0);e.effects.createPlaceholder(s),"show"===u&&(o=v,v=y,y=o),i={from:{y:v.height/m.height,x:v.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==p&&"both"!==p||(i.from.y!==i.to.y&&(v=e.effects.setTransition(s,l,i.from.y,v),y=e.effects.setTransition(s,l,i.to.y,y)),i.from.x!==i.to.x&&(v=e.effects.setTransition(s,c,i.from.x,v),y=e.effects.setTransition(s,c,i.to.x,y))),"content"!==p&&"both"!==p||i.from.y!==i.to.y&&(v=e.effects.setTransition(s,a,i.from.y,v),y=e.effects.setTransition(s,a,i.to.y,y)),f&&(r=e.effects.getBaseline(f,m),v.top=(m.outerHeight-v.outerHeight)*r.y+g.top,v.left=(m.outerWidth-v.outerWidth)*r.x+g.left,y.top=(m.outerHeight-y.outerHeight)*r.y+g.top,y.left=(m.outerWidth-y.outerWidth)*r.x+g.left),delete v.outerHeight,delete v.outerWidth,s.css(v),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(a),c=c.concat(["marginLeft","marginRight"]),s.find("*[width]").each((function(){var n=e(this),r=e.effects.scaledDimensions(n),o={height:r.height*i.from.y,width:r.width*i.from.x,outerHeight:r.outerHeight*i.from.y,outerWidth:r.outerWidth*i.from.x},s={height:r.height*i.to.y,width:r.width*i.to.x,outerHeight:r.height*i.to.y,outerWidth:r.width*i.to.x};i.from.y!==i.to.y&&(o=e.effects.setTransition(n,l,i.from.y,o),s=e.effects.setTransition(n,l,i.to.y,s)),i.from.x!==i.to.x&&(o=e.effects.setTransition(n,c,i.from.x,o),s=e.effects.setTransition(n,c,i.to.x,s)),h&&e.effects.saveStyle(n),n.css(o),n.animate(s,t.duration,t.easing,(function(){h&&e.effects.restoreStyle(n)}))}))),s.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=s.offset();0===y.opacity&&s.css("opacity",v.opacity),h||(s.css("position","static"===d?"relative":d).offset(t),e.effects.saveStyle(s)),n()}})}))})?r.apply(t,i):r)||(e.exports=o)}()},59676:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){})?r.apply(t,i):r)||(e.exports=o)}()},31624:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],r=function(e){return e.ui.plugin={add:function(t,n,r){var i,o=e.ui[t].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(e,t,n,r){var i,o=e.plugins[t];if(o&&(r||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(i=0;i<o.length;i++)e.options[o[i][0]]&&o[i][1].apply(e.element,n)}}},void 0===(o=r.apply(t,i))||(e.exports=o)}()},86575:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}})?r.apply(t,i):r)||(e.exports=o)}()},10192:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")}})?r.apply(t,i):r)||(e.exports=o)}()},40464:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(85592)],void 0===(o="function"==typeof(r=function(e){return e.fn.scrollParent=function(t){var n=this.css("position"),r="absolute"===n,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!r||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)}})?r.apply(t,i):r)||(e.exports=o)}()},96921:function(e,t,n){var r,i,o;i=[n(19755)],r=function(e,t){var n,r={},i=r.toString,o=/^([\-+])=\s*(\d+\.?\d*)/,s=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],a=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},l={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=a.support={},h=e("<p>")[0],p=e.each;function f(e){return null==e?e+"":"object"==typeof e?r[i.call(e)]||"object":typeof e}function d(e,t,n){var r=c[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:Math.min(r.max,Math.max(0,e)))}function g(t){var r=a(),i=r._rgba=[];return t=t.toLowerCase(),p(s,(function(e,n){var o,s=n.re.exec(t),a=s&&n.parse(s),c=n.space||"rgba";if(a)return o=r[c](a),r[l[c].cache]=o[l[c].cache],i=r._rgba=o._rgba,!1})),i.length?("0,0,0,0"===i.join()&&e.extend(i,n.transparent),r):n[t]}function m(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}h.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=h.style.backgroundColor.indexOf("rgba")>-1,p(l,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){r["[object "+t+"]"]=t.toLowerCase()})),a.fn=e.extend(a.prototype,{parse:function(r,i,o,s){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(i),i=t);var c=this,u=f(r),h=this._rgba=[];return i!==t&&(r=[r,i,o,s],u="array"),"string"===u?this.parse(g(r)||n._default):"array"===u?(p(l.rgba.props,(function(e,t){h[t.idx]=d(r[t.idx],t)})),this):"object"===u?(p(l,r instanceof a?function(e,t){r[t.cache]&&(c[t.cache]=r[t.cache].slice())}:function(t,n){var i=n.cache;p(n.props,(function(e,t){if(!c[i]&&n.to){if("alpha"===e||null==r[e])return;c[i]=n.to(c._rgba)}c[i][t.idx]=d(r[e],t,!0)})),c[i]&&e.inArray(null,c[i].slice(0,3))<0&&(null==c[i][3]&&(c[i][3]=1),n.from&&(c._rgba=n.from(c[i])))}),this):void 0},is:function(e){var t=a(e),n=!0,r=this;return p(l,(function(e,i){var o,s=t[i.cache];return s&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],p(i.props,(function(e,t){if(null!=s[t.idx])return n=s[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return p(l,(function(n,r){t[r.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=a(e),r=n._space(),i=l[r],o=0===this.alpha()?a("transparent"):this,s=o[i.cache]||i.to(o._rgba),u=s.slice();return n=n[i.cache],p(i.props,(function(e,r){var i=r.idx,o=s[i],a=n[i],l=c[r.type]||{};null!==a&&(null===o?u[i]=a:(l.mod&&(a-o>l.mod/2?o+=l.mod:o-a>l.mod/2&&(o-=l.mod)),u[i]=d((a-o)*t+o,r)))})),this[r](u)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=a(t)._rgba;return a(e.map(n,(function(e,t){return(1-r)*i[t]+r*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null!=e?e:t>2?1:0}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,l.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=e[3],a=Math.max(r,i,o),l=Math.min(r,i,o),c=a-l,u=a+l,h=.5*u;return t=l===a?0:r===a?60*(i-o)/c+360:i===a?60*(o-r)/c+120:60*(r-i)/c+240,n=0===c?0:h<=.5?c/u:c/(2-u),[Math.round(t)%360,n,h,null==s?1:s]},l.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;return[Math.round(255*m(s,o,t+1/3)),Math.round(255*m(s,o,t)),Math.round(255*m(s,o,t-1/3)),i]},p(l,(function(e,n){var r=n.props,i=n.cache,s=n.to,l=n.from;a.fn[e]=function(e){if(s&&!this[i]&&(this[i]=s(this._rgba)),e===t)return this[i].slice();var n,o=f(e),c="array"===o||"object"===o?e:arguments,u=this[i].slice();return p(r,(function(e,t){var n=c["object"===o?e:t.idx];null==n&&(n=u[t.idx]),u[t.idx]=d(n,t)})),l?((n=a(l(u)))[i]=u,n):a(u)},p(r,(function(t,n){a.fn[t]||(a.fn[t]=function(r){var i,s,a,l,c=f(r);return s=(i=this[l="alpha"===t?this._hsla?"hsla":"rgba":e]())[n.idx],"undefined"===c?s:("function"===c&&(c=f(r=r.call(this,s))),null==r&&n.empty?this:("string"===c&&(a=o.exec(r))&&(r=s+parseFloat(a[2])*("+"===a[1]?1:-1)),i[n.idx]=r,this[l](i)))})}))})),a.hook=function(t){var n=t.split(" ");p(n,(function(t,n){e.cssHooks[n]={set:function(t,r){var i,o,s="";if("transparent"!==r&&("string"!==f(r)||(i=g(r)))){if(r=a(i||r),!u.rgba&&1!==r._rgba[3]){for(o="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&o&&o.style;)try{s=e.css(o,"backgroundColor"),o=o.parentNode}catch(e){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=a(t.elem,n),t.end=a(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},a.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],(function(n,r){t["border"+r+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}},void 0===(o=r.apply(t,i))||(e.exports=o)},87285:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(66177),n(26400),n(31624),n(86575),n(10192),n(40464),n(85592),n(26891)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var r=this._uiHash();if(!1===this._trigger("drag",t,r))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,r=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(r=e.ui.ddmanager.drop(this,t)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,r)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",t)&&n._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,r="function"==typeof n.helper,i=r?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),r&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options,o=this.document[0];this.relativeContainer=null,i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(r=(n=e(i.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=i.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,r,i,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),s.grid&&(i=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-s.grid[1]:i+s.grid[1]:i,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,r){return r=r||this._uiHash(),e.ui.plugin.call(this,t,[n,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,r){var i=e.extend({},n,{item:r.element});r.sortables=[],e(r.options.connectToSortable).each((function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(r.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,i))}))},stop:function(t,n,r){var i=e.extend({},n,{item:r.element});r.cancelHelperRemoval=!1,e.each(r.sortables,(function(){var e=this;e.isOver?(e.isOver=0,r.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,i))}))},drag:function(t,n,r){e.each(r.sortables,(function(){var i=!1,o=this;o.positionAbs=r.positionAbs,o.helperProportions=r.helperProportions,o.offset.click=r.offset.click,o._intersectsWith(o.containerCache)&&(i=!0,e.each(r.sortables,(function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(i=!1),i}))),i?(o.isOver||(o.isOver=1,r._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=r.offset.click.top,o.offset.click.left=r.offset.click.left,o.offset.parent.left-=r.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=r.offset.parent.top-o.offset.parent.top,r._trigger("toSortable",t),r.dropped=o.element,e.each(r.sortables,(function(){this.refreshPositions()})),r.currentItem=r.element,o.fromOutside=r),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(r._parent),r._refreshOffsets(t),n.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,e.each(r.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,r){var i=e("body"),o=r.options;i.css("cursor")&&(o._cursor=i.css("cursor")),i.css("cursor",o.cursor)},stop:function(t,n,r){var i=r.options;i._cursor&&e("body").css("cursor",i._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,r){var i=e(n.helper),o=r.options;i.css("opacity")&&(o._opacity=i.css("opacity")),i.css("opacity",o.opacity)},stop:function(t,n,r){var i=r.options;i._opacity&&e(n.helper).css("opacity",i._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,r){var i=r.options,o=!1,s=r.scrollParentNotHidden[0],a=r.document[0];s!==a&&"HTML"!==s.tagName?(i.axis&&"x"===i.axis||(r.overflowOffset.top+s.offsetHeight-t.pageY<i.scrollSensitivity?s.scrollTop=o=s.scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(r.overflowOffset.left+s.offsetWidth-t.pageX<i.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-e(a).scrollTop()<i.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<i.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-e(a).scrollLeft()<i.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<i.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+i.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(r,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,r){var i=r.options;r.snapElements=[],e(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each((function(){var t=e(this),n=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})}))},drag:function(t,n,r){var i,o,s,a,l,c,u,h,p,f,d=r.options,g=d.snapTolerance,m=n.offset.left,v=m+r.helperProportions.width,y=n.offset.top,b=y+r.helperProportions.height;for(p=r.snapElements.length-1;p>=0;p--)c=(l=r.snapElements[p].left-r.margins.left)+r.snapElements[p].width,h=(u=r.snapElements[p].top-r.margins.top)+r.snapElements[p].height,v<l-g||m>c+g||b<u-g||y>h+g||!e.contains(r.snapElements[p].item.ownerDocument,r.snapElements[p].item)?(r.snapElements[p].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[p].item})),r.snapElements[p].snapping=!1):("inner"!==d.snapMode&&(i=Math.abs(u-b)<=g,o=Math.abs(h-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,i&&(n.position.top=r._convertPositionTo("relative",{top:u-r.helperProportions.height,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:h,left:0}).top),s&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:c}).left)),f=i||o||s||a,"outer"!==d.snapMode&&(i=Math.abs(u-y)<=g,o=Math.abs(h-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,i&&(n.position.top=r._convertPositionTo("relative",{top:u,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:h-r.helperProportions.height,left:0}).top),s&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left)),!r.snapElements[p].snapping&&(i||o||s||a||f)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[p].item})),r.snapElements[p].snapping=i||o||s||a||f)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,r){var i,o=r.options,s=e.makeArray(e(o.stack)).sort((function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)}));s.length&&(i=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each((function(t){e(this).css("zIndex",i+t)})),this.css("zIndex",i+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,r){var i=e(n.helper),o=r.options;i.css("zIndex")&&(o._zIndex=i.css("zIndex")),i.css("zIndex",o.zIndex)},stop:function(t,n,r){var i=r.options;i._zIndex&&e(n.helper).css("zIndex",i._zIndex)}}),e.ui.draggable})?r.apply(t,i):r)||(e.exports=o)}()},66709:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(87285),n(66177),n(85592),n(26891)],r=function(e){return e.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,n=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof n?n:function(e){return e.is(n)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept="function"==typeof n?n:function(e){return e.is(n)};else if("scope"===t){var r=e.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var r=n||e.ui.ddmanager.current,i=!1;return!(!r||(r.currentItem||r.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===r.options.scope&&n.accept.call(n.element[0],r.currentItem||r.element)&&e.ui.intersect(r,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return i=!0,!1})),!i&&!!this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,r,i){if(!n.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=o+t.helperProportions.width,l=s+t.helperProportions.height,c=n.offset.left,u=n.offset.top,h=c+n.proportions().width,p=u+n.proportions().height;switch(r){case"fit":return c<=o&&a<=h&&u<=s&&l<=p;case"intersect":return c<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<h&&u<s+t.helperProportions.height/2&&l-t.helperProportions.height/2<p;case"pointer":return e(i.pageY,u,n.proportions().height)&&e(i.pageX,c,n.proportions().width);case"touch":return(s>=u&&s<=p||l>=u&&l<=p||s<u&&l>p)&&(o>=c&&o<=h||a>=c&&a<=h||o<c&&a>h);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var r,i,o=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(r=0;r<o.length;r++)if(!(o[r].options.disabled||t&&!o[r].accept.call(o[r].element[0],t.currentItem||t.element))){for(i=0;i<a.length;i++)if(a[i]===o[r].element[0]){o[r].proportions().height=0;continue e}o[r].visible="none"!==o[r].element.css("display"),o[r].visible&&("mousedown"===s&&o[r]._activate.call(o[r],n),o[r].offset=o[r].element.offset(),o[r].proportions({width:o[r].element[0].offsetWidth,height:o[r].element[0].offsetHeight}))}},drop:function(t,n){var r=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,n)&&(r=this._drop.call(this,n)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))})),r},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}))},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,i,o,s=e.ui.intersect(t,this,this.options.tolerance,n),a=!s&&this.isover?"isout":s&&!this.isover?"isover":null;a&&(this.options.greedy&&(i=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===i}))).length&&((r=e(o[0]).droppable("instance")).greedyChild="isover"===a)),r&&"isover"===a&&(r.isover=!1,r.isout=!0,r._out.call(r,n)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,n),r&&"isout"===a&&(r.isout=!1,r.isover=!0,r._over.call(r,n)))}}))},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable},void 0===(o=r.apply(t,i))||(e.exports=o)}()},91707:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(66177),n(42064),n(31624),n(85592),n(26891)],r=function(e){return e.widget("ui.resizable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var r=n&&"left"===n?"scrollLeft":"scrollTop",i=!1;if(t[r]>0)return!0;try{t[r]=1,i=t[r]>0,t[r]=0}catch(e){}return i},_create:function(){var t,n=this.options,r=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",(function(){n.disabled||(r._removeClass("ui-resizable-autohide"),r._handles.show())})).on("mouseleave",(function(){n.disabled||r.resizing||(r._addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,n,r,i,o,s=this.options,a=this;if(this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),r=this.handles.split(","),this.handles={},n=0;n<r.length;n++)i="ui-resizable-"+(t=String.prototype.trim.call(r[n])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+i),o.css({zIndex:s.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var n,r,i,o;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=e(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth(),i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(i,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var n,r,i=!1;for(n in this.handles)((r=e(this.handles[n])[0])===t.target||e.contains(r,t.target))&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var n,r,i,o=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),r=this._num(this.helper.css("top")),o.containment&&(n+=e(o.containment).scrollLeft()||0,r+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:n,top:r},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===i?this.axis+"-resize":i),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,r,i=this.originalMousePosition,o=this.axis,s=t.pageX-i.left||0,a=t.pageY-i.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[t,s,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var n,r,i,o,s,a,l,c=this.options,u=this;return this._helper&&(i=(r=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:u.sizeDiff.height,o=r?0:u.sizeDiff.width,s={width:u.helper.width()-o,height:u.helper.height()-i},a=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(e.extend(s,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,r,i,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),r>o.minHeight&&(o.minHeight=r),n<o.maxWidth&&(o.maxWidth=n),i<o.maxHeight&&(o.maxHeight=i)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,r=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===r&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===r&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,r=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,i=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,s=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),s&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),i&&(e.height=t.maxHeight),o&&c&&(e.left=a-t.minWidth),r&&c&&(e.left=a-t.maxWidth),s&&u&&(e.top=l-t.minHeight),i&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],r=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],i=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(r[t])||0,n[t]+=parseFloat(i[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize;return{top:this.originalPosition.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},sw:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,r]))},ne:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},nw:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,r]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),r=n.options,i=n._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),s=o&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,l={width:n.size.width-a,height:n.size.height-s},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&e(i[0]).css({width:r.width,height:r.height}),n._updateCache(r),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,r,i,o,s,a,l=e(this).resizable("instance"),c=l.options,u=l.element,h=c.containment,p=h instanceof e?h.get(0):/parent/.test(h)?u.parent().get(0):h;p&&(l.containerElement=e(p),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(p),n=[],e(["Top","Right","Left","Bottom"]).each((function(e,r){n[e]=l._num(t.css("padding"+r))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},r=l.containerOffset,i=l.containerSize.height,o=l.containerSize.width,s=l._hasScroll(p,"left")?p.scrollWidth:o,a=l._hasScroll(p)?p.scrollHeight:i,l.parentData={element:p,left:r.left,top:r.top,width:s,height:a}))},resize:function(t){var n,r,i,o,s=e(this).resizable("instance"),a=s.options,l=s.containerOffset,c=s.position,u=s._aspectRatio||t.shiftKey,h={top:0,left:0},p=s.containerElement,f=!0;p[0]!==document&&/static/.test(p.css("position"))&&(h=l),c.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-h.left),u&&(s.size.height=s.size.width/s.aspectRatio,f=!1),s.position.left=a.helper?l.left:0),c.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),u&&(s.size.width=s.size.height*s.aspectRatio,f=!1),s.position.top=s._helper?l.top:0),i=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),i&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),n=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-h.left:s.offset.left-l.left)),r=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-h.top:s.offset.top-l.top)),n+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-n,u&&(s.size.height=s.size.width/s.aspectRatio,f=!1)),r+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-r,u&&(s.size.width=s.size.height*s.aspectRatio,f=!1)),f||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,r=t.containerOffset,i=t.containerPosition,o=t.containerElement,s=e(t.helper),a=s.offset(),l=s.outerWidth()-t.sizeDiff.width,c=s.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-i.left-r.left,width:l,height:c}),t._helper&&!n.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-i.left-r.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,n){var r=e(this).resizable("instance"),i=r.options,o=r.originalSize,s=r.originalPosition,a={height:r.size.height-o.height||0,width:r.size.width-o.width||0,top:r.position.top-s.top||0,left:r.position.left-s.left||0};e(i.alsoResize).each((function(){var t=e(this),r=e(this).data("ui-resizable-alsoresize"),i={},o=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var n=(r[t]||0)+(a[t]||0);n&&n>=0&&(i[t]=n||null)})),t.css(i)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),r=n.options,i=n.size,o=n.originalSize,s=n.originalPosition,a=n.axis,l="number"==typeof r.grid?[r.grid,r.grid]:r.grid,c=l[0]||1,u=l[1]||1,h=Math.round((i.width-o.width)/c)*c,p=Math.round((i.height-o.height)/u)*u,f=o.width+h,d=o.height+p,g=r.maxWidth&&r.maxWidth<f,m=r.maxHeight&&r.maxHeight<d,v=r.minWidth&&r.minWidth>f,y=r.minHeight&&r.minHeight>d;r.grid=l,v&&(f+=c),y&&(d+=u),g&&(f-=c),m&&(d-=u),/^(se|s|e)$/.test(a)?(n.size.width=f,n.size.height=d):/^(ne)$/.test(a)?(n.size.width=f,n.size.height=d,n.position.top=s.top-p):/^(sw)$/.test(a)?(n.size.width=f,n.size.height=d,n.position.left=s.left-h):((d-u<=0||f-c<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),d-u>0?(n.size.height=d,n.position.top=s.top-p):(d=u-t.height,n.size.height=d,n.position.top=s.top+o.height-d),f-c>0?(n.size.width=f,n.position.left=s.left-h):(f=c-t.width,n.size.width=f,n.position.left=s.left+o.width-f))}}),e.ui.resizable},void 0===(o=r.apply(t,i))||(e.exports=o)}()},62526:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755),n(66177),n(26400),n(21870),n(40464),n(85592),n(26891)],r=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var r=null,i=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return r=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(r=e(t.target)),!r||this.options.handle&&!n&&(e(this.options.handle,r).find("*").addBack().each((function(){this===t.target&&(i=!0)})),!i)||(this.currentItem=r,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,n,r){var i,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",s.cursor),this.storedStylesheet=e("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),n},_mouseDrag:function(t){var n,r,i,o,s=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(i=(r=this.items[n]).item[0],(o=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===i||e.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(t,r),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var r=this,i=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){r._clear(t)}))}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},e(n).each((function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))})),!r.length&&t.key&&r.push(t.key+"="),r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},n.each((function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")})),r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=e.left,s=o+e.width,a=e.top,l=a+e.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||r+c>a&&r+c<l,p="y"===this.options.axis||t+u>o&&t+u<s,f=h&&p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?f:o<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,n,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!r||!i)&&(t=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),r=this.dragDirection.vertical,i=this.dragDirection.horizontal;return this.floating&&i?"right"===i&&n||"left"===i&&!n:r&&("down"===r&&t||"up"===r&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,r,i,o,s=[],a=[],l=this._connectWith();if(l&&t)for(n=l.length-1;n>=0;n--)for(r=(i=e(l[n],this.document[0])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){s.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=a.length-1;n>=0;n--)a[n][0].each(c);return e(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var n,r,i,o,s,a,l,c,u=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(n=p.length-1;n>=0;n--)for(r=(i=e(p[n],this.document[0])).length-1;r>=0;r--)(o=e.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(n=h.length-1;n>=0;n--)for(s=h[n][1],r=0,c=(a=h[n][0]).length;r<c;r++)(l=e(a[r])).data(this.widgetName+"-item",s),u.push({item:l,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var n,r,i,o;for(n=this.items.length-1;n>=0;n--)r=this.items[n],this.currentContainer&&r.instance!==this.currentContainer&&r.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item,t||(r.width=i.outerWidth(),r.height=i.outerHeight()),o=i.offset(),r.left=o.left,r.top=o.top)},refreshPositions:function(e){var t,n;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)n=this.containers[t].element.offset(),this.containers[t].containerCache.left=n.left,this.containers[t].containerCache.top=n.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var n,r,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,r=t.currentItem[0].nodeName.toLowerCase(),i.placeholder={element:function(){var i=e("<"+r+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),"tbody"===r?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(i)):"tr"===r?t._createTrPlaceholder(t.currentItem,i):"img"===r&&i.attr("src",t.currentItem.attr("src")),n||i.css("visibility","hidden"),i},update:function(e,o){n&&!i.forcePlaceholderSize||(o.height()&&(!i.forcePlaceholderSize||"tbody"!==r&&"tr"!==r)||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var r=this;t.children().each((function(){e("<td>&#160;</td>",r.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(t){var n,r,i,o,s,a,l,c,u,h,p=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(p&&e.contains(this.containers[n].element[0],p.element[0]))continue;p=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(i=1e4,o=null,s=(u=p.floating||this._isFloating(this.currentItem))?"left":"top",a=u?"width":"height",h=u?"pageX":"pageY",r=this.items.length-1;r>=0;r--)e.contains(this.containers[f].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(l=this.items[r].item.offset()[s],c=!1,t[h]-l>this.items[r][a]/2&&(c=!0),Math.abs(t[h]-l)<i&&(i=Math.abs(t[h]-l),o=this.items[r],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var n=this.options,r="function"==typeof n.helper?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||this.appendTo[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),r[0].style.width&&!n.forceHelperSize||r.width(this.currentItem.width()),r[0].style.height&&!n.forceHelperSize||r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=e(i.containment)[0],n=e(i.containment).offset(),r="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(r?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var r="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*r}},_generatePosition:function(t){var n,r,i=this.options,o=t.pageX,s=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay((function(){i===this.counter&&this.refreshPositions(!r)}))},_clear:function(e,t){this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function i(e,t,n){return function(r){n._trigger(e,r,t._uiHash(t))}}for(this.fromOutside&&!t&&r.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(r.push((function(e){this._trigger("remove",e,this._uiHash())})),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<r.length;n++)r[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}})},void 0===(o=r.apply(t,i))||(e.exports=o)}()},7023:function(e,t,n){var r,i,o;o=this,r=[n(19755)],void 0===(i=function(e){return o.returnExportsGlobal=function(e){"use strict";var t,n,r,i,o,s,a,l;t=function(){function t(e){this.$inputor=e,this.domInputor=this.$inputor[0]}return t.prototype.setPos=function(e){var t,n,r,i;return(i=a.getSelection())&&(r=0,n=!1,(t=function(e,o){var a,l,c,u,h,p;for(p=[],c=0,u=(h=o.childNodes).length;c<u&&(a=h[c],!n);c++)if(3===a.nodeType){if(r+a.length>=e){n=!0,(l=s.createRange()).setStart(a,e-r),i.removeAllRanges(),i.addRange(l);break}p.push(r+=a.length)}else p.push(t(e,a));return p})(e,this.domInputor)),this.domInputor},t.prototype.getIEPosition=function(){return this.getPosition()},t.prototype.getPosition=function(){var e,t;return t=this.getOffset(),e=this.$inputor.offset(),t.left-=e.left,t.top-=e.top,t},t.prototype.getOldIEPos=function(){var e,t;return t=s.selection.createRange(),(e=s.body.createTextRange()).moveToElementText(this.domInputor),e.setEndPoint("EndToEnd",t),e.text.length},t.prototype.getPos=function(){var e,t,n;return(n=this.range())?((e=n.cloneRange()).selectNodeContents(this.domInputor),e.setEnd(n.endContainer,n.endOffset),t=e.toString().length,e.detach(),t):s.selection?this.getOldIEPos():void 0},t.prototype.getOldIEOffset=function(){var e,t;return(e=s.selection.createRange().duplicate()).moveStart("character",-1),{height:(t=e.getBoundingClientRect()).bottom-t.top,left:t.left,top:t.top}},t.prototype.getOffset=function(t){var n,r,i,o,l;return a.getSelection&&(i=this.range())?(i.endOffset-1>0&&i.endContainer!==this.domInputor&&((n=i.cloneRange()).setStart(i.endContainer,i.endOffset-1),n.setEnd(i.endContainer,i.endOffset),r={height:(o=n.getBoundingClientRect()).height,left:o.left+o.width,top:o.top},n.detach()),r&&0!==(null!=r?r.height:void 0)||(n=i.cloneRange(),l=e(s.createTextNode("|")),n.insertNode(l[0]),n.selectNode(l[0]),r={height:(o=n.getBoundingClientRect()).height,left:o.left,top:o.top},l.remove(),n.detach())):s.selection&&(r=this.getOldIEOffset()),r&&(r.top+=e(a).scrollTop(),r.left+=e(a).scrollLeft()),r},t.prototype.range=function(){var e;if(a.getSelection)return(e=a.getSelection()).rangeCount>0?e.getRangeAt(0):null},t}(),n=function(){function t(e){this.$inputor=e,this.domInputor=this.$inputor[0]}return t.prototype.getIEPos=function(){var e,t,n,r,i,o;return t=this.domInputor,r=0,(i=s.selection.createRange())&&i.parentElement()===t&&(n=t.value.replace(/\r\n/g,"\n").length,(o=t.createTextRange()).moveToBookmark(i.getBookmark()),(e=t.createTextRange()).collapse(!1),r=o.compareEndPoints("StartToEnd",e)>-1?n:-o.moveStart("character",-n)),r},t.prototype.getPos=function(){return s.selection?this.getIEPos():this.domInputor.selectionStart},t.prototype.setPos=function(e){var t,n;return t=this.domInputor,s.selection?((n=t.createTextRange()).move("character",e),n.select()):t.setSelectionRange&&t.setSelectionRange(e,e),t},t.prototype.getIEOffset=function(e){var t;return t=this.domInputor.createTextRange(),e||(e=this.getPos()),t.move("character",e),{left:t.boundingLeft,top:t.boundingTop,height:t.boundingHeight}},t.prototype.getOffset=function(t){var n,r,i;return n=this.$inputor,s.selection?((r=this.getIEOffset(t)).top+=e(a).scrollTop()+n.scrollTop(),r.left+=e(a).scrollLeft()+n.scrollLeft(),r):(r=n.offset(),i=this.getPosition(t),{left:r.left+i.left-n.scrollLeft(),top:r.top+i.top-n.scrollTop(),height:i.height})},t.prototype.getPosition=function(e){var t,n,i,o,s;return t=this.$inputor,i=function(e){return e=e.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>"),/firefox/i.test(navigator.userAgent)&&(e=e.replace(/\s/g,"&nbsp;")),e},void 0===e&&(e=this.getPos()),s=t.val().slice(0,e),n=t.val().slice(e),o="<span style='position: relative; display: inline;'>"+i(s)+"</span>",o+="<span id='caret' style='position: relative; display: inline;'>|</span>",o+="<span style='position: relative; display: inline;'>"+i(n)+"</span>",new r(t).create(o).rect()},t.prototype.getIEPosition=function(e){var t,n;return n=this.getIEOffset(e),t=this.$inputor.offset(),{left:n.left-t.left,top:n.top-t.top,height:n.height}},t}(),r=function(){function t(e){this.$inputor=e}return t.prototype.css_attr=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],t.prototype.mirrorCss=function(){var t,n=this;return t={position:"absolute",left:-9999,top:0,zIndex:-2e4},"TEXTAREA"===this.$inputor.prop("tagName")&&this.css_attr.push("width"),e.each(this.css_attr,(function(e,r){return t[r]=n.$inputor.css(r)})),t},t.prototype.create=function(t){return this.$mirror=e("<div></div>"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(t),this.$inputor.after(this.$mirror),this},t.prototype.rect=function(){var e,t,n;return n={left:(t=(e=this.$mirror.find("#caret")).position()).left,top:t.top,height:e.height()},this.$mirror.remove(),n},t}(),i={contentEditable:function(e){return!(!e[0].contentEditable||"true"!==e[0].contentEditable)}},o={pos:function(e){return e||0===e?this.setPos(e):this.getPos()},position:function(e){return s.selection?this.getIEPosition(e):this.getPosition(e)},offset:function(e){return this.getOffset(e)}},s=null,a=null,l=function(e){var t;return(t=null!=e?e.iframe:void 0)?(a=t.contentWindow,s=t.contentDocument||a.document):(a=window,s=document)},e.fn.caret=function(r,s,a){var c;return o[r]?(e.isPlainObject(s)?(l(s),s=void 0):l(a),c=i.contentEditable(this)?new t(this):new n(this),o[r].apply(c,[s])):e.error("Method "+r+" does not exist on jQuery.caret")},e.fn.caret.EditableCaret=t,e.fn.caret.InputCaret=n,e.fn.caret.Utils=i,e.fn.caret.apis=o}(e)}.apply(t,r))||(e.exports=i)},91272:function(e,t,n){!function(e){"use strict";var t,r;String.prototype.codePointAt||(t=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),r=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,r=e?Number(e):0;if(r!=r&&(r=0),!(r<0||n<=r)){var i,o=t.charCodeAt(r);return 55296<=o&&o<=56319&&r+1<n&&56320<=(i=t.charCodeAt(r+1))&&i<=57343?1024*(o-55296)+i-56320+65536:o}},t?t(String.prototype,"codePointAt",{value:r,configurable:!0,writable:!0}):String.prototype.codePointAt=r);function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var s=new i,a=new i,l=new Uint8Array(30),c=new Uint16Array(30),u=new Uint8Array(30),h=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new i,d=new Uint8Array(320);function g(e,t,n,r){var i,o;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(o=r,i=0;i<30;++i)t[i]=o,o+=1<<e[i]}var m=new Uint16Array(16);function v(e,t,n,r){var i,o;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(i=o=e.table[0]=0;i<16;++i)m[i]=o,o+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[m[t[n+i]]++]=i)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function b(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var n=0,r=0,i=0,o=e.tag;r=2*r+(1&o),o>>>=1,++i,n+=t.table[i],0<=(r-=t.table[i]););return e.tag=o,e.bitcount-=i,t.trans[n+r]}function w(e,t,n){var r,i,o,s,a,l;for(r=b(e,5,257),i=b(e,5,1),o=b(e,4,4),s=0;s<19;++s)d[s]=0;for(s=0;s<o;++s){var c=b(e,3,0);d[p[s]]=c}for(v(f,d,0,19),a=0;a<r+i;){var u=x(e,f);switch(u){case 16:var h=d[a-1];for(l=b(e,2,3);l;--l)d[a++]=h;break;case 17:for(l=b(e,3,3);l;--l)d[a++]=0;break;case 18:for(l=b(e,7,11);l;--l)d[a++]=0;break;default:d[a++]=u}}v(t,d,0,r),v(n,d,r,i)}function S(e,t,n){for(;;){var r,i,o,s,a=x(e,t);if(256===a)return 0;if(a<256)e.dest[e.destLen++]=a;else for(r=b(e,l[a-=257],c[a]),i=x(e,n),s=o=e.destLen-b(e,u[i],h[i]);s<o+r;++s)e.dest[e.destLen++]=e.dest[s]}}function _(e){for(var t,n;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(s,a),g(l,c,4,3),g(u,h,2,1),l[28]=0,c[28]=258;var C=function(e,t){var n,r,i=new o(e,t);do{switch(n=y(i),b(i,2,0)){case 0:r=_(i);break;case 1:r=S(i,s,a);break;case 2:w(i,i.ltree,i.dtree),r=S(i,i.ltree,i.dtree);break;default:r=-3}if(0!==r)throw new Error("Data error")}while(!n);return i.destLen<i.dest.length?"function"==typeof i.dest.slice?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest};function T(e,t,n,r,i){return Math.pow(1-i,3)*e+3*Math.pow(1-i,2)*i*t+3*(1-i)*Math.pow(i,2)*n+Math.pow(i,3)*r}function k(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function E(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function O(e){throw new Error(e)}function P(e,t){e||O(t)}k.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},k.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},k.prototype.addX=function(e){this.addPoint(e,null)},k.prototype.addY=function(e){this.addPoint(null,e)},k.prototype.addBezier=function(e,t,n,r,i,o,s,a){var l=this,c=[e,t],u=[n,r],h=[i,o],p=[s,a];this.addPoint(e,t),this.addPoint(s,a);for(var f=0;f<=1;f++){var d=6*c[f]-12*u[f]+6*h[f],g=-3*c[f]+9*u[f]-9*h[f]+3*p[f],m=3*u[f]-3*c[f];if(0!==g){var v=Math.pow(d,2)-4*m*g;if(!(v<0)){var y=(-d+Math.sqrt(v))/(2*g);0<y&&y<1&&(0===f&&l.addX(T(c[f],u[f],h[f],p[f],y)),1===f&&l.addY(T(c[f],u[f],h[f],p[f],y)));var b=(-d-Math.sqrt(v))/(2*g);0<b&&b<1&&(0===f&&l.addX(T(c[f],u[f],h[f],p[f],b)),1===f&&l.addY(T(c[f],u[f],h[f],p[f],b)))}}else{if(0===d)continue;var x=-m/d;0<x&&x<1&&(0===f&&l.addX(T(c[f],u[f],h[f],p[f],x)),1===f&&l.addY(T(c[f],u[f],h[f],p[f],x)))}}},k.prototype.addQuad=function(e,t,n,r,i,o){var s=e+2/3*(n-e),a=t+2/3*(r-t),l=s+1/3*(i-e),c=a+1/3*(o-t);this.addBezier(e,t,s,a,l,c,i,o)},E.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},E.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},E.prototype.curveTo=E.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:i,y:o})},E.prototype.quadTo=E.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},E.prototype.close=E.prototype.closePath=function(){this.commands.push({type:"Z"})},E.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof k){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},E.prototype.getBoundingBox=function(){for(var e=new k,t=0,n=0,r=0,i=0,o=0;o<this.commands.length;o++){var s=this.commands[o];switch(s.type){case"M":e.addPoint(s.x,s.y),t=r=s.x,n=i=s.y;break;case"L":e.addPoint(s.x,s.y),r=s.x,i=s.y;break;case"Q":e.addQuad(r,i,s.x1,s.y1,s.x,s.y),r=s.x,i=s.y;break;case"C":e.addBezier(r,i,s.x1,s.y1,s.x2,s.y2,s.x,s.y),r=s.x,i=s.y;break;case"Z":r=t,i=n;break;default:throw new Error("Unexpected path command "+s.type)}}return e.isEmpty()&&e.addPoint(0,0),e},E.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},E.prototype.toPathData=function(e){function t(){for(var t,n=arguments,r="",i=0;i<arguments.length;i+=1){var o=n[i];0<=o&&0<i&&(r+=" "),r+=(t=o,Math.round(t)===t?""+Math.round(t):t.toFixed(e))}return r}e=void 0!==e?e:2;for(var n="",r=0;r<this.commands.length;r+=1){var i=this.commands[r];"M"===i.type?n+="M"+t(i.x,i.y):"L"===i.type?n+="L"+t(i.x,i.y):"C"===i.type?n+="C"+t(i.x1,i.y1,i.x2,i.y2,i.x,i.y):"Q"===i.type?n+="Q"+t(i.x1,i.y1,i.x,i.y):"Z"===i.type&&(n+="Z")}return n},E.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+"/>"},E.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n};var A={fail:O,argument:P,assert:P},R=2147483648,I={},U={},D={};function L(e){return function(){return e}}U.BYTE=function(e){return A.argument(0<=e&&e<=255,"Byte value should be between 0 and 255."),[e]},D.BYTE=L(1),U.CHAR=function(e){return[e.charCodeAt(0)]},D.CHAR=L(1),U.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},D.CHARARRAY=function(e){return e.length},U.USHORT=function(e){return[e>>8&255,255&e]},D.USHORT=L(2),U.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},D.SHORT=L(2),U.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},D.UINT24=L(3),U.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},D.ULONG=L(4),U.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},D.LONG=L(4),U.FIXED=U.ULONG,D.FIXED=D.ULONG,U.FWORD=U.SHORT,D.FWORD=D.SHORT,U.UFWORD=U.USHORT,D.UFWORD=D.USHORT,U.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},D.LONGDATETIME=L(8),U.TAG=function(e){return A.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},D.TAG=L(4),U.Card8=U.BYTE,D.Card8=D.BYTE,U.Card16=U.USHORT,D.Card16=D.USHORT,U.OffSize=U.BYTE,D.OffSize=D.BYTE,U.SID=U.USHORT,D.SID=D.USHORT,U.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?U.NUMBER16(e):U.NUMBER32(e)},D.NUMBER=function(e){return U.NUMBER(e).length},U.NUMBER16=function(e){return[28,e>>8&255,255&e]},D.NUMBER16=L(3),U.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},D.NUMBER32=L(5),U.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var i="",o=0,s=t.length;o<s;o+=1){var a=t[o];i+="e"===a?"-"===t[++o]?"c":"b":"."===a?"a":"-"===a?"e":a}for(var l=[30],c=0,u=(i+=1&i.length?"f":"ff").length;c<u;c+=2)l.push(parseInt(i.substr(c,2),16));return l},D.REAL=function(e){return U.REAL(e).length},U.NAME=U.CHARARRAY,D.NAME=D.CHARARRAY,U.STRING=U.CHARARRAY,D.STRING=D.CHARARRAY,I.UTF8=function(e,t,n){for(var r=[],i=n,o=0;o<i;o++,t+=1)r[o]=e.getUint8(t);return String.fromCharCode.apply(null,r)},I.UTF16=function(e,t,n){for(var r=[],i=n/2,o=0;o<i;o++,t+=2)r[o]=e.getUint16(t);return String.fromCharCode.apply(null,r)},U.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=255&r}return t},D.UTF16=function(e){return 2*e.length};var M={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};I.MACSTRING=function(e,t,n,r){var i=M[r];if(void 0!==i){for(var o="",s=0;s<n;s++){var a=e.getUint8(t+s);o+=a<=127?String.fromCharCode(a):i[127&a]}return o}};var N,B="function"==typeof WeakMap&&new WeakMap;function F(e){return-128<=e&&e<=127}function z(e,t,n){for(var r=0,i=e.length;t<i&&r<64&&0===e[t];)++t,++r;return n.push(128|r-1),t}function H(e,t,n){for(var r=0,i=e.length,o=t;o<i&&r<64;){var s=e[o];if(!F(s))break;if(0===s&&o+1<i&&0===e[o+1])break;++o,++r}n.push(r-1);for(var a=t;a<o;++a)n.push(e[a]+256&255);return o}function G(e,t,n){for(var r=0,i=e.length,o=t;o<i&&r<64;){var s=e[o];if(0===s)break;if(F(s)&&o+1<i&&F(e[o+1]))break;++o,++r}n.push(64|r-1);for(var a=t;a<o;++a){var l=e[a];n.push(l+65536>>8&255,l+256&255)}return o}U.MACSTRING=function(e,t){var n=function(e){if(!N)for(var t in N={},M)N[t]=new String(t);var n=N[e];if(void 0!==n){if(B){var r=B.get(n);if(void 0!==r)return r}var i=M[e];if(void 0!==i){for(var o={},s=0;s<i.length;s++)o[i.charCodeAt(s)]=s+128;return B&&B.set(n,o),o}}}(t);if(void 0!==n){for(var r=[],i=0;i<e.length;i++){var o=e.charCodeAt(i);if(128<=o&&void 0===(o=n[o]))return;r[i]=o}return r}},D.MACSTRING=function(e,t){var n=U.MACSTRING(e,t);return void 0!==n?n.length:0},U.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=0===r?z(e,t,n):-128<=r&&r<=127?H(e,t,n):G(e,t,n)}return n},U.INDEX=function(e){for(var t=1,n=[t],r=[],i=0;i<e.length;i+=1){var o=U.OBJECT(e[i]);Array.prototype.push.apply(r,o),t+=o.length,n.push(t)}if(0===r.length)return[0,0];for(var s=[],a=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,U.BYTE,U.USHORT,U.UINT24,U.ULONG][a],c=0;c<n.length;c+=1){var u=l(n[c]);Array.prototype.push.apply(s,u)}return Array.prototype.concat(U.Card16(e.length),U.OffSize(a),s,r)},D.INDEX=function(e){return U.INDEX(e).length},U.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var o=parseInt(n[i],0),s=e[o];t=(t=t.concat(U.OPERAND(s.value,s.type))).concat(U.OPERATOR(o))}return t},D.DICT=function(e){return U.DICT(e).length},U.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},U.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)A.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(U.OPERAND(e[r],t[r]));else if("SID"===t)n=n.concat(U.NUMBER(e));else if("offset"===t)n=n.concat(U.NUMBER32(e));else if("number"===t)n=n.concat(U.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);n=n.concat(U.REAL(e))}return n},U.OP=U.BYTE,D.OP=D.BYTE;var $="function"==typeof WeakMap&&new WeakMap;function W(e,t,n){for(var r=0;r<t.length;r+=1){var i=t[r];this[i.name]=i.value}if(this.tableName=e,this.fields=t,n)for(var o=Object.keys(n),s=0;s<o.length;s+=1){var a=o[s],l=n[a];void 0!==this[a]&&(this[a]=l)}}function j(e,t,n){void 0===n&&(n=t.length);var r=new Array(t.length+1);r[0]={name:e+"Count",type:"USHORT",value:n};for(var i=0;i<t.length;i++)r[i+1]={name:e+i,type:"USHORT",value:t[i]};return r}function q(e,t,n){var r=t.length,i=new Array(r+1);i[0]={name:e+"Count",type:"USHORT",value:r};for(var o=0;o<r;o++)i[o+1]={name:e+o,type:"TABLE",value:n(t[o],o)};return i}function Y(e,t,n){var r=t.length,i=[];i[0]={name:e+"Count",type:"USHORT",value:r};for(var o=0;o<r;o++)i=i.concat(n(t[o],o));return i}function X(e){1===e.format?W.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(j("glyph",e.glyphs))):A.assert(!1,"Can't create coverage table format 2 yet.")}function V(e){W.call(this,"scriptListTable",Y("scriptRecord",e,(function(e,t){var n=e.script,r=n.defaultLangSys;return A.assert(!!r,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new W("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new W("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(j("featureIndex",r.featureIndexes)))}].concat(Y("langSys",n.langSysRecords,(function(e,t){var n=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new W("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(j("featureIndex",n.featureIndexes)))}]}))))}]})))}function K(e){W.call(this,"featureListTable",Y("featureRecord",e,(function(e,t){var n=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new W("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(j("lookupListIndex",n.lookupListIndexes)))}]})))}function Z(e,t){W.call(this,"lookupListTable",q("lookup",e,(function(e){var n=t[e.lookupType];return A.assert(!!n,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new W("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(q("subtable",e.subtables,n)))})))}U.CHARSTRING=function(e){if($){var t=$.get(e);if(void 0!==t)return t}for(var n=[],r=e.length,i=0;i<r;i+=1){var o=e[i];n=n.concat(U[o.type](o.value))}return $&&$.set(e,n),n},D.CHARSTRING=function(e){return U.CHARSTRING(e).length},U.OBJECT=function(e){var t=U[e.type];return A.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},D.OBJECT=function(e){var t=D[e.type];return A.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},U.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],i=[],o=0;o<n;o+=1){var s=e.fields[o],a=U[s.type];A.argument(void 0!==a,"No encoding function for field type "+s.type+" ("+s.name+")");var l=e[s.name];void 0===l&&(l=s.value);var c=a(l);"TABLE"===s.type?(i.push(t.length),t=t.concat([0,0]),r.push(c)):t=t.concat(c)}for(var u=0;u<r.length;u+=1){var h=i[u],p=t.length;A.argument(p<65536,"Table "+e.tableName+" too big."),t[h]=p>>8,t[h+1]=255&p,t=t.concat(r[u])}return t},D.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var i=e.fields[r],o=D[i.type];A.argument(void 0!==o,"No sizeOf function for field type "+i.type+" ("+i.name+")");var s=e[i.name];void 0===s&&(s=i.value),t+=o(s),"TABLE"===i.type&&(t+=2)}return t},U.RECORD=U.TABLE,D.RECORD=D.TABLE,U.LITERAL=function(e){return e},D.LITERAL=function(e){return e.length},W.prototype.encode=function(){return U.TABLE(this)},W.prototype.sizeOf=function(){return D.TABLE(this)};var Q={Table:W,Record:W,Coverage:(X.prototype=Object.create(W.prototype)).constructor=X,ScriptList:(V.prototype=Object.create(W.prototype)).constructor=V,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(Z.prototype=Object.create(W.prototype)).constructor=Z,ushortList:j,tableList:q,recordList:Y};function J(e,t){return e.getUint8(t)}function ee(e,t){return e.getUint16(t,!1)}function te(e,t){return e.getUint32(t,!1)}function ne(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var re={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ie(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ie.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ie.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ie.prototype.parseCard8=ie.prototype.parseByte,ie.prototype.parseCard16=ie.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ie.prototype.parseSID=ie.prototype.parseUShort,ie.prototype.parseOffset16=ie.prototype.parseUShort,ie.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ie.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ie.prototype.parseOffset32=ie.prototype.parseULong=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ie.prototype.parseFixed=function(){var e=ne(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ie.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=e;for(var i=0;i<e;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},ie.prototype.parseTag=function(){return this.parseString(4)},ie.prototype.parseLongDateTime=function(){var e=te(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},ie.prototype.parseVersion=function(e){var t=ee(this.data,this.offset+this.relativeOffset),n=ee(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+n/e/10},ie.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=re[e]*t},ie.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint32(r),r+=4;return this.relativeOffset+=4*e,t},ie.prototype.parseOffset16List=ie.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint16(r),r+=2;return this.relativeOffset+=2*e,t},ie.prototype.parseShortList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getInt16(r),r+=2;return this.relativeOffset+=2*e,t},ie.prototype.parseByteList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint8(r++);return this.relativeOffset+=e,t},ie.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ie.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ie.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=Object.keys(t),i=0;i<e;i++){for(var o={},s=0;s<r.length;s++){var a=r[s],l=t[a];o[a]=l.call(this)}n[i]=o}return n},ie.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=Object.keys(t),i=0;i<e;i++){for(var o={},s=0;s<r.length;s++){var a=r[s],l=t[a];o[a]=l.call(this)}n[i]=o}return n},ie.prototype.parseStruct=function(e){if("function"==typeof e)return e.call(this);for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r],o=e[i];n[i]=o.call(this)}return n},ie.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},ie.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),n=new Array(t),r=0;r<t;r++)n[r]=this.parseValueRecord(e);return n},ie.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new ie(this.data,this.offset+t).parseStruct(e)},ie.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new ie(this.data,this.offset+t).parseStruct(e)},ie.prototype.parseListOfLists=function(e){for(var t=this,n=this.parseOffset16List(),r=n.length,i=this.relativeOffset,o=new Array(r),s=0;s<r;s++){var a=n[s];if(0!==a)if(t.relativeOffset=a,e){for(var l=t.parseOffset16List(),c=new Array(l.length),u=0;u<l.length;u++)t.relativeOffset=a+l[u],c[u]=e.call(t);o[s]=c}else o[s]=t.parseUShortList();else o[s]=void 0}return this.relativeOffset=i,o},ie.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(n)};if(2!==t)throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.");for(var r=new Array(n),i=0;i<n;i++)r[i]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:r}},ie.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:ie.uShort,end:ie.uShort,classId:ie.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ie.list=function(e,t){return function(){return this.parseList(e,t)}},ie.list32=function(e,t){return function(){return this.parseList32(e,t)}},ie.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ie.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ie.pointer=function(e){return function(){return this.parsePointer(e)}},ie.pointer32=function(e){return function(){return this.parsePointer32(e)}},ie.tag=ie.prototype.parseTag,ie.byte=ie.prototype.parseByte,ie.uShort=ie.offset16=ie.prototype.parseUShort,ie.uShortList=ie.prototype.parseUShortList,ie.uLong=ie.offset32=ie.prototype.parseULong,ie.uLongList=ie.prototype.parseULongList,ie.struct=ie.prototype.parseStruct,ie.coverage=ie.prototype.parseCoverage,ie.classDef=ie.prototype.parseClassDef;var oe={reserved:ie.uShort,reqFeatureIndex:ie.uShort,featureIndexes:ie.uShortList};ie.prototype.parseScriptList=function(){return this.parsePointer(ie.recordList({tag:ie.tag,script:ie.pointer({defaultLangSys:ie.pointer(oe),langSysRecords:ie.recordList({tag:ie.tag,langSys:ie.pointer(oe)})})}))||[]},ie.prototype.parseFeatureList=function(){return this.parsePointer(ie.recordList({tag:ie.tag,feature:ie.pointer({featureParams:ie.offset16,lookupListIndexes:ie.uShortList})}))||[]},ie.prototype.parseLookupList=function(e){return this.parsePointer(ie.list(ie.pointer((function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var n=this.parseUShort(),r=16&n;return{lookupType:t,lookupFlag:n,subtables:this.parseList(ie.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}}))))||[]},ie.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){var e=this.parseUShort(),t=this.parseUShort();return A.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:ie.offset32,featureTableSubstitutionOffset:ie.offset32})}))||[]};var se={getByte:J,getCard8:J,getUShort:ee,getCard16:ee,getShort:function(e,t){return e.getInt16(t,!1)},getULong:te,getFixed:ne,getTag:function(e,t){for(var n="",r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},getOffset:function(e,t,n){for(var r=0,i=0;i<n;i+=1)r<<=8,r+=e.getUint8(t+i);return r},getBytes:function(e,t,n){for(var r=[],i=t;i<n;i+=1)r.push(e.getUint8(i));return r},bytesToString:function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t},Parser:ie},ae=function(e,t){var n={};n.version=se.getUShort(e,t),A.argument(0===n.version,"cmap table version should be 0."),n.numTables=se.getUShort(e,t+2);for(var r=-1,i=n.numTables-1;0<=i;i-=1){var o=se.getUShort(e,t+4+8*i),s=se.getUShort(e,t+4+8*i+2);if(3===o&&(0===s||1===s||10===s)||0===o&&(0===s||1===s||2===s||3===s||4===s)){r=se.getULong(e,t+4+8*i+4);break}}if(-1===r)throw new Error("No valid cmap sub-tables found.");var a=new se.Parser(e,t+r);if(n.format=a.parseUShort(),12===n.format)!function(e,t){var n;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var i=t.parseULong(),o=t.parseULong(),s=t.parseULong(),a=i;a<=o;a+=1)e.glyphIndexMap[a]=s,s++}(n,a);else{if(4!==n.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");!function(e,t,n,r,i){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var s=new se.Parser(n,r+i+14),a=new se.Parser(n,r+i+16+2*o),l=new se.Parser(n,r+i+16+4*o),c=new se.Parser(n,r+i+16+6*o),u=r+i+16+8*o,h=0;h<o-1;h+=1)for(var p=void 0,f=s.parseUShort(),d=a.parseUShort(),g=l.parseShort(),m=c.parseUShort(),v=d;v<=f;v+=1)0!==m?(u=c.offset+c.relativeOffset-2,u+=m,u+=2*(v-d),0!==(p=se.getUShort(n,u))&&(p=p+g&65535)):p=v+g&65535,e.glyphIndexMap[v]=p}(n,a,e,t,r)}return n},le=function(e){var t,n=!0;for(t=e.length-1;0<t;t-=1)if(65535<e.get(t).unicode){console.log("Adding CMAP format 12 (needed!)"),n=!1;break}var r=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||(r=r.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),r=r.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var i,o,s,a=new Q.Table("cmap",r);for(a.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),c=0;c<l.unicodes.length;c+=1)i=a,o=l.unicodes[c],s=t,i.segments.push({end:o,start:o,delta:-(o-s),offset:0,glyphIndex:s});a.segments=a.segments.sort((function(e,t){return e.start-t.start}))}a.segments.push({end:65535,start:65535,delta:1,offset:0});var u=a.segments.length,h=0,p=[],f=[],d=[],g=[],m=[],v=[];for(t=0;t<u;t+=1){var y=a.segments[t];y.end<=65535&&y.start<=65535?(p=p.concat({name:"end_"+t,type:"USHORT",value:y.end}),f=f.concat({name:"start_"+t,type:"USHORT",value:y.start}),d=d.concat({name:"idDelta_"+t,type:"SHORT",value:y.delta}),g=g.concat({name:"idRangeOffset_"+t,type:"USHORT",value:y.offset}),void 0!==y.glyphId&&(m=m.concat({name:"glyph_"+t,type:"USHORT",value:y.glyphId}))):h+=1,n||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:"cmap12Start_"+t,type:"ULONG",value:y.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:y.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:y.glyphIndex}))}if(a.segCountX2=2*(u-h),a.searchRange=2*Math.pow(2,Math.floor(Math.log(u-h)/Math.log(2))),a.entrySelector=Math.log(a.searchRange/2)/Math.log(2),a.rangeShift=a.segCountX2-a.searchRange,a.fields=a.fields.concat(p),a.fields.push({name:"reservedPad",type:"USHORT",value:0}),a.fields=a.fields.concat(f),a.fields=a.fields.concat(d),a.fields=a.fields.concat(g),a.fields=a.fields.concat(m),a.cmap4Length=14+2*p.length+2+2*f.length+2*d.length+2*g.length+2*m.length,!n){var b=16+4*v.length;a.cmap12Offset=20+a.cmap4Length,a.fields=a.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:b},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:v.length/3}]),a.fields=a.fields.concat(v)}return a},ce=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],ue=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],he=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],pe=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function fe(e){this.font=e}function de(e){this.cmap=e}function ge(e,t){this.encoding=e,this.charset=t}function me(e){switch(e.version){case 1:this.names=pe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<pe.length?this.names[t]=pe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-pe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)this.names[n]=pe[n+e.glyphNameIndex[n]];break;default:this.names=[]}}fe.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.font.glyphs;if(n)for(var r=0;r<n.length;r+=1)for(var i=n.get(r),o=0;o<i.unicodes.length;o+=1)if(i.unicodes[o]===t)return r;return null},de.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},ge.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.encoding[t];return this.charset.indexOf(n)},me.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},me.prototype.glyphIndexToName=function(e){return this.names[e]};var ve=function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()};function ye(e){this.bindConstructorValues(e)}function be(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function xe(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var n=0;n<t.length;n++)this.glyphs[n]=t[n];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,n;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",(t=e.path,n=t||new E,{configurable:!0,get:function(){return"function"==typeof n&&(n=n()),n},set:function(e){n=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,n,r,i){var o,s;e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72,r||(r={});var a=r.xScale,l=r.yScale;if(r.hinting&&i&&i.hinting&&(s=this.path&&i.hinting.exec(this,n)),s)o=i.hinting.getCommands(s),e=Math.round(e),t=Math.round(t),a=l=1;else{o=this.path.commands;var c=1/this.path.unitsPerEm*n;void 0===a&&(a=c),void 0===l&&(l=c)}for(var u=new E,h=0;h<o.length;h+=1){var p=o[h];"M"===p.type?u.moveTo(e+p.x*a,t+-p.y*l):"L"===p.type?u.lineTo(e+p.x*a,t+-p.y*l):"Q"===p.type?u.quadraticCurveTo(e+p.x1*a,t+-p.y1*l,e+p.x*a,t+-p.y*l):"C"===p.type?u.curveTo(e+p.x1*a,t+-p.y1*l,e+p.x2*a,t+-p.y2*l,e+p.x*a,t+-p.y*l):"Z"===p.type&&u.closePath()}return u},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return A.argument(0===t.length,"There are still points left in the current contour."),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];"Z"!==i.type&&(t.push(i.x),n.push(i.y)),"Q"!==i.type&&"C"!==i.type||(t.push(i.x1),n.push(i.y1)),"C"===i.type&&(t.push(i.x2),n.push(i.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,n,r,i){this.getPath(t,n,r,i).draw(e)},ye.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){var o=2*Math.PI;e.beginPath();for(var s=0;s<t.length;s+=1)e.moveTo(n+t[s].x*i,r+t[s].y*i),e.arc(n+t[s].x*i,r+t[s].y*i,2,0,o,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24;for(var o=1/this.path.unitsPerEm*r,s=[],a=[],l=this.path,c=0;c<l.commands.length;c+=1){var u=l.commands[c];void 0!==u.x&&s.push({x:u.x,y:-u.y}),void 0!==u.x1&&a.push({x:u.x1,y:-u.y1}),void 0!==u.x2&&a.push({x:u.x2,y:-u.y2})}e.fillStyle="blue",i(s,t,n,o),e.fillStyle="red",i(a,t,n,o)},ye.prototype.drawMetrics=function(e,t,n,r){var i;t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle="black",ve(e,t,-1e4,t,1e4),ve(e,-1e4,n,1e4,n);var o=this.xMin||0,s=this.yMin||0,a=this.xMax||0,l=this.yMax||0,c=this.advanceWidth||0;e.strokeStyle="blue",ve(e,t+o*i,-1e4,t+o*i,1e4),ve(e,t+a*i,-1e4,t+a*i,1e4),ve(e,-1e4,n+-s*i,1e4,n+-s*i),ve(e,-1e4,n+-l*i,1e4,n+-l*i),e.strokeStyle="green",ve(e,t+c*i,-1e4,t+c*i,1e4)},xe.prototype.get=function(e){return"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},xe.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var we={GlyphSet:xe,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(e,t,n,r,i,o){return function(){var s=new ye({index:t,font:e});return s.path=function(){n(s,r,i);var t=o(e.glyphs,s);return t.unitsPerEm=e.unitsPerEm,t},be(s,"xMin","_xMin"),be(s,"xMax","_xMax"),be(s,"yMin","_yMin"),be(s,"yMax","_yMax"),s}},cffGlyphLoader:function(e,t,n,r){return function(){var i=new ye({index:t,font:e});return i.path=function(){var t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}};function Se(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!Se(e[n],t[n]))return!1;return!0}return!1}function _e(e){return e.length<1240?107:e.length<33900?1131:32768}function Ce(e,t,n){var r,i,o=[],s=[],a=se.getCard16(e,t);if(0!==a){var l=se.getByte(e,t+2);r=t+(a+1)*l+2;for(var c=t+3,u=0;u<a+1;u+=1)o.push(se.getOffset(e,c,l)),c+=l;i=r+o[a]}else i=t+2;for(var h=0;h<o.length-1;h+=1){var p=se.getBytes(e,r+o[h],r+o[h+1]);n&&(p=n(p)),s.push(p)}return{objects:s,startOffset:t,endOffset:i}}function Te(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var r=e.parseByte(),i=r>>4,o=15&r;if(15===i)break;if(t+=n[i],15===o)break;t+=n[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function ke(e,t,n){t=void 0!==t?t:0;var r=new se.Parser(e,t),i=[],o=[];for(n=void 0!==n?n:e.length;r.relativeOffset<n;){var s=r.parseByte();s<=21?(12===s&&(s=1200+r.parseByte()),i.push([s,o]),o=[]):o.push(Te(r,s))}return function(e){for(var t={},n=0;n<e.length;n+=1){var r,i=e[n][0],o=e[n][1];if(r=1===o.length?o[0]:o,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error("Object "+t+" already has key "+i);t[i]=r}return t}(i)}function Ee(e,t){return t<=390?ce[t]:e[t-391]}function Oe(e,t,n){for(var r,i={},o=0;o<t.length;o+=1){var s=t[o];if(Array.isArray(s.type)){var a=[];a.length=s.type.length;for(var l=0;l<s.type.length;l++)void 0===(r=void 0!==e[s.op]?e[s.op][l]:void 0)&&(r=void 0!==s.value&&void 0!==s.value[l]?s.value[l]:null),"SID"===s.type[l]&&(r=Ee(n,r)),a[l]=r;i[s.name]=a}else void 0===(r=e[s.op])&&(r=void 0!==s.value?s.value:null),"SID"===s.type&&(r=Ee(n,r)),i[s.name]=r}return i}var Pe=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Ae=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Re(e,t,n,r){return Oe(ke(e,t,n),Ae,r)}function Ie(e,t,n,r){for(var i,o,s=[],a=0;a<n.length;a+=1){var l=(o=r,Oe(ke(i=new DataView(new Uint8Array(n[a]).buffer),0,i.byteLength),Pe,o));l._subrs=[],l._subrsBias=0;var c=l.private[0],u=l.private[1];if(0!==c&&0!==u){var h=Re(e,u+t,c,r);if(l._defaultWidthX=h.defaultWidthX,l._nominalWidthX=h.nominalWidthX,0!==h.subrs){var p=Ce(e,u+h.subrs+t);l._subrs=p.objects,l._subrsBias=_e(l._subrs)}l._privateDict=h}s.push(l)}return s}function Ue(e,t,n){var r,i,o,s,a,l,c,u,h=new E,p=[],f=0,d=!1,g=!1,m=0,v=0;if(e.isCIDFont){var y=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[y];a=b._subrs,l=b._subrsBias,c=b._defaultWidthX,u=b._nominalWidthX}else a=e.tables.cff.topDict._subrs,l=e.tables.cff.topDict._subrsBias,c=e.tables.cff.topDict._defaultWidthX,u=e.tables.cff.topDict._nominalWidthX;var x=c;function w(e,t){g&&h.closePath(),h.moveTo(e,t),g=!0}function S(){p.length%2!=0&&!d&&(x=p.shift()+u),f+=p.length>>1,p.length=0,d=!0}return function n(c){for(var y,b,_,C,T,k,E,O,P,A,R,I,U=0;U<c.length;){var D=c[U];switch(U+=1,D){case 1:case 3:case 18:case 23:S();break;case 4:1<p.length&&!d&&(x=p.shift()+u,d=!0),v+=p.pop(),w(m,v);break;case 5:for(;0<p.length;)m+=p.shift(),v+=p.shift(),h.lineTo(m,v);break;case 6:for(;0<p.length&&(m+=p.shift(),h.lineTo(m,v),0!==p.length);)v+=p.shift(),h.lineTo(m,v);break;case 7:for(;0<p.length&&(v+=p.shift(),h.lineTo(m,v),0!==p.length);)m+=p.shift(),h.lineTo(m,v);break;case 8:for(;0<p.length;)r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s+p.shift(),h.curveTo(r,i,o,s,m,v);break;case 10:T=p.pop()+l,(k=a[T])&&n(k);break;case 11:return;case 12:switch(D=c[U],U+=1,D){case 35:r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),E=o+p.shift(),O=s+p.shift(),P=E+p.shift(),A=O+p.shift(),R=P+p.shift(),I=A+p.shift(),m=R+p.shift(),v=I+p.shift(),p.shift(),h.curveTo(r,i,o,s,E,O),h.curveTo(P,A,R,I,m,v);break;case 34:r=m+p.shift(),i=v,o=r+p.shift(),s=i+p.shift(),E=o+p.shift(),O=s,P=E+p.shift(),A=s,R=P+p.shift(),I=v,m=R+p.shift(),h.curveTo(r,i,o,s,E,O),h.curveTo(P,A,R,I,m,v);break;case 36:r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),E=o+p.shift(),O=s,P=E+p.shift(),A=s,R=P+p.shift(),I=A+p.shift(),m=R+p.shift(),h.curveTo(r,i,o,s,E,O),h.curveTo(P,A,R,I,m,v);break;case 37:r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),E=o+p.shift(),O=s+p.shift(),P=E+p.shift(),A=O+p.shift(),R=P+p.shift(),I=A+p.shift(),Math.abs(R-m)>Math.abs(I-v)?m=R+p.shift():v=I+p.shift(),h.curveTo(r,i,o,s,E,O),h.curveTo(P,A,R,I,m,v);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+D),p.length=0}break;case 14:0<p.length&&!d&&(x=p.shift()+u,d=!0),g&&(h.closePath(),g=!1);break;case 19:case 20:S(),U+=f+7>>3;break;case 21:2<p.length&&!d&&(x=p.shift()+u,d=!0),v+=p.pop(),w(m+=p.pop(),v);break;case 22:1<p.length&&!d&&(x=p.shift()+u,d=!0),w(m+=p.pop(),v);break;case 24:for(;2<p.length;)r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s+p.shift(),h.curveTo(r,i,o,s,m,v);m+=p.shift(),v+=p.shift(),h.lineTo(m,v);break;case 25:for(;6<p.length;)m+=p.shift(),v+=p.shift(),h.lineTo(m,v);r=m+p.shift(),i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s+p.shift(),h.curveTo(r,i,o,s,m,v);break;case 26:for(p.length%2&&(m+=p.shift());0<p.length;)r=m,i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o,v=s+p.shift(),h.curveTo(r,i,o,s,m,v);break;case 27:for(p.length%2&&(v+=p.shift());0<p.length;)r=m+p.shift(),i=v,o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s,h.curveTo(r,i,o,s,m,v);break;case 28:y=c[U],b=c[U+1],p.push((y<<24|b<<16)>>16),U+=2;break;case 29:T=p.pop()+e.gsubrsBias,(k=e.gsubrs[T])&&n(k);break;case 30:for(;0<p.length&&(r=m,i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s+(1===p.length?p.shift():0),h.curveTo(r,i,o,s,m,v),0!==p.length);)r=m+p.shift(),i=v,o=r+p.shift(),s=i+p.shift(),v=s+p.shift(),m=o+(1===p.length?p.shift():0),h.curveTo(r,i,o,s,m,v);break;case 31:for(;0<p.length&&(r=m+p.shift(),i=v,o=r+p.shift(),s=i+p.shift(),v=s+p.shift(),m=o+(1===p.length?p.shift():0),h.curveTo(r,i,o,s,m,v),0!==p.length);)r=m,i=v+p.shift(),o=r+p.shift(),s=i+p.shift(),m=o+p.shift(),v=s+(1===p.length?p.shift():0),h.curveTo(r,i,o,s,m,v);break;default:D<32?console.log("Glyph "+t.index+": unknown operator "+D):D<247?p.push(D-139):D<251?(y=c[U],U+=1,p.push(256*(D-247)+y+108)):D<255?(y=c[U],U+=1,p.push(256*-(D-251)-y-108)):(y=c[U],b=c[U+1],_=c[U+2],C=c[U+3],U+=4,p.push((y<<24|b<<16|_<<8|C)/65536))}}}(n),t.advanceWidth=x,h}function De(e,t){var n,r=ce.indexOf(e);return 0<=r&&(n=r),0<=(r=t.indexOf(e))?n=r+ce.length:(n=ce.length+t.length,t.push(e)),n}function Le(e,t,n){for(var r={},i=0;i<e.length;i+=1){var o=e[i],s=t[o.name];void 0===s||Se(s,o.value)||("SID"===o.type&&(s=De(s,n)),r[o.op]={name:o.name,type:o.type,value:s})}return r}function Me(e,t){var n=new Q.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Le(Pe,e,t),n}function Ne(e){var t=new Q.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Be(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,i=0,o=0;o<n.commands.length;o+=1){var s=void 0,a=void 0,l=n.commands[o];if("Q"===l.type&&(l={type:"C",x:l.x,y:l.y,x1:1/3*r+2/3*l.x1,y1:1/3*i+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}),"M"===l.type)s=Math.round(l.x-r),a=Math.round(l.y-i),t.push({name:"dx",type:"NUMBER",value:s}),t.push({name:"dy",type:"NUMBER",value:a}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(l.x),i=Math.round(l.y);else if("L"===l.type)s=Math.round(l.x-r),a=Math.round(l.y-i),t.push({name:"dx",type:"NUMBER",value:s}),t.push({name:"dy",type:"NUMBER",value:a}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(l.x),i=Math.round(l.y);else if("C"===l.type){var c=Math.round(l.x1-r),u=Math.round(l.y1-i),h=Math.round(l.x2-l.x1),p=Math.round(l.y2-l.y1);s=Math.round(l.x-l.x2),a=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:c}),t.push({name:"dy1",type:"NUMBER",value:u}),t.push({name:"dx2",type:"NUMBER",value:h}),t.push({name:"dy2",type:"NUMBER",value:p}),t.push({name:"dx",type:"NUMBER",value:s}),t.push({name:"dy",type:"NUMBER",value:a}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(l.x),i=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var Fe=function(e,t,n){n.tables.cff={};var r,i,o,s=Ce(e,Ce(e,(r=e,i=t,(o={}).formatMajor=se.getCard8(r,i),o.formatMinor=se.getCard8(r,i+1),o.size=se.getCard8(r,i+2),o.offsetSize=se.getCard8(r,i+3),o.startOffset=i,o.endOffset=i+4,o).endOffset,se.bytesToString).endOffset),a=Ce(e,s.endOffset,se.bytesToString),l=Ce(e,a.endOffset);n.gsubrs=l.objects,n.gsubrsBias=_e(n.gsubrs);var c=Ie(e,t,s.objects,a.objects);if(1!==c.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+c.length);var u=c[0];if((n.tables.cff.topDict=u)._privateDict&&(n.defaultWidthX=u._privateDict.defaultWidthX,n.nominalWidthX=u._privateDict.nominalWidthX),void 0!==u.ros[0]&&void 0!==u.ros[1]&&(n.isCIDFont=!0),n.isCIDFont){var h=u.fdArray,p=u.fdSelect;if(0===h||0===p)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var f=Ie(e,t,Ce(e,h+=t).objects,a.objects);u._fdArray=f,p+=t,u._fdSelect=function(e,t,n,r){var i,o=[],s=new se.Parser(e,t),a=s.parseCard8();if(0===a)for(var l=0;l<n;l++){if(r<=(i=s.parseCard8()))throw new Error("CFF table CID Font FDSelect has bad FD index value "+i+" (FD count "+r+")");o.push(i)}else{if(3!==a)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+a);var c,u=s.parseCard16(),h=s.parseCard16();if(0!==h)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+h);for(var p=0;p<u;p++){if(i=s.parseCard8(),c=s.parseCard16(),r<=i)throw new Error("CFF table CID Font FDSelect has bad FD index value "+i+" (FD count "+r+")");if(n<c)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+c);for(;h<c;h++)o.push(i);h=c}if(c!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+c)}return o}(e,p,n.numGlyphs,f.length)}var d=t+u.private[1],g=Re(e,d,u.private[0],a.objects);if(n.defaultWidthX=g.defaultWidthX,n.nominalWidthX=g.nominalWidthX,0!==g.subrs){var m=Ce(e,d+g.subrs);n.subrs=m.objects,n.subrsBias=_e(n.subrs)}else n.subrs=[],n.subrsBias=0;var v=Ce(e,t+u.charStrings);n.nGlyphs=v.objects.length;var y=function(e,t,n,r){var i,o,s=new se.Parser(e,t);n-=1;var a=[".notdef"],l=s.parseCard8();if(0===l)for(var c=0;c<n;c+=1)i=s.parseSID(),a.push(Ee(r,i));else if(1===l)for(;a.length<=n;){i=s.parseSID(),o=s.parseCard8();for(var u=0;u<=o;u+=1)a.push(Ee(r,i)),i+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;a.length<=n;){i=s.parseSID(),o=s.parseCard16();for(var h=0;h<=o;h+=1)a.push(Ee(r,i)),i+=1}}return a}(e,t+u.charset,n.nGlyphs,a.objects);0===u.encoding?n.cffEncoding=new ge(ue,y):1===u.encoding?n.cffEncoding=new ge(he,y):n.cffEncoding=function(e,t,n){var r,i={},o=new se.Parser(e,t),s=o.parseCard8();if(0===s)for(var a=o.parseCard8(),l=0;l<a;l+=1)i[r=o.parseCard8()]=l;else{if(1!==s)throw new Error("Unknown encoding format "+s);var c=o.parseCard8();r=1;for(var u=0;u<c;u+=1)for(var h=o.parseCard8(),p=o.parseCard8(),f=h;f<=h+p;f+=1)i[f]=r,r+=1}return new ge(i,n)}(e,t+u.encoding,y),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new we.GlyphSet(n);for(var b=0;b<n.nGlyphs;b+=1){var x=v.objects[b];n.glyphs.push(b,we.cffGlyphLoader(n,b,Ue,x))}},ze=function(e,t){for(var n,r=new Q.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),i=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[i,0,0,i,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},s=[],a=1;a<e.length;a+=1)n=e.get(a),s.push(n.name);var l=[];r.header=new Q.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),r.nameIndex=function(e){var t=new Q.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}([t.postScriptName]);var c,u,h,p=Me(o,l);r.topDictIndex=Ne(p),r.globalSubrIndex=new Q.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),r.charsets=function(e,t){for(var n=new Q.Record("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var i=De(e[r],t);n.fields.push({name:"glyph_"+r,type:"SID",value:i})}return n}(s,l),r.charStringsIndex=function(e){for(var t=new Q.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),i=Be(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:i})}return t}(e),r.privateDict=(c={},u=l,(h=new Q.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}])).dict=Le(Ae,c,u),h),r.stringIndex=function(e){var t=new Q.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}(l);var f=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return o.charset=f,o.encoding=0,o.charStrings=o.charset+r.charsets.sizeOf(),o.private[1]=o.charStrings+r.charStringsIndex.sizeOf(),p=Me(o,l),r.topDictIndex=Ne(p),r},He=function(e,t){var n={},r=new se.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),A.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n},Ge=function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new Q.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:n},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)},$e=function(e,t){var n={},r=new se.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n},We=function(e){return new Q.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)},je=function(e,t,n,r,i){for(var o,s,a=new se.Parser(e,t),l=0;l<r;l+=1){l<n&&(o=a.parseUShort(),s=a.parseShort());var c=i.get(l);c.advanceWidth=o,c.leftSideBearing=s}},qe=function(e){for(var t=new Q.Table("hmtx",[]),n=0;n<e.length;n+=1){var r=e.get(n),i=r.advanceWidth||0,o=r.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:i}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:o})}return t},Ye=function(e){for(var t=new Q.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),n="",r=12+4*e.length,i=0;i<e.length;++i){var o=n.indexOf(e[i]);o<0&&(o=n.length,n+=e[i]),t.fields.push({name:"offset "+i,type:"USHORT",value:r+o}),t.fields.push({name:"length "+i,type:"USHORT",value:e[i].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),t},Xe=function(e,t){var n=new se.Parser(e,t),r=n.parseULong();A.argument(1===r,"Unsupported ltag table version."),n.skip("uLong",1);for(var i=n.parseULong(),o=[],s=0;s<i;s++){for(var a="",l=t+n.parseUShort(),c=n.parseUShort(),u=l;u<l+c;++u)a+=String.fromCharCode(e.getInt8(u));o.push(a)}return o},Ve=function(e,t){var n={},r=new se.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),1===n.version&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n},Ke=function(e){return new Q.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])},Ze=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],Qe={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Je={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},et={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function tt(e,t,n){switch(e){case 0:if(65535===t)return"und";if(n)return n[t];break;case 1:return Qe[t];case 3:return et[t]}}var nt="utf-16",rt={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},it={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function ot(e,t,n){switch(e){case 0:return nt;case 1:return it[n]||rt[t];case 3:if(1===t||10===t)return nt}}function st(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function at(e,t,n,r,i,o){return new Q.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:i},{name:"offset",type:"USHORT",value:o}])}function lt(e,t){var n=function(e,t){var n=e.length,r=t.length-n+1;e:for(var i=0;i<r;i++)for(;i<r;i++){for(var o=0;o<n;o++)if(t[i+o]!==e[o])continue e;return i}return-1}(e,t);if(n<0){n=t.length;for(var r=0,i=e.length;r<i;++r)t.push(e[r])}return n}var ct=function(e,t,n){for(var r={},i=new se.Parser(e,t),o=i.parseUShort(),s=i.parseUShort(),a=i.offset+i.parseUShort(),l=0;l<s;l++){var c=i.parseUShort(),u=i.parseUShort(),h=i.parseUShort(),p=i.parseUShort(),f=Ze[p]||p,d=i.parseUShort(),g=i.parseUShort(),m=tt(c,h,n),v=ot(c,u,h);if(void 0!==v&&void 0!==m){var y;if(y=v===nt?I.UTF16(e,a+g,d):I.MACSTRING(e,a+g,d,v)){var b=r[f];void 0===b&&(b=r[f]={}),b[m]=y}}}return 1===o&&i.parseUShort(),r},ut=function(e,t){var n,r=[],i={},o=st(Ze);for(var s in e){var a=o[s];if(void 0===a&&(a=s),n=parseInt(a),isNaN(n))throw new Error('Name table entry "'+s+'" does not exist, see nameTableNames for complete list.');i[n]=e[s],r.push(n)}for(var l=st(Qe),c=st(et),u=[],h=[],p=0;p<r.length;p++){var f=i[n=r[p]];for(var d in f){var g=f[d],m=1,v=l[d],y=Je[v],b=ot(m,y,v),x=U.MACSTRING(g,b);void 0===x&&(m=0,(v=t.indexOf(d))<0&&(v=t.length,t.push(d)),y=4,x=U.UTF16(g));var w=lt(x,h);u.push(at(m,y,v,n,x.length,w));var S=c[d];if(void 0!==S){var _=U.UTF16(g),C=lt(_,h);u.push(at(3,1,S,n,_.length,C))}}}u.sort((function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID}));for(var T=new Q.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:u.length},{name:"stringOffset",type:"USHORT",value:6+12*u.length}]),k=0;k<u.length;k++)T.fields.push({name:"record_"+k,type:"RECORD",value:u[k]});return T.fields.push({name:"strings",type:"LITERAL",value:h}),T},ht=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}],pt=function(e,t){var n={},r=new se.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;i<10;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),1<=n.version&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),2<=n.version&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},ft=function(e){return new Q.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},dt=function(e){for(var t=0;t<ht.length;t+=1){var n=ht[t];if(e>=n.begin&&e<n.end)return t}return-1},gt=function(e,t){var n={},r=new se.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=pe.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var i=0;i<n.numberOfGlyphs;i++)n.glyphNameIndex[i]=r.parseUShort();n.names=[];for(var o=0;o<n.numberOfGlyphs;o++)if(n.glyphNameIndex[o]>=pe.length){var s=r.parseChar();n.names.push(r.parseString(s))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var a=0;a<n.numberOfGlyphs;a++)n.offset[a]=r.parseChar()}return n},mt=function(){return new Q.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])},vt=new Array(9);vt[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ie.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ie.coverage),substitute:this.parseOffset16List()}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},vt[2]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ie.coverage),sequences:this.parseListOfLists()}},vt[3]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ie.coverage),alternateSets:this.parseListOfLists()}},vt[4]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ie.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};var yt={sequenceIndex:ie.uShort,lookupListIndex:ie.uShort};vt[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ie.coverage),ruleSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,yt)}}))};if(2===t)return{substFormat:t,coverage:this.parsePointer(ie.coverage),classDef:this.parsePointer(ie.classDef),classSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,yt)}}))};if(3===t){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,ie.pointer(ie.coverage)),lookupRecords:this.parseRecordList(r,yt)}}A.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},vt[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ie.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(yt)}}))}:2===t?{substFormat:2,coverage:this.parsePointer(ie.coverage),backtrackClassDef:this.parsePointer(ie.classDef),inputClassDef:this.parsePointer(ie.classDef),lookaheadClassDef:this.parsePointer(ie.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(yt)}}))}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ie.pointer(ie.coverage)),inputCoverage:this.parseList(ie.pointer(ie.coverage)),lookaheadCoverage:this.parseList(ie.pointer(ie.coverage)),lookupRecords:this.parseRecordList(yt)}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},vt[7]=function(){var e=this.parseUShort();A.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),n=new ie(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:vt[t].call(n)}},vt[8]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ie.coverage),backtrackCoverage:this.parseList(ie.pointer(ie.coverage)),lookaheadCoverage:this.parseList(ie.pointer(ie.coverage)),substitutes:this.parseUShortList()}};var bt=new Array(9);bt[1]=function(e){return 1===e.substFormat?new Q.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Q.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new Q.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new Q.Coverage(e.coverage)}].concat(Q.ushortList("substitute",e.substitute)))},bt[3]=function(e){return A.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new Q.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Q.Coverage(e.coverage)}].concat(Q.tableList("altSet",e.alternateSets,(function(e){return new Q.Table("alternateSetTable",Q.ushortList("alternate",e))}))))},bt[4]=function(e){return A.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new Q.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Q.Coverage(e.coverage)}].concat(Q.tableList("ligSet",e.ligatureSets,(function(e){return new Q.Table("ligatureSetTable",Q.tableList("ligature",e,(function(e){return new Q.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(Q.ushortList("component",e.components,e.components.length+1)))})))}))))};var xt=function(e,t){var n=new ie(e,t=t||0),r=n.parseVersion(1);return A.argument(1===r||1.1===r,"Unsupported GSUB table version."),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(vt)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(vt),variations:n.parseFeatureVariationsList()}},wt=function(e){return new Q.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Q.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new Q.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new Q.LookupList(e.lookups,bt)}])},St=function(e,t){var n=new se.Parser(e,t),r=n.parseULong();A.argument(1===r,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var i=n.parseULong(),o={},s=0;s<i;s++){var a=n.parseTag(),l=n.parseULong(),c=n.parseULong(),u=I.UTF8(e,t+l,c);o[a]=u}return o},_t=function(e){var t=Object.keys(e).length,n="",r=16+12*t,i=new Q.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:r},{name:"numTags",type:"ULONG",value:t}]);for(var o in e){var s=n.length;n+=e[o],i.fields.push({name:"tag "+o,type:"TAG",value:o}),i.fields.push({name:"offset "+o,type:"ULONG",value:r+s}),i.fields.push({name:"length "+o,type:"ULONG",value:e[o].length})}return i.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),i};function Ct(e){return Math.log(e)/Math.log(2)|0}function Tt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%Math.pow(2,32)}function kt(e,t,n,r){return new Q.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==r?r:0}])}function Et(e){var t=new Q.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,Ct(t.numTables));t.searchRange=16*n,t.entrySelector=Ct(n),t.rangeShift=16*t.numTables-t.searchRange;for(var r=[],i=[],o=t.sizeOf()+kt().sizeOf()*t.numTables;o%4!=0;)o+=1,i.push({name:"padding",type:"BYTE",value:0});for(var s=0;s<e.length;s+=1){var a=e[s];A.argument(4===a.tableName.length,"Table name"+a.tableName+" is invalid.");var l=a.sizeOf(),c=kt(a.tableName,Tt(a.encode()),o,l);for(r.push({name:c.tag+" Table Record",type:"RECORD",value:c}),i.push({name:a.tableName+" table",type:"RECORD",value:a}),o+=l,A.argument(!isNaN(o),"Something went wrong calculating the offset.");o%4!=0;)o+=1,i.push({name:"padding",type:"BYTE",value:0})}return r.sort((function(e,t){return e.value.tag>t.value.tag?1:-1})),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function Ot(e,t,n){for(var r=0;r<t.length;r+=1){var i=e.charToGlyphIndex(t[r]);if(0<i)return e.glyphs.get(i).getMetrics()}return n}var Pt=function(e){for(var t,n=[],r=[],i=[],o=[],s=[],a=[],l=[],c=0,u=0,h=0,p=0,f=0,d=0;d<e.glyphs.length;d+=1){var g=e.glyphs.get(d),m=0|g.unicode;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+d+"): advanceWidth is not a number.");(m<t||void 0===t)&&0<m&&(t=m),c<m&&(c=m);var v=dt(m);if(v<32)u|=1<<v;else if(v<64)h|=1<<v-32;else if(v<96)p|=1<<v-64;else{if(!(v<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");f|=1<<v-96}if(".notdef"!==g.name){var y=g.getMetrics();n.push(y.xMin),r.push(y.yMin),i.push(y.xMax),o.push(y.yMax),a.push(y.leftSideBearing),l.push(y.rightSideBearing),s.push(g.advanceWidth)}}var b={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,i),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,s),advanceWidthAvg:function(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}(s),minLeftSideBearing:Math.min.apply(null,a),maxLeftSideBearing:Math.max.apply(null,a),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var x=Ge({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),w=We({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),S=Ke(e.glyphs.length),_=ft({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:h,ulUnicodeRange3:p,ulUnicodeRange4:f,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:Ot(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:Ot(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),C=qe(e.glyphs),T=le(e.glyphs),k=e.getEnglishName("fontFamily"),E=e.getEnglishName("fontSubfamily"),O=k+" "+E,P=e.getEnglishName("postScriptName");P||(P=k.replace(/\s/g,"")+"-"+E);var A={};for(var R in e.names)A[R]=e.names[R];A.uniqueID||(A.uniqueID={en:e.getEnglishName("manufacturer")+":"+O}),A.postScriptName||(A.postScriptName={en:P}),A.preferredFamily||(A.preferredFamily=e.names.fontFamily),A.preferredSubfamily||(A.preferredSubfamily=e.names.fontSubfamily);var I=[],U=ut(A,I),D=0<I.length?Ye(I):void 0,L=mt(),M=ze(e.glyphs,{version:e.getEnglishName("version"),fullName:O,familyName:k,weightName:E,postScriptName:P,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?_t(e.metas):void 0,B=[x,w,S,_,U,T,L,M,C];D&&B.push(D),e.tables.gsub&&B.push(wt(e.tables.gsub)),N&&B.push(N);for(var F=Et(B),z=Tt(F.encode()),H=F.fields,G=!1,$=0;$<H.length;$+=1)if("head table"===H[$].name){H[$].value.checkSumAdjustment=2981146554-z,G=!0;break}if(!G)throw new Error("Could not find head table with checkSum to adjust.");return F};function At(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,o=e[i].tag;if(o===t)return i;o<t?n=i+1:r=i-1}return-n-1}function Rt(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,o=e[i];if(o===t)return i;o<t?n=i+1:r=i-1}return-n-1}function It(e,t){for(var n,r=0,i=e.length-1;r<=i;){var o=r+i>>>1,s=(n=e[o]).start;if(s===t)return n;s<t?r=o+1:i=o-1}if(0<r)return t>(n=e[r-1]).end?0:n}function Ut(e,t){this.font=e,this.tableName=t}function Dt(e){Ut.call(this,e,"gpos")}function Lt(e){Ut.call(this,e,"gsub")}function Mt(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Nt(e,t,n){for(var r=e.subtables,i=0;i<r.length;i++){var o=r[i];if(o.substFormat===t)return o}if(n)return r.push(n),n}function Bt(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function Ft(e,t){if(!e)throw t}function zt(e,t,n,r,i){var o;return 0<(t&r)?(o=e.parseByte(),0==(t&i)&&(o=-o),n+o):0<(t&i)?n:n+e.parseShort()}function Ht(e,t,n){var r,i,o=new se.Parser(t,n);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var s=e.endPointIndices=[],a=0;a<e.numberOfContours;a+=1)s.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var c=s[s.length-1]+1;r=[];for(var u=0;u<c;u+=1)if(i=o.parseByte(),r.push(i),0<(8&i))for(var h=o.parseByte(),p=0;p<h;p+=1)r.push(i),u+=1;if(A.argument(r.length===c,"Bad flags."),0<s.length){var f,d=[];if(0<c){for(var g=0;g<c;g+=1)i=r[g],(f={}).onCurve=!!(1&i),f.lastPointOfContour=0<=s.indexOf(g),d.push(f);for(var m=0,v=0;v<c;v+=1)i=r[v],(f=d[v]).x=zt(o,i,m,2,16),m=f.x;for(var y=0,b=0;b<c;b+=1)i=r[b],(f=d[b]).y=zt(o,i,y,4,32),y=f.y}e.points=d}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){r=o.parseUShort();var w={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&r)?0<(2&r)?(w.dx=o.parseShort(),w.dy=o.parseShort()):w.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&r)?(w.dx=o.parseChar(),w.dy=o.parseChar()):w.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&r)?w.xScale=w.yScale=o.parseF2Dot14():0<(64&r)?(w.xScale=o.parseF2Dot14(),w.yScale=o.parseF2Dot14()):0<(128&r)&&(w.xScale=o.parseF2Dot14(),w.scale01=o.parseF2Dot14(),w.scale10=o.parseF2Dot14(),w.yScale=o.parseF2Dot14()),e.components.push(w),x=!!(32&r)}if(256&r){e.instructionLength=o.parseUShort(),e.instructions=[];for(var S=0;S<e.instructionLength;S+=1)e.instructions.push(o.parseByte())}}}function Gt(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(o)}return n}function $t(e){var t=new E;if(!e)return t;for(var n=function(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(0===n.length,"There are still points left in the current contour."),t}(e),r=0;r<n.length;++r){var i=n[r],o=null,s=i[i.length-1],a=i[0];if(s.onCurve)t.moveTo(s.x,s.y);else if(a.onCurve)t.moveTo(a.x,a.y);else{var l={x:.5*(s.x+a.x),y:.5*(s.y+a.y)};t.moveTo(l.x,l.y)}for(var c=0;c<i.length;++c)if(o=s,s=a,a=i[(c+1)%i.length],s.onCurve)t.lineTo(s.x,s.y);else{var u=a;o.onCurve||(s.x,o.x,s.y,o.y),a.onCurve||(u={x:.5*(s.x+a.x),y:.5*(s.y+a.y)}),t.quadraticCurveTo(s.x,s.y,u.x,u.y)}t.closePath()}return t}function Wt(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],i=e.get(r.glyphIndex);if(i.getPath(),i.points){var o=void 0;if(void 0===r.matchedPoints)o=Gt(i.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error("Matched points out of range in "+t.name);var s=t.points[r.matchedPoints[0]],a=i.points[r.matchedPoints[1]],l={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};a=Gt([a],l)[0],l.dx=s.x-a.x,l.dy=s.y-a.y,o=Gt(i.points,l)}t.points=t.points.concat(o)}}return $t(t.points)}(Dt.prototype=Ut.prototype={searchTag:At,binSearch:Rt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map((function(e){return e.tag})):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if("DFLT"===r)return r;"latn"===r&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e=e||"DFLT";var r=n.scripts,i=At(n.scripts,e);if(0<=i)return r[i].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,o),o.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||"dflt"===t||"DFLT"===t)return r.defaultLangSys;var i=At(r.langSysRecords,t);if(0<=i)return r.langSysRecords[i].langSys;if(n){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-i,0,o),o.langSys}}},getFeatureTable:function(e,t,n,r){var i=this.getLangSysTable(e,t,r);if(i){for(var o,s=i.featureIndexes,a=this.font.tables[this.tableName].features,l=0;l<s.length;l++)if((o=a[s[l]]).tag===n)return o.feature;if(r){var c=a.length;return A.assert(0===c||n>=a[c-1].tag,"Features must be added in alphabetical order."),o={tag:n,feature:{params:0,lookupListIndexes:[]}},a.push(o),s.push(c),o.feature}}},getLookupTables:function(e,t,n,r,i){var o=this.getFeatureTable(e,t,n,i),s=[];if(o){for(var a,l=o.lookupListIndexes,c=this.font.tables[this.tableName].lookups,u=0;u<l.length;u++)(a=c[l[u]]).lookupType===r&&s.push(a);if(0===s.length&&i){a={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var h=c.length;return c.push(a),l.push(h),[a]}}return s},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=It(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=Rt(e.glyphs,t);return 0<=n?n:-1;case 2:var r=It(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var i=n[r],o=i.start,s=i.end,a=o;a<=s;a++)t.push(a);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},Dt.prototype.getKerningValue=function(e,t,n){for(var r=0;r<e.length;r++)for(var i=e[r].subtables,o=0;o<i.length;o++){var s=i[o],a=this.getCoverageIndex(s.coverage,t);if(!(a<0))switch(s.posFormat){case 1:for(var l=s.pairSets[a],c=0;c<l.length;c++){var u=l[c];if(u.secondGlyph===n)return u.value1&&u.value1.xAdvance||0}break;case 2:var h=this.getGlyphClass(s.classDef1,t),p=this.getGlyphClass(s.classDef2,n),f=s.classRecords[h][p];return f.value1&&f.value1.xAdvance||0}}return 0},Dt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},(Lt.prototype=Ut.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Lt.prototype.getSingle=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,1),o=0;o<i.length;o++)for(var s=i[o].subtables,a=0;a<s.length;a++){var l=s[a],c=this.expandCoverage(l.coverage),u=void 0;if(1===l.substFormat){var h=l.deltaGlyphId;for(u=0;u<c.length;u++){var p=c[u];r.push({sub:p,by:p+h})}}else{var f=l.substitute;for(u=0;u<c.length;u++)r.push({sub:c[u],by:f[u]})}}return r},Lt.prototype.getAlternates=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,3),o=0;o<i.length;o++)for(var s=i[o].subtables,a=0;a<s.length;a++)for(var l=s[a],c=this.expandCoverage(l.coverage),u=l.alternateSets,h=0;h<c.length;h++)r.push({sub:c[h],by:u[h]});return r},Lt.prototype.getLigatures=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,4),o=0;o<i.length;o++)for(var s=i[o].subtables,a=0;a<s.length;a++)for(var l=s[a],c=this.expandCoverage(l.coverage),u=l.ligatureSets,h=0;h<c.length;h++)for(var p=c[h],f=u[h],d=0;d<f.length;d++){var g=f[d];r.push({sub:[p].concat(g.components),by:g.ligGlyph})}return r},Lt.prototype.addSingle=function(e,t,n,r){var i=Nt(this.getLookupTables(n,r,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub,s=this.binSearch(i.coverage.glyphs,o);s<0&&(s=-1-s,i.coverage.glyphs.splice(s,0,o),i.substitute.splice(s,0,0)),i.substitute[s]=t.by},Lt.prototype.addAlternate=function(e,t,n,r){var i=Nt(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub,s=this.binSearch(i.coverage.glyphs,o);s<0&&(s=-1-s,i.coverage.glyphs.splice(s,0,o),i.alternateSets.splice(s,0,0)),i.alternateSets[s]=t.by},Lt.prototype.addLigature=function(e,t,n,r){var i=this.getLookupTables(n,r,e,4,!0)[0],o=i.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=o),A.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var s=t.sub[0],a=t.sub.slice(1),l={ligGlyph:t.by,components:a},c=this.binSearch(o.coverage.glyphs,s);if(0<=c){for(var u=o.ligatureSets[c],h=0;h<u.length;h++)if(Mt(u[h].components,a))return;u.push(l)}else c=-1-c,o.coverage.glyphs.splice(c,0,s),o.ligatureSets.splice(c,0,[l])},Lt.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case"aalt":case"salt":return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,n)}},Lt.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case"aalt":case"salt":return"number"==typeof t.by?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,n,r)}};var jt,qt,Yt,Xt,Vt={getPath:$t,parse:function(e,t,n,r){for(var i=new we.GlyphSet(r),o=0;o<n.length-1;o+=1){var s=n[o];s!==n[o+1]?i.push(o,we.ttfGlyphLoader(r,o,Ht,e,t+s,Wt)):i.push(o,we.glyphLoader(r,o))}return i}};function Kt(e){this.font=e,this.getCommands=function(e){return Vt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Zt(e){return e}function Qt(e){return Math.sign(e)*Math.round(Math.abs(e))}function Jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function en(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function tn(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function nn(e){return Math.sign(e)*Math.floor(Math.abs(e))}var rn=function(e){var t=this.srPeriod,n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},on={x:1,y:0,axis:"x",distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var i,o,s,a,l,c,u;if(!r||r===this)return i=e.xo-t.xo,o=e.xo-n.xo,l=t.x-t.xo,c=n.x-n.xo,0===(u=(s=Math.abs(i))+(a=Math.abs(o)))?void(e.x=e.xo+(l+c)/2):void(e.x=e.xo+(l*a+c*s)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),0!==(u=(s=Math.abs(i))+(a=Math.abs(o)))?on.setRelative(e,e,(l*a+c*s)/u,r,!0):on.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,n,r,i){if(r&&r!==this){var o=i?t.xo:t.x,s=i?t.yo:t.y,a=o+n*r.x,l=s+n*r.y;e.x=a+(e.y-l)/r.normalSlope}else e.x=(i?t.xo:t.x)+n},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},sn={x:0,y:1,axis:"y",distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var i,o,s,a,l,c,u;if(!r||r===this)return i=e.yo-t.yo,o=e.yo-n.yo,l=t.y-t.yo,c=n.y-n.yo,0===(u=(s=Math.abs(i))+(a=Math.abs(o)))?void(e.y=e.yo+(l+c)/2):void(e.y=e.yo+(l*a+c*s)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),0!==(u=(s=Math.abs(i))+(a=Math.abs(o)))?sn.setRelative(e,e,(l*a+c*s)/u,r,!0):sn.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(r&&r!==this){var o=i?t.xo:t.x,s=i?t.yo:t.y,a=o+n*r.x,l=s+n*r.y;e.y=l+r.normalSlope*(e.x-a)}else e.y=(i?t.yo:t.y)+n},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function an(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function ln(e,t){var n=Math.sqrt(e*e+t*t);return t/=n,1==(e/=n)&&0===t?on:0===e&&1===t?sn:new an(e,t)}function cn(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(on),Object.freeze(sn),an.prototype.distance=function(e,t,n,r){return this.x*on.distance(e,t,n,r)+this.y*sn.distance(e,t,n,r)},an.prototype.interpolate=function(e,t,n,r){var i,o,s,a,l,c,u;s=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),o=r.distance(n,n,!1,!0),0!==(u=(l=Math.abs(s))+(c=Math.abs(a)))?this.setRelative(e,e,(i*c+o*l)/u,r,!0):this.setRelative(e,e,(i+o)/2,r,!0)},an.prototype.setRelative=function(e,t,n,r,i){r=r||this;var o=i?t.xo:t.x,s=i?t.yo:t.y,a=o+n*r.x,l=s+n*r.y,c=r.normalSlope,u=this.slope,h=e.x,p=e.y;e.x=(u*h-c*a+l-p)/(u-c),e.y=u*(e.x-h)+p},an.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},cn.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},cn.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var un=Object.freeze(new cn(0,0)),hn={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function pn(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=on,this.round=Qt}}function fn(e){for(var t=e.tZone=new Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new cn(0,0)}function dn(e,t){var n,r=e.prog,i=e.ip,o=1;do{if(88===(n=r[++i]))o++;else if(89===n)o--;else if(64===n)i+=r[i+1]+1;else if(65===n)i+=2*r[i+1]+1;else if(176<=n&&n<=183)i+=n-176+1;else if(184<=n&&n<=191)i+=2*(n-184+1);else if(t&&1===o&&27===n)break}while(0<o);e.ip=i}function gn(t,n){e.DEBUG&&console.log(n.step,"SVTCA["+t.axis+"]"),n.fv=n.pv=n.dpv=t}function mn(t,n){e.DEBUG&&console.log(n.step,"SPVTCA["+t.axis+"]"),n.pv=n.dpv=t}function vn(t,n){e.DEBUG&&console.log(n.step,"SFVTCA["+t.axis+"]"),n.fv=t}function yn(t,n){var r,i,o=n.stack,s=o.pop(),a=o.pop(),l=n.z2[s],c=n.z1[a];e.DEBUG&&console.log("SPVTL["+t+"]",s,a),i=t?(r=l.y-c.y,c.x-l.x):(r=c.x-l.x,c.y-l.y),n.pv=n.dpv=ln(r,i)}function bn(t,n){var r,i,o=n.stack,s=o.pop(),a=o.pop(),l=n.z2[s],c=n.z1[a];e.DEBUG&&console.log("SFVTL["+t+"]",s,a),i=t?(r=l.y-c.y,c.x-l.x):(r=c.x-l.x,c.y-l.y),n.fv=ln(r,i)}function xn(t){e.DEBUG&&console.log(t.step,"POP[]"),t.stack.pop()}function wn(t,n){var r=n.stack.pop(),i=n.z0[r],o=n.fv,s=n.pv;e.DEBUG&&console.log(n.step,"MDAP["+t+"]",r);var a=s.distance(i,un);t&&(a=n.round(a)),o.setRelative(i,un,a,s),o.touch(i),n.rp0=n.rp1=r}function Sn(t,n){var r,i,o,s=n.z2,a=s.length-2;e.DEBUG&&console.log(n.step,"IUP["+t.axis+"]");for(var l=0;l<a;l++)r=s[l],t.touched(r)||(i=r.prevTouched(t))!==r&&(i===(o=r.nextTouched(t))&&t.setRelative(r,r,t.distance(i,i,!1,!0),t,!0),t.interpolate(r,i,o,t))}function _n(t,n){for(var r=n.stack,i=t?n.rp1:n.rp2,o=(t?n.z0:n.z1)[i],s=n.fv,a=n.pv,l=n.loop,c=n.z2;l--;){var u=r.pop(),h=c[u],p=a.distance(o,o,!1,!0);s.setRelative(h,h,p,a),s.touch(h),e.DEBUG&&console.log(n.step,(1<n.loop?"loop "+(n.loop-l)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",u)}n.loop=1}function Cn(t,n){var r=n.stack,i=t?n.rp1:n.rp2,o=(t?n.z0:n.z1)[i],s=n.fv,a=n.pv,l=r.pop(),c=n.z2[n.contours[l]],u=c;e.DEBUG&&console.log(n.step,"SHC["+t+"]",l);for(var h=a.distance(o,o,!1,!0);u!==o&&s.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==c;);}function Tn(t,n){var r,i,o=n.stack,s=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[s],l=n.fv,c=n.pv,u=o.pop();switch(e.DEBUG&&console.log(n.step,"SHZ["+t+"]",u),u){case 0:r=n.tZone;break;case 1:r=n.gZone;break;default:throw new Error("Invalid zone")}for(var h=c.distance(a,a,!1,!0),p=r.length-2,f=0;f<p;f++)i=r[f],l.setRelative(i,i,h,c)}function kn(t,n){var r=n.stack,i=r.pop()/64,o=r.pop(),s=n.z1[o],a=n.z0[n.rp0],l=n.fv,c=n.pv;l.setRelative(s,a,i,c),l.touch(s),e.DEBUG&&console.log(n.step,"MSIRP["+t+"]",i,o),n.rp1=n.rp0,n.rp2=o,t&&(n.rp0=o)}function En(t,n){var r=n.stack,i=r.pop(),o=r.pop(),s=n.z0[o],a=n.fv,l=n.pv,c=n.cvt[i];e.DEBUG&&console.log(n.step,"MIAP["+t+"]",i,"(",c,")",o);var u=l.distance(s,un);t&&(Math.abs(u-c)<n.cvCutIn&&(u=c),u=n.round(u)),a.setRelative(s,un,u,l),0===n.zp0&&(s.xo=s.x,s.yo=s.y),a.touch(s),n.rp0=n.rp1=o}function On(t,n){var r=n.stack,i=r.pop(),o=n.z2[i];e.DEBUG&&console.log(n.step,"GC["+t+"]",i),r.push(64*n.dpv.distance(o,un,t,!1))}function Pn(t,n){var r=n.stack,i=r.pop(),o=r.pop(),s=n.z1[i],a=n.z0[o],l=n.dpv.distance(a,s,t,t);e.DEBUG&&console.log(n.step,"MD["+t+"]",i,o,"->",l),n.stack.push(Math.round(64*l))}function An(t,n){var r=n.stack,i=r.pop(),o=n.fv,s=n.pv,a=n.ppem,l=n.deltaBase+16*(t-1),c=n.deltaShift,u=n.z0;e.DEBUG&&console.log(n.step,"DELTAP["+t+"]",i,r);for(var h=0;h<i;h++){var p=r.pop(),f=r.pop();if(l+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,e.DEBUG&&console.log(n.step,"DELTAPFIX",p,"by",d*c);var g=u[p];o.setRelative(g,g,d*c,s)}}}function Rn(t,n){var r=n.stack,i=r.pop();e.DEBUG&&console.log(n.step,"ROUND[]"),r.push(64*n.round(i/64))}function In(t,n){var r=n.stack,i=r.pop(),o=n.ppem,s=n.deltaBase+16*(t-1),a=n.deltaShift;e.DEBUG&&console.log(n.step,"DELTAC["+t+"]",i,r);for(var l=0;l<i;l++){var c=r.pop(),u=r.pop();if(s+((240&u)>>4)===o){var h=(15&u)-8;0<=h&&h++;var p=h*a;e.DEBUG&&console.log(n.step,"DELTACFIX",c,"by",p),n.cvt[c]+=p}}}function Un(t,n){var r,i,o=n.stack,s=o.pop(),a=o.pop(),l=n.z2[s],c=n.z1[a];e.DEBUG&&console.log(n.step,"SDPVTL["+t+"]",s,a),i=t?(r=l.y-c.y,c.x-l.x):(r=c.x-l.x,c.y-l.y),n.dpv=ln(r,i)}function Dn(t,n){var r=n.stack,i=n.prog,o=n.ip;e.DEBUG&&console.log(n.step,"PUSHB["+t+"]");for(var s=0;s<t;s++)r.push(i[++o]);n.ip=o}function Ln(t,n){var r=n.ip,i=n.prog,o=n.stack;e.DEBUG&&console.log(n.ip,"PUSHW["+t+"]");for(var s=0;s<t;s++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),o.push(a)}n.ip=r}function Mn(t,n,r,i,o,s){var a,l,c,u,h=s.stack,p=t&&h.pop(),f=h.pop(),d=s.rp0,g=s.z0[d],m=s.z1[f],v=s.minDis,y=s.fv,b=s.dpv;c=0<=(l=a=b.distance(m,g,!0,!0))?1:-1,l=Math.abs(l),t&&(u=s.cvt[p],i&&Math.abs(l-u)<s.cvCutIn&&(l=u)),r&&l<v&&(l=v),i&&(l=s.round(l)),y.setRelative(m,g,c*l,b),y.touch(m),e.DEBUG&&console.log(s.step,(t?"MIRP[":"MDRP[")+(n?"M":"m")+(r?">":"_")+(i?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",t?p+"("+s.cvt[p]+","+u+")":"",f,"(d =",a,"->",c*l,")"),s.rp1=s.rp0,s.rp2=f,n&&(s.rp0=f)}function Nn(e){this.char=e,this.state={},this.activeState=null}function Bn(e,t,n){this.contextName=n,this.startIndex=e,this.endOffset=t}function Fn(e,t,n){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=n}function zn(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function Hn(e){this.eventId=e,this.subscribers=[]}function Gn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],function(e){var t=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach((function(e){Object.defineProperty(t.events,e,{value:new Hn(e)})})),e&&n.forEach((function(n){var r=e[n];"function"==typeof r&&t.events[n].subscribe(r)})),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}.call(this,e)}function $n(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function Wn(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function jn(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}Kt.prototype.exec=function(t,n){if("number"!=typeof n)throw new Error("Point size is not a number!");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==n){var o=this._fpgmState;if(!o){pn.prototype=hn,(o=this._fpgmState=new pn("fpgm",r.tables.fpgm)).funcs=[],o.font=r,e.DEBUG&&(console.log("---EXEC FPGM---"),o.step=-1);try{qt(o)}catch(t){return console.log("Hinting error in FPGM:"+t),void(this._errorState=3)}}pn.prototype=o,(i=this._prepState=new pn("prep",r.tables.prep)).ppem=n;var s=r.tables.cvt;if(s)for(var a=i.cvt=new Array(s.length),l=n/r.unitsPerEm,c=0;c<s.length;c++)a[c]=s[c]*l;else i.cvt=[];e.DEBUG&&(console.log("---EXEC PREP---"),i.step=-1);try{qt(i)}catch(t){this._errorState<2&&console.log("Hinting error in PREP:"+t),this._errorState=2}}if(!(1<this._errorState))try{return Yt(t,i)}catch(t){return this._errorState<1&&(console.log("Hinting error:"+t),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},Yt=function(t,n){var r,i,o,s=n.ppem/n.font.unitsPerEm,a=s,l=t.components;if(pn.prototype=n,l){var c=n.font;i=[],r=[];for(var u=0;u<l.length;u++){var h=l[u],p=c.glyphs.get(h.glyphIndex);o=new pn("glyf",p.instructions),e.DEBUG&&(console.log("---EXEC COMP "+u+"---"),o.step=-1),Xt(p,o,s,a);for(var f=Math.round(h.dx*s),d=Math.round(h.dy*a),g=o.gZone,m=o.contours,v=0;v<g.length;v++){var y=g[v];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+f,y.yo=y.y=y.y+d}var b=i.length;i.push.apply(i,g);for(var x=0;x<m.length;x++)r.push(m[x]+b)}t.instructions&&!o.inhibitGridFit&&((o=new pn("glyf",t.instructions)).gZone=o.z0=o.z1=o.z2=i,o.contours=r,i.push(new cn(0,0),new cn(Math.round(t.advanceWidth*s),0)),e.DEBUG&&(console.log("---EXEC COMPOSITE---"),o.step=-1),qt(o),i.length-=2)}else o=new pn("glyf",t.instructions),e.DEBUG&&(console.log("---EXEC GLYPH---"),o.step=-1),Xt(t,o,s,a),i=o.gZone;return i},Xt=function(t,n,r,i){for(var o,s,a,l=t.points||[],c=l.length,u=n.gZone=n.z0=n.z1=n.z2=[],h=n.contours=[],p=0;p<c;p++)o=l[p],u[p]=new cn(o.x*r,o.y*i,o.lastPointOfContour,o.onCurve);for(var f=0;f<c;f++)o=u[f],s||(s=o,h.push(f)),o.lastPointOfContour?((o.nextPointOnContour=s).prevPointOnContour=o,s=void 0):(a=u[f+1],(o.nextPointOnContour=a).prevPointOnContour=o);if(!n.inhibitGridFit){if(e.DEBUG){console.log("PROCESSING GLYPH",n.stack);for(var d=0;d<c;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new cn(0,0),new cn(Math.round(t.advanceWidth*r),0)),qt(n),u.length-=2,e.DEBUG){console.log("FINISHED GLYPH",n.stack);for(var g=0;g<c;g++)console.log(g,u[g].x,u[g].y)}}},qt=function(t){var n=t.prog;if(n){var r,i=n.length;for(t.ip=0;t.ip<i;t.ip++){if(e.DEBUG&&t.step++,!(r=jt[n[t.ip]]))throw new Error("unknown instruction: 0x"+Number(n[t.ip]).toString(16));r(t)}}},jt=[gn.bind(void 0,sn),gn.bind(void 0,on),mn.bind(void 0,sn),mn.bind(void 0,on),vn.bind(void 0,sn),vn.bind(void 0,on),yn.bind(void 0,0),yn.bind(void 0,1),bn.bind(void 0,0),bn.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,i),t.pv=t.dpv=ln(i,r)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,i),t.fv=ln(i,r)},function(t){var n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,"GPV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){var n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,"GFV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,"SFVTPV[]")},function(t){var n=t.stack,r=n.pop(),i=n.pop(),o=n.pop(),s=n.pop(),a=n.pop(),l=t.z0,c=t.z1,u=l[r],h=l[i],p=c[o],f=c[s],d=t.z2[a];e.DEBUG&&console.log("ISECT[], ",r,i,o,s,a);var g=u.x,m=u.y,v=h.x,y=h.y,b=p.x,x=p.y,w=f.x,S=f.y,_=(g-v)*(x-S)-(m-y)*(b-w),C=g*y-m*v,T=b*S-x*w;d.x=(C*(b-w)-T*(g-v))/_,d.y=(C*(x-S)-T*(m-y))/_},function(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP0[]",t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP1[]",t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP2[]",t.rp2)},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP0[]",n),t.zp0=n){case 0:t.tZone||fn(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP1[]",n),t.zp1=n){case 0:t.tZone||fn(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP2[]",n),t.zp2=n){case 0:t.tZone||fn(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZPS[]",n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||fn(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,"SLOOP[]",t.loop)},function(t){e.DEBUG&&console.log(t.step,"RTG[]"),t.round=Qt},function(t){e.DEBUG&&console.log(t.step,"RTHG[]"),t.round=en},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SMD[]",n),t.minDis=n/64},function(t){e.DEBUG&&console.log(t.step,"ELSE[]"),dn(t,!1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"JMPR[]",n),t.ip+=n-1},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCVTCI[]",n),t.cvCutIn=n/64},void 0,void 0,function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DUP[]"),n.push(n[n.length-1])},xn,function(t){e.DEBUG&&console.log(t.step,"CLEAR[]"),t.stack.length=0},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"SWAP[]"),n.push(r),n.push(i)},function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DEPTH[]"),n.push(n.length)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CINDEX[]",r),n.push(n[n.length-r])},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"MINDEX[]",r),n.push(n.splice(n.length-r,1)[0])},void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"LOOPCALL[]",r,i);var o=t.ip,s=t.prog;t.prog=t.funcs[r];for(var a=0;a<i;a++)qt(t),e.DEBUG&&console.log(++t.step,a+1<i?"next loopcall":"done loopcall",a);t.ip=o,t.prog=s},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"CALL[]",n);var r=t.ip,i=t.prog;t.prog=t.funcs[n],qt(t),t.ip=r,t.prog=i,e.DEBUG&&console.log(++t.step,"returning from",n)},function(t){if("fpgm"!==t.env)throw new Error("FDEF not allowed here");var n=t.stack,r=t.prog,i=t.ip,o=n.pop(),s=i;for(e.DEBUG&&console.log(t.step,"FDEF[]",o);45!==r[++i];);t.ip=i,t.funcs[o]=r.slice(s+1,i)},void 0,wn.bind(void 0,0),wn.bind(void 0,1),Sn.bind(void 0,sn),Sn.bind(void 0,on),_n.bind(void 0,0),_n.bind(void 0,1),Cn.bind(void 0,0),Cn.bind(void 0,1),Tn.bind(void 0,0),Tn.bind(void 0,1),function(t){for(var n=t.stack,r=t.loop,i=t.fv,o=n.pop()/64,s=t.z2;r--;){var a=n.pop(),l=s[a];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-r)+": ":"")+"SHPIX[]",a,o),i.setRelative(l,l,o),i.touch(l)}t.loop=1},function(t){for(var n=t.stack,r=t.rp1,i=t.rp2,o=t.loop,s=t.z0[r],a=t.z1[i],l=t.fv,c=t.dpv,u=t.z2;o--;){var h=n.pop(),p=u[h];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-o)+": ":"")+"IP[]",h,r,"<->",i),l.interpolate(p,s,a,c),l.touch(p)}t.loop=1},kn.bind(void 0,0),kn.bind(void 0,1),function(t){for(var n=t.stack,r=t.rp0,i=t.z0[r],o=t.loop,s=t.fv,a=t.pv,l=t.z1;o--;){var c=n.pop(),u=l[c];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-o)+": ":"")+"ALIGNRP[]",c),s.setRelative(u,i,0,a),s.touch(u)}t.loop=1},function(t){e.DEBUG&&console.log(t.step,"RTDG[]"),t.round=Jt},En.bind(void 0,0),En.bind(void 0,1),function(t){var n=t.prog,r=t.ip,i=t.stack,o=n[++r];e.DEBUG&&console.log(t.step,"NPUSHB[]",o);for(var s=0;s<o;s++)i.push(n[++r]);t.ip=r},function(t){var n=t.ip,r=t.prog,i=t.stack,o=r[++n];e.DEBUG&&console.log(t.step,"NPUSHW[]",o);for(var s=0;s<o;s++){var a=r[++n]<<8|r[++n];32768&a&&(a=-(1+(65535^a))),i.push(a)}t.ip=n},function(t){var n=t.stack,r=t.store;r||(r=t.store=[]);var i=n.pop(),o=n.pop();e.DEBUG&&console.log(t.step,"WS",i,o),r[o]=i},function(t){var n=t.stack,r=t.store,i=n.pop();e.DEBUG&&console.log(t.step,"RS",i);var o=r&&r[i]||0;n.push(o)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"WCVTP",r,i),t.cvt[i]=r/64},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"RCVT",r),n.push(64*t.cvt[r])},On.bind(void 0,0),On.bind(void 0,1),void 0,Pn.bind(void 0,0),Pn.bind(void 0,1),function(t){e.DEBUG&&console.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&console.log(t.step,"FLIPON[]"),t.autoFlip=!0},void 0,void 0,function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"LT[]",r,i),n.push(i<r?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"LTEQ[]",r,i),n.push(i<=r?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"GT[]",r,i),n.push(r<i?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"GTEQ[]",r,i),n.push(r<=i?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"EQ[]",r,i),n.push(r===i?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"NEQ[]",r,i),n.push(r!==i?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ODD[]",r),n.push(Math.trunc(r)%2?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"EVEN[]",r),n.push(Math.trunc(r)%2?0:1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"IF[]",n),n||(dn(t,!0),e.DEBUG&&console.log(t.step,"EIF[]"))},function(t){e.DEBUG&&console.log(t.step,"EIF[]")},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"AND[]",r,i),n.push(r&&i?1:0)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"OR[]",r,i),n.push(r||i?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NOT[]",r),n.push(r?0:1)},An.bind(void 0,1),function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDB[]",n),t.deltaBase=n},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDS[]",n),t.deltaShift=Math.pow(.5,n)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"ADD[]",r,i),n.push(i+r)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"SUB[]",r,i),n.push(i-r)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"DIV[]",r,i),n.push(64*i/r)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"MUL[]",r,i),n.push(i*r/64)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ABS[]",r),n.push(Math.abs(r))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NEG[]",r),n.push(-r)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"FLOOR[]",r),n.push(64*Math.floor(r/64))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CEILING[]",r),n.push(64*Math.ceil(r/64))},Rn.bind(void 0,0),Rn.bind(void 0,1),Rn.bind(void 0,2),Rn.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"WCVTF[]",r,i),t.cvt[i]=r*t.ppem/t.font.unitsPerEm},An.bind(void 0,2),An.bind(void 0,3),In.bind(void 0,1),In.bind(void 0,2),In.bind(void 0,3),function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SROUND[]",r),t.round=rn,192&r){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid SROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"S45ROUND[]",r),t.round=rn,192&r){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid S45ROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},void 0,void 0,function(t){e.DEBUG&&console.log(t.step,"ROFF[]"),t.round=Zt},void 0,function(t){e.DEBUG&&console.log(t.step,"RUTG[]"),t.round=tn},function(t){e.DEBUG&&console.log(t.step,"RDTG[]"),t.round=nn},xn,xn,void 0,void 0,void 0,void 0,void 0,function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANCTRL[]",n)},Un.bind(void 0,0),Un.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),i=0;e.DEBUG&&console.log(t.step,"GETINFO[]",r),1&r&&(i=35),32&r&&(i|=4096),n.push(i)},void 0,function(t){var n=t.stack,r=n.pop(),i=n.pop(),o=n.pop();e.DEBUG&&console.log(t.step,"ROLL[]"),n.push(i),n.push(r),n.push(o)},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"MAX[]",r,i),n.push(Math.max(i,r))},function(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"MIN[]",r,i),n.push(Math.min(i,r))},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANTYPE[]",n)},function(t){var n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"INSTCTRL[]",n,r),n){case 1:return void(t.inhibitGridFit=!!r);case 2:return void(t.ignoreCvt=!!r);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Dn.bind(void 0,1),Dn.bind(void 0,2),Dn.bind(void 0,3),Dn.bind(void 0,4),Dn.bind(void 0,5),Dn.bind(void 0,6),Dn.bind(void 0,7),Dn.bind(void 0,8),Ln.bind(void 0,1),Ln.bind(void 0,2),Ln.bind(void 0,3),Ln.bind(void 0,4),Ln.bind(void 0,5),Ln.bind(void 0,6),Ln.bind(void 0,7),Ln.bind(void 0,8),Mn.bind(void 0,0,0,0,0,0),Mn.bind(void 0,0,0,0,0,1),Mn.bind(void 0,0,0,0,0,2),Mn.bind(void 0,0,0,0,0,3),Mn.bind(void 0,0,0,0,1,0),Mn.bind(void 0,0,0,0,1,1),Mn.bind(void 0,0,0,0,1,2),Mn.bind(void 0,0,0,0,1,3),Mn.bind(void 0,0,0,1,0,0),Mn.bind(void 0,0,0,1,0,1),Mn.bind(void 0,0,0,1,0,2),Mn.bind(void 0,0,0,1,0,3),Mn.bind(void 0,0,0,1,1,0),Mn.bind(void 0,0,0,1,1,1),Mn.bind(void 0,0,0,1,1,2),Mn.bind(void 0,0,0,1,1,3),Mn.bind(void 0,0,1,0,0,0),Mn.bind(void 0,0,1,0,0,1),Mn.bind(void 0,0,1,0,0,2),Mn.bind(void 0,0,1,0,0,3),Mn.bind(void 0,0,1,0,1,0),Mn.bind(void 0,0,1,0,1,1),Mn.bind(void 0,0,1,0,1,2),Mn.bind(void 0,0,1,0,1,3),Mn.bind(void 0,0,1,1,0,0),Mn.bind(void 0,0,1,1,0,1),Mn.bind(void 0,0,1,1,0,2),Mn.bind(void 0,0,1,1,0,3),Mn.bind(void 0,0,1,1,1,0),Mn.bind(void 0,0,1,1,1,1),Mn.bind(void 0,0,1,1,1,2),Mn.bind(void 0,0,1,1,1,3),Mn.bind(void 0,1,0,0,0,0),Mn.bind(void 0,1,0,0,0,1),Mn.bind(void 0,1,0,0,0,2),Mn.bind(void 0,1,0,0,0,3),Mn.bind(void 0,1,0,0,1,0),Mn.bind(void 0,1,0,0,1,1),Mn.bind(void 0,1,0,0,1,2),Mn.bind(void 0,1,0,0,1,3),Mn.bind(void 0,1,0,1,0,0),Mn.bind(void 0,1,0,1,0,1),Mn.bind(void 0,1,0,1,0,2),Mn.bind(void 0,1,0,1,0,3),Mn.bind(void 0,1,0,1,1,0),Mn.bind(void 0,1,0,1,1,1),Mn.bind(void 0,1,0,1,1,2),Mn.bind(void 0,1,0,1,1,3),Mn.bind(void 0,1,1,0,0,0),Mn.bind(void 0,1,1,0,0,1),Mn.bind(void 0,1,1,0,0,2),Mn.bind(void 0,1,1,0,0,3),Mn.bind(void 0,1,1,0,1,0),Mn.bind(void 0,1,1,0,1,1),Mn.bind(void 0,1,1,0,1,2),Mn.bind(void 0,1,1,0,1,3),Mn.bind(void 0,1,1,1,0,0),Mn.bind(void 0,1,1,1,0,1),Mn.bind(void 0,1,1,1,0,2),Mn.bind(void 0,1,1,1,0,3),Mn.bind(void 0,1,1,1,1,0),Mn.bind(void 0,1,1,1,1,1),Mn.bind(void 0,1,1,1,1,2),Mn.bind(void 0,1,1,1,1,3)],Nn.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},Nn.prototype.getState=function(e){return this.state[e]||null},Gn.prototype.inboundIndex=function(e){return 0<=e&&e<this.tokens.length},Gn.prototype.composeRUD=function(e){var t=this,n=e.map((function(e){return t[e[0]].apply(t,e.slice(1).concat(!0))})),r=function(e){return"object"==typeof e&&e.hasOwnProperty("FAIL")};if(n.every(r))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(r)};this.dispatch("composeRUD",[n.filter((function(e){return!r(e)}))])},Gn.prototype.replaceRange=function(e,t,n,r){t=null!==t?t:this.tokens.length;var i=n.every((function(e){return e instanceof Nn}));if(!isNaN(e)&&this.inboundIndex(e)&&i){var o=this.tokens.splice.apply(this.tokens,[e,t].concat(n));return r||this.dispatch("replaceToken",[e,t,n]),[o,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Gn.prototype.replaceToken=function(e,t,n){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Nn){var r=this.tokens.splice(e,1,t);return n||this.dispatch("replaceToken",[e,t]),[r[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Gn.prototype.removeRange=function(e,t,n){t=isNaN(t)?this.tokens.length:t;var r=this.tokens.splice(e,t);return n||this.dispatch("removeRange",[r,e,t]),r},Gn.prototype.removeToken=function(e,t){if(isNaN(e)||!this.inboundIndex(e))return{FAIL:"removeToken: invalid token index."};var n=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[n,e]),n},Gn.prototype.insertToken=function(e,t,n){return e.every((function(e){return e instanceof Nn}))?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),n||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Gn.prototype.registerModifier=function(e,t,n){this.events.newToken.subscribe((function(r,i){var o=[r,i],s=[r,i];if(null===t||!0===t.apply(this,o)){var a=n.apply(this,s);r.setState(e,a)}})),this.registeredModifiers.push(e)},Hn.prototype.subscribe=function(e){return"function"==typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},Hn.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},zn.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},zn.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case 0<e&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Gn.prototype.rangeToText=function(e){if(e instanceof Bn)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},Gn.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},Gn.prototype.getContext=function(e){return this.registeredContexts[e]||null},Gn.prototype.on=function(e,t){var n=this.events[e];return n?n.subscribe(t):null},Gn.prototype.dispatch=function(e,t){var n=this,r=this.events[e];r instanceof Hn&&r.subscribers.forEach((function(e){e.apply(n,t||[])}))},Gn.prototype.registerContextChecker=function(e,t,n){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!=typeof t)return{FAIL:"missing context start check."};if("function"!=typeof n)return{FAIL:"missing context end check."};var r=new Fn(e,t,n);return this.registeredContexts[e]=r,this.contextCheckers.push(r),r},Gn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Gn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Gn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)e.hasOwnProperty(t)&&(e[t].ranges=[])},Gn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t<e.length;t++){var n=new zn(e,t);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Gn.prototype.setEndOffset=function(e,t){var n=new Bn(this.getContext(t).openRange.startIndex,e,t),r=this.getContext(t).ranges;return n.rangeId=t+"."+r.length,r.push(n),this.getContext(t).openRange=null,n},Gn.prototype.runContextCheck=function(e){var t=this,n=e.index;this.contextCheckers.forEach((function(r){var i=r.contextName,o=t.getContext(i).openRange;if(!o&&r.checkStart(e)&&(o=new Bn(n,null,i),t.getContext(i).openRange=o,t.dispatch("contextStart",[i,n])),o&&r.checkEnd(e)){var s=n-o.startIndex+1,a=t.setEndOffset(s,i);t.dispatch("contextEnd",[i,a])}}))},Gn.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var n=0;n<t.length;n++){var r=t[n],i=new zn(t,n);this.dispatch("next",[i]),this.runContextCheck(i);var o=new Nn(r);this.tokens.push(o),this.dispatch("newToken",[o,i])}return this.dispatch("end",[this.tokens]),this.tokens};var qn={arabicWordStartCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&$n(t)||!$n(n)&&$n(t)},arabicWordEndCheck:function(e){var t=e.get(1);return null===t||!$n(t)}},Yn={arabicSentenceStartCheck:function(e){var t=e.current,n=e.get(-1);return($n(t)||jn(t))&&!$n(n)},arabicSentenceEndCheck:function(e){var t=e.get(1);switch(!0){case null===t:return!0;case!$n(t)&&!jn(t):var n=/\s/.test(t);if(!n)return!0;if(n&&!e.lookahead.some((function(e){return $n(e)||jn(e)})))return!0;break;default:return!1}}};function Xn(e){var t=this.features.arab,n=this.tokenizer.getRangeTokens(e);if(1!==n.length){var r=function(e,n,r){if(t.hasOwnProperty(e)){var i,o=(i=t[e].lookup(r)||null,1===i.length&&12===i[0].id&&i[0].substitution)[0];return 0<=o?n.setState(e,o):void 0}},i=new zn(n,0),o=new zn(n.map((function(e){return e.char})),0);n.forEach((function(e,t){if(!jn(e.char)){i.setCurrentIndex(t),o.setCurrentIndex(t);var n=0;switch(function(e){for(var t=[].concat(e.backtrack),n=t.length-1;0<=n;n--){var r=t[n],i=Wn(r),o=jn(r);if(!i&&!o)return!0;if(i)return!1}return!1}(o)&&(n|=1),function(e){if(Wn(e.current))return!1;for(var t=0;t<e.lookahead.length;t++)if(!jn(e.lookahead[t]))return!0;return!1}(o)&&(n|=2),n){case 0:return;case 1:r("fina",e,i);break;case 2:r("init",e,i);break;case 3:r("medi",e,i)}}}))}}function Vn(e){this.baseDir=e||"ltr",this.tokenizer=new Gn,this.features=[]}function Kn(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function Zn(){var e=this;this.features.hasOwnProperty("arab")&&this.features.arab.hasOwnProperty("rlig")&&(Kn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){(function(e){var t=this.features.arab;if(t.hasOwnProperty("rlig"))for(var n=this.tokenizer.getRangeTokens(e),r=0;r<n.length;r++){var i=new zn(n,r),o=t.rlig.lookup(i)||null,s=1===o.length&&63===o[0].id&&o[0].substitution,a=1===o.length&&41===o[0].id&&o[0].substitution[0],l=n[r];if(a){l.setState("rlig",[a.ligGlyph]);for(var c=0;c<a.components.length;c++){var u=a.components[c],h=i.get(c+1);h.activeState.value===u&&(h.state.deleted=!0)}}else if(s){var p=s&&1===s.length&&12===s[0].id&&s[0].substitution;p&&0<=p&&l.setState("rlig",p)}}}).call(e,t)})))}Vn.prototype.setText=function(e){this.text=e},Vn.prototype.contextChecks={arabicWordCheck:qn,arabicSentenceCheck:Yn},Vn.prototype.subscribeArabicForms=function(e){var t=this;this.tokenizer.events.contextEnd.subscribe((function(n,r){if("arabicWord"===n)return Xn.call(t.tokenizer,r,e)}))},Vn.prototype.applyFeatures=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n){var r=n.script;this.features[r]||(this.features[r]={}),this.features[r][n.tag]=n}}},Vn.prototype.registerModifier=function(e,t,n){this.tokenizer.registerModifier(e,t,n)},Vn.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),function(){return function(){var e=this.contextChecks.arabicWordCheck;return this.tokenizer.registerContextChecker("arabicWord",e.arabicWordStartCheck,e.arabicWordEndCheck)}.call(this),function(){var e=this.contextChecks.arabicSentenceCheck;return this.tokenizer.registerContextChecker("arabicSentence",e.arabicSentenceStartCheck,e.arabicSentenceEndCheck)}.call(this),this.tokenizer.tokenize(this.text)}.call(this),function(){var e=this;this.features.hasOwnProperty("arab")&&(Kn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){Xn.call(e,t)})))}.call(this),Zn.call(this),function(){var e=this;this.tokenizer.getContextRanges("arabicSentence").forEach((function(t){var n=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,n.reverse())}))}.call(this))},Vn.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},Vn.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],n=0;n<this.tokenizer.tokens.length;n++){var r=this.tokenizer.tokens[n];if(!r.state.deleted){var i=r.activeState.value;t.push(Array.isArray(i)?i[0]:i)}}return t};var Qn="ltr";function Jn(e,t){this.font=e,this.features={},Qn=t||Qn}function er(e,t,n,r){this.tag=e,this.featureRef=t,this.lookups=n.lookups,this.script=r}function tr(e){this.table=e}function nr(e){this.ligatureSets=e}function rr(e,t,n){this.lookups=e,this.subtable=n,this.lookupTable=t,n.hasOwnProperty("coverage")&&(this.coverage=new tr(n.coverage)),n.hasOwnProperty("inputCoverage")&&(this.inputCoverage=n.inputCoverage.map((function(e){return new tr(e)}))),n.hasOwnProperty("backtrackCoverage")&&(this.backtrackCoverage=n.backtrackCoverage.map((function(e){return new tr(e)}))),n.hasOwnProperty("lookaheadCoverage")&&(this.lookaheadCoverage=n.lookaheadCoverage.map((function(e){return new tr(e)}))),n.hasOwnProperty("ligatureSets")&&(this.ligatureSets=new nr(n.ligatureSets))}function ir(e,t){this.index=e,this.subtables=t[e].subtables.map((function(n){return new rr(t,t[e],n)}))}function or(e,t){this.lookups=t.map((function(t){return new ir(t,e)}))}function sr(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=t.current.activeState.value;o=Array.isArray(o)?o[0]:o;var s=i.lookup(o);-1!==s&&n.push(s)}return n.length!==e.length?-1:n}function ar(e){(e=e||{}).empty||(Ft(e.familyName,"When creating a new Font object, familyName is required."),Ft(e.styleName,"When creating a new Font object, styleName is required."),Ft(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Ft(e.ascender,"When creating a new Font object, ascender is required."),Ft(e.descender,"When creating a new Font object, descender is required."),Ft(e.descender<0,"Descender should be negative (e.g. -512)."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new we.GlyphSet(this,e.glyphs||[]),this.encoding=new fe(this),this.position=new Dt(this),this.substitution=new Lt(this),this.tables=this.tables||{},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Kt(this):void 0}})}function lr(e,t,n,r){var i={},o=new se.Parser(e,t);i.name=r[o.parseUShort()]||{},o.skip("uShort",1),i.coordinates={};for(var s=0;s<n.length;++s)i.coordinates[n[s].tag]=o.parseFixed();return i}nr.prototype.lookup=function(e,t){for(var n=this.ligatureSets[t],r=function(e,t){if(e.length>t.length)return null;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},i=0;i<n.length;i++){var o=n[i],s=e.lookahead.map((function(e){return e.activeState.value}));if("rtl"===Qn&&s.reverse(),r(o.components,s))return o}return null},ir.prototype.lookup=function(e){for(var t=[],n=0;n<this.subtables.length;n++){var r=this.subtables[n].lookup(e);(null!==r||r.length)&&(t=t.concat(r))}return t},rr.prototype.lookup=function(e){var t=[],n=this.lookupTable.lookupType,r=this.subtable.substFormat;if(1===n&&2===r){var i=function(e){var t=e.current.activeState.value;t=Array.isArray(t)?t[0]:t;var n=this.coverage.lookup(t);return-1===n?[]:[this.subtable.substitute[n]]}.call(this,e);0<i.length&&t.push({id:12,substitution:i})}if(6===n&&3===r){var o=function(e){var t=this.inputCoverage.length+this.lookaheadCoverage.length+this.backtrackCoverage.length;if(e.context.length<t)return[];var n=sr(this.inputCoverage,e);if(-1===n)return[];var r=this.inputCoverage.length-1;if(e.lookahead.length<this.lookaheadCoverage.length)return[];for(var i=e.lookahead.slice(r);i.length&&jn(i[0].char);)i.shift();var o=new zn(i,0),s=sr(this.lookaheadCoverage,o),a=[].concat(e.backtrack);for(a.reverse();a.length&&jn(a[0].char);)a.shift();if(a.length<this.backtrackCoverage.length)return[];var l=new zn(a,0),c=sr(this.backtrackCoverage,l),u=[];if(n.length===this.inputCoverage.length&&s.length===this.lookaheadCoverage.length&&c.length===this.backtrackCoverage.length)for(var h=this.subtable.lookupRecords,p=0;p<h.length;p++)for(var f=h[p],d=0;d<n.length;d++){var g=new zn([e.get(d)],0),m=new ir(f.lookupListIndex,this.lookups).lookup(g);u=u.concat(m)}return u}.call(this,e);0<o.length&&t.push({id:63,substitution:o})}if(4===n&&1===r){var s=function(e){var t=e.current.activeState.value,n=this.coverage.lookup(t);if(-1===n)return[];var r=this.ligatureSets.lookup(e,n);return r?[r]:[]}.call(this,e);0<s.length&&t.push({id:41,substitution:s})}return t},tr.prototype.lookup=function(e){if(!e)return-1;switch(this.table.format){case 1:return this.table.glyphs.indexOf(e);case 2:for(var t=this.table.ranges,n=0;n<t.length;n++){var r=t[n];if(e>=r.start&&e<=r.end){var i=e-r.start;return r.index+i}}break;default:return-1}return-1},er.prototype.lookup=function(e){for(var t=[],n=0;n<this.lookups.length;n++){var r=this.lookups[n].lookup(e);(null!==r||r.length)&&(t=t.concat(r))}return t},Jn.prototype.getScriptFeaturesIndexes=function(e){if(!e)return[];if(!this.font.tables.gsub)return[];for(var t=this.font.tables.gsub.scripts,n=0;n<t.length;n++){var r=t[n];if(r.tag===e)return r.script.defaultLangSys.featureIndexes;var i=r.langSysRecords;if(i)for(var o=0;o<i.length;o++){var s=i[o];if(s.tag===e)return s.langSys.featureIndexes}}return[]},Jn.prototype.mapTagsToFeatures=function(e,t){for(var n={},r=0;r<e.length;r++){var i=e[r].feature,o=e[r].tag,s=new or(this.font.tables.gsub.lookups,i.lookupListIndexes);n[o]=new er(o,i,s,t)}this.features[t].tags=n},Jn.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var n=this.getScriptFeaturesIndexes(e);if(!n)return null;var r=this.font.tables.gsub;return t=n.map((function(e){return r.features[e]})),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Jn.prototype.getFeature=function(e){return this.font?(this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script),this.features[e.script].tags[e.tag]||null):{FAIL:"No font was found"}},ar.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},ar.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},ar.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},ar.prototype.stringToGlyphs=function(e,t){var n=this;t=t||this.defaultRenderOptions;var r=new Vn;r.registerModifier("glyphIndex",null,(function(e){return n.charToGlyphIndex(e.char)}));var i=new Jn(this);r.applyFeatures(["init","medi","fina","rlig"].map((function(e){var t={tag:e,script:"arab"},n=i.getFeature(t);if(n)return n})));var o=r.getTextGlyphs(e),s=o.length;if(t.features){var a=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature("liga",a,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature("rlig",a,t.language)));for(var c=0;c<s;c+=1)for(var u=0;u<l.length;u++){for(var h=l[u],p=h.sub,f=p.length,d=0;d<f&&p[d]===o[c+d];)d++;d===f&&(o.splice(c,f,h.by),s=s-f+1)}}for(var g=new Array(s),m=this.glyphs.get(0),v=0;v<s;v+=1)g[v]=n.glyphs.get(o[v])||m;return g},ar.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},ar.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},ar.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},ar.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,e,t):this.kerningPairs[e+","+t]||0},ar.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},ar.prototype.forEachGlyph=function(e,t,n,r,i,o){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,i=i||this.defaultRenderOptions;var s,a=1/this.unitsPerEm*r,l=this.stringToGlyphs(e,i);if(i.kerning){var c=i.script||this.position.getDefaultScriptName();s=this.position.getKerningTables(c,i.language)}for(var u=0;u<l.length;u+=1){var h=l[u];o.call(this,h,t,n,r,i),h.advanceWidth&&(t+=h.advanceWidth*a),i.kerning&&u<l.length-1&&(t+=(s?this.position.getKerningValue(s,h.index,l[u+1].index):this.getKerningValue(h,l[u+1]))*a),i.letterSpacing?t+=i.letterSpacing*r:i.tracking&&(t+=i.tracking/1e3*r)}return t},ar.prototype.getPath=function(e,t,n,r,i){var o=new E;return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){var s=e.getPath(t,n,r,i,this);o.extend(s)})),o},ar.prototype.getPaths=function(e,t,n,r,i){var o=[];return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){var s=e.getPath(t,n,r,i,this);o.push(s)})),o},ar.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,(function(){}))},ar.prototype.draw=function(e,t,n,r,i,o){this.getPath(t,n,r,i,o).draw(e)},ar.prototype.drawPoints=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,(function(t,n,r,i){t.drawPoints(e,n,r,i)}))},ar.prototype.drawMetrics=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,(function(t,n,r,i){t.drawMetrics(e,n,r,i)}))},ar.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},ar.prototype.validate=function(){var e=this;function t(t){var n=e.getEnglishName(t);n&&n.trim().length}t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),this.unitsPerEm},ar.prototype.toTables=function(){return Pt(this)},ar.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},ar.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},ar.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),r=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+r+".otf";var i=this.toArrayBuffer();if("undefined"!=typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var o=new DataView(i),s=new Blob([o],{type:"font/opentype"}),a=document.createElement("a");a.href=window.URL.createObjectURL(s),a.download=e;var l=document.createEvent("MouseEvents");l.initEvent("click",!0,!1),a.dispatchEvent(l)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var c=n(46102),u=function(e){for(var t=new Buffer(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}(i);c.writeFileSync(e,u)}},ar.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},ar.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},ar.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var cr=function(e,t,n){var r=new se.Parser(e,t),i=r.parseULong();A.argument(65536===i,"Unsupported fvar table version.");var o=r.parseOffset16();r.skip("uShort",1);for(var s,a,l,c,u,h=r.parseUShort(),p=r.parseUShort(),f=r.parseUShort(),d=r.parseUShort(),g=[],m=0;m<h;m++)g.push((s=e,a=t+o+m*p,l=n,u=c=void 0,c={},u=new se.Parser(s,a),c.tag=u.parseTag(),c.minValue=u.parseFixed(),c.defaultValue=u.parseFixed(),c.maxValue=u.parseFixed(),u.skip("uShort",1),c.name=l[u.parseUShort()]||{},c));for(var v=[],y=t+o+h*p,b=0;b<f;b++)v.push(lr(e,y+b*d,g,n));return{axes:g,instances:v}},ur=new Array(10);ur[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(ie.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(ie.coverage),values:this.parseValueRecordList()}:void A.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},ur[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();A.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(ie.coverage),r=this.parseUShort(),i=this.parseUShort();if(1===t)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(ie.pointer(ie.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))))};if(2===t){var o=this.parsePointer(ie.classDef),s=this.parsePointer(ie.classDef),a=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:o,classDef2:s,class1Count:a,class2Count:l,classRecords:this.parseList(a,ie.list(l,(function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))}}},ur[3]=function(){return{error:"GPOS Lookup 3 not supported"}},ur[4]=function(){return{error:"GPOS Lookup 4 not supported"}},ur[5]=function(){return{error:"GPOS Lookup 5 not supported"}},ur[6]=function(){return{error:"GPOS Lookup 6 not supported"}},ur[7]=function(){return{error:"GPOS Lookup 7 not supported"}},ur[8]=function(){return{error:"GPOS Lookup 8 not supported"}},ur[9]=function(){return{error:"GPOS Lookup 9 not supported"}};new Array(10);var hr=function(e,t){var n=new ie(e,t=t||0),r=n.parseVersion(1);return A.argument(1===r||1.1===r,"Unsupported GPOS table version "+r),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ur)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ur),variations:n.parseFeatureVariationsList()}},pr=function(e,t){var n=new se.Parser(e,t),r=n.parseUShort();if(0===r)return function(e){var t={};e.skip("uShort");var n=e.parseUShort();A.argument(0===n,"Unsupported kern sub-table version."),e.skip("uShort",2);var r=e.parseUShort();e.skip("uShort",3);for(var i=0;i<r;i+=1){var o=e.parseUShort(),s=e.parseUShort(),a=e.parseShort();t[o+","+s]=a}return t}(n);if(1===r)return function(e){var t={};e.skip("uShort"),1<e.parseULong()&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=255&e.parseUShort();if(e.skip("uShort"),0===n){var r=e.parseUShort();e.skip("uShort",3);for(var i=0;i<r;i+=1){var o=e.parseUShort(),s=e.parseUShort(),a=e.parseShort();t[o+","+s]=a}}return t}(n);throw new Error("Unsupported kern table version ("+r+").")},fr=function(e,t,n,r){for(var i=new se.Parser(e,t),o=r?i.parseUShort:i.parseULong,s=[],a=0;a<n+1;a+=1){var l=o.call(i);r&&(l*=2),s.push(l)}return s};function dr(e,t){n(46102).readFile(e,(function(e,n){if(e)return t(e.message);t(null,Bt(n))}))}function gr(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return n.response?t(null,n.response):t("Font could not be loaded: "+n.statusText)},n.onerror=function(){t("Font could not be loaded")},n.send()}function mr(e,t){for(var n=[],r=12,i=0;i<t;i+=1){var o=se.getTag(e,r),s=se.getULong(e,r+4),a=se.getULong(e,r+8),l=se.getULong(e,r+12);n.push({tag:o,checksum:s,offset:a,length:l,compression:!1}),r+=16}return n}function vr(e,t){if("WOFF"!==t.compression)return{data:e,offset:t.offset};var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(C(n,r),r.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(r.buffer,0),offset:0}}function yr(e){var t,n,r,i,o,s,a,l,c,u,h,p,f,d,g=new ar({empty:!0}),m=new DataView(e,0),v=[],y=se.getTag(m,0);if(y===String.fromCharCode(0,1,0,0)||"true"===y||"typ1"===y)g.outlinesFormat="truetype",v=mr(m,r=se.getUShort(m,4));else if("OTTO"===y)g.outlinesFormat="cff",v=mr(m,r=se.getUShort(m,4));else{if("wOFF"!==y)throw new Error("Unsupported OpenType signature "+y);var b=se.getTag(m,4);if(b===String.fromCharCode(0,1,0,0))g.outlinesFormat="truetype";else{if("OTTO"!==b)throw new Error("Unsupported OpenType flavor "+y);g.outlinesFormat="cff"}v=function(e,t){for(var n=[],r=44,i=0;i<t;i+=1){var o,s=se.getTag(e,r),a=se.getULong(e,r+4),l=se.getULong(e,r+8),c=se.getULong(e,r+12);o=l<c&&"WOFF",n.push({tag:s,offset:a,compression:o,compressedLength:l,length:c}),r+=20}return n}(m,r=se.getUShort(m,12))}for(var x=0;x<r;x+=1){var w=v[x],S=void 0;switch(w.tag){case"cmap":S=vr(m,w),g.tables.cmap=ae(S.data,S.offset),g.encoding=new de(g.tables.cmap);break;case"cvt ":S=vr(m,w),d=new se.Parser(S.data,S.offset),g.tables.cvt=d.parseShortList(w.length/2);break;case"fvar":o=w;break;case"fpgm":S=vr(m,w),d=new se.Parser(S.data,S.offset),g.tables.fpgm=d.parseByteList(w.length);break;case"head":S=vr(m,w),g.tables.head=He(S.data,S.offset),g.unitsPerEm=g.tables.head.unitsPerEm,t=g.tables.head.indexToLocFormat;break;case"hhea":S=vr(m,w),g.tables.hhea=$e(S.data,S.offset),g.ascender=g.tables.hhea.ascender,g.descender=g.tables.hhea.descender,g.numberOfHMetrics=g.tables.hhea.numberOfHMetrics;break;case"hmtx":c=w;break;case"ltag":S=vr(m,w),n=Xe(S.data,S.offset);break;case"maxp":S=vr(m,w),g.tables.maxp=Ve(S.data,S.offset),g.numGlyphs=g.tables.maxp.numGlyphs;break;case"name":p=w;break;case"OS/2":S=vr(m,w),g.tables.os2=pt(S.data,S.offset);break;case"post":S=vr(m,w),g.tables.post=gt(S.data,S.offset),g.glyphNames=new me(g.tables.post);break;case"prep":S=vr(m,w),d=new se.Parser(S.data,S.offset),g.tables.prep=d.parseByteList(w.length);break;case"glyf":s=w;break;case"loca":h=w;break;case"CFF ":i=w;break;case"kern":u=w;break;case"GPOS":a=w;break;case"GSUB":l=w;break;case"meta":f=w}}var _=vr(m,p);if(g.tables.name=ct(_.data,_.offset,n),g.names=g.tables.name,s&&h){var C=0===t,T=vr(m,h),k=fr(T.data,T.offset,g.numGlyphs,C),E=vr(m,s);g.glyphs=Vt.parse(E.data,E.offset,k,g)}else{if(!i)throw new Error("Font doesn't contain TrueType or CFF outlines.");var O=vr(m,i);Fe(O.data,O.offset,g)}var P=vr(m,c);if(je(P.data,P.offset,g.numberOfHMetrics,g.numGlyphs,g.glyphs),function(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var o=r[i],s=n[o];(t=e.glyphs.get(s)).addUnicode(parseInt(o))}for(var a=0;a<e.glyphs.length;a+=1)t=e.glyphs.get(a),e.cffEncoding?e.isCIDFont?t.name="gid"+a:t.name=e.cffEncoding.charset[a]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(a))}(g),u){var A=vr(m,u);g.kerningPairs=pr(A.data,A.offset)}else g.kerningPairs={};if(a){var R=vr(m,a);g.tables.gpos=hr(R.data,R.offset),g.position.init()}if(l){var I=vr(m,l);g.tables.gsub=xt(I.data,I.offset)}if(o){var U=vr(m,o);g.tables.fvar=cr(U.data,U.offset,g.names)}if(f){var D=vr(m,f);g.tables.meta=St(D.data,D.offset),g.metas=g.tables.meta}return g}e.Font=ar,e.Glyph=ye,e.Path=E,e.BoundingBox=k,e._parse=se,e.parse=yr,e.load=function(e,t){("undefined"==typeof window?dr:gr)(e,(function(e,n){if(e)return t(e);var r;try{r=yr(n)}catch(e){return t(e,null)}return t(null,r)}))},e.loadSync=function(e){return yr(Bt(n(46102).readFileSync(e)))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},20454:function(e,t,n){var r,i,o,s=n(19755);i=[n(19755)],r=function(t){var n=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var n=t.fn.select2.amd;var r,i,o,a;return n&&n.requirejs||(n?i=n:n={},function(e){var t,n,s,a,l={},c={},u={},h={},p=Object.prototype.hasOwnProperty,f=[].slice,d=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,r,i,o,s,a,l,c,h,p,f,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&d.test(e[s])&&(e[s]=e[s].replace(d,"")),e=g.slice(0,g.length-1).concat(e),h=0;h<e.length;h+=1)if("."===(f=e[h]))e.splice(h,1),h-=1;else if(".."===f){if(1===h&&(".."===e[2]||".."===e[0]))break;h>0&&(e.splice(h-1,2),h-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((g||v)&&m){for(h=(n=e.split("/")).length;h>0;h-=1){if(r=n.slice(0,h).join("/"),g)for(p=g.length;p>0;p-=1)if((i=m[g.slice(0,p).join("/")])&&(i=i[r])){o=i,a=h;break}if(o)break;!l&&v&&v[r]&&(l=v[r],c=h)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function v(t,r){return function(){var i=f.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),n.apply(e,i.concat([t,r]))}}function y(e){return function(t){l[e]=t}}function b(n){if(g(c,n)){var r=c[n];delete c[n],h[n]=!0,t.apply(e,r)}if(!g(l,n)&&!g(h,n))throw new Error("No "+n);return l[n]}function x(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function w(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,r=x(e),i=r[0];return e=r[1],i&&(n=b(i=m(i,t))),i?e=n&&n.normalize?n.normalize(e,function(e){return function(t){return m(t,e)}}(t)):m(e,t):(i=(r=x(e=m(e,t)))[0],e=r[1],i&&(n=b(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:w(e)}}},t=function(t,n,r,i){var o,u,p,f,d,m,x=[],w=typeof r;if(i=i||t,"undefined"===w||"function"===w){for(n=!n.length&&r.length?["require","exports","module"]:n,d=0;d<n.length;d+=1)if("require"===(u=(f=s(n[d],i)).f))x[d]=a.require(t);else if("exports"===u)x[d]=a.exports(t),m=!0;else if("module"===u)o=x[d]=a.module(t);else if(g(l,u)||g(c,u)||g(h,u))x[d]=b(u);else{if(!f.p)throw new Error(t+" missing "+u);f.p.load(f.n,v(i,!0),y(u),{}),x[d]=l[u]}p=r?r.apply(l[t],x):void 0,t&&(o&&o.exports!==e&&o.exports!==l[t]?l[t]=o.exports:p===e&&m||(l[t]=p))}else t&&(l[t]=r)},r=i=n=function(r,i,o,l,c){if("string"==typeof r)return a[r]?a[r](i):b(s(r,i).f);if(!r.splice){if((u=r).deps&&n(u.deps,u.callback),!i)return;i.splice?(r=i,i=o,o=null):r=e}return i=i||function(){},"function"==typeof o&&(o=l,l=c),l?t(e,r,i,o):setTimeout((function(){t(e,r,i,o)}),4),n},n.config=function(e){return n(e)},r._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),n.requirejs=r,n.require=i,n.define=o),n.define("almond",(function(){})),n.define("jquery",[],(function(){var e=t||s;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),n.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var r in t)"function"==typeof t[r]&&"constructor"!==r&&n.push(r);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},t.Decorate=function(e,t){var r=n(t),i=n(e);function o(){var n=Array.prototype.unshift,r=t.prototype.constructor.length,i=e.prototype.constructor;r>0&&(n.call(arguments,e.prototype.constructor),i=t.prototype.constructor),i.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<i.length;s++){var a=i[s];o.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var r=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),r.apply(this,arguments)}},c=0;c<r.length;c++){var u=r[c];o.prototype[u]=l(u)}return o};var r=function(){this.listeners={}};return r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},t.Observable=r,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var r=e(n),i=n.style.overflowX,o=n.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var r=e();e.map(n,(function(e){r=r.add(e)})),n=r}t.append(n)},t})),n.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);r.append(n(i(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current((function(n){var r=e.map(n,(function(e){return e.id.toString()}));t.$results.find(".select2-results__option[aria-selected]").each((function(){var t=e(this),n=e.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(i,r)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};for(var i in t.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==t.id&&delete r["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(r.role="group",r["aria-label"]=t.text,delete r["aria-selected"]),r){var o=r[i];n.setAttribute(i,o)}if(t.children){var s=e(n),a=document.createElement("strong");a.className="select2-results__group",e(a),this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],h=this.option(u);l.push(h)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var r=this,i=t.id+"-results";this.$results.attr("id",i),t.on("results:all",(function(e){r.clear(),r.append(e.data),t.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),t.on("results:append",(function(e){r.append(e.data),t.isOpen()&&r.setClasses()})),t.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),t.on("select",(function(){t.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),t.on("unselect",(function(){t.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),t.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),t.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),t.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),t.on("results:select",(function(){var e=r.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:t})}})),t.on("results:previous",(function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}})),t.on("results:next",(function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}})),t.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),t.on("results:message",(function(e){r.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(t){var n=e(this),i=n.data("data");"true"!==n.attr("aria-selected")?r.trigger("select",{originalEvent:t,data:i}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:t,data:i}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(t){var n=e(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):e(n).append(o)},n})),n.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),n.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(e,t){var r=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",(function(e){r.trigger("focus",e)})),this.$selection.on("blur",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",(function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){r.update(e.data)})),e.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(e)})),e.on("close",(function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(e)})),e.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex)})),e.on("disable",(function(){r.$selection.attr("tabindex","-1")}))},r.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},r.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,(function(t){var n=e(t.target).closest(".select2");e(".select2.select2-container--open").each((function(){var t=e(this);this!=n[0]&&t.data("element").select2("close")}))}))},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r})),n.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.focus()})),e.on("selection:update",(function(e){n.update(e.data)}))},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r),n.prop("title",t.title||t.text)}else this.clear()},i})),n.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){i.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!i.options.get("disabled")){var n=e(this).parent().data("data");i.trigger("unselect",{originalEvent:t,data:n})}}))},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=0;r<e.length;r++){var i=e[r],o=this.selectionContainer(),s=this.display(i,o);o.append(s),o.prop("title",i.title||i.text),o.data("data",i),t.push(o)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},r})),n.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t})),n.define("select2/selection/allowClear",["jquery","../keys"],(function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){r._handleClear(e)})),t.on("keypress",(function(e){r._handleKeyboardClear(e,t)}))},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var r=n.data("data"),i=0;i<r.length;i++){var o={data:r[i]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,r){r.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=e('<span class="select2-selection__clear">&times;</span>');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n})),n.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=t.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(e,t,r){var i=this;e.call(this,t,r),t.on("open",(function(){i.$search.trigger("focus")})),t.on("close",(function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")})),t.on("enable",(function(){i.$search.prop("disabled",!1),i._transferTabIndex()})),t.on("disable",(function(){i.$search.prop("disabled",!0)})),t.on("focus",(function(e){i.$search.trigger("focus")})),t.on("results:focus",(function(e){i.$search.attr("aria-activedescendant",e.id)})),this.$selection.on("focusin",".select2-search--inline",(function(e){i.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var r=t.data("data");i.searchRemoveChoice(r),e.preventDefault()}}}));var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(s&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&i.handleSearch(e)}}))},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e;e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},r})),n.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,n,r),n.on("*",(function(t,n){if(-1!==e.inArray(t,o)){n=n||{};var r=e.Event("select2:"+t,{params:n});i.$element.trigger(r),-1!==e.inArray(t,s)&&(n.prevented=r.isDefaultPrevented())}}))},t})),n.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var r=t(e);n._cache[e]=r}return new n(n._cache[e])},n})),n.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}})),n.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var r=t.id+"-result-";return r+=e.generateChars(4),null!=n.id?r+="-"+n.id.toString():r+="-"+e.generateChars(4),r},t})),n.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=[],r=this;this.$element.find(":selected").each((function(){var e=n(this),i=r.item(e);t.push(i)})),e(t)},r.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(r){var i=[];(e=[e]).push.apply(e,r);for(var o=0;o<e.length;o++){var s=e[o].id;-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("change")}));else{var r=e.id;this.$element.val(r),this.$element.trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current((function(r){for(var i=[],o=0;o<r.length;o++){var s=r[o].id;s!==e.id&&-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("change")}))}},r.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},r.prototype.destroy=function(){this.$element.find("*").each((function(){n.removeData(this,"data")}))},r.prototype.query=function(e,t){var r=[],i=this;this.$element.children().each((function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var o=i.item(t),s=i.matches(e,o);null!==s&&r.push(s)}})),t({results:r})},r.prototype.addOptions=function(e){t.appendMany(this.$element,e)},r.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var r=n(t),i=this._normalizeItem(e);return i.element=t,n.data(t,"data",i),r},r.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),i=[],o=0;o<r.length;o++){var s=n(r[o]),a=this.item(s);i.push(a)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],n.data(e[0],"data",t),t},r.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},r.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},r})),n.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function r(e,t){var n=t.get("data")||[];r.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(r,e),r.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){var r=this,i=this.$element.find("option"),o=i.map((function(){return r.item(n(this)).id})).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,o)>=0){var u=i.filter(a(c)),h=this.item(u),p=n.extend(!0,{},c,h),f=this.option(p);u.replaceWith(f)}else{var d=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(d,g)}s.push(d)}}return s},r})),n.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,r){var i=n.ajax(e);return i.then(t),i.fail(r),i}};return n.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=i.transport(i,(function(i){var o=r.processResults(i,e);r.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)}),(function(){o.status&&"0"===o.status||r.trigger("results:message",{message:"errorLoading"})}));r._request=o}"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},r})),n.define("select2/data/tags",["jquery"],(function(e){function t(t,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var s=r.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,r),e.isArray(i))for(var a=0;a<i.length;a++){var l=i[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var r=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(i,o){for(var s=i.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if(l.text===t.term||c)return!o&&(i.data=s,void n(i))}if(o)return!0;var u=r.createTag(t);if(null!=u){var h=r.option(u);h.attr("data-select2-tag",!0),r.addOptions([h]),r.insertTag(s,u)}i.results=s,n(i)})):e.call(this,t,n)},t.prototype.createTag=function(t,n){var r=e.trim(n.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag,this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),n.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,r){var i=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(t){var n=i._normalizeItem(t);if(!i.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}!function(e){i.trigger("select",{data:e})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),n.term=o.term),t.call(this,n,r)},t.prototype.tokenizer=function(t,n,r,i){for(var o=r.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,o)){var u=s.substr(0,a),h=l(e.extend({},n,{term:u}));null!=h?(i(h),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),n.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),n.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),n.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var r=this;this.current((function(i){var o=null!=i?i.length:0;r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):e.call(r,t,n)}))},e})),n.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),n.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(t,n,r){var i=this;t.call(this,n,r),this.$search.on("keydown",(function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){i.handleSearch(e)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout((function(){i.$search.focus()}),0)})),n.on("close",(function(){i.$search.attr("tabindex",-1),i.$search.val("")})),n.on("focus",(function(){n.isOpen()&&i.$search.focus()})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}))},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n})),n.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;r>=0;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e})),n.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,r){var i=this;t.call(this,n,r),n.on("query",(function(e){i.lastParams=e,i.loading=!0})),n.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",(function(){var t=e.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&t&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()}))},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),n.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,r){this.$dropdownParent=r.get("dropdownParent")||e(document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this,i=!1;e.call(this,t,n),t.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(t),i||(i=!0,t.on("results:all",(function(){r._positionDropdown(),r._resizeDropdown()})),t.on("results:append",(function(){r._positionDropdown(),r._resizeDropdown()})))})),t.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),r=t.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,s="resize.select2."+r.id,a="orientationchange.select2."+r.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(o,(function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)})),e(window).on(o+" "+s+" "+a,(function(e){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id;this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+" "+o+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-a,h=c>o.bottom+a,p={left:o.left,top:s.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var d=f.offset();p.top-=d.top,p.left-=d.left,n||r||(i="below"),h||!u||n?!u&&h&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(p.top=s.top-d.top-a),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),n.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}function t(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),n.define("select2/dropdown/selectOnClose",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",(function(e){r._handleSelectOnClose(e)}))},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=r.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e})),n.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",(function(e){r._selectTriggered(e)})),t.on("unselect",(function(e){r._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),n.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),n.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,n,r,i,o,s,a,l,c,u,h,p,f,d,g,m,v,y,b,x,w,S,_,C,T,k,E,O){function P(){this.reset()}return P.prototype.apply=function(h){if(null==(h=e.extend(!0,{},this.defaults,h)).dataAdapter){if(null!=h.ajax?h.dataAdapter=d:null!=h.data?h.dataAdapter=f:h.dataAdapter=p,h.minimumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,v)),h.maximumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,y)),h.maximumSelectionLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,b)),h.tags&&(h.dataAdapter=c.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=c.Decorate(h.dataAdapter,m)),null!=h.query){var O=t(h.amdBase+"compat/query");h.dataAdapter=c.Decorate(h.dataAdapter,O)}if(null!=h.initSelection){var P=t(h.amdBase+"compat/initSelection");h.dataAdapter=c.Decorate(h.dataAdapter,P)}}if(null==h.resultsAdapter&&(h.resultsAdapter=n,null!=h.ajax&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,_)),null!=h.placeholder&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,S)),h.selectOnClose&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,k))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=x;else{var A=c.Decorate(x,w);h.dropdownAdapter=A}if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,T)),h.closeOnSelect&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,E)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass){var R=t(h.amdBase+"compat/dropdownCss");h.dropdownAdapter=c.Decorate(h.dropdownAdapter,R)}h.dropdownAdapter=c.Decorate(h.dropdownAdapter,C)}if(null==h.selectionAdapter){if(h.multiple?h.selectionAdapter=i:h.selectionAdapter=r,null!=h.placeholder&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,o)),h.allowClear&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,s)),h.multiple&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,a)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass){var I=t(h.amdBase+"compat/containerCss");h.selectionAdapter=c.Decorate(h.selectionAdapter,I)}h.selectionAdapter=c.Decorate(h.selectionAdapter,l)}if("string"==typeof h.language)if(h.language.indexOf("-")>0){var U=h.language.split("-")[0];h.language=[h.language,U]}else h.language=[h.language];if(e.isArray(h.language)){var D=new u;h.language.push("en");for(var L=h.language,M=0;M<L.length;M++){var N=L[M],B={};try{B=u.loadPath(N)}catch(e){try{N=this.defaults.amdLanguageBase+N,B=u.loadPath(N)}catch(e){h.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+N+'" could not be automatically loaded. A fallback will be used instead.');continue}}D.extend(B)}h.translations=D}else{var F=u.loadPath(this.defaults.amdLanguageBase+"en"),z=new u(h.language);z.extend(F),h.translations=z}return h},P.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return h[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:O,matcher:function n(r,i){if(""===e.trim(r.term))return i;if(i.children&&i.children.length>0){for(var o=e.extend(!0,{},i),s=i.children.length-1;s>=0;s--)null==n(r,i.children[s])&&o.children.splice(s,1);return o.children.length>0?o:n(r,o)}var a=t(i.text).toUpperCase(),l=t(r.term).toUpperCase();return a.indexOf(l)>-1?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},P.prototype.set=function(t,n){var r={};r[e.camelCase(t)]=n;var i=c._convertData(r);e.extend(this.defaults,i)},new P})),n.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,n,r){function i(t,i){if(this.options=t,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var i;i=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var o=t.extend(!0,{},i);for(var s in o=r._convertData(o))t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],o[s]):this.options[s]=o[s]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),n.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,r){var i=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),i.__super__.constructor.call(this);var r=e.attr("tabindex")||0;e.data("old-tabindex",r),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){u.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r((function(n){e.each(n,t._syncA),e.each(n,t._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(r,i){-1===e.inArray(r,n)&&t.trigger(r,i)}))},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&t.altKey?(e.close(),t.preventDefault()):n===r.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var i=0;i<t.addedNodes.length;i++)t.addedNodes[i].selected&&(n=!0);else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current((function(e){r.trigger("selection:update",{data:e})}))}},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in r){var o=r[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},i.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,(function(e){return e.toString()}))),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},i})),n.define("select2/compat/utils",["jquery"],(function(e){return{syncCssClasses:function(t,n,r){var i,o,s=[];(i=e.trim(t.attr("class")))&&e((i=""+i).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&s.push(this)})),(i=e.trim(n.attr("class")))&&e((i=""+i).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&null!=(o=r(this))&&s.push(o)})),t.attr("class",s.join(" "))}}})),n.define("select2/compat/containerCss",["jquery","./utils"],(function(e,t){function n(e){return null}function r(){}return r.prototype.render=function(r){var i=r.call(this),o=this.options.get("containerCssClass")||"";e.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(i,this.$element,s),i.css(l),i.addClass(o),i},r})),n.define("select2/compat/dropdownCss",["jquery","./utils"],(function(e,t){function n(e){return null}function r(){}return r.prototype.render=function(r){var i=r.call(this),o=this.options.get("dropdownCssClass")||"";e.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(i,this.$element,s),i.css(l),i.addClass(o),i},r})),n.define("select2/compat/initSelection",["jquery"],(function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var r=this;this._isInitialized?t.call(this,n):this.initSelection.call(null,this.$element,(function(t){r._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)}))},t})),n.define("select2/compat/inputData",["jquery"],(function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return t.prototype.current=function(t,n){function r(t,n){var i=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,i.push(t)):t.selected=!1,t.children&&i.push.apply(i,r(t.children,n)),i}for(var i=[],o=0;o<this._currentData.length;o++){var s=this._currentData[o];i.push.apply(i,r(s,this.$element.val().split(this._valueSeparator)))}n(i)},t.prototype.select=function(t,n){if(this.options.get("multiple")){var r=this.$element.val();r+=this._valueSeparator+n.id,this.$element.val(r),this.$element.trigger("change")}else this.current((function(t){e.map(t,(function(e){e.selected=!1}))})),this.$element.val(n.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current((function(e){for(var r=[],i=0;i<e.length;i++){var o=e[i];t.id!=o.id&&r.push(o.id)}n.$element.val(r.join(n._valueSeparator)),n.$element.trigger("change")}))},t.prototype.query=function(e,t,n){for(var r=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i],s=this.matches(t,o);null!==s&&r.push(s)}n({results:r})},t.prototype.addOptions=function(t,n){var r=e.map(n,(function(t){return e.data(t[0],"data")}));this._currentData.push.apply(this._currentData,r)},t})),n.define("select2/compat/matcher",["jquery"],(function(e){return function(t){return function(n,r){var i=e.extend(!0,{},r);if(null==n.term||""===e.trim(n.term))return i;if(r.children){for(var o=r.children.length-1;o>=0;o--){var s=r.children[o];t(n.term,s.text,s)||i.children.splice(o,1)}if(i.children.length>0)return i}return t(n.term,r.text,r)?i:null}}})),n.define("select2/compat/query",[],(function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e})),n.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e})),n.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),n.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),a=function(e){var t,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var s=r.length;s;)e.event.fixHooks[r[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),r=n["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(r){var i=r||window.event,s=o.call(arguments,1),l=0,h=0,p=0,f=0,d=0,g=0;if((r=e.event.fix(i)).type="mousewheel","detail"in i&&(p=-1*i.detail),"wheelDelta"in i&&(p=i.wheelDelta),"wheelDeltaY"in i&&(p=i.wheelDeltaY),"wheelDeltaX"in i&&(h=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(h=-1*p,p=0),l=0===p?h:p,"deltaY"in i&&(l=p=-1*i.deltaY),"deltaX"in i&&(h=i.deltaX,0===p&&(l=-1*h)),0!==p||0!==h){if(1===i.deltaMode){var m=e.data(this,"mousewheel-line-height");l*=m,p*=m,h*=m}else if(2===i.deltaMode){var v=e.data(this,"mousewheel-page-height");l*=v,p*=v,h*=v}if(f=Math.max(Math.abs(p),Math.abs(h)),(!n||f<n)&&(n=f,u(i,f)&&(n/=40)),u(i,f)&&(l/=40,h/=40,p/=40),l=Math[l>=1?"floor":"ceil"](l/n),h=Math[h>=1?"floor":"ceil"](h/n),p=Math[p>=1?"floor":"ceil"](p/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();d=r.clientX-y.left,g=r.clientY-y.top}return r.deltaX=h,r.deltaY=p,r.deltaFactor=n,r.offsetX=d,r.offsetY=g,r.deltaMode=0,s.unshift(r,l,h,p),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function c(){n=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof n.define&&n.define.amd?n.define("jquery-mousewheel",["jquery"],a):e.exports=a,n.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(e,t,n,r){if(null==e.fn.select2){var i=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var r=e.extend(!0,{},t);new n(e(this),r)})),this;if("string"==typeof t){var r,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=n[t].apply(n,o)})),e.inArray(t,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n})),{define:n.define,require:n.require}}(),r=n.require("jquery.select2");return t.fn.select2.amd=n,r},void 0===(o=r.apply(t,i))||(e.exports=o)},25911:function(e,t,n){var r,i,o;!function(s){"use strict";i=[n(19755)],r=function(e,t){var n={beforeShow:u,move:u,change:u,show:u,hide:u,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},r=[],i=!!/msie/i.exec(window.navigator.userAgent),o=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div").style;return t.cssText="background-color:rgba(0,0,0,.5)",e(t.backgroundColor,"rgba")||e(t.backgroundColor,"hsla")}(),s=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),a=function(){var e="";if(i)for(var t=1;t<=6;t++)e+="<div class='sp-"+t+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function l(t,n,r,i){for(var s=[],a=0;a<t.length;a++){var l=t[a];if(l){var c=tinycolor(l),u=c.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=tinycolor.equals(n,l)?" sp-thumb-active":"";var h=c.toString(i.preferredFormat||"rgb"),p=o?"background-color:"+c.toRgbString():"filter:"+c.toFilter();s.push('<span title="'+h+'" data-color="'+c.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+p+';"></span></span>')}else{s.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",i.noColorSelectedText)).html())}}return"<div class='sp-cf "+r+"'>"+s.join("")+"</div>"}function c(c,u){var g,m,v,y,b=function(t,r){var i=e.extend({},n,t);return i.callbacks={move:p(i.move,r),change:p(i.change,r),show:p(i.show,r),hide:p(i.hide,r),beforeShow:p(i.beforeShow,r)},i}(u,c),x=b.flat,w=b.showSelectionPalette,S=b.localStorageKey,_=b.theme,C=b.callbacks,T=(g=$e,m=10,function(){var e=this,t=arguments,n=function(){y=null,g.apply(e,t)};v&&clearTimeout(y),!v&&y||(y=setTimeout(n,m))}),k=!1,E=!1,O=0,P=0,A=0,R=0,I=0,U=0,D=0,L=0,M=0,N=0,B=1,F=[],z=[],H={},G=b.selectionPalette.slice(0),$=b.maxSelectionSize,W="sp-dragging",j=null,q=c.ownerDocument,Y=(q.body,e(c)),X=!1,V=e(a,q).addClass(_),K=V.find(".sp-picker-container"),Z=V.find(".sp-color"),Q=V.find(".sp-dragger"),J=V.find(".sp-hue"),ee=V.find(".sp-slider"),te=V.find(".sp-alpha-inner"),ne=V.find(".sp-alpha"),re=V.find(".sp-alpha-handle"),ie=V.find(".sp-input"),oe=V.find(".sp-palette"),se=V.find(".sp-initial"),ae=V.find(".sp-cancel"),le=V.find(".sp-clear"),ce=V.find(".sp-choose"),ue=V.find(".sp-palette-toggle"),he=Y.is("input"),pe=he&&"color"===Y.attr("type")&&d(),fe=he&&!x,de=fe?e(s).addClass(_).addClass(b.className).addClass(b.replacerClassName):e([]),ge=fe?de:Y,me=de.find(".sp-preview-inner"),ve=b.color||he&&Y.val(),ye=!1,be=b.preferredFormat,xe=!b.showButtons||b.clickoutFiresChange,we=!ve,Se=b.allowEmpty&&!pe;function _e(){if(b.showPaletteOnly&&(b.showPalette=!0),ue.text(b.showPaletteOnly?b.togglePaletteMoreText:b.togglePaletteLessText),b.palette){F=b.palette.slice(0),z=e.isArray(F[0])?F:[F],H={};for(var t=0;t<z.length;t++)for(var n=0;n<z[t].length;n++){var r=tinycolor(z[t][n]).toRgbString();H[r]=!0}}V.toggleClass("sp-flat",x),V.toggleClass("sp-input-disabled",!b.showInput),V.toggleClass("sp-alpha-enabled",b.showAlpha),V.toggleClass("sp-clear-enabled",Se),V.toggleClass("sp-buttons-disabled",!b.showButtons),V.toggleClass("sp-palette-buttons-disabled",!b.togglePaletteOnly),V.toggleClass("sp-palette-disabled",!b.showPalette),V.toggleClass("sp-palette-only",b.showPaletteOnly),V.toggleClass("sp-initial-disabled",!b.showInitial),V.addClass(b.className).addClass(b.containerClassName),$e()}function Ce(){if(S&&window.localStorage){try{var t=window.localStorage[S].split(",#");t.length>1&&(delete window.localStorage[S],e.each(t,(function(e,t){Te(t)})))}catch(e){}try{G=window.localStorage[S].split(";")}catch(e){}}}function Te(t){if(w){var n=tinycolor(t).toRgbString();if(!H[n]&&-1===e.inArray(n,G))for(G.push(n);G.length>$;)G.shift();if(S&&window.localStorage)try{window.localStorage[S]=G.join(";")}catch(e){}}}function ke(){var t=Be(),n=e.map(z,(function(e,n){return l(e,t,"sp-palette-row sp-palette-row-"+n,b)}));Ce(),G&&n.push(l(function(){var e=[];if(b.showPalette)for(var t=0;t<G.length;t++){var n=tinycolor(G[t]).toRgbString();H[n]||e.push(G[t])}return e.reverse().slice(0,b.maxSelectionSize)}(),t,"sp-palette-row sp-palette-row-selection",b)),oe.html(n.join(""))}function Ee(){if(b.showInitial){var e=ye,t=Be();se.html(l([e,t],t,"sp-palette-row-initial",b))}}function Oe(){(P<=0||O<=0||R<=0)&&$e(),E=!0,V.addClass(W),j=null,Y.trigger("dragstart.spectrum",[Be()])}function Pe(){E=!1,V.removeClass(W),Y.trigger("dragstop.spectrum",[Be()])}function Ae(){var e=ie.val();if(null!==e&&""!==e||!Se){var t=tinycolor(e);t.isValid()?(Ne(t),Fe(),Ge()):ie.addClass("sp-validation-error")}else Ne(null),Fe(),Ge()}function Re(){k?Le():Ie()}function Ie(){var t=e.Event("beforeShow.spectrum");k?$e():(Y.trigger(t,[Be()]),!1===C.beforeShow(Be())||t.isDefaultPrevented()||(function(){for(var e=0;e<r.length;e++)r[e]&&r[e].hide()}(),k=!0,e(q).on("keydown.spectrum",Ue),e(q).on("click.spectrum",De),e(window).on("resize.spectrum",T),de.addClass("sp-active"),V.removeClass("sp-hidden"),$e(),ze(),ye=Be(),Ee(),C.show(ye),Y.trigger("show.spectrum",[ye])))}function Ue(e){27===e.keyCode&&Le()}function De(e){2!=e.button&&(E||(xe?Ge(!0):Me(),Le()))}function Le(){k&&!x&&(k=!1,e(q).off("keydown.spectrum",Ue),e(q).off("click.spectrum",De),e(window).off("resize.spectrum",T),de.removeClass("sp-active"),V.addClass("sp-hidden"),C.hide(Be()),Y.trigger("hide.spectrum",[Be()]))}function Me(){Ne(ye,!0),Ge(!0)}function Ne(e,t){var n,r;tinycolor.equals(e,Be())?ze():(!e&&Se?we=!0:(we=!1,r=(n=tinycolor(e)).toHsv(),L=r.h%360/360,M=r.s,N=r.v,B=r.a),ze(),n&&n.isValid()&&!t&&(be=b.preferredFormat||n.getFormat()))}function Be(e){return e=e||{},Se&&we?null:tinycolor.fromRatio({h:L,s:M,v:N,a:Math.round(1e3*B)/1e3},{format:e.format||be})}function Fe(){ze(),C.move(Be()),Y.trigger("move.spectrum",[Be()])}function ze(){ie.removeClass("sp-validation-error"),He();var e=tinycolor.fromRatio({h:L,s:1,v:1});Z.css("background-color",e.toHexString());var t=be;B<1&&(0!==B||"name"!==t)&&("hex"!==t&&"hex3"!==t&&"hex6"!==t&&"name"!==t||(t="rgb"));var n=Be({format:t}),r="";if(me.removeClass("sp-clear-display"),me.css("background-color","transparent"),!n&&Se)me.addClass("sp-clear-display");else{var s=n.toHexString(),a=n.toRgbString();if(o||1===n.alpha?me.css("background-color",a):(me.css("background-color","transparent"),me.css("filter",n.toFilter())),b.showAlpha){var l=n.toRgb();l.a=0;var c=tinycolor(l).toRgbString(),u="linear-gradient(left, "+c+", "+s+")";i?te.css("filter",tinycolor(c).toFilter({gradientType:1},s)):(te.css("background","-webkit-"+u),te.css("background","-moz-"+u),te.css("background","-ms-"+u),te.css("background","linear-gradient(to right, "+c+", "+s+")"))}r=n.toString(t)}b.showInput&&ie.val(r),b.showPalette&&ke(),Ee()}function He(){var e=M,t=N;if(Se&&we)re.hide(),ee.hide(),Q.hide();else{re.show(),ee.show(),Q.show();var n=e*O,r=P-t*P;n=Math.max(-A,Math.min(O-A,n-A)),r=Math.max(-A,Math.min(P-A,r-A)),Q.css({top:r+"px",left:n+"px"});var i=B*I;re.css({left:i-U/2+"px"});var o=L*R;ee.css({top:o-D+"px"})}}function Ge(e){var t=Be(),n="",r=!tinycolor.equals(t,ye);t&&(n=t.toString(be),Te(t)),he&&Y.val(n),e&&r&&(C.change(t),Y.trigger("change",[t]))}function $e(){k&&(O=Z.width(),P=Z.height(),A=Q.height(),J.width(),R=J.height(),D=ee.height(),I=ne.width(),U=re.width(),x||(V.css("position","absolute"),b.offset?V.offset(b.offset):V.offset(function(t,n){var r=0,i=t.outerWidth(),o=t.outerHeight(),s=n.outerHeight(),a=t[0].ownerDocument,l=a.documentElement,c=l.clientWidth+e(a).scrollLeft(),u=l.clientHeight+e(a).scrollTop(),h=n.offset(),p=h.left,f=h.top;return f+=s,p-=Math.min(p,p+i>c&&c>i?Math.abs(p+i-c):0),{top:f-=Math.min(f,f+o>u&&u>o?Math.abs(o+s-r):r),bottom:h.bottom,left:p,right:h.right,width:h.width,height:h.height}}(V,ge))),He(),b.showPalette&&ke(),Y.trigger("reflow.spectrum"))}function We(){Le(),X=!0,Y.attr("disabled",!0),ge.addClass("sp-disabled")}!function(){if(i&&V.find("*:not(input)").attr("unselectable","on"),_e(),fe&&Y.after(de).hide(),Se||le.hide(),x)Y.after(V).hide();else{var t="parent"===b.appendTo?Y.parent():e(b.appendTo);1!==t.length&&(t=e("body")),t.append(V)}function n(t){return t.data&&t.data.ignore?(Ne(e(t.target).closest(".sp-thumb-el").data("color")),Fe()):(Ne(e(t.target).closest(".sp-thumb-el").data("color")),Fe(),b.hideAfterPaletteSelect?(Ge(!0),Le()):Ge()),!1}Ce(),ge.on("click.spectrum touchstart.spectrum",(function(t){X||Re(),t.stopPropagation(),e(t.target).is("input")||t.preventDefault()})),(Y.is(":disabled")||!0===b.disabled)&&We(),V.click(h),ie.change(Ae),ie.on("paste",(function(){setTimeout(Ae,1)})),ie.keydown((function(e){13==e.keyCode&&Ae()})),ae.text(b.cancelText),ae.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),Me(),Le()})),le.attr("title",b.clearText),le.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),we=!0,Fe(),x&&Ge(!0)})),ce.text(b.chooseText),ce.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),i&&ie.is(":focus")&&ie.trigger("change"),!ie.hasClass("sp-validation-error")&&(Ge(!0),Le())})),ue.text(b.showPaletteOnly?b.togglePaletteMoreText:b.togglePaletteLessText),ue.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),b.showPaletteOnly=!b.showPaletteOnly,b.showPaletteOnly||x||V.css("left","-="+(K.outerWidth(!0)+5)),_e()})),f(ne,(function(e,t,n){B=e/I,we=!1,n.shiftKey&&(B=Math.round(10*B)/10),Fe()}),Oe,Pe),f(J,(function(e,t){L=parseFloat(t/R),we=!1,b.showAlpha||(B=1),Fe()}),Oe,Pe),f(Z,(function(e,t,n){if(n.shiftKey){if(!j){var r=M*O,i=P-N*P,o=Math.abs(e-r)>Math.abs(t-i);j=o?"x":"y"}}else j=null;var s=!j||"y"===j;(!j||"x"===j)&&(M=parseFloat(e/O)),s&&(N=parseFloat((P-t)/P)),we=!1,b.showAlpha||(B=1),Fe()}),Oe,Pe),ve?(Ne(ve),ze(),be=b.preferredFormat||tinycolor(ve).format,Te(ve)):ze(),x&&Ie();var r=i?"mousedown.spectrum":"click.spectrum touchstart.spectrum";oe.on(r,".sp-thumb-el",n),se.on(r,".sp-thumb-el:nth-child(1)",{ignore:!0},n)}();var je={show:Ie,hide:Le,toggle:Re,reflow:$e,option:function(n,r){return n===t?e.extend({},b):r===t?b[n]:(b[n]=r,"preferredFormat"===n&&(be=b.preferredFormat),void _e())},enable:function(){X=!1,Y.attr("disabled",!1),ge.removeClass("sp-disabled")},disable:We,offset:function(e){b.offset=e,$e()},set:function(e){Ne(e),Ge()},get:Be,destroy:function(){Y.show(),ge.off("click.spectrum touchstart.spectrum"),V.remove(),de.remove(),r[je.id]=null},container:V};return je.id=r.push(je)-1,je}function u(){}function h(e){e.stopPropagation()}function p(e,t){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function f(t,n,r,o){n=n||function(){},r=r||function(){},o=o||function(){};var s=document,a=!1,l={},c=0,u=0,h="ontouchstart"in window,p={};function f(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function d(e){if(a){if(i&&s.documentMode<9&&!e.button)return g();var r=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],o=r&&r.pageX||e.pageX,p=r&&r.pageY||e.pageY,d=Math.max(0,Math.min(o-l.left,u)),m=Math.max(0,Math.min(p-l.top,c));h&&f(e),n.apply(t,[d,m,e])}}function g(){a&&(e(s).off(p),e(s.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(t,arguments)}),0)),a=!1}p.selectstart=f,p.dragstart=f,p["touchmove mousemove"]=d,p["touchend mouseup"]=g,e(t).on("touchstart mousedown",(function(n){(n.which?3==n.which:2==n.button)||a||!1!==r.apply(t,arguments)&&(a=!0,c=e(t).height(),u=e(t).width(),l=e(t).offset(),e(s).on(p),e(s.body).addClass("sp-dragging"),d(n),f(n))}))}function d(){return e.fn.spectrum.inputTypeColorSupport()}var g="spectrum.id";e.fn.spectrum=function(t,n){if("string"==typeof t){var i=this,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=r[e(this).data(g)];if(n){var s=n[t];if(!s)throw new Error("Spectrum: no such method: '"+t+"'");"get"==t?i=n.get():"container"==t?i=n.container:"option"==t?i=n.option.apply(n,o):"destroy"==t?(n.destroy(),e(this).removeData(g)):s.apply(n,o)}})),i}return this.spectrum("destroy").each((function(){var n=c(this,e.extend({},e(this).data(),t));e(this).data(g,n.id)}))},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=f,e.fn.spectrum.defaults=n,e.fn.spectrum.inputTypeColorSupport=function t(){if(void 0===t._cachedResult){var n=e("<input type='color'/>")[0];t._cachedResult="color"===n.type&&""!==n.value}return t._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var t=e("input[type=color]");t.length&&!d()&&t.spectrum({preferredFormat:"hex6"})},function(){var e=/^[\s,#]+/,t=/\s+$/,n=0,r=Math,i=r.round,o=r.min,s=r.max,a=r.random,l=function(a,c){if(c=c||{},(a=a||"")instanceof l)return a;if(!(this instanceof l))return new l(a,c);var u=function(n){var i={r:0,g:0,b:0},a=1,l=!1,c=!1;return"string"==typeof n&&(n=function(n){n=n.replace(e,"").replace(t,"").toLowerCase();var r,i=!1;if(k[n])n=k[n],i=!0;else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"};return(r=B.rgb.exec(n))?{r:r[1],g:r[2],b:r[3]}:(r=B.rgba.exec(n))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=B.hsl.exec(n))?{h:r[1],s:r[2],l:r[3]}:(r=B.hsla.exec(n))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=B.hsv.exec(n))?{h:r[1],s:r[2],v:r[3]}:(r=B.hsva.exec(n))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=B.hex8.exec(n))?{a:D(r[1]),r:R(r[2]),g:R(r[3]),b:R(r[4]),format:i?"name":"hex8"}:(r=B.hex6.exec(n))?{r:R(r[1]),g:R(r[2]),b:R(r[3]),format:i?"name":"hex"}:!!(r=B.hex3.exec(n))&&{r:R(r[1]+""+r[1]),g:R(r[2]+""+r[2]),b:R(r[3]+""+r[3]),format:i?"name":"hex"}}(n)),"object"==typeof n&&(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b")?(u=n.r,h=n.g,p=n.b,i={r:255*P(u,255),g:255*P(h,255),b:255*P(p,255)},l=!0,c="%"===String(n.r).substr(-1)?"prgb":"rgb"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("v")?(n.s=U(n.s),n.v=U(n.v),i=function(e,t,n){e=6*P(e,360),t=P(t,100),n=P(n,100);var i=r.floor(e),o=e-i,s=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=i%6;return{r:255*[n,a,s,s,l,n][c],g:255*[l,n,n,a,s,s][c],b:255*[s,s,l,n,n,a][c]}}(n.h,n.s,n.v),l=!0,c="hsv"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("l")&&(n.s=U(n.s),n.l=U(n.l),i=function(e,t,n){var r,i,o;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=P(e,360),t=P(t,100),n=P(n,100),0===t)r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=s(l,a,e+1/3),i=s(l,a,e),o=s(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,n.s,n.l),l=!0,c="hsl"),n.hasOwnProperty("a")&&(a=n.a)),a=O(a),{ok:l,format:n.format||c,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a};var u,h,p}(a);this._originalInput=a,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=i(1e3*this._a)/1e3,this._format=c.format||u.format,this._gradientType=c.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=u.ok,this._tc_id=n++};function c(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r,i,a=s(e,t,n),l=o(e,t,n),c=(a+l)/2;if(a==l)r=i=0;else{var u=a-l;switch(i=c>.5?u/(2-a-l):u/(a+l),a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:c}}function u(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r,i,a=s(e,t,n),l=o(e,t,n),c=a,u=a-l;if(i=0===a?0:u/a,a==l)r=0;else{switch(a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:c}}function h(e,t,n,r){var o=[I(i(e).toString(16)),I(i(t).toString(16)),I(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(e,t,n,r){return[I((o=r,Math.round(255*parseFloat(o)).toString(16))),I(i(e).toString(16)),I(i(t).toString(16)),I(i(n).toString(16))].join("");var o}function f(e,t){t=0===t?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=A(n.s),l(n)}function d(e,t){t=0===t?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=A(n.s),l(n)}function g(e){return l(e).desaturate(100)}function m(e,t){t=0===t?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=A(n.l),l(n)}function v(e,t){t=0===t?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-i(-t/100*255))),n.g=s(0,o(255,n.g-i(-t/100*255))),n.b=s(0,o(255,n.b-i(-t/100*255))),l(n)}function y(e,t){t=0===t?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=A(n.l),l(n)}function b(e,t){var n=l(e).toHsl(),r=(i(n.h)+t)%360;return n.h=r<0?360+r:r,l(n)}function x(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function w(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function _(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var r=l(e).toHsl(),i=360/n,o=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(l(r));return o}function T(e,t){t=t||6;for(var n=l(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(l({h:r,s:i,v:o})),o=(o+a)%1;return s}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},setAlpha:function(e){return this._a=O(e),this._roundA=i(1e3*this._a)/1e3,this},toHsv:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=u(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return p(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*P(this._r,255))+"%",g:i(100*P(this._g,255))+"%",b:i(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*P(this._r,255))+"%, "+i(100*P(this._g,255))+"%, "+i(100*P(this._b,255))+"%)":"rgba("+i(100*P(this._r,255))+"%, "+i(100*P(this._g,255))+"%, "+i(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";return e&&(n=l(e).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},l.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:U(e[r]));e=n}return l(e,t)},l.equals=function(e,t){return!(!e||!t)&&l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:a(),g:a(),b:a()})},l.mix=function(e,t,n){n=0===n?0:n||50;var r,i=l(e).toRgb(),o=l(t).toRgb(),s=n/100,a=2*s-1,c=o.a-i.a,u=1-(r=((r=a*c==-1?a:(a+c)/(1+a*c))+1)/2),h={r:o.r*r+i.r*u,g:o.g*r+i.g*u,b:o.b*r+i.b*u,a:o.a*s+i.a*(1-s)};return l(h)},l.readability=function(e,t){var n=l(e),r=l(t),i=n.toRgb(),o=r.toRgb(),s=n.getBrightness(),a=r.getBrightness(),c=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(s-a),color:c}},l.isReadable=function(e,t){var n=l.readability(e,t);return n.brightness>125&&n.color>500},l.mostReadable=function(e,t){for(var n=null,r=0,i=!1,o=0;o<t.length;o++){var s=l.readability(e,t[o]),a=s.brightness>125&&s.color>500,c=s.brightness/125*3+s.color/500;(a&&!i||a&&i&&c>r||!a&&!i&&c>r)&&(i=a,r=c,n=l(t[o]))}return n};var k=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=l.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(k);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=o(t,s(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return o(1,s(0,e))}function R(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function U(e){return e<=1&&(e=100*e+"%"),e}function D(e){return R(e)/255}var L,M,N,B=(M="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",N="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",{rgb:new RegExp("rgb"+M),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+M),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+M),hsva:new RegExp("hsva"+N),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=l}(),e((function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()}))},void 0===(o=r.apply(t,i))||(e.exports=o)}()}}]);