diff --git a/Calcchat.html b/Calcchat.html new file mode 100644 index 00000000..e933bc9d --- /dev/null +++ b/Calcchat.html @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + +
+ +
+

Better Calcchat

+ + Download the client
+
+Note: This is a stand-alone application. If you'd prefer to stay within your browser, there is this very nice chrome extension by Hardy Creations. If you use another browser, the best you're going to get is this userstyles script. Use with Stylish or equivalent.
+
+This client is superior to the calcchat website because it can:
+
  • Show you an entire section's problems at once
  • +
  • Zoom into images better
  • +
  • Navigate between images, chapters, sections, and books better
  • +
    +Screenshots:
    + + +
    +
    + + + diff --git a/Calcchat/Book Selector.png b/Calcchat/Book Selector.png new file mode 100644 index 00000000..051b9d35 Binary files /dev/null and b/Calcchat/Book Selector.png differ diff --git a/Calcchat/Gallery Mode Fullscreen.png b/Calcchat/Gallery Mode Fullscreen.png new file mode 100644 index 00000000..58df6e08 Binary files /dev/null and b/Calcchat/Gallery Mode Fullscreen.png differ diff --git a/Calcchat/Gallery Mode Windowed.png b/Calcchat/Gallery Mode Windowed.png new file mode 100644 index 00000000..c9e798b3 Binary files /dev/null and b/Calcchat/Gallery Mode Windowed.png differ diff --git a/Calcchat/Overview Mode Fullscreen.png b/Calcchat/Overview Mode Fullscreen.png new file mode 100644 index 00000000..305abd0c Binary files /dev/null and b/Calcchat/Overview Mode Fullscreen.png differ diff --git a/Calcchat/Overview Mode Windowed.png b/Calcchat/Overview Mode Windowed.png new file mode 100644 index 00000000..ee492560 Binary files /dev/null and b/Calcchat/Overview Mode Windowed.png differ diff --git a/images/snap1.png b/Screenshots/snap1.png similarity index 100% rename from images/snap1.png rename to Screenshots/snap1.png diff --git a/images/snap2.png b/Screenshots/snap2.png similarity index 100% rename from images/snap2.png rename to Screenshots/snap2.png diff --git a/images/snap3.png b/Screenshots/snap3.png similarity index 100% rename from images/snap3.png rename to Screenshots/snap3.png diff --git a/images/snap4.png b/Screenshots/snap4.png similarity index 100% rename from images/snap4.png rename to Screenshots/snap4.png diff --git a/images/snap5.png b/Screenshots/snap5.png similarity index 100% rename from images/snap5.png rename to Screenshots/snap5.png diff --git a/images/snap6.png b/Screenshots/snap6.png similarity index 100% rename from images/snap6.png rename to Screenshots/snap6.png diff --git a/images/snapshot.png b/Screenshots/snap7.png similarity index 100% rename from images/snapshot.png rename to Screenshots/snap7.png diff --git a/Space_Game.html b/Space_Game.html new file mode 100644 index 00000000..118d0af1 --- /dev/null +++ b/Space_Game.html @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + +
    + +
    +

    Space Game: The Eternal Journal

    + +

    By The Paper Pilot

    +

    +Space Game is a game of mystery and discovery. You play the role of a scientist, who has found themself in an endless loop of death and rebirth, with only your notes to link you to your previous experiences. As you play, your player writes everything you discover in a journal. So truly, survival is optional, as death is pretty meaningless. Instead, the game focuses on discovery and exploration, encouraging the player to try new things and experiment. From upgrading your ship to leveling up to making towers, every mechanic is built from the ground up to become progressively clearer. But beware, because, as the player learns, so do the enemies.
    +

    + +

    +Space Game features an advanced note system around which everything else is based. Enjoy countless hours of experimenting and trying out new strategies, various guns, upgrades, and towers.
    +

    + +

    +This game is currently on version beta 1.5, released on 2/15/15. It is in active development. Purchasing from Itch.io or Desura guarantees you will receive all future updates.
    +

    + +

    +I'm The Paper Pilot, an Eagle Scout on my way to University next year to study Computer Science. I've been making games for years, and programming even longer. However, lacking a formal computer science education, I’ve been keeping most of my programs to myself. But, as I’ve gotten better I’m starting to release some things, starting with Space Game.
    +

    + +

    +Contact Me:
    +

    +

    + +
    +
    + + + diff --git a/Space_Game/Purchase.html b/Space_Game/Purchase.html new file mode 100644 index 00000000..4da4426b --- /dev/null +++ b/Space_Game/Purchase.html @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + +
    + +
    +

    Purchase

    + +

    +

    +

    + +
    +
    + + + diff --git a/Space_Game/Screenshots.html b/Space_Game/Screenshots.html new file mode 100644 index 00000000..425e52ff --- /dev/null +++ b/Space_Game/Screenshots.html @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + +
    + +
    +

    Screenshots

    + +

    +

    +

    + +
    +
    + + + diff --git a/Space_Game/Screenshots/snap1.png b/Space_Game/Screenshots/snap1.png new file mode 100644 index 00000000..6ec76a12 Binary files /dev/null and b/Space_Game/Screenshots/snap1.png differ diff --git a/Space_Game/Screenshots/snap2.png b/Space_Game/Screenshots/snap2.png new file mode 100644 index 00000000..2991caf8 Binary files /dev/null and b/Space_Game/Screenshots/snap2.png differ diff --git a/Space_Game/Screenshots/snap3.png b/Space_Game/Screenshots/snap3.png new file mode 100644 index 00000000..53733a25 Binary files /dev/null and b/Space_Game/Screenshots/snap3.png differ diff --git a/Space_Game/Screenshots/snap4.png b/Space_Game/Screenshots/snap4.png new file mode 100644 index 00000000..f82bc19d Binary files /dev/null and b/Space_Game/Screenshots/snap4.png differ diff --git a/Space_Game/Screenshots/snap5.png b/Space_Game/Screenshots/snap5.png new file mode 100644 index 00000000..5832254e Binary files /dev/null and b/Space_Game/Screenshots/snap5.png differ diff --git a/Space_Game/Screenshots/snap6.png b/Space_Game/Screenshots/snap6.png new file mode 100644 index 00000000..47f52d59 Binary files /dev/null and b/Space_Game/Screenshots/snap6.png differ diff --git a/Space_Game/Screenshots/snap7.png b/Space_Game/Screenshots/snap7.png new file mode 100644 index 00000000..4e6dee78 Binary files /dev/null and b/Space_Game/Screenshots/snap7.png differ diff --git a/Space_Game/Videos.html b/Space_Game/Videos.html new file mode 100644 index 00000000..2554dfde --- /dev/null +++ b/Space_Game/Videos.html @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + +
    + +
    +

    Videos

    + +

    +

    +

    + +
    +
    + + + diff --git a/css/index.css b/css/index.css deleted file mode 100644 index e26aa4d9..00000000 --- a/css/index.css +++ /dev/null @@ -1,476 +0,0 @@ -.version.index -/* version checker */ - -{ - color: #0000E1; - background-color: #F165A4; -} -.html { - background-color: #000000; -} -#page { - z-index: 1; - width: 1402px; - min-height: 1207.8042336138865px; - background-image: none; - border-style: none; - border-color: #000000; - background-color: #000000; - padding-bottom: 0px; - margin-left: auto; - margin-right: auto; -} -#page_position_content { - margin-top: -77px; - padding-bottom: 5px; -} -#u75 { - z-index: 5; - display: block; - vertical-align: top; - margin-left: 280px; - position: relative; -} -#u181 { - z-index: 3; - width: 1382px; - height: 40px; - border-style: none; - border-color: transparent; - background-color: #7F7F7F; - -moz-border-radius: 30px 30px 0px 0px; - -webkit-border-radius: 30px 30px 0px 0px; - -khtml-border-radius: 30px 30px 0px 0px; - border-radius: 30px 30px 0px 0px; - margin-left: 10px; - margin-top: 36px; - position: relative; -} -#u183 { - z-index: 2; - width: 1382px; - border-style: none; - border-color: transparent; - background-color: #3F3F3F; - padding-bottom: 19px; - margin-left: 10px; - position: relative; -} -#u270 { - z-index: 7; - width: 1342px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - margin-top: 20px; - left: 20px; -} -#u425 { - z-index: 11; - width: 1342px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; -} -#slideshowu103 { - z-index: 12; - width: 0.01px; - height: 62px; - position: relative; - margin-right: -10000px; - margin-top: 319px; -} -#u122 { - position: absolute; - width: 524px; - height: 422px; - border-style: none; - border-color: transparent; - background-color: #191919; - background-color: rgba(0, 0, 0, 0.9); - top: 69px; - left: 198px; - -pie-background: rgba(0, 0, 0, 0.9); -} -#u122popup { - z-index: 13; -} -#u127 { - z-index: 14; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u216 { - z-index: 16; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u225 { - z-index: 18; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u234 { - z-index: 20; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u243 { - z-index: 22; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u252 { - z-index: 24; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u127_img, #u216_img, #u225_img, #u234_img, #u243_img, #u252_img { - padding-top: 45px; - padding-bottom: 45px; -} -#u110 { - position: absolute; - width: 560px; - border-style: none; - border-color: transparent; - background-color: transparent; - padding-bottom: 17px; -} -#u110popup { - z-index: 26; -} -#u111 { - z-index: 27; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 75px; -} -#u219 { - z-index: 29; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 145px; -} -#u228 { - z-index: 31; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 215px; -} -#u237 { - z-index: 33; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 285px; -} -#u246 { - z-index: 35; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 355px; -} -#u255 { - z-index: 37; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 425px; -} -#u111:hover, #u219:hover, #u228:hover, #u237:hover, #u246:hover, #u255:hover { - margin: 0px -10000px 0px 0px; -} -#u104-4 { - position: absolute; - width: 30px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 461px; - left: 570px; -} -#u104-4popup { - z-index: 39; -} -#u118-4 { - position: absolute; - width: 30px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 461px; - left: 670px; -} -#u118-4popup { - z-index: 43; -} -#u109-4 { - position: absolute; - width: 70px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 461px; - left: 600px; -} -#u109-4popup { - z-index: 47; -} -#u119 { - position: absolute; - width: 30px; - border-style: none; - border-color: transparent; - background-color: #C4C4C4; - padding-bottom: 5px; - top: 91px; - left: 670px; -} -#u119:hover { - background-color: #999999; - margin: 0px; -} -#u119:active { - background-color: #6B6B6B; - margin: 0px; -} -#u120-4 { - z-index: 52; - width: 20px; - min-height: 20px; - border-style: none; - border-color: transparent; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Arial, Helvetica Neue, Helvetica, sans-serif; - position: relative; - margin-right: -10000px; - margin-top: 5px; - left: 5px; -} -.SSFirstButton, .SSPreviousButton, .SSNextButton, .SSLastButton, .SSSlideLink, .SSCloseButton -/* slideshowFreeStyle */ - -{ - cursor: pointer; -} -.SSSlideLoading -/* slideshowFreeStyle */ - -{ - background: url("../images/loading.gif") no-repeat center center; -} -#u268 { - z-index: 56; - width: 1342px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; -} -#u99 { - z-index: 57; - width: 560px; - min-height: 315px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; -} -#u101-15 { - z-index: 58; - width: 651px; - min-height: 319px; - background-color: transparent; - color: #FFFFFF; - position: relative; - margin-right: -10000px; - left: 691px; -} -#u101-2 { - font-size: 42px; - text-align: center; - line-height: 58px; -} -#u269 { - z-index: 8; - width: 1142px; - border-style: none; - border-color: transparent; - background-color: transparent; - margin-left: 100px; - margin-top: 2px; - position: relative; -} -#u159 { - z-index: 9; - width: 552px; - min-height: 171px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - margin-top: 42px; -} -#u161 { - z-index: 10; - width: 549px; - min-height: 254px; - border-width: 1px; - border-style: solid; - border-color: #363636; - background-color: #222222; - position: relative; - margin-right: -10000px; - left: 591px; -} -#u182 { - z-index: 4; - width: 1382px; - height: 40px; - border-style: none; - border-color: transparent; - background-color: #7F7F7F; - -moz-border-radius: 0px 0px 30px 30px; - -webkit-border-radius: 0px 0px 30px 30px; - -khtml-border-radius: 0px 0px 30px 30px; - border-radius: 0px 0px 30px 30px; - margin-left: 10px; - position: relative; -} -#u406 { - z-index: 73; - width: 240px; - border-style: none; - border-color: transparent; - background-color: transparent; - margin-left: 581px; - margin-top: 9px; - position: relative; -} -#u409 { - z-index: 76; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; -} -#u413 { - z-index: 74; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 48px; -} -#u411 { - z-index: 78; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 96px; -} -#u415 { - z-index: 80; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 144px; -} -#u407 { - z-index: 82; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 192px; -} -body { - position: relative; - min-width: 1402px; - padding-top: 10px; -} -#page .verticalspacer { - clear: both; -} -.center { - text-align: center; -} diff --git a/css/site_global.css b/css/site_global.css deleted file mode 100644 index dd0ce1b9..00000000 --- a/css/site_global.css +++ /dev/null @@ -1,468 +0,0 @@ -html { - min-height: 100%; - min-width: 100%; - -ms-text-size-adjust: none; -} -body, div, dl, dt, dd, ul, ol, li, nav, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td, a { - margin: 0; - padding: 0; - border-width: 0; - -webkit-transform-origin: left top; - -ms-transform-origin: left top; - -o-transform-origin: left top; - transform-origin: left top; -} -table { - border-collapse: collapse; - border-spacing: 0; -} -fieldset, img { - border: 0; - -webkit-transform-origin: left top; - -ms-transform-origin: left top; - -o-transform-origin: left top; - transform-origin: left top; -} -address, caption, cite, code, dfn, em, strong, th, var, optgroup { - font-style: inherit; - font-weight: inherit; -} -del, ins { - text-decoration: none; -} -li { - list-style: none; -} -caption, th { - text-align: left; -} -h1, h2, h3, h4, h5, h6 { - font-size: 100%; - font-weight: inherit; -} -input, button, textarea, select, optgroup, option { - font-family: inherit; - font-size: inherit; - font-style: inherit; - font-weight: inherit; -} -body { - font-family: Arial, Helvetica Neue, Helvetica, sans-serif; - text-align: left; - font-size: 14px; - line-height: 17px; - word-wrap: break-word; - text-rendering: optimizeLegibility; - /* kerning, primarily */ -} -@media screen and (-webkit-min-device-pixel-ratio: 0) { - body { - text-rendering: auto; - } -} -a:link { - color: #0000FF; - text-decoration: underline; -} -a:visited { - color: #800080; - text-decoration: underline; -} -a:hover { - color: #0000FF; - text-decoration: underline; -} -a:active { - color: #EE0000; - text-decoration: underline; -} -a.nontext -/* used to override default properties of 'a' tag */ - -{ - color: black; - text-decoration: none; - font-style: normal; - font-weight: normal; -} -.normal_text { - color: #000000; - direction: ltr; - font-family: Arial, Helvetica Neue, Helvetica, sans-serif; - font-size: 14px; - font-style: normal; - font-weight: normal; - letter-spacing: 0px; - line-height: 17px; - text-align: left; - text-decoration: none; - text-indent: 0px; - vertical-align: 0px; - padding: 0px; -} -.list0 li:before { - position: absolute; - right: 100%; - letter-spacing: 0px; - text-decoration: none; - font-weight: normal; - font-style: normal; -} -.rtl-list li:before { - right: auto; - left: 100%; -} -.nls-None > li:before, .nls-None .list3 > li:before, .nls-None .list6 > li:before { - margin-right: 6px; - content: '•'; -} -.nls-None .list1 > li:before, .nls-None .list4 > li:before, .nls-None .list7 > li:before { - margin-right: 6px; - content: '○'; -} -.nls-None, .nls-None .list1, .nls-None .list2, .nls-None .list3, .nls-None .list4, .nls-None .list5, .nls-None .list6, .nls-None .list7, .nls-None .list8 { - padding-left: 34px; -} -.nls-None.rtl-list, .nls-None .list1.rtl-list, .nls-None .list2.rtl-list, .nls-None .list3.rtl-list, .nls-None .list4.rtl-list, .nls-None .list5.rtl-list, .nls-None .list6.rtl-list, .nls-None .list7.rtl-list, .nls-None .list8.rtl-list { - padding-left: 0px; - padding-right: 34px; -} -.nls-None .list2 > li:before, .nls-None .list5 > li:before, .nls-None .list8 > li:before { - margin-right: 6px; - content: '-'; -} -.nls-None.rtl-list > li:before, .nls-None .list1.rtl-list > li:before, .nls-None .list2.rtl-list > li:before, .nls-None .list3.rtl-list > li:before, .nls-None .list4.rtl-list > li:before, .nls-None .list5.rtl-list > li:before, .nls-None .list6.rtl-list > li:before, .nls-None .list7.rtl-list > li:before, .nls-None .list8.rtl-list > li:before { - margin-right: 0px; - margin-left: 6px; -} -.TabbedPanelsTab { - white-space: nowrap; -} -.MenuBar .MenuBarView, .MenuBar .SubMenuView -/* Resets for ul and li in menus */ - -{ - display: block; - list-style: none; -} -.MenuBar .SubMenu { - display: none; - position: absolute; -} -.NoWrap { - white-space: nowrap; - word-wrap: normal; -} -.rootelem -/* the root of the artwork tree */ - -{ - margin-left: auto; - margin-right: auto; -} -.colelem -/* a child element of a column */ - -{ - display: inline; - float: left; - clear: both; -} -.colelem100 -/* a child element of a column that is 100% width */ - -{ - clear: both; -} -.grpelem -/* a child element of a group */ - -{ - display: inline; - float: left; -} -.clearfix:after -/* force a container to fit around floated items */ - -{ - content: "\0020"; - visibility: hidden; - display: block; - height: 0; - clear: both; -} -*:first-child+html .clearfix -/* IE7 */ - -{ - zoom: 1; -} -.clip_frame -/* used to clip the contents as in the case of an image frame */ - -{ - overflow: hidden; -} -.inclusion_context -/* context for positioning a group of elements that share the same height */ - -{ - display: table; - table-layout: fixed; - width: 0.01px; -} -.inclelem -/* element of an inclusion context */ - -{ - display: table-cell; - vertical-align: top; -} -.f3s_mid -/* 3-slice frame, middle slice */ - -{ - background-repeat: repeat; -} -.f3s_top, .f3s_bot -/* 3-slice frame, top slice */ - -{ - background-repeat: no-repeat; -} -.f9s_top_left, .f9s_bot_left -/* 9-slice frame, left corner slice */ - -{ - background-repeat: no-repeat; - background-position: left; -} -.f9s_top_right, .f9s_bot_right -/* 9-slice frame, right corner slice */ - -{ - background-repeat: no-repeat; - background-position: right; -} -.f9s_top_mid, .f9s_bot_mid -/* 9-slice frame, top/bottom horizontal slice */ - -{ - background-repeat: repeat-x; - background-position: 0px 0px; -} -.f9s_mid_left -/* 9-slice frame, left vertical slice */ - -{ - background-repeat: repeat-y; - background-position: left; -} -.f9s_mid_right -/* 9-slice frame, right vertical slice */ - -{ - background-repeat: repeat-y; - background-position: right; -} -.f9s_center -/* 9-slice frame, center slice */ - -{ - background-repeat: repeat; - background-position: 0px 0px; -} -.popup_anchor -/* anchors an abspos popup */ - -{ - position: relative; - width: 0px; - height: 0px; -} -.popup_element { - z-index: 100000; -} -.svg { - display: block; - vertical-align: top; -} -span.wrap -/* used to force wrap after floated array when nested inside a paragraph */ - -{ - content: ''; - clear: left; - display: block; -} -span.actAsInlineDiv -/* used to simulate a DIV with inline display when already nested inside a paragraph */ - -{ - display: inline-block; -} -.position_content, .excludeFromNormalFlow -/* used when child content is larger than parent */ - -{ - float: left; -} -.preload_images -/* used to preload images used in non-default states */ - -{ - position: absolute; - overflow: hidden; - left: -9999px; - top: -9999px; - height: 1px; - width: 1px; -} -preload -/* used to specifiy the dimension of preload item */ - -{ - height: 1px; - width: 1px; -} -.animateStates { - -webkit-transition: 0.3s ease-in-out; - -moz-transition: 0.3s ease-in-out; - -o-transition: 0.3s ease-in-out; - transition: 0.3s ease-in-out; -} -input:focus, textarea:focus -/* remove default focussed input styling */ - -{ - outline: none; -} -textarea { - resize: none; - overflow: auto; -} -.fld-prompt -/* form placeholders cursor behavior */ - -{ - pointer-events: none; -} -.wrapped-input -/* form inputs & placeholders let div styling show thru */ - -{ - position: absolute; - top: 0; - left: 0; - background: transparent; - border: none; -} -.submit-btn -/* form submit buttons on top of sibling elements */ - -{ - z-index: 50000; - cursor: pointer; -} -.anchor_item -/* used to specify anchor properties */ - -{ - width: 22px; - height: 18px; -} -.MenuBar .SubMenuVisible, .MenuBarVertical .SubMenuVisible, .MenuBar .SubMenu .SubMenuVisible, .popup_element.Active, span.actAsPara, .actAsDiv, a.nonblock.nontext, img.block { - display: block; -} -.ose_ei { - visibility: hidden; - z-index: 0; -} -.widget_invisible, .js .invi, .js .mse_pre_init, .js .an_invi -/* used to hide the widget before loaded */ - -{ - visibility: hidden; -} -.no_vert_scroll { - overflow-y: hidden; -} -.always_vert_scroll { - overflow-y: scroll; -} -.always_horz_scroll { - overflow-x: scroll; -} -.popup_element.Inactive, .js .disn, .hidden { - display: none; -} -.fullscreen { - overflow: hidden; - left: 0px; - top: 0px; - position: fixed; - height: 100%; - width: 100%; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; -} -.fullwidth { - position: absolute; -} -.borderbox { - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; -} -.scroll_wrapper { - position: absolute; - overflow: auto; - left: 0px; - right: 0px; - top: 0px; - bottom: 0px; - padding-top: 0px; - padding-bottom: 0px; - margin-top: 0px; - margin-bottom: 0px; -} -.browser_width > * { - position: absolute; - left: 0px; - right: 0px; -} -.list0 li, .MenuBar .MenuItemContainer, .SlideShowContentPanel .fullscreen img { - position: relative; -} -.accordion_wrapper { - display: inline; - float: left; - width: 0px; -} -.fld-checkbox input[type=checkbox] -/* Hide native checkbox */ - -{ - position: absolute; - overflow: hidden; - clip: rect(0px, 0px, 0px, 0px); - height: 1px; - width: 1px; - margin: -1px; - padding: 0; - border: 0; -} -.fld-checkbox input[type=checkbox] + label { - display: inline-block; - background-repeat: no-repeat; - cursor: pointer; - float: left; - width: 100%; - height: 100%; -} -.pointer_cursor, .fld-recaptcha-mode, .fld-recaptcha-refresh, .fld-recaptcha-help { - cursor: pointer; -} diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 1be08880..00000000 Binary files a/favicon.ico and /dev/null differ diff --git a/images/54daa49b38d8c30849338b68_profile-u75.png b/images/54daa49b38d8c30849338b68_profile-u75.png deleted file mode 100644 index e0ae399f..00000000 Binary files a/images/54daa49b38d8c30849338b68_profile-u75.png and /dev/null differ diff --git a/images/Pathfinder_500.jpeg b/images/Pathfinder_500.jpeg deleted file mode 100644 index 63c9df8a..00000000 Binary files a/images/Pathfinder_500.jpeg and /dev/null differ diff --git a/images/blank.gif b/images/blank.gif deleted file mode 100644 index 35d42e80..00000000 Binary files a/images/blank.gif and /dev/null differ diff --git a/images/email-outline.png b/images/email-outline.png deleted file mode 100644 index a4d4b8d6..00000000 Binary files a/images/email-outline.png and /dev/null differ diff --git a/images/github-circle.png b/images/github-circle.png deleted file mode 100644 index 4574c68f..00000000 Binary files a/images/github-circle.png and /dev/null differ diff --git a/images/google-plus.png b/images/google-plus.png deleted file mode 100644 index 388d1c31..00000000 Binary files a/images/google-plus.png and /dev/null differ diff --git a/images/header.png b/images/header.png deleted file mode 100644 index 633c6460..00000000 Binary files a/images/header.png and /dev/null differ diff --git a/images/loading.gif b/images/loading.gif deleted file mode 100644 index ea22e320..00000000 Binary files a/images/loading.gif and /dev/null differ diff --git a/images/logo.png b/images/logo.png deleted file mode 100644 index ccca8983..00000000 Binary files a/images/logo.png and /dev/null differ diff --git a/images/rss.png b/images/rss.png deleted file mode 100644 index 6c6898bf..00000000 Binary files a/images/rss.png and /dev/null differ diff --git a/images/snap1-crop-u111.jpg b/images/snap1-crop-u111.jpg deleted file mode 100644 index 8a2f7cfa..00000000 Binary files a/images/snap1-crop-u111.jpg and /dev/null differ diff --git a/images/snap2-crop-u219.jpg b/images/snap2-crop-u219.jpg deleted file mode 100644 index c6bace7b..00000000 Binary files a/images/snap2-crop-u219.jpg and /dev/null differ diff --git a/images/snap3-crop-u228.jpg b/images/snap3-crop-u228.jpg deleted file mode 100644 index 384bfb5e..00000000 Binary files a/images/snap3-crop-u228.jpg and /dev/null differ diff --git a/images/snap4-crop-u237.jpg b/images/snap4-crop-u237.jpg deleted file mode 100644 index 31375e46..00000000 Binary files a/images/snap4-crop-u237.jpg and /dev/null differ diff --git a/images/snap5-crop-u246.jpg b/images/snap5-crop-u246.jpg deleted file mode 100644 index d0a4c983..00000000 Binary files a/images/snap5-crop-u246.jpg and /dev/null differ diff --git a/images/snap6-crop-u255.jpg b/images/snap6-crop-u255.jpg deleted file mode 100644 index b6acad8e..00000000 Binary files a/images/snap6-crop-u255.jpg and /dev/null differ diff --git a/images/twitter.png b/images/twitter.png deleted file mode 100644 index 7ce2121b..00000000 Binary files a/images/twitter.png and /dev/null differ diff --git a/index.html b/index.html index a8c211fa..118d0af1 100644 --- a/index.html +++ b/index.html @@ -1,300 +1,163 @@ - - - + + + + - - - - - - - - - Space Game: The Eternal Journal - - - - - - - + + + + + + + + + + - +
    + +
    +

    Space Game: The Eternal Journal

    -
    - -
    - - -
    - -
    -
    - -
    - -
    -
    - -
    - - - - - - - -
    -
    - -
    - - -
    -
    - -

    Space Game: The Eternal Journal

    -

    Space Game is a game of mystery and discovery. You play the role of a scientist, who has found themself in an endless loop of death and rebirth, with only your notes to link you to your previous experiences. As you play, your player - writes everything you discover in a journal. So truly, survival is optional, as death is pretty meaningless. Instead, the game focuses on discovery and exploration, encouraging the player to try new things and experiment. From upgrading - your ship to leveling up to making towers, every mechanic is built from the ground up to become progressively clearer. But beware, because, as the player learns, so do the enemies.

    -

     

    -

    Space Game features an advanced note system around which everything else is based. Enjoy countless hours of experimenting and trying out new strategies, various guns, upgrades, and towers.

    -

     

    -

    This game is currently on version beta 1.5, released on 2/15/15. It is in active development. Purchasing from Itch.io or Desura guarantees you will receive all future updates.

    -

     

    -

    I'm The Paper Pilot, an Eagle Scout on my way to University next year to study Computer Science. I've been making games for years, and programming even longer. However, lacking a formal computer science education, I’ve been keeping most - of my programs to myself. But, as I’ve gotten better I’m starting to release some things, starting with Space Game.

    -
    -
    -
    -
    - -
    - - -
    -
    - - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    - -
    -
    - - - - - - - - - - - +

    By The Paper Pilot

    +

    +Space Game is a game of mystery and discovery. You play the role of a scientist, who has found themself in an endless loop of death and rebirth, with only your notes to link you to your previous experiences. As you play, your player writes everything you discover in a journal. So truly, survival is optional, as death is pretty meaningless. Instead, the game focuses on discovery and exploration, encouraging the player to try new things and experiment. From upgrading your ship to leveling up to making towers, every mechanic is built from the ground up to become progressively clearer. But beware, because, as the player learns, so do the enemies.
    +

    + +

    +Space Game features an advanced note system around which everything else is based. Enjoy countless hours of experimenting and trying out new strategies, various guns, upgrades, and towers.
    +

    + +

    +This game is currently on version beta 1.5, released on 2/15/15. It is in active development. Purchasing from Itch.io or Desura guarantees you will receive all future updates.
    +

    + +

    +I'm The Paper Pilot, an Eagle Scout on my way to University next year to study Computer Science. I've been making games for years, and programming even longer. However, lacking a formal computer science education, I’ve been keeping most of my programs to myself. But, as I’ve gotten better I’m starting to release some things, starting with Space Game.
    +

    + +

    +Contact Me:
    +

    +

    + +
    +
    - + diff --git a/muse_manifest.xml b/muse_manifest.xml deleted file mode 100644 index 5c1fb57d..00000000 --- a/muse_manifest.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phone/css/index.css b/phone/css/index.css deleted file mode 100644 index 68ceff06..00000000 --- a/phone/css/index.css +++ /dev/null @@ -1,409 +0,0 @@ -.version.index -/* version checker */ - -{ - color: #000015; - background-color: #F98FF2; -} -@-ms-viewport { - width: 560px; -} -@-webkit-viewport { - width: 560px; -} -@-o-viewport { - width: 560px; -} -@-moz-viewport { - width: 560px; -} -@viewport { - width: 560px; -} -.html { - background-color: #000000; -} -#page { - z-index: 1; - width: 560px; - min-height: 1498.988629876308px; - background-image: none; - border-style: none; - border-color: #000000; - background-color: #000000; - padding-bottom: 0px; -} -#page_position_content { - margin-top: -26px; - padding-bottom: 12px; -} -#u299 { - z-index: 2; - display: block; - vertical-align: top; - margin-left: 65px; - position: relative; -} -#u303-15 { - z-index: 4; - min-height: 319px; - background-color: transparent; - color: #FFFFFF; -} -#u303-2 { - font-size: 48px; - text-align: center; - line-height: 58px; -} -#u303-15-bw { - z-index: 4; - min-height: 319px; - margin-top: 22px; - height: 432px; -} -#u304 { - z-index: 19; - width: 560px; - min-height: 315px; - border-style: none; - border-color: transparent; - background-color: transparent; - margin-top: 21px; - position: relative; -} -#slideshowu306 { - z-index: 20; - width: 0.01px; - height: 55px; - margin-top: 22px; - position: relative; -} -#u318 { - position: absolute; - width: 524px; - height: 422px; - border-style: none; - border-color: transparent; - background-color: #191919; - background-color: rgba(0, 0, 0, 0.9); - top: 63px; - left: 198px; - -pie-background: rgba(0, 0, 0, 0.9); -} -#u318popup { - z-index: 21; -} -#u321 { - z-index: 22; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u323 { - z-index: 24; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u325 { - z-index: 26; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u327 { - z-index: 28; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u329 { - z-index: 30; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u319 { - z-index: 32; - width: 480px; - height: 360px; - background-color: transparent; - margin-right: -10000px; - position: relative; - top: 22px; - left: 22px; -} -#u321_img, #u323_img, #u325_img, #u327_img, #u329_img, #u319_img { - padding-top: 45px; - padding-bottom: 45px; -} -#u331 { - position: absolute; - width: 560px; - border-style: none; - border-color: transparent; - background-color: transparent; - padding-bottom: 10px; -} -#u331popup { - z-index: 34; -} -#u336 { - z-index: 35; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 75px; -} -#u338 { - z-index: 37; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 145px; -} -#u342 { - z-index: 39; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 215px; -} -#u340 { - z-index: 41; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 285px; -} -#u334 { - z-index: 43; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 355px; -} -#u332 { - z-index: 45; - width: 60px; - height: 45px; - border-style: none; - border-color: transparent; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 425px; -} -#u336:hover, #u338:hover, #u342:hover, #u340:hover, #u334:hover, #u332:hover { - margin: 0px -10000px 0px 0px; -} -#u344-4 { - position: absolute; - width: 30px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 455px; - left: 570px; -} -#u344-4popup { - z-index: 47; -} -#u345-4 { - position: absolute; - width: 30px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 455px; - left: 670px; -} -#u345-4popup { - z-index: 51; -} -#u346-4 { - position: absolute; - width: 70px; - min-height: 30px; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif; - top: 455px; - left: 600px; -} -#u346-4popup { - z-index: 55; -} -#u307 { - position: absolute; - width: 30px; - border-style: none; - border-color: transparent; - background-color: #C4C4C4; - padding-bottom: 5px; - top: 85px; - left: 670px; -} -#u307:hover { - background-color: #999999; - margin: 0px; -} -#u307:active { - background-color: #6B6B6B; - margin: 0px; -} -#u308-4 { - z-index: 60; - width: 20px; - min-height: 20px; - border-style: none; - border-color: transparent; - background-color: transparent; - color: #FFFFFF; - line-height: 20px; - text-align: center; - font-family: Arial, Helvetica Neue, Helvetica, sans-serif; - position: relative; - margin-right: -10000px; - margin-top: 5px; - left: 5px; -} -.SSFirstButton, .SSPreviousButton, .SSNextButton, .SSLastButton, .SSSlideLink, .SSCloseButton -/* slideshowFreeStyle */ - -{ - cursor: pointer; -} -.SSSlideLoading -/* slideshowFreeStyle */ - -{ - background: url("../../images/loading.gif") no-repeat center center; -} -#u359 { - z-index: 64; - width: 552px; - min-height: 171px; - border-style: none; - border-color: transparent; - background-color: transparent; - margin-left: 4px; - margin-top: 21px; - position: relative; -} -#u361 { - z-index: 65; - width: 549px; - min-height: 254px; - border-width: 1px; - border-style: solid; - border-color: #363636; - background-color: #222222; - margin-left: 4px; - margin-top: 21px; - position: relative; -} -#u405 { - z-index: 66; - width: 240px; - border-style: none; - border-color: transparent; - background-color: transparent; - margin-left: 160px; - margin-top: 11px; - position: relative; -} -#u381 { - z-index: 69; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; -} -#u375 { - z-index: 67; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 48px; -} -#u387 { - z-index: 71; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 96px; -} -#u393 { - z-index: 73; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 144px; -} -#u399 { - z-index: 75; - width: 48px; - background-color: transparent; - position: relative; - margin-right: -10000px; - left: 192px; -} -body { - position: relative; - min-width: 560px; -} -#page .verticalspacer { - clear: both; -} diff --git a/phone/index.html b/phone/index.html deleted file mode 100644 index 3abab729..00000000 --- a/phone/index.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - - - - - Space Game - - - - - - - - - - - -
    - -
    - - -
    -
    - -

    Space Game

    -

    Space Game is a game of mystery and discovery. You play the role of a scientist, who has found themself in an endless loop of death and rebirth, with only your notes to link you to your previous experiences. As you play, your player writes everything - you discover in a journal. So truly, survival is optional, as death is pretty meaningless. Instead, the game focuses on discovery and exploration, encouraging the player to try new things and experiment. From upgrading your ship to leveling - up to making towers, every mechanic is built from the ground up to become progressively clearer. But beware, because, as the player learns, so do the enemies.

    -

     

    -

    Space Game features an advanced note system around which everything else is based. Enjoy countless hours of experimenting and trying out new strategies, various guns, upgrades, and towers.

    -

     

    -

    This game is currently on version beta 1.5, released on 2/15/15. It is in active development. Purchasing from Itch.io or Desura guarantees you will receive all future updates.

    -

     

    -

    I'm The Paper Pilot, an Eagle Scout on my way to University next year to study Computer Science. I've been making games for years, and programming even longer. However, lacking a formal computer science education, I’ve been keeping most of my - programs to myself. But, as I’ve gotten better I’m starting to release some things, starting with Space Game.

    -
    -
    -
    - - -
    -
    - - - - - - - -
    -
    - - -
    -
    - - -
    -
    - -
    -
    - - - - - - - - - - - - - - diff --git a/presskit.html b/presskit.html deleted file mode 100644 index e96e82c6..00000000 --- a/presskit.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - Space Game: The Eternal Journal - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    -

    Factsheet

    -

    - Developer: -
    - The Paper Pilot -

    -

    - Website: -
    - thepaperpilot.org -

    -

    - Press / Business contact: -
    - thepaperpilot@gmail.com -

    -

    - Social: -
    - Twitter -
    - Github -
    -

    -

    - Phone: -
    (321) 426-8770 -

    -
    -
    -

    Description

    -

    - Space Game is a game of mystery and discovery. You play the role of a scientist, who has found themself in an endless loop of death and rebirth, with only your notes to link you to your previous experiences. As you play, your player writes everything - you discover in a journal. So truly, survival is optional, as death is pretty meaningless. Instead, the game focuses on discovery and exploration, encouraging the player to try new things and experiment. From upgrading your ship to leveling - up to making towers, every mechanic is built from the ground up to become progressively clearer. But beware, because, as the player learns, so do the enemies.

    -

    - Space Game features an advanced note system around which everything else is based. Enjoy countless hours of experimenting and trying out new strategies, various guns, upgrades, and towers.

    -

    - This game is currently on version beta 1.5, released on 2/15/15. It is in active development. Purchasing from Itch.io or Desura guarantees you will receive all future updates.

    -

    - I'm The Paper Pilot, an Eagle Scout on my way to University next year to study Computer Science. I've been making games for years, and programming even longer. However, lacking a formal computer science education, I’ve been keeping most of my programs - to myself. But, as I’ve gotten better I’m starting to release some things, starting with Space Game.

    -
    -
    -
    -

    Videos

    -

    - Space Game Beta 1.5 Trailer -  YouTube -

    - -
    -

    -
    -

    Images

    -
    -
    - - snapshot.png - -
    -
    - - snap6.png - -
    -
    - - snap4.png - -
    -
    - - snap5.png - -
    -
    - - snap2.png - -
    -
    - - snap3.png - -
    -
    - - snap1.png - -
    -
    -
    -

    There are far more images available for Space Game: The Eternal Journal, but these are the ones we felt would be most useful to you. If you have specific requests, please do contact us!

    -
    - -
    -
    - - logo - -
    -
    -
    -

    Selected Articles

    - -
    - -

    - Itch.io store page: -
    - itch.io.

    -

    - Desura store page: -
    - desura.com.

    -

    - Review code request form: -
    - dodistribute.com.

    -
    -
    -
    -

    Team

    -

    - The Paper Pilot -
    Developer, Artist, etc.

    -
    -
    -

    Contact

    -

    - Inquiries -
    - thepaperpilot@gmail.com

    -

    - Twitter -
    - twitter.com/ThePaperPilot

    diff --git a/scripts/jquery-1.8.3.min.js b/scripts/jquery-1.8.3.min.js deleted file mode 100644 index e343fd89..00000000 --- a/scripts/jquery-1.8.3.min.js +++ /dev/null @@ -1,3592 +0,0 @@ -/*! jQuery v1.8.3 jquery.com | jquery.org/license */ -(function(e, t) { - function _(e) { - var t = M[e] = {}; - return v.each(e.split(y), function(e, n) { - t[n] = !0 - }), t - } - - function H(e, n, r) { - if (r === t && e.nodeType === 1) { - var i = "data-" + n.replace(P, "-$1").toLowerCase(); - r = e.getAttribute(i); - if (typeof r == "string") { - try { - r = r === "true" ? !0 : r === "false" ? !1 : r === "null" ? null : +r + "" === r ? +r : D.test(r) ? v.parseJSON(r) : r - } catch (s) {} - v.data(e, n, r) - } else r = t - } - return r - } - - function B(e) { - var t; - for (t in e) { - if (t === "data" && v.isEmptyObject(e[t])) continue; - if (t !== "toJSON") return !1 - } - return !0 - } - - function et() { - return !1 - } - - function tt() { - return !0 - } - - function ut(e) { - return !e || !e.parentNode || e.parentNode.nodeType === 11 - } - - function at(e, t) { - do e = e[t]; while (e && e.nodeType !== 1); - return e - } - - function ft(e, t, n) { - t = t || 0; - if (v.isFunction(t)) return v.grep(e, function(e, r) { - var i = !!t.call(e, r, e); - return i === n - }); - if (t.nodeType) return v.grep(e, function(e, r) { - return e === t === n - }); - if (typeof t == "string") { - var r = v.grep(e, function(e) { - return e.nodeType === 1 - }); - if (it.test(t)) return v.filter(t, r, !n); - t = v.filter(t, r) - } - return v.grep(e, function(e, r) { - return v.inArray(e, t) >= 0 === n - }) - } - - function lt(e) { - var t = ct.split("|"), - n = e.createDocumentFragment(); - if (n.createElement) - while (t.length) n.createElement(t.pop()); - return n - } - - function Lt(e, t) { - return e.getElementsByTagName(t)[0] || e.appendChild(e.ownerDocument.createElement(t)) - } - - function At(e, t) { - if (t.nodeType !== 1 || !v.hasData(e)) return; - var n, r, i, s = v._data(e), - o = v._data(t, s), - u = s.events; - if (u) { - delete o.handle, o.events = {}; - for (n in u) - for (r = 0, i = u[n].length; r < i; r++) v.event.add(t, n, u[n][r]) - } - o.data && (o.data = v.extend({}, o.data)) - } - - function Ot(e, t) { - var n; - if (t.nodeType !== 1) return; - t.clearAttributes && t.clearAttributes(), t.mergeAttributes && t.mergeAttributes(e), n = t.nodeName.toLowerCase(), n === "object" ? (t.parentNode && (t.outerHTML = e.outerHTML), v.support.html5Clone && e.innerHTML && !v.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : n === "input" && Et.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : n === "option" ? t.selected = e.defaultSelected : n === "input" || n === "textarea" ? t.defaultValue = e.defaultValue : n === "script" && t.text !== e.text && (t.text = e.text), t.removeAttribute(v.expando) - } - - function Mt(e) { - return typeof e.getElementsByTagName != "undefined" ? e.getElementsByTagName("*") : typeof e.querySelectorAll != "undefined" ? e.querySelectorAll("*") : [] - } - - function _t(e) { - Et.test(e.type) && (e.defaultChecked = e.checked) - } - - function Qt(e, t) { - if (t in e) return t; - var n = t.charAt(0).toUpperCase() + t.slice(1), - r = t, - i = Jt.length; - while (i--) { - t = Jt[i] + n; - if (t in e) return t - } - return r - } - - function Gt(e, t) { - return e = t || e, v.css(e, "display") === "none" || !v.contains(e.ownerDocument, e) - } - - function Yt(e, t) { - var n, r, i = [], - s = 0, - o = e.length; - for (; s < o; s++) { - n = e[s]; - if (!n.style) continue; - i[s] = v._data(n, "olddisplay"), t ? (!i[s] && n.style.display === "none" && (n.style.display = ""), n.style.display === "" && Gt(n) && (i[s] = v._data(n, "olddisplay", nn(n.nodeName)))) : (r = Dt(n, "display"), !i[s] && r !== "none" && v._data(n, "olddisplay", r)) - } - for (s = 0; s < o; s++) { - n = e[s]; - if (!n.style) continue; - if (!t || n.style.display === "none" || n.style.display === "") n.style.display = t ? i[s] || "" : "none" - } - return e - } - - function Zt(e, t, n) { - var r = Rt.exec(t); - return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t - } - - function en(e, t, n, r) { - var i = n === (r ? "border" : "content") ? 4 : t === "width" ? 1 : 0, - s = 0; - for (; i < 4; i += 2) n === "margin" && (s += v.css(e, n + $t[i], !0)), r ? (n === "content" && (s -= parseFloat(Dt(e, "padding" + $t[i])) || 0), n !== "margin" && (s -= parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)) : (s += parseFloat(Dt(e, "padding" + $t[i])) || 0, n !== "padding" && (s += parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)); - return s - } - - function tn(e, t, n) { - var r = t === "width" ? e.offsetWidth : e.offsetHeight, - i = !0, - s = v.support.boxSizing && v.css(e, "boxSizing") === "border-box"; - if (r <= 0 || r == null) { - r = Dt(e, t); - if (r < 0 || r == null) r = e.style[t]; - if (Ut.test(r)) return r; - i = s && (v.support.boxSizingReliable || r === e.style[t]), r = parseFloat(r) || 0 - } - return r + en(e, t, n || (s ? "border" : "content"), i) + "px" - } - - function nn(e) { - if (Wt[e]) return Wt[e]; - var t = v("<" + e + ">").appendTo(i.body), - n = t.css("display"); - t.remove(); - if (n === "none" || n === "") { - Pt = i.body.appendChild(Pt || v.extend(i.createElement("iframe"), { - frameBorder: 0, - width: 0, - height: 0 - })); - if (!Ht || !Pt.createElement) Ht = (Pt.contentWindow || Pt.contentDocument).document, Ht.write(""), Ht.close(); - t = Ht.body.appendChild(Ht.createElement(e)), n = Dt(t, "display"), i.body.removeChild(Pt) - } - return Wt[e] = n, n - } - - function fn(e, t, n, r) { - var i; - if (v.isArray(t)) v.each(t, function(t, i) { - n || sn.test(e) ? r(e, i) : fn(e + "[" + (typeof i == "object" ? t : "") + "]", i, n, r) - }); - else if (!n && v.type(t) === "object") - for (i in t) fn(e + "[" + i + "]", t[i], n, r); - else r(e, t) - } - - function Cn(e) { - return function(t, n) { - typeof t != "string" && (n = t, t = "*"); - var r, i, s, o = t.toLowerCase().split(y), - u = 0, - a = o.length; - if (v.isFunction(n)) - for (; u < a; u++) r = o[u], s = /^\+/.test(r), s && (r = r.substr(1) || "*"), i = e[r] = e[r] || [], i[s ? "unshift" : "push"](n) - } - } - - function kn(e, n, r, i, s, o) { - s = s || n.dataTypes[0], o = o || {}, o[s] = !0; - var u, a = e[s], - f = 0, - l = a ? a.length : 0, - c = e === Sn; - for (; f < l && (c || !u); f++) u = a[f](n, r, i), typeof u == "string" && (!c || o[u] ? u = t : (n.dataTypes.unshift(u), u = kn(e, n, r, i, u, o))); - return (c || !u) && !o["*"] && (u = kn(e, n, r, i, "*", o)), u - } - - function Ln(e, n) { - var r, i, s = v.ajaxSettings.flatOptions || {}; - for (r in n) n[r] !== t && ((s[r] ? e : i || (i = {}))[r] = n[r]); - i && v.extend(!0, e, i) - } - - function An(e, n, r) { - var i, s, o, u, a = e.contents, - f = e.dataTypes, - l = e.responseFields; - for (s in l) s in r && (n[l[s]] = r[s]); - while (f[0] === "*") f.shift(), i === t && (i = e.mimeType || n.getResponseHeader("content-type")); - if (i) - for (s in a) - if (a[s] && a[s].test(i)) { - f.unshift(s); - break - } - if (f[0] in r) o = f[0]; - else { - for (s in r) { - if (!f[0] || e.converters[s + " " + f[0]]) { - o = s; - break - } - u || (u = s) - } - o = o || u - } - if (o) return o !== f[0] && f.unshift(o), r[o] - } - - function On(e, t) { - var n, r, i, s, o = e.dataTypes.slice(), - u = o[0], - a = {}, - f = 0; - e.dataFilter && (t = e.dataFilter(t, e.dataType)); - if (o[1]) - for (n in e.converters) a[n.toLowerCase()] = e.converters[n]; - for (; i = o[++f];) - if (i !== "*") { - if (u !== "*" && u !== i) { - n = a[u + " " + i] || a["* " + i]; - if (!n) - for (r in a) { - s = r.split(" "); - if (s[1] === i) { - n = a[u + " " + s[0]] || a["* " + s[0]]; - if (n) { - n === !0 ? n = a[r] : a[r] !== !0 && (i = s[0], o.splice(f--, 0, i)); - break - } - } - } - if (n !== !0) - if (n && e["throws"]) t = n(t); - else try { - t = n(t) - } catch (l) { - return { - state: "parsererror", - error: n ? l : "No conversion from " + u + " to " + i - } - } - } - u = i - } - return { - state: "success", - data: t - } - } - - function Fn() { - try { - return new e.XMLHttpRequest - } catch (t) {} - } - - function In() { - try { - return new e.ActiveXObject("Microsoft.XMLHTTP") - } catch (t) {} - } - - function $n() { - return setTimeout(function() { - qn = t - }, 0), qn = v.now() - } - - function Jn(e, t) { - v.each(t, function(t, n) { - var r = (Vn[t] || []).concat(Vn["*"]), - i = 0, - s = r.length; - for (; i < s; i++) - if (r[i].call(e, t, n)) return - }) - } - - function Kn(e, t, n) { - var r, i = 0, - s = 0, - o = Xn.length, - u = v.Deferred().always(function() { - delete a.elem - }), - a = function() { - var t = qn || $n(), - n = Math.max(0, f.startTime + f.duration - t), - r = n / f.duration || 0, - i = 1 - r, - s = 0, - o = f.tweens.length; - for (; s < o; s++) f.tweens[s].run(i); - return u.notifyWith(e, [f, i, n]), i < 1 && o ? n : (u.resolveWith(e, [f]), !1) - }, - f = u.promise({ - elem: e, - props: v.extend({}, t), - opts: v.extend(!0, { - specialEasing: {} - }, n), - originalProperties: t, - originalOptions: n, - startTime: qn || $n(), - duration: n.duration, - tweens: [], - createTween: function(t, n, r) { - var i = v.Tween(e, f.opts, t, n, f.opts.specialEasing[t] || f.opts.easing); - return f.tweens.push(i), i - }, - stop: function(t) { - var n = 0, - r = t ? f.tweens.length : 0; - for (; n < r; n++) f.tweens[n].run(1); - return t ? u.resolveWith(e, [f, t]) : u.rejectWith(e, [f, t]), this - } - }), - l = f.props; - Qn(l, f.opts.specialEasing); - for (; i < o; i++) { - r = Xn[i].call(f, e, l, f.opts); - if (r) return r - } - return Jn(f, l), v.isFunction(f.opts.start) && f.opts.start.call(e, f), v.fx.timer(v.extend(a, { - anim: f, - queue: f.opts.queue, - elem: e - })), f.progress(f.opts.progress).done(f.opts.done, f.opts.complete).fail(f.opts.fail).always(f.opts.always) - } - - function Qn(e, t) { - var n, r, i, s, o; - for (n in e) { - r = v.camelCase(n), i = t[r], s = e[n], v.isArray(s) && (i = s[1], s = e[n] = s[0]), n !== r && (e[r] = s, delete e[n]), o = v.cssHooks[r]; - if (o && "expand" in o) { - s = o.expand(s), delete e[r]; - for (n in s) n in e || (e[n] = s[n], t[n] = i) - } else t[r] = i - } - } - - function Gn(e, t, n) { - var r, i, s, o, u, a, f, l, c, h = this, - p = e.style, - d = {}, - m = [], - g = e.nodeType && Gt(e); - n.queue || (l = v._queueHooks(e, "fx"), l.unqueued == null && (l.unqueued = 0, c = l.empty.fire, l.empty.fire = function() { - l.unqueued || c() - }), l.unqueued++, h.always(function() { - h.always(function() { - l.unqueued--, v.queue(e, "fx").length || l.empty.fire() - }) - })), e.nodeType === 1 && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], v.css(e, "display") === "inline" && v.css(e, "float") === "none" && (!v.support.inlineBlockNeedsLayout || nn(e.nodeName) === "inline" ? p.display = "inline-block" : p.zoom = 1)), n.overflow && (p.overflow = "hidden", v.support.shrinkWrapBlocks || h.done(function() { - p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2] - })); - for (r in t) { - s = t[r]; - if (Un.exec(s)) { - delete t[r], a = a || s === "toggle"; - if (s === (g ? "hide" : "show")) continue; - m.push(r) - } - } - o = m.length; - if (o) { - u = v._data(e, "fxshow") || v._data(e, "fxshow", {}), "hidden" in u && (g = u.hidden), a && (u.hidden = !g), g ? v(e).show() : h.done(function() { - v(e).hide() - }), h.done(function() { - var t; - v.removeData(e, "fxshow", !0); - for (t in d) v.style(e, t, d[t]) - }); - for (r = 0; r < o; r++) i = m[r], f = h.createTween(i, g ? u[i] : 0), d[i] = u[i] || v.style(e, i), i in u || (u[i] = f.start, g && (f.end = f.start, f.start = i === "width" || i === "height" ? 1 : 0)) - } - } - - function Yn(e, t, n, r, i) { - return new Yn.prototype.init(e, t, n, r, i) - } - - function Zn(e, t) { - var n, r = { - height: e - }, - i = 0; - t = t ? 1 : 0; - for (; i < 4; i += 2 - t) n = $t[i], r["margin" + n] = r["padding" + n] = e; - return t && (r.opacity = r.width = e), r - } - - function tr(e) { - return v.isWindow(e) ? e : e.nodeType === 9 ? e.defaultView || e.parentWindow : !1 - } - var n, r, i = e.document, - s = e.location, - o = e.navigator, - u = e.jQuery, - a = e.$, - f = Array.prototype.push, - l = Array.prototype.slice, - c = Array.prototype.indexOf, - h = Object.prototype.toString, - p = Object.prototype.hasOwnProperty, - d = String.prototype.trim, - v = function(e, t) { - return new v.fn.init(e, t, n) - }, - m = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, - g = /\S/, - y = /\s+/, - b = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - w = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, - E = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - S = /^[\],:{}\s]*$/, - x = /(?:^|:|,)(?:\s*\[)+/g, - T = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - N = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, - C = /^-ms-/, - k = /-([\da-z])/gi, - L = function(e, t) { - return (t + "").toUpperCase() - }, - A = function() { - i.addEventListener ? (i.removeEventListener("DOMContentLoaded", A, !1), v.ready()) : i.readyState === "complete" && (i.detachEvent("onreadystatechange", A), v.ready()) - }, - O = {}; - v.fn = v.prototype = { - constructor: v, - init: function(e, n, r) { - var s, o, u, a; - if (!e) return this; - if (e.nodeType) return this.context = this[0] = e, this.length = 1, this; - if (typeof e == "string") { - e.charAt(0) === "<" && e.charAt(e.length - 1) === ">" && e.length >= 3 ? s = [null, e, null] : s = w.exec(e); - if (s && (s[1] || !n)) { - if (s[1]) return n = n instanceof v ? n[0] : n, a = n && n.nodeType ? n.ownerDocument || n : i, e = v.parseHTML(s[1], a, !0), E.test(s[1]) && v.isPlainObject(n) && this.attr.call(e, n, !0), v.merge(this, e); - o = i.getElementById(s[2]); - if (o && o.parentNode) { - if (o.id !== s[2]) return r.find(e); - this.length = 1, this[0] = o - } - return this.context = i, this.selector = e, this - } - return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e) - } - return v.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), v.makeArray(e, this)) - }, - selector: "", - jquery: "1.8.3", - length: 0, - size: function() { - return this.length - }, - toArray: function() { - return l.call(this) - }, - get: function(e) { - return e == null ? this.toArray() : e < 0 ? this[this.length + e] : this[e] - }, - pushStack: function(e, t, n) { - var r = v.merge(this.constructor(), e); - return r.prevObject = this, r.context = this.context, t === "find" ? r.selector = this.selector + (this.selector ? " " : "") + n : t && (r.selector = this.selector + "." + t + "(" + n + ")"), r - }, - each: function(e, t) { - return v.each(this, e, t) - }, - ready: function(e) { - return v.ready.promise().done(e), this - }, - eq: function(e) { - return e = +e, e === -1 ? this.slice(e) : this.slice(e, e + 1) - }, - first: function() { - return this.eq(0) - }, - last: function() { - return this.eq(-1) - }, - slice: function() { - return this.pushStack(l.apply(this, arguments), "slice", l.call(arguments).join(",")) - }, - map: function(e) { - return this.pushStack(v.map(this, function(t, n) { - return e.call(t, n, t) - })) - }, - end: function() { - return this.prevObject || this.constructor(null) - }, - push: f, - sort: [].sort, - splice: [].splice - }, v.fn.init.prototype = v.fn, v.extend = v.fn.extend = function() { - var e, n, r, i, s, o, u = arguments[0] || {}, - a = 1, - f = arguments.length, - l = !1; - typeof u == "boolean" && (l = u, u = arguments[1] || {}, a = 2), typeof u != "object" && !v.isFunction(u) && (u = {}), f === a && (u = this, --a); - for (; a < f; a++) - if ((e = arguments[a]) != null) - for (n in e) { - r = u[n], i = e[n]; - if (u === i) continue; - l && i && (v.isPlainObject(i) || (s = v.isArray(i))) ? (s ? (s = !1, o = r && v.isArray(r) ? r : []) : o = r && v.isPlainObject(r) ? r : {}, u[n] = v.extend(l, o, i)) : i !== t && (u[n] = i) - } - return u - }, v.extend({ - noConflict: function(t) { - return e.$ === v && (e.$ = a), t && e.jQuery === v && (e.jQuery = u), v - }, - isReady: !1, - readyWait: 1, - holdReady: function(e) { - e ? v.readyWait++ : v.ready(!0) - }, - ready: function(e) { - if (e === !0 ? --v.readyWait : v.isReady) return; - if (!i.body) return setTimeout(v.ready, 1); - v.isReady = !0; - if (e !== !0 && --v.readyWait > 0) return; - r.resolveWith(i, [v]), v.fn.trigger && v(i).trigger("ready").off("ready") - }, - isFunction: function(e) { - return v.type(e) === "function" - }, - isArray: Array.isArray || function(e) { - return v.type(e) === "array" - }, - isWindow: function(e) { - return e != null && e == e.window - }, - isNumeric: function(e) { - return !isNaN(parseFloat(e)) && isFinite(e) - }, - type: function(e) { - return e == null ? String(e) : O[h.call(e)] || "object" - }, - isPlainObject: function(e) { - if (!e || v.type(e) !== "object" || e.nodeType || v.isWindow(e)) return !1; - try { - if (e.constructor && !p.call(e, "constructor") && !p.call(e.constructor.prototype, "isPrototypeOf")) return !1 - } catch (n) { - return !1 - } - var r; - for (r in e); - return r === t || p.call(e, r) - }, - isEmptyObject: function(e) { - var t; - for (t in e) return !1; - return !0 - }, - error: function(e) { - throw new Error(e) - }, - parseHTML: function(e, t, n) { - var r; - return !e || typeof e != "string" ? null : (typeof t == "boolean" && (n = t, t = 0), t = t || i, (r = E.exec(e)) ? [t.createElement(r[1])] : (r = v.buildFragment([e], t, n ? null : []), v.merge([], (r.cacheable ? v.clone(r.fragment) : r.fragment).childNodes))) - }, - parseJSON: function(t) { - if (!t || typeof t != "string") return null; - t = v.trim(t); - if (e.JSON && e.JSON.parse) return e.JSON.parse(t); - if (S.test(t.replace(T, "@").replace(N, "]").replace(x, ""))) return (new Function("return " + t))(); - v.error("Invalid JSON: " + t) - }, - parseXML: function(n) { - var r, i; - if (!n || typeof n != "string") return null; - try { - e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n)) - } catch (s) { - r = t - } - return (!r || !r.documentElement || r.getElementsByTagName("parsererror").length) && v.error("Invalid XML: " + n), r - }, - noop: function() {}, - globalEval: function(t) { - t && g.test(t) && (e.execScript || function(t) { - e.eval.call(e, t) - })(t) - }, - camelCase: function(e) { - return e.replace(C, "ms-").replace(k, L) - }, - nodeName: function(e, t) { - return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() - }, - each: function(e, n, r) { - var i, s = 0, - o = e.length, - u = o === t || v.isFunction(e); - if (r) { - if (u) { - for (i in e) - if (n.apply(e[i], r) === !1) break - } else - for (; s < o;) - if (n.apply(e[s++], r) === !1) break - } else if (u) { - for (i in e) - if (n.call(e[i], i, e[i]) === !1) break - } else - for (; s < o;) - if (n.call(e[s], s, e[s++]) === !1) break; return e - }, - trim: d && !d.call("\ufeff\u00a0") ? function(e) { - return e == null ? "" : d.call(e) - } : function(e) { - return e == null ? "" : (e + "").replace(b, "") - }, - makeArray: function(e, t) { - var n, r = t || []; - return e != null && (n = v.type(e), e.length == null || n === "string" || n === "function" || n === "regexp" || v.isWindow(e) ? f.call(r, e) : v.merge(r, e)), r - }, - inArray: function(e, t, n) { - var r; - if (t) { - if (c) return c.call(t, e, n); - r = t.length, n = n ? n < 0 ? Math.max(0, r + n) : n : 0; - for (; n < r; n++) - if (n in t && t[n] === e) return n - } - return -1 - }, - merge: function(e, n) { - var r = n.length, - i = e.length, - s = 0; - if (typeof r == "number") - for (; s < r; s++) e[i++] = n[s]; - else - while (n[s] !== t) e[i++] = n[s++]; - return e.length = i, e - }, - grep: function(e, t, n) { - var r, i = [], - s = 0, - o = e.length; - n = !!n; - for (; s < o; s++) r = !!t(e[s], s), n !== r && i.push(e[s]); - return i - }, - map: function(e, n, r) { - var i, s, o = [], - u = 0, - a = e.length, - f = e instanceof v || a !== t && typeof a == "number" && (a > 0 && e[0] && e[a - 1] || a === 0 || v.isArray(e)); - if (f) - for (; u < a; u++) i = n(e[u], u, r), i != null && (o[o.length] = i); - else - for (s in e) i = n(e[s], s, r), i != null && (o[o.length] = i); - return o.concat.apply([], o) - }, - guid: 1, - proxy: function(e, n) { - var r, i, s; - return typeof n == "string" && (r = e[n], n = e, e = r), v.isFunction(e) ? (i = l.call(arguments, 2), s = function() { - return e.apply(n, i.concat(l.call(arguments))) - }, s.guid = e.guid = e.guid || v.guid++, s) : t - }, - access: function(e, n, r, i, s, o, u) { - var a, f = r == null, - l = 0, - c = e.length; - if (r && typeof r == "object") { - for (l in r) v.access(e, n, l, r[l], 1, o, i); - s = 1 - } else if (i !== t) { - a = u === t && v.isFunction(i), f && (a ? (a = n, n = function(e, t, n) { - return a.call(v(e), n) - }) : (n.call(e, i), n = null)); - if (n) - for (; l < c; l++) n(e[l], r, a ? i.call(e[l], l, n(e[l], r)) : i, u); - s = 1 - } - return s ? e : f ? n.call(e) : c ? n(e[0], r) : o - }, - now: function() { - return (new Date).getTime() - } - }), v.ready.promise = function(t) { - if (!r) { - r = v.Deferred(); - if (i.readyState === "complete") setTimeout(v.ready, 1); - else if (i.addEventListener) i.addEventListener("DOMContentLoaded", A, !1), e.addEventListener("load", v.ready, !1); - else { - i.attachEvent("onreadystatechange", A), e.attachEvent("onload", v.ready); - var n = !1; - try { - n = e.frameElement == null && i.documentElement - } catch (s) {} - n && n.doScroll && function o() { - if (!v.isReady) { - try { - n.doScroll("left") - } catch (e) { - return setTimeout(o, 50) - } - v.ready() - } - }() - } - } - return r.promise(t) - }, v.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(e, t) { - O["[object " + t + "]"] = t.toLowerCase() - }), n = v(i); - var M = {}; - v.Callbacks = function(e) { - e = typeof e == "string" ? M[e] || _(e) : v.extend({}, e); - var n, r, i, s, o, u, a = [], - f = !e.once && [], - l = function(t) { - n = e.memory && t, r = !0, u = s || 0, s = 0, o = a.length, i = !0; - for (; a && u < o; u++) - if (a[u].apply(t[0], t[1]) === !1 && e.stopOnFalse) { - n = !1; - break - } - i = !1, a && (f ? f.length && l(f.shift()) : n ? a = [] : c.disable()) - }, - c = { - add: function() { - if (a) { - var t = a.length; - (function r(t) { - v.each(t, function(t, n) { - var i = v.type(n); - i === "function" ? (!e.unique || !c.has(n)) && a.push(n) : n && n.length && i !== "string" && r(n) - }) - })(arguments), i ? o = a.length : n && (s = t, l(n)) - } - return this - }, - remove: function() { - return a && v.each(arguments, function(e, t) { - var n; - while ((n = v.inArray(t, a, n)) > -1) a.splice(n, 1), i && (n <= o && o--, n <= u && u--) - }), this - }, - has: function(e) { - return v.inArray(e, a) > -1 - }, - empty: function() { - return a = [], this - }, - disable: function() { - return a = f = n = t, this - }, - disabled: function() { - return !a - }, - lock: function() { - return f = t, n || c.disable(), this - }, - locked: function() { - return !f - }, - fireWith: function(e, t) { - return t = t || [], t = [e, t.slice ? t.slice() : t], a && (!r || f) && (i ? f.push(t) : l(t)), this - }, - fire: function() { - return c.fireWith(this, arguments), this - }, - fired: function() { - return !!r - } - }; - return c - }, v.extend({ - Deferred: function(e) { - var t = [ - ["resolve", "done", v.Callbacks("once memory"), "resolved"], - ["reject", "fail", v.Callbacks("once memory"), "rejected"], - ["notify", "progress", v.Callbacks("memory")] - ], - n = "pending", - r = { - state: function() { - return n - }, - always: function() { - return i.done(arguments).fail(arguments), this - }, - then: function() { - var e = arguments; - return v.Deferred(function(n) { - v.each(t, function(t, r) { - var s = r[0], - o = e[t]; - i[r[1]](v.isFunction(o) ? function() { - var e = o.apply(this, arguments); - e && v.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[s + "With"](this === i ? n : this, [e]) - } : n[s]) - }), e = null - }).promise() - }, - promise: function(e) { - return e != null ? v.extend(e, r) : r - } - }, - i = {}; - return r.pipe = r.then, v.each(t, function(e, s) { - var o = s[2], - u = s[3]; - r[s[1]] = o.add, u && o.add(function() { - n = u - }, t[e ^ 1][2].disable, t[2][2].lock), i[s[0]] = o.fire, i[s[0] + "With"] = o.fireWith - }), r.promise(i), e && e.call(i, i), i - }, - when: function(e) { - var t = 0, - n = l.call(arguments), - r = n.length, - i = r !== 1 || e && v.isFunction(e.promise) ? r : 0, - s = i === 1 ? e : v.Deferred(), - o = function(e, t, n) { - return function(r) { - t[e] = this, n[e] = arguments.length > 1 ? l.call(arguments) : r, n === u ? s.notifyWith(t, n) : --i || s.resolveWith(t, n) - } - }, - u, a, f; - if (r > 1) { - u = new Array(r), a = new Array(r), f = new Array(r); - for (; t < r; t++) n[t] && v.isFunction(n[t].promise) ? n[t].promise().done(o(t, f, n)).fail(s.reject).progress(o(t, a, u)) : --i - } - return i || s.resolveWith(f, n), s.promise() - } - }), v.support = function() { - var t, n, r, s, o, u, a, f, l, c, h, p = i.createElement("div"); - p.setAttribute("className", "t"), p.innerHTML = "
    a", n = p.getElementsByTagName("*"), r = p.getElementsByTagName("a")[0]; - if (!n || !r || !n.length) return {}; - s = i.createElement("select"), o = s.appendChild(i.createElement("option")), u = p.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t = { - leadingWhitespace: p.firstChild.nodeType === 3, - tbody: !p.getElementsByTagName("tbody").length, - htmlSerialize: !!p.getElementsByTagName("link").length, - style: /top/.test(r.getAttribute("style")), - hrefNormalized: r.getAttribute("href") === "/a", - opacity: /^0.5/.test(r.style.opacity), - cssFloat: !!r.style.cssFloat, - checkOn: u.value === "on", - optSelected: o.selected, - getSetAttribute: p.className !== "t", - enctype: !!i.createElement("form").enctype, - html5Clone: i.createElement("nav").cloneNode(!0).outerHTML !== "<:nav>", - boxModel: i.compatMode === "CSS1Compat", - submitBubbles: !0, - changeBubbles: !0, - focusinBubbles: !1, - deleteExpando: !0, - noCloneEvent: !0, - inlineBlockNeedsLayout: !1, - shrinkWrapBlocks: !1, - reliableMarginRight: !0, - boxSizingReliable: !0, - pixelPosition: !1 - }, u.checked = !0, t.noCloneChecked = u.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !o.disabled; - try { - delete p.test - } catch (d) { - t.deleteExpando = !1 - }!p.addEventListener && p.attachEvent && p.fireEvent && (p.attachEvent("onclick", h = function() { - t.noCloneEvent = !1 - }), p.cloneNode(!0).fireEvent("onclick"), p.detachEvent("onclick", h)), u = i.createElement("input"), u.value = "t", u.setAttribute("type", "radio"), t.radioValue = u.value === "t", u.setAttribute("checked", "checked"), u.setAttribute("name", "t"), p.appendChild(u), a = i.createDocumentFragment(), a.appendChild(p.lastChild), t.checkClone = a.cloneNode(!0).cloneNode(!0).lastChild.checked, t.appendChecked = u.checked, a.removeChild(u), a.appendChild(p); - if (p.attachEvent) - for (l in { - submit: !0, - change: !0, - focusin: !0 - }) f = "on" + l, c = f in p, c || (p.setAttribute(f, "return;"), c = typeof p[f] == "function"), t[l + "Bubbles"] = c; - return v(function() { - var n, r, s, o, u = "padding:0;margin:0;border:0;display:block;overflow:hidden;", - a = i.getElementsByTagName("body")[0]; - if (!a) return; - n = i.createElement("div"), n.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px", a.insertBefore(n, a.firstChild), r = i.createElement("div"), n.appendChild(r), r.innerHTML = "
    t
    ", s = r.getElementsByTagName("td"), s[0].style.cssText = "padding:0;margin:0;border:0;display:none", c = s[0].offsetHeight === 0, s[0].style.display = "", s[1].style.display = "none", t.reliableHiddenOffsets = c && s[0].offsetHeight === 0, r.innerHTML = "", r.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", t.boxSizing = r.offsetWidth === 4, t.doesNotIncludeMarginInBodyOffset = a.offsetTop !== 1, e.getComputedStyle && (t.pixelPosition = (e.getComputedStyle(r, null) || {}).top !== "1%", t.boxSizingReliable = (e.getComputedStyle(r, null) || { - width: "4px" - }).width === "4px", o = i.createElement("div"), o.style.cssText = r.style.cssText = u, o.style.marginRight = o.style.width = "0", r.style.width = "1px", r.appendChild(o), t.reliableMarginRight = !parseFloat((e.getComputedStyle(o, null) || {}).marginRight)), typeof r.style.zoom != "undefined" && (r.innerHTML = "", r.style.cssText = u + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = r.offsetWidth === 3, r.style.display = "block", r.style.overflow = "visible", r.innerHTML = "
    ", r.firstChild.style.width = "5px", t.shrinkWrapBlocks = r.offsetWidth !== 3, n.style.zoom = 1), a.removeChild(n), n = r = s = o = null - }), a.removeChild(p), n = r = s = o = u = a = p = null, t - }(); - var D = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - P = /([A-Z])/g; - v.extend({ - cache: {}, - deletedIds: [], - uuid: 0, - expando: "jQuery" + (v.fn.jquery + Math.random()).replace(/\D/g, ""), - noData: { - embed: !0, - object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", - applet: !0 - }, - hasData: function(e) { - return e = e.nodeType ? v.cache[e[v.expando]] : e[v.expando], !!e && !B(e) - }, - data: function(e, n, r, i) { - if (!v.acceptData(e)) return; - var s, o, u = v.expando, - a = typeof n == "string", - f = e.nodeType, - l = f ? v.cache : e, - c = f ? e[u] : e[u] && u; - if ((!c || !l[c] || !i && !l[c].data) && a && r === t) return; - c || (f ? e[u] = c = v.deletedIds.pop() || v.guid++ : c = u), l[c] || (l[c] = {}, f || (l[c].toJSON = v.noop)); - if (typeof n == "object" || typeof n == "function") i ? l[c] = v.extend(l[c], n) : l[c].data = v.extend(l[c].data, n); - return s = l[c], i || (s.data || (s.data = {}), s = s.data), r !== t && (s[v.camelCase(n)] = r), a ? (o = s[n], o == null && (o = s[v.camelCase(n)])) : o = s, o - }, - removeData: function(e, t, n) { - if (!v.acceptData(e)) return; - var r, i, s, o = e.nodeType, - u = o ? v.cache : e, - a = o ? e[v.expando] : v.expando; - if (!u[a]) return; - if (t) { - r = n ? u[a] : u[a].data; - if (r) { - v.isArray(t) || (t in r ? t = [t] : (t = v.camelCase(t), t in r ? t = [t] : t = t.split(" "))); - for (i = 0, s = t.length; i < s; i++) delete r[t[i]]; - if (!(n ? B : v.isEmptyObject)(r)) return - } - } - if (!n) { - delete u[a].data; - if (!B(u[a])) return - } - o ? v.cleanData([e], !0) : v.support.deleteExpando || u != u.window ? delete u[a] : u[a] = null - }, - _data: function(e, t, n) { - return v.data(e, t, n, !0) - }, - acceptData: function(e) { - var t = e.nodeName && v.noData[e.nodeName.toLowerCase()]; - return !t || t !== !0 && e.getAttribute("classid") === t - } - }), v.fn.extend({ - data: function(e, n) { - var r, i, s, o, u, a = this[0], - f = 0, - l = null; - if (e === t) { - if (this.length) { - l = v.data(a); - if (a.nodeType === 1 && !v._data(a, "parsedAttrs")) { - s = a.attributes; - for (u = s.length; f < u; f++) o = s[f].name, o.indexOf("data-") || (o = v.camelCase(o.substring(5)), H(a, o, l[o])); - v._data(a, "parsedAttrs", !0) - } - } - return l - } - return typeof e == "object" ? this.each(function() { - v.data(this, e) - }) : (r = e.split(".", 2), r[1] = r[1] ? "." + r[1] : "", i = r[1] + "!", v.access(this, function(n) { - if (n === t) return l = this.triggerHandler("getData" + i, [r[0]]), l === t && a && (l = v.data(a, e), l = H(a, e, l)), l === t && r[1] ? this.data(r[0]) : l; - r[1] = n, this.each(function() { - var t = v(this); - t.triggerHandler("setData" + i, r), v.data(this, e, n), t.triggerHandler("changeData" + i, r) - }) - }, null, n, arguments.length > 1, null, !1)) - }, - removeData: function(e) { - return this.each(function() { - v.removeData(this, e) - }) - } - }), v.extend({ - queue: function(e, t, n) { - var r; - if (e) return t = (t || "fx") + "queue", r = v._data(e, t), n && (!r || v.isArray(n) ? r = v._data(e, t, v.makeArray(n)) : r.push(n)), r || [] - }, - dequeue: function(e, t) { - t = t || "fx"; - var n = v.queue(e, t), - r = n.length, - i = n.shift(), - s = v._queueHooks(e, t), - o = function() { - v.dequeue(e, t) - }; - i === "inprogress" && (i = n.shift(), r--), i && (t === "fx" && n.unshift("inprogress"), delete s.stop, i.call(e, o, s)), !r && s && s.empty.fire() - }, - _queueHooks: function(e, t) { - var n = t + "queueHooks"; - return v._data(e, n) || v._data(e, n, { - empty: v.Callbacks("once memory").add(function() { - v.removeData(e, t + "queue", !0), v.removeData(e, n, !0) - }) - }) - } - }), v.fn.extend({ - queue: function(e, n) { - var r = 2; - return typeof e != "string" && (n = e, e = "fx", r--), arguments.length < r ? v.queue(this[0], e) : n === t ? this : this.each(function() { - var t = v.queue(this, e, n); - v._queueHooks(this, e), e === "fx" && t[0] !== "inprogress" && v.dequeue(this, e) - }) - }, - dequeue: function(e) { - return this.each(function() { - v.dequeue(this, e) - }) - }, - delay: function(e, t) { - return e = v.fx ? v.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) { - var r = setTimeout(t, e); - n.stop = function() { - clearTimeout(r) - } - }) - }, - clearQueue: function(e) { - return this.queue(e || "fx", []) - }, - promise: function(e, n) { - var r, i = 1, - s = v.Deferred(), - o = this, - u = this.length, - a = function() { - --i || s.resolveWith(o, [o]) - }; - typeof e != "string" && (n = e, e = t), e = e || "fx"; - while (u--) r = v._data(o[u], e + "queueHooks"), r && r.empty && (i++, r.empty.add(a)); - return a(), s.promise(n) - } - }); - var j, F, I, q = /[\t\r\n]/g, - R = /\r/g, - U = /^(?:button|input)$/i, - z = /^(?:button|input|object|select|textarea)$/i, - W = /^a(?:rea|)$/i, - X = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, - V = v.support.getSetAttribute; - v.fn.extend({ - attr: function(e, t) { - return v.access(this, v.attr, e, t, arguments.length > 1) - }, - removeAttr: function(e) { - return this.each(function() { - v.removeAttr(this, e) - }) - }, - prop: function(e, t) { - return v.access(this, v.prop, e, t, arguments.length > 1) - }, - removeProp: function(e) { - return e = v.propFix[e] || e, this.each(function() { - try { - this[e] = t, delete this[e] - } catch (n) {} - }) - }, - addClass: function(e) { - var t, n, r, i, s, o, u; - if (v.isFunction(e)) return this.each(function(t) { - v(this).addClass(e.call(this, t, this.className)) - }); - if (e && typeof e == "string") { - t = e.split(y); - for (n = 0, r = this.length; n < r; n++) { - i = this[n]; - if (i.nodeType === 1) - if (!i.className && t.length === 1) i.className = e; - else { - s = " " + i.className + " "; - for (o = 0, u = t.length; o < u; o++) s.indexOf(" " + t[o] + " ") < 0 && (s += t[o] + " "); - i.className = v.trim(s) - } - } - } - return this - }, - removeClass: function(e) { - var n, r, i, s, o, u, a; - if (v.isFunction(e)) return this.each(function(t) { - v(this).removeClass(e.call(this, t, this.className)) - }); - if (e && typeof e == "string" || e === t) { - n = (e || "").split(y); - for (u = 0, a = this.length; u < a; u++) { - i = this[u]; - if (i.nodeType === 1 && i.className) { - r = (" " + i.className + " ").replace(q, " "); - for (s = 0, o = n.length; s < o; s++) - while (r.indexOf(" " + n[s] + " ") >= 0) r = r.replace(" " + n[s] + " ", " "); - i.className = e ? v.trim(r) : "" - } - } - } - return this - }, - toggleClass: function(e, t) { - var n = typeof e, - r = typeof t == "boolean"; - return v.isFunction(e) ? this.each(function(n) { - v(this).toggleClass(e.call(this, n, this.className, t), t) - }) : this.each(function() { - if (n === "string") { - var i, s = 0, - o = v(this), - u = t, - a = e.split(y); - while (i = a[s++]) u = r ? u : !o.hasClass(i), o[u ? "addClass" : "removeClass"](i) - } else if (n === "undefined" || n === "boolean") this.className && v._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : v._data(this, "__className__") || "" - }) - }, - hasClass: function(e) { - var t = " " + e + " ", - n = 0, - r = this.length; - for (; n < r; n++) - if (this[n].nodeType === 1 && (" " + this[n].className + " ").replace(q, " ").indexOf(t) >= 0) return !0; - return !1 - }, - val: function(e) { - var n, r, i, s = this[0]; - if (!arguments.length) { - if (s) return n = v.valHooks[s.type] || v.valHooks[s.nodeName.toLowerCase()], n && "get" in n && (r = n.get(s, "value")) !== t ? r : (r = s.value, typeof r == "string" ? r.replace(R, "") : r == null ? "" : r); - return - } - return i = v.isFunction(e), this.each(function(r) { - var s, o = v(this); - if (this.nodeType !== 1) return; - i ? s = e.call(this, r, o.val()) : s = e, s == null ? s = "" : typeof s == "number" ? s += "" : v.isArray(s) && (s = v.map(s, function(e) { - return e == null ? "" : e + "" - })), n = v.valHooks[this.type] || v.valHooks[this.nodeName.toLowerCase()]; - if (!n || !("set" in n) || n.set(this, s, "value") === t) this.value = s - }) - } - }), v.extend({ - valHooks: { - option: { - get: function(e) { - var t = e.attributes.value; - return !t || t.specified ? e.value : e.text - } - }, - select: { - get: function(e) { - var t, n, r = e.options, - i = e.selectedIndex, - s = e.type === "select-one" || i < 0, - o = s ? null : [], - u = s ? i + 1 : r.length, - a = i < 0 ? u : s ? i : 0; - for (; a < u; a++) { - n = r[a]; - if ((n.selected || a === i) && (v.support.optDisabled ? !n.disabled : n.getAttribute("disabled") === null) && (!n.parentNode.disabled || !v.nodeName(n.parentNode, "optgroup"))) { - t = v(n).val(); - if (s) return t; - o.push(t) - } - } - return o - }, - set: function(e, t) { - var n = v.makeArray(t); - return v(e).find("option").each(function() { - this.selected = v.inArray(v(this).val(), n) >= 0 - }), n.length || (e.selectedIndex = -1), n - } - } - }, - attrFn: {}, - attr: function(e, n, r, i) { - var s, o, u, a = e.nodeType; - if (!e || a === 3 || a === 8 || a === 2) return; - if (i && v.isFunction(v.fn[n])) return v(e)[n](r); - if (typeof e.getAttribute == "undefined") return v.prop(e, n, r); - u = a !== 1 || !v.isXMLDoc(e), u && (n = n.toLowerCase(), o = v.attrHooks[n] || (X.test(n) ? F : j)); - if (r !== t) { - if (r === null) { - v.removeAttr(e, n); - return - } - return o && "set" in o && u && (s = o.set(e, r, n)) !== t ? s : (e.setAttribute(n, r + ""), r) - } - return o && "get" in o && u && (s = o.get(e, n)) !== null ? s : (s = e.getAttribute(n), s === null ? t : s) - }, - removeAttr: function(e, t) { - var n, r, i, s, o = 0; - if (t && e.nodeType === 1) { - r = t.split(y); - for (; o < r.length; o++) i = r[o], i && (n = v.propFix[i] || i, s = X.test(i), s || v.attr(e, i, ""), e.removeAttribute(V ? i : n), s && n in e && (e[n] = !1)) - } - }, - attrHooks: { - type: { - set: function(e, t) { - if (U.test(e.nodeName) && e.parentNode) v.error("type property can't be changed"); - else if (!v.support.radioValue && t === "radio" && v.nodeName(e, "input")) { - var n = e.value; - return e.setAttribute("type", t), n && (e.value = n), t - } - } - }, - value: { - get: function(e, t) { - return j && v.nodeName(e, "button") ? j.get(e, t) : t in e ? e.value : null - }, - set: function(e, t, n) { - if (j && v.nodeName(e, "button")) return j.set(e, t, n); - e.value = t - } - } - }, - propFix: { - tabindex: "tabIndex", - readonly: "readOnly", - "for": "htmlFor", - "class": "className", - maxlength: "maxLength", - cellspacing: "cellSpacing", - cellpadding: "cellPadding", - rowspan: "rowSpan", - colspan: "colSpan", - usemap: "useMap", - frameborder: "frameBorder", - contenteditable: "contentEditable" - }, - prop: function(e, n, r) { - var i, s, o, u = e.nodeType; - if (!e || u === 3 || u === 8 || u === 2) return; - return o = u !== 1 || !v.isXMLDoc(e), o && (n = v.propFix[n] || n, s = v.propHooks[n]), r !== t ? s && "set" in s && (i = s.set(e, r, n)) !== t ? i : e[n] = r : s && "get" in s && (i = s.get(e, n)) !== null ? i : e[n] - }, - propHooks: { - tabIndex: { - get: function(e) { - var n = e.getAttributeNode("tabindex"); - return n && n.specified ? parseInt(n.value, 10) : z.test(e.nodeName) || W.test(e.nodeName) && e.href ? 0 : t - } - } - } - }), F = { - get: function(e, n) { - var r, i = v.prop(e, n); - return i === !0 || typeof i != "boolean" && (r = e.getAttributeNode(n)) && r.nodeValue !== !1 ? n.toLowerCase() : t - }, - set: function(e, t, n) { - var r; - return t === !1 ? v.removeAttr(e, n) : (r = v.propFix[n] || n, r in e && (e[r] = !0), e.setAttribute(n, n.toLowerCase())), n - } - }, V || (I = { - name: !0, - id: !0, - coords: !0 - }, j = v.valHooks.button = { - get: function(e, n) { - var r; - return r = e.getAttributeNode(n), r && (I[n] ? r.value !== "" : r.specified) ? r.value : t - }, - set: function(e, t, n) { - var r = e.getAttributeNode(n); - return r || (r = i.createAttribute(n), e.setAttributeNode(r)), r.value = t + "" - } - }, v.each(["width", "height"], function(e, t) { - v.attrHooks[t] = v.extend(v.attrHooks[t], { - set: function(e, n) { - if (n === "") return e.setAttribute(t, "auto"), n - } - }) - }), v.attrHooks.contenteditable = { - get: j.get, - set: function(e, t, n) { - t === "" && (t = "false"), j.set(e, t, n) - } - }), v.support.hrefNormalized || v.each(["href", "src", "width", "height"], function(e, n) { - v.attrHooks[n] = v.extend(v.attrHooks[n], { - get: function(e) { - var r = e.getAttribute(n, 2); - return r === null ? t : r - } - }) - }), v.support.style || (v.attrHooks.style = { - get: function(e) { - return e.style.cssText.toLowerCase() || t - }, - set: function(e, t) { - return e.style.cssText = t + "" - } - }), v.support.optSelected || (v.propHooks.selected = v.extend(v.propHooks.selected, { - get: function(e) { - var t = e.parentNode; - return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null - } - })), v.support.enctype || (v.propFix.enctype = "encoding"), v.support.checkOn || v.each(["radio", "checkbox"], function() { - v.valHooks[this] = { - get: function(e) { - return e.getAttribute("value") === null ? "on" : e.value - } - } - }), v.each(["radio", "checkbox"], function() { - v.valHooks[this] = v.extend(v.valHooks[this], { - set: function(e, t) { - if (v.isArray(t)) return e.checked = v.inArray(v(e).val(), t) >= 0 - } - }) - }); - var $ = /^(?:textarea|input|select)$/i, - J = /^([^\.]*|)(?:\.(.+)|)$/, - K = /(?:^|\s)hover(\.\S+|)\b/, - Q = /^key/, - G = /^(?:mouse|contextmenu)|click/, - Y = /^(?:focusinfocus|focusoutblur)$/, - Z = function(e) { - return v.event.special.hover ? e : e.replace(K, "mouseenter$1 mouseleave$1") - }; - v.event = { - add: function(e, n, r, i, s) { - var o, u, a, f, l, c, h, p, d, m, g; - if (e.nodeType === 3 || e.nodeType === 8 || !n || !r || !(o = v._data(e))) return; - r.handler && (d = r, r = d.handler, s = d.selector), r.guid || (r.guid = v.guid++), a = o.events, a || (o.events = a = {}), u = o.handle, u || (o.handle = u = function(e) { - return typeof v == "undefined" || !!e && v.event.triggered === e.type ? t : v.event.dispatch.apply(u.elem, arguments) - }, u.elem = e), n = v.trim(Z(n)).split(" "); - for (f = 0; f < n.length; f++) { - l = J.exec(n[f]) || [], c = l[1], h = (l[2] || "").split(".").sort(), g = v.event.special[c] || {}, c = (s ? g.delegateType : g.bindType) || c, g = v.event.special[c] || {}, p = v.extend({ - type: c, - origType: l[1], - data: i, - handler: r, - guid: r.guid, - selector: s, - needsContext: s && v.expr.match.needsContext.test(s), - namespace: h.join(".") - }, d), m = a[c]; - if (!m) { - m = a[c] = [], m.delegateCount = 0; - if (!g.setup || g.setup.call(e, i, h, u) === !1) e.addEventListener ? e.addEventListener(c, u, !1) : e.attachEvent && e.attachEvent("on" + c, u) - } - g.add && (g.add.call(e, p), p.handler.guid || (p.handler.guid = r.guid)), s ? m.splice(m.delegateCount++, 0, p) : m.push(p), v.event.global[c] = !0 - } - e = null - }, - global: {}, - remove: function(e, t, n, r, i) { - var s, o, u, a, f, l, c, h, p, d, m, g = v.hasData(e) && v._data(e); - if (!g || !(h = g.events)) return; - t = v.trim(Z(t || "")).split(" "); - for (s = 0; s < t.length; s++) { - o = J.exec(t[s]) || [], u = a = o[1], f = o[2]; - if (!u) { - for (u in h) v.event.remove(e, u + t[s], n, r, !0); - continue - } - p = v.event.special[u] || {}, u = (r ? p.delegateType : p.bindType) || u, d = h[u] || [], l = d.length, f = f ? new RegExp("(^|\\.)" + f.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; - for (c = 0; c < d.length; c++) m = d[c], (i || a === m.origType) && (!n || n.guid === m.guid) && (!f || f.test(m.namespace)) && (!r || r === m.selector || r === "**" && m.selector) && (d.splice(c--, 1), m.selector && d.delegateCount--, p.remove && p.remove.call(e, m)); - d.length === 0 && l !== d.length && ((!p.teardown || p.teardown.call(e, f, g.handle) === !1) && v.removeEvent(e, u, g.handle), delete h[u]) - } - v.isEmptyObject(h) && (delete g.handle, v.removeData(e, "events", !0)) - }, - customEvent: { - getData: !0, - setData: !0, - changeData: !0 - }, - trigger: function(n, r, s, o) { - if (!s || s.nodeType !== 3 && s.nodeType !== 8) { - var u, a, f, l, c, h, p, d, m, g, y = n.type || n, - b = []; - if (Y.test(y + v.event.triggered)) return; - y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort()); - if ((!s || v.event.customEvent[y]) && !v.event.global[y]) return; - n = typeof n == "object" ? n[v.expando] ? n : new v.Event(y, n) : new v.Event(y), n.type = y, n.isTrigger = !0, n.exclusive = a, n.namespace = b.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + b.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, h = y.indexOf(":") < 0 ? "on" + y : ""; - if (!s) { - u = v.cache; - for (f in u) u[f].events && u[f].events[y] && v.event.trigger(n, r, u[f].handle.elem, !0); - return - } - n.result = t, n.target || (n.target = s), r = r != null ? v.makeArray(r) : [], r.unshift(n), p = v.event.special[y] || {}; - if (p.trigger && p.trigger.apply(s, r) === !1) return; - m = [ - [s, p.bindType || y] - ]; - if (!o && !p.noBubble && !v.isWindow(s)) { - g = p.delegateType || y, l = Y.test(g + y) ? s : s.parentNode; - for (c = s; l; l = l.parentNode) m.push([l, g]), c = l; - c === (s.ownerDocument || i) && m.push([c.defaultView || c.parentWindow || e, g]) - } - for (f = 0; f < m.length && !n.isPropagationStopped(); f++) l = m[f][0], n.type = m[f][1], d = (v._data(l, "events") || {})[n.type] && v._data(l, "handle"), d && d.apply(l, r), d = h && l[h], d && v.acceptData(l) && d.apply && d.apply(l, r) === !1 && n.preventDefault(); - return n.type = y, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(s.ownerDocument, r) === !1) && (y !== "click" || !v.nodeName(s, "a")) && v.acceptData(s) && h && s[y] && (y !== "focus" && y !== "blur" || n.target.offsetWidth !== 0) && !v.isWindow(s) && (c = s[h], c && (s[h] = null), v.event.triggered = y, s[y](), v.event.triggered = t, c && (s[h] = c)), n.result - } - return - }, - dispatch: function(n) { - n = v.event.fix(n || e.event); - var r, i, s, o, u, a, f, c, h, p, d = (v._data(this, "events") || {})[n.type] || [], - m = d.delegateCount, - g = l.call(arguments), - y = !n.exclusive && !n.namespace, - b = v.event.special[n.type] || {}, - w = []; - g[0] = n, n.delegateTarget = this; - if (b.preDispatch && b.preDispatch.call(this, n) === !1) return; - if (m && (!n.button || n.type !== "click")) - for (s = n.target; s != this; s = s.parentNode || this) - if (s.disabled !== !0 || n.type !== "click") { - u = {}, f = []; - for (r = 0; r < m; r++) c = d[r], h = c.selector, u[h] === t && (u[h] = c.needsContext ? v(h, this).index(s) >= 0 : v.find(h, this, null, [s]).length), u[h] && f.push(c); - f.length && w.push({ - elem: s, - matches: f - }) - } - d.length > m && w.push({ - elem: this, - matches: d.slice(m) - }); - for (r = 0; r < w.length && !n.isPropagationStopped(); r++) { - a = w[r], n.currentTarget = a.elem; - for (i = 0; i < a.matches.length && !n.isImmediatePropagationStopped(); i++) { - c = a.matches[i]; - if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation())) - } - } - return b.postDispatch && b.postDispatch.call(this, n), n.result - }, - props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - fixHooks: {}, - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function(e, t) { - return e.which == null && (e.which = t.charCode != null ? t.charCode : t.keyCode), e - } - }, - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function(e, n) { - var r, s, o, u = n.button, - a = n.fromElement; - return e.pageX == null && n.clientX != null && (r = e.target.ownerDocument || i, s = r.documentElement, o = r.body, e.pageX = n.clientX + (s && s.scrollLeft || o && o.scrollLeft || 0) - (s && s.clientLeft || o && o.clientLeft || 0), e.pageY = n.clientY + (s && s.scrollTop || o && o.scrollTop || 0) - (s && s.clientTop || o && o.clientTop || 0)), !e.relatedTarget && a && (e.relatedTarget = a === e.target ? n.toElement : a), !e.which && u !== t && (e.which = u & 1 ? 1 : u & 2 ? 3 : u & 4 ? 2 : 0), e - } - }, - fix: function(e) { - if (e[v.expando]) return e; - var t, n, r = e, - s = v.event.fixHooks[e.type] || {}, - o = s.props ? this.props.concat(s.props) : this.props; - e = v.Event(r); - for (t = o.length; t;) n = o[--t], e[n] = r[n]; - return e.target || (e.target = r.srcElement || i), e.target.nodeType === 3 && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, r) : e - }, - special: { - load: { - noBubble: !0 - }, - focus: { - delegateType: "focusin" - }, - blur: { - delegateType: "focusout" - }, - beforeunload: { - setup: function(e, t, n) { - v.isWindow(this) && (this.onbeforeunload = n) - }, - teardown: function(e, t) { - this.onbeforeunload === t && (this.onbeforeunload = null) - } - } - }, - simulate: function(e, t, n, r) { - var i = v.extend(new v.Event, n, { - type: e, - isSimulated: !0, - originalEvent: {} - }); - r ? v.event.trigger(i, null, t) : v.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault() - } - }, v.event.handle = v.event.dispatch, v.removeEvent = i.removeEventListener ? function(e, t, n) { - e.removeEventListener && e.removeEventListener(t, n, !1) - } : function(e, t, n) { - var r = "on" + t; - e.detachEvent && (typeof e[r] == "undefined" && (e[r] = null), e.detachEvent(r, n)) - }, v.Event = function(e, t) { - if (!(this instanceof v.Event)) return new v.Event(e, t); - e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? tt : et) : this.type = e, t && v.extend(this, t), this.timeStamp = e && e.timeStamp || v.now(), this[v.expando] = !0 - }, v.Event.prototype = { - preventDefault: function() { - this.isDefaultPrevented = tt; - var e = this.originalEvent; - if (!e) return; - e.preventDefault ? e.preventDefault() : e.returnValue = !1 - }, - stopPropagation: function() { - this.isPropagationStopped = tt; - var e = this.originalEvent; - if (!e) return; - e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0 - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = tt, this.stopPropagation() - }, - isDefaultPrevented: et, - isPropagationStopped: et, - isImmediatePropagationStopped: et - }, v.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" - }, function(e, t) { - v.event.special[e] = { - delegateType: t, - bindType: t, - handle: function(e) { - var n, r = this, - i = e.relatedTarget, - s = e.handleObj, - o = s.selector; - if (!i || i !== r && !v.contains(r, i)) e.type = s.origType, n = s.handler.apply(this, arguments), e.type = t; - return n - } - } - }), v.support.submitBubbles || (v.event.special.submit = { - setup: function() { - if (v.nodeName(this, "form")) return !1; - v.event.add(this, "click._submit keypress._submit", function(e) { - var n = e.target, - r = v.nodeName(n, "input") || v.nodeName(n, "button") ? n.form : t; - r && !v._data(r, "_submit_attached") && (v.event.add(r, "submit._submit", function(e) { - e._submit_bubble = !0 - }), v._data(r, "_submit_attached", !0)) - }) - }, - postDispatch: function(e) { - e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && v.event.simulate("submit", this.parentNode, e, !0)) - }, - teardown: function() { - if (v.nodeName(this, "form")) return !1; - v.event.remove(this, "._submit") - } - }), v.support.changeBubbles || (v.event.special.change = { - setup: function() { - if ($.test(this.nodeName)) { - if (this.type === "checkbox" || this.type === "radio") v.event.add(this, "propertychange._change", function(e) { - e.originalEvent.propertyName === "checked" && (this._just_changed = !0) - }), v.event.add(this, "click._change", function(e) { - this._just_changed && !e.isTrigger && (this._just_changed = !1), v.event.simulate("change", this, e, !0) - }); - return !1 - } - v.event.add(this, "beforeactivate._change", function(e) { - var t = e.target; - $.test(t.nodeName) && !v._data(t, "_change_attached") && (v.event.add(t, "change._change", function(e) { - this.parentNode && !e.isSimulated && !e.isTrigger && v.event.simulate("change", this.parentNode, e, !0) - }), v._data(t, "_change_attached", !0)) - }) - }, - handle: function(e) { - var t = e.target; - if (this !== t || e.isSimulated || e.isTrigger || t.type !== "radio" && t.type !== "checkbox") return e.handleObj.handler.apply(this, arguments) - }, - teardown: function() { - return v.event.remove(this, "._change"), !$.test(this.nodeName) - } - }), v.support.focusinBubbles || v.each({ - focus: "focusin", - blur: "focusout" - }, function(e, t) { - var n = 0, - r = function(e) { - v.event.simulate(t, e.target, v.event.fix(e), !0) - }; - v.event.special[t] = { - setup: function() { - n++ === 0 && i.addEventListener(e, r, !0) - }, - teardown: function() { - --n === 0 && i.removeEventListener(e, r, !0) - } - } - }), v.fn.extend({ - on: function(e, n, r, i, s) { - var o, u; - if (typeof e == "object") { - typeof n != "string" && (r = r || n, n = t); - for (u in e) this.on(u, n, r, e[u], s); - return this - } - r == null && i == null ? (i = n, r = n = t) : i == null && (typeof n == "string" ? (i = r, r = t) : (i = r, r = n, n = t)); - if (i === !1) i = et; - else if (!i) return this; - return s === 1 && (o = i, i = function(e) { - return v().off(e), o.apply(this, arguments) - }, i.guid = o.guid || (o.guid = v.guid++)), this.each(function() { - v.event.add(this, e, i, r, n) - }) - }, - one: function(e, t, n, r) { - return this.on(e, t, n, r, 1) - }, - off: function(e, n, r) { - var i, s; - if (e && e.preventDefault && e.handleObj) return i = e.handleObj, v(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; - if (typeof e == "object") { - for (s in e) this.off(s, n, e[s]); - return this - } - if (n === !1 || typeof n == "function") r = n, n = t; - return r === !1 && (r = et), this.each(function() { - v.event.remove(this, e, r, n) - }) - }, - bind: function(e, t, n) { - return this.on(e, null, t, n) - }, - unbind: function(e, t) { - return this.off(e, null, t) - }, - live: function(e, t, n) { - return v(this.context).on(e, this.selector, t, n), this - }, - die: function(e, t) { - return v(this.context).off(e, this.selector || "**", t), this - }, - delegate: function(e, t, n, r) { - return this.on(t, e, n, r) - }, - undelegate: function(e, t, n) { - return arguments.length === 1 ? this.off(e, "**") : this.off(t, e || "**", n) - }, - trigger: function(e, t) { - return this.each(function() { - v.event.trigger(e, t, this) - }) - }, - triggerHandler: function(e, t) { - if (this[0]) return v.event.trigger(e, t, this[0], !0) - }, - toggle: function(e) { - var t = arguments, - n = e.guid || v.guid++, - r = 0, - i = function(n) { - var i = (v._data(this, "lastToggle" + e.guid) || 0) % r; - return v._data(this, "lastToggle" + e.guid, i + 1), n.preventDefault(), t[i].apply(this, arguments) || !1 - }; - i.guid = n; - while (r < t.length) t[r++].guid = n; - return this.click(i) - }, - hover: function(e, t) { - return this.mouseenter(e).mouseleave(t || e) - } - }), v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) { - v.fn[t] = function(e, n) { - return n == null && (n = e, e = null), arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t) - }, Q.test(t) && (v.event.fixHooks[t] = v.event.keyHooks), G.test(t) && (v.event.fixHooks[t] = v.event.mouseHooks) - }), - function(e, t) { - function nt(e, t, n, r) { - n = n || [], t = t || g; - var i, s, a, f, l = t.nodeType; - if (!e || typeof e != "string") return n; - if (l !== 1 && l !== 9) return []; - a = o(t); - if (!a && !r) - if (i = R.exec(e)) - if (f = i[1]) { - if (l === 9) { - s = t.getElementById(f); - if (!s || !s.parentNode) return n; - if (s.id === f) return n.push(s), n - } else if (t.ownerDocument && (s = t.ownerDocument.getElementById(f)) && u(t, s) && s.id === f) return n.push(s), n - } else { - if (i[2]) return S.apply(n, x.call(t.getElementsByTagName(e), 0)), n; - if ((f = i[3]) && Z && t.getElementsByClassName) return S.apply(n, x.call(t.getElementsByClassName(f), 0)), n - } - return vt(e.replace(j, "$1"), t, n, r, a) - } - - function rt(e) { - return function(t) { - var n = t.nodeName.toLowerCase(); - return n === "input" && t.type === e - } - } - - function it(e) { - return function(t) { - var n = t.nodeName.toLowerCase(); - return (n === "input" || n === "button") && t.type === e - } - } - - function st(e) { - return N(function(t) { - return t = +t, N(function(n, r) { - var i, s = e([], n.length, t), - o = s.length; - while (o--) n[i = s[o]] && (n[i] = !(r[i] = n[i])) - }) - }) - } - - function ot(e, t, n) { - if (e === t) return n; - var r = e.nextSibling; - while (r) { - if (r === t) return -1; - r = r.nextSibling - } - return 1 - } - - function ut(e, t) { - var n, r, s, o, u, a, f, l = L[d][e + " "]; - if (l) return t ? 0 : l.slice(0); - u = e, a = [], f = i.preFilter; - while (u) { - if (!n || (r = F.exec(u))) r && (u = u.slice(r[0].length) || u), a.push(s = []); - n = !1; - if (r = I.exec(u)) s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = r[0].replace(j, " "); - for (o in i.filter)(r = J[o].exec(u)) && (!f[o] || (r = f[o](r))) && (s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = o, n.matches = r); - if (!n) break - } - return t ? u.length : u ? nt.error(e) : L(e, a).slice(0) - } - - function at(e, t, r) { - var i = t.dir, - s = r && t.dir === "parentNode", - o = w++; - return t.first ? function(t, n, r) { - while (t = t[i]) - if (s || t.nodeType === 1) return e(t, n, r) - } : function(t, r, u) { - if (!u) { - var a, f = b + " " + o + " ", - l = f + n; - while (t = t[i]) - if (s || t.nodeType === 1) { - if ((a = t[d]) === l) return t.sizset; - if (typeof a == "string" && a.indexOf(f) === 0) { - if (t.sizset) return t - } else { - t[d] = l; - if (e(t, r, u)) return t.sizset = !0, t; - t.sizset = !1 - } - } - } else - while (t = t[i]) - if (s || t.nodeType === 1) - if (e(t, r, u)) return t - } - } - - function ft(e) { - return e.length > 1 ? function(t, n, r) { - var i = e.length; - while (i--) - if (!e[i](t, n, r)) return !1; - return !0 - } : e[0] - } - - function lt(e, t, n, r, i) { - var s, o = [], - u = 0, - a = e.length, - f = t != null; - for (; u < a; u++) - if (s = e[u]) - if (!n || n(s, r, i)) o.push(s), f && t.push(u); - return o - } - - function ct(e, t, n, r, i, s) { - return r && !r[d] && (r = ct(r)), i && !i[d] && (i = ct(i, s)), N(function(s, o, u, a) { - var f, l, c, h = [], - p = [], - d = o.length, - v = s || dt(t || "*", u.nodeType ? [u] : u, []), - m = e && (s || !t) ? lt(v, h, e, u, a) : v, - g = n ? i || (s ? e : d || r) ? [] : o : m; - n && n(m, g, u, a); - if (r) { - f = lt(g, p), r(f, [], u, a), l = f.length; - while (l--) - if (c = f[l]) g[p[l]] = !(m[p[l]] = c) - } - if (s) { - if (i || e) { - if (i) { - f = [], l = g.length; - while (l--)(c = g[l]) && f.push(m[l] = c); - i(null, g = [], f, a) - } - l = g.length; - while (l--)(c = g[l]) && (f = i ? T.call(s, c) : h[l]) > -1 && (s[f] = !(o[f] = c)) - } - } else g = lt(g === o ? g.splice(d, g.length) : g), i ? i(null, o, g, a) : S.apply(o, g) - }) - } - - function ht(e) { - var t, n, r, s = e.length, - o = i.relative[e[0].type], - u = o || i.relative[" "], - a = o ? 1 : 0, - f = at(function(e) { - return e === t - }, u, !0), - l = at(function(e) { - return T.call(t, e) > -1 - }, u, !0), - h = [function(e, n, r) { - return !o && (r || n !== c) || ((t = n).nodeType ? f(e, n, r) : l(e, n, r)) - }]; - for (; a < s; a++) - if (n = i.relative[e[a].type]) h = [at(ft(h), n)]; - else { - n = i.filter[e[a].type].apply(null, e[a].matches); - if (n[d]) { - r = ++a; - for (; r < s; r++) - if (i.relative[e[r].type]) break; - return ct(a > 1 && ft(h), a > 1 && e.slice(0, a - 1).join("").replace(j, "$1"), n, a < r && ht(e.slice(a, r)), r < s && ht(e = e.slice(r)), r < s && e.join("")) - } - h.push(n) - } - return ft(h) - } - - function pt(e, t) { - var r = t.length > 0, - s = e.length > 0, - o = function(u, a, f, l, h) { - var p, d, v, m = [], - y = 0, - w = "0", - x = u && [], - T = h != null, - N = c, - C = u || s && i.find.TAG("*", h && a.parentNode || a), - k = b += N == null ? 1 : Math.E; - T && (c = a !== g && a, n = o.el); - for (; - (p = C[w]) != null; w++) { - if (s && p) { - for (d = 0; v = e[d]; d++) - if (v(p, a, f)) { - l.push(p); - break - } - T && (b = k, n = ++o.el) - } - r && ((p = !v && p) && y--, u && x.push(p)) - } - y += w; - if (r && w !== y) { - for (d = 0; v = t[d]; d++) v(x, m, a, f); - if (u) { - if (y > 0) - while (w--) !x[w] && !m[w] && (m[w] = E.call(l)); - m = lt(m) - } - S.apply(l, m), T && !u && m.length > 0 && y + t.length > 1 && nt.uniqueSort(l) - } - return T && (b = k, c = N), x - }; - return o.el = 0, r ? N(o) : o - } - - function dt(e, t, n) { - var r = 0, - i = t.length; - for (; r < i; r++) nt(e, t[r], n); - return n - } - - function vt(e, t, n, r, s) { - var o, u, f, l, c, h = ut(e), - p = h.length; - if (!r && h.length === 1) { - u = h[0] = h[0].slice(0); - if (u.length > 2 && (f = u[0]).type === "ID" && t.nodeType === 9 && !s && i.relative[u[1].type]) { - t = i.find.ID(f.matches[0].replace($, ""), t, s)[0]; - if (!t) return n; - e = e.slice(u.shift().length) - } - for (o = J.POS.test(e) ? -1 : u.length - 1; o >= 0; o--) { - f = u[o]; - if (i.relative[l = f.type]) break; - if (c = i.find[l]) - if (r = c(f.matches[0].replace($, ""), z.test(u[0].type) && t.parentNode || t, s)) { - u.splice(o, 1), e = r.length && u.join(""); - if (!e) return S.apply(n, x.call(r, 0)), n; - break - } - } - } - return a(e, h)(r, t, s, n, z.test(e)), n - } - - function mt() {} - var n, r, i, s, o, u, a, f, l, c, h = !0, - p = "undefined", - d = ("sizcache" + Math.random()).replace(".", ""), - m = String, - g = e.document, - y = g.documentElement, - b = 0, - w = 0, - E = [].pop, - S = [].push, - x = [].slice, - T = [].indexOf || function(e) { - var t = 0, - n = this.length; - for (; t < n; t++) - if (this[t] === e) return t; - return -1 - }, - N = function(e, t) { - return e[d] = t == null || t, e - }, - C = function() { - var e = {}, - t = []; - return N(function(n, r) { - return t.push(n) > i.cacheLength && delete e[t.shift()], e[n + " "] = r - }, e) - }, - k = C(), - L = C(), - A = C(), - O = "[\\x20\\t\\r\\n\\f]", - M = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+", - _ = M.replace("w", "w#"), - D = "([*^$|!~]?=)", - P = "\\[" + O + "*(" + M + ")" + O + "*(?:" + D + O + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + _ + ")|)|)" + O + "*\\]", - H = ":(" + M + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + P + ")|[^:]|\\\\.)*|.*))\\)|)", - B = ":(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + O + "*((?:-\\d)?\\d*)" + O + "*\\)|)(?=[^-]|$)", - j = new RegExp("^" + O + "+|((?:^|[^\\\\])(?:\\\\.)*)" + O + "+$", "g"), - F = new RegExp("^" + O + "*," + O + "*"), - I = new RegExp("^" + O + "*([\\x20\\t\\r\\n\\f>+~])" + O + "*"), - q = new RegExp(H), - R = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/, - U = /^:not/, - z = /[\x20\t\r\n\f]*[+~]/, - W = /:not\($/, - X = /h\d/i, - V = /input|select|textarea|button/i, - $ = /\\(?!\\)/g, - J = { - ID: new RegExp("^#(" + M + ")"), - CLASS: new RegExp("^\\.(" + M + ")"), - NAME: new RegExp("^\\[name=['\"]?(" + M + ")['\"]?\\]"), - TAG: new RegExp("^(" + M.replace("w", "w*") + ")"), - ATTR: new RegExp("^" + P), - PSEUDO: new RegExp("^" + H), - POS: new RegExp(B, "i"), - CHILD: new RegExp("^:(only|nth|first|last)-child(?:\\(" + O + "*(even|odd|(([+-]|)(\\d*)n|)" + O + "*(?:([+-]|)" + O + "*(\\d+)|))" + O + "*\\)|)", "i"), - needsContext: new RegExp("^" + O + "*[>+~]|" + B, "i") - }, - K = function(e) { - var t = g.createElement("div"); - try { - return e(t) - } catch (n) { - return !1 - } finally { - t = null - } - }, - Q = K(function(e) { - return e.appendChild(g.createComment("")), !e.getElementsByTagName("*").length - }), - G = K(function(e) { - return e.innerHTML = "", e.firstChild && typeof e.firstChild.getAttribute !== p && e.firstChild.getAttribute("href") === "#" - }), - Y = K(function(e) { - e.innerHTML = ""; - var t = typeof e.lastChild.getAttribute("multiple"); - return t !== "boolean" && t !== "string" - }), - Z = K(function(e) { - return e.innerHTML = "", !e.getElementsByClassName || !e.getElementsByClassName("e").length ? !1 : (e.lastChild.className = "e", e.getElementsByClassName("e").length === 2) - }), - et = K(function(e) { - e.id = d + 0, e.innerHTML = "
    ", y.insertBefore(e, y.firstChild); - var t = g.getElementsByName && g.getElementsByName(d).length === 2 + g.getElementsByName(d + 0).length; - return r = !g.getElementById(d), y.removeChild(e), t - }); - try { - x.call(y.childNodes, 0)[0].nodeType - } catch (tt) { - x = function(e) { - var t, n = []; - for (; t = this[e]; e++) n.push(t); - return n - } - } - nt.matches = function(e, t) { - return nt(e, null, null, t) - }, nt.matchesSelector = function(e, t) { - return nt(t, null, null, [e]).length > 0 - }, s = nt.getText = function(e) { - var t, n = "", - r = 0, - i = e.nodeType; - if (i) { - if (i === 1 || i === 9 || i === 11) { - if (typeof e.textContent == "string") return e.textContent; - for (e = e.firstChild; e; e = e.nextSibling) n += s(e) - } else if (i === 3 || i === 4) return e.nodeValue - } else - for (; t = e[r]; r++) n += s(t); - return n - }, o = nt.isXML = function(e) { - var t = e && (e.ownerDocument || e).documentElement; - return t ? t.nodeName !== "HTML" : !1 - }, u = nt.contains = y.contains ? function(e, t) { - var n = e.nodeType === 9 ? e.documentElement : e, - r = t && t.parentNode; - return e === r || !!(r && r.nodeType === 1 && n.contains && n.contains(r)) - } : y.compareDocumentPosition ? function(e, t) { - return t && !!(e.compareDocumentPosition(t) & 16) - } : function(e, t) { - while (t = t.parentNode) - if (t === e) return !0; - return !1 - }, nt.attr = function(e, t) { - var n, r = o(e); - return r || (t = t.toLowerCase()), (n = i.attrHandle[t]) ? n(e) : r || Y ? e.getAttribute(t) : (n = e.getAttributeNode(t), n ? typeof e[t] == "boolean" ? e[t] ? t : null : n.specified ? n.value : null : null) - }, i = nt.selectors = { - cacheLength: 50, - createPseudo: N, - match: J, - attrHandle: G ? {} : { - href: function(e) { - return e.getAttribute("href", 2) - }, - type: function(e) { - return e.getAttribute("type") - } - }, - find: { - ID: r ? function(e, t, n) { - if (typeof t.getElementById !== p && !n) { - var r = t.getElementById(e); - return r && r.parentNode ? [r] : [] - } - } : function(e, n, r) { - if (typeof n.getElementById !== p && !r) { - var i = n.getElementById(e); - return i ? i.id === e || typeof i.getAttributeNode !== p && i.getAttributeNode("id").value === e ? [i] : t : [] - } - }, - TAG: Q ? function(e, t) { - if (typeof t.getElementsByTagName !== p) return t.getElementsByTagName(e) - } : function(e, t) { - var n = t.getElementsByTagName(e); - if (e === "*") { - var r, i = [], - s = 0; - for (; r = n[s]; s++) r.nodeType === 1 && i.push(r); - return i - } - return n - }, - NAME: et && function(e, t) { - if (typeof t.getElementsByName !== p) return t.getElementsByName(name) - }, - CLASS: Z && function(e, t, n) { - if (typeof t.getElementsByClassName !== p && !n) return t.getElementsByClassName(e) - } - }, - relative: { - ">": { - dir: "parentNode", - first: !0 - }, - " ": { - dir: "parentNode" - }, - "+": { - dir: "previousSibling", - first: !0 - }, - "~": { - dir: "previousSibling" - } - }, - preFilter: { - ATTR: function(e) { - return e[1] = e[1].replace($, ""), e[3] = (e[4] || e[5] || "").replace($, ""), e[2] === "~=" && (e[3] = " " + e[3] + " "), e.slice(0, 4) - }, - CHILD: function(e) { - return e[1] = e[1].toLowerCase(), e[1] === "nth" ? (e[2] || nt.error(e[0]), e[3] = +(e[3] ? e[4] + (e[5] || 1) : 2 * (e[2] === "even" || e[2] === "odd")), e[4] = +(e[6] + e[7] || e[2] === "odd")) : e[2] && nt.error(e[0]), e - }, - PSEUDO: function(e) { - var t, n; - if (J.CHILD.test(e[0])) return null; - if (e[3]) e[2] = e[3]; - else if (t = e[4]) q.test(t) && (n = ut(t, !0)) && (n = t.indexOf(")", t.length - n) - t.length) && (t = t.slice(0, n), e[0] = e[0].slice(0, n)), e[2] = t; - return e.slice(0, 3) - } - }, - filter: { - ID: r ? function(e) { - return e = e.replace($, ""), - function(t) { - return t.getAttribute("id") === e - } - } : function(e) { - return e = e.replace($, ""), - function(t) { - var n = typeof t.getAttributeNode !== p && t.getAttributeNode("id"); - return n && n.value === e - } - }, - TAG: function(e) { - return e === "*" ? function() { - return !0 - } : (e = e.replace($, "").toLowerCase(), function(t) { - return t.nodeName && t.nodeName.toLowerCase() === e - }) - }, - CLASS: function(e) { - var t = k[d][e + " "]; - return t || (t = new RegExp("(^|" + O + ")" + e + "(" + O + "|$)")) && k(e, function(e) { - return t.test(e.className || typeof e.getAttribute !== p && e.getAttribute("class") || "") - }) - }, - ATTR: function(e, t, n) { - return function(r, i) { - var s = nt.attr(r, e); - return s == null ? t === "!=" : t ? (s += "", t === "=" ? s === n : t === "!=" ? s !== n : t === "^=" ? n && s.indexOf(n) === 0 : t === "*=" ? n && s.indexOf(n) > -1 : t === "$=" ? n && s.substr(s.length - n.length) === n : t === "~=" ? (" " + s + " ").indexOf(n) > -1 : t === "|=" ? s === n || s.substr(0, n.length + 1) === n + "-" : !1) : !0 - } - }, - CHILD: function(e, t, n, r) { - return e === "nth" ? function(e) { - var t, i, s = e.parentNode; - if (n === 1 && r === 0) return !0; - if (s) { - i = 0; - for (t = s.firstChild; t; t = t.nextSibling) - if (t.nodeType === 1) { - i++; - if (e === t) break - } - } - return i -= r, i === n || i % n === 0 && i / n >= 0 - } : function(t) { - var n = t; - switch (e) { - case "only": - case "first": - while (n = n.previousSibling) - if (n.nodeType === 1) return !1; - if (e === "first") return !0; - n = t; - case "last": - while (n = n.nextSibling) - if (n.nodeType === 1) return !1; - return !0 - } - } - }, - PSEUDO: function(e, t) { - var n, r = i.pseudos[e] || i.setFilters[e.toLowerCase()] || nt.error("unsupported pseudo: " + e); - return r[d] ? r(t) : r.length > 1 ? (n = [e, e, "", t], i.setFilters.hasOwnProperty(e.toLowerCase()) ? N(function(e, n) { - var i, s = r(e, t), - o = s.length; - while (o--) i = T.call(e, s[o]), e[i] = !(n[i] = s[o]) - }) : function(e) { - return r(e, 0, n) - }) : r - } - }, - pseudos: { - not: N(function(e) { - var t = [], - n = [], - r = a(e.replace(j, "$1")); - return r[d] ? N(function(e, t, n, i) { - var s, o = r(e, null, i, []), - u = e.length; - while (u--) - if (s = o[u]) e[u] = !(t[u] = s) - }) : function(e, i, s) { - return t[0] = e, r(t, null, s, n), !n.pop() - } - }), - has: N(function(e) { - return function(t) { - return nt(e, t).length > 0 - } - }), - contains: N(function(e) { - return function(t) { - return (t.textContent || t.innerText || s(t)).indexOf(e) > -1 - } - }), - enabled: function(e) { - return e.disabled === !1 - }, - disabled: function(e) { - return e.disabled === !0 - }, - checked: function(e) { - var t = e.nodeName.toLowerCase(); - return t === "input" && !!e.checked || t === "option" && !!e.selected - }, - selected: function(e) { - return e.parentNode && e.parentNode.selectedIndex, e.selected === !0 - }, - parent: function(e) { - return !i.pseudos.empty(e) - }, - empty: function(e) { - var t; - e = e.firstChild; - while (e) { - if (e.nodeName > "@" || (t = e.nodeType) === 3 || t === 4) return !1; - e = e.nextSibling - } - return !0 - }, - header: function(e) { - return X.test(e.nodeName) - }, - text: function(e) { - var t, n; - return e.nodeName.toLowerCase() === "input" && (t = e.type) === "text" && ((n = e.getAttribute("type")) == null || n.toLowerCase() === t) - }, - radio: rt("radio"), - checkbox: rt("checkbox"), - file: rt("file"), - password: rt("password"), - image: rt("image"), - submit: it("submit"), - reset: it("reset"), - button: function(e) { - var t = e.nodeName.toLowerCase(); - return t === "input" && e.type === "button" || t === "button" - }, - input: function(e) { - return V.test(e.nodeName) - }, - focus: function(e) { - var t = e.ownerDocument; - return e === t.activeElement && (!t.hasFocus || t.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) - }, - active: function(e) { - return e === e.ownerDocument.activeElement - }, - first: st(function() { - return [0] - }), - last: st(function(e, t) { - return [t - 1] - }), - eq: st(function(e, t, n) { - return [n < 0 ? n + t : n] - }), - even: st(function(e, t) { - for (var n = 0; n < t; n += 2) e.push(n); - return e - }), - odd: st(function(e, t) { - for (var n = 1; n < t; n += 2) e.push(n); - return e - }), - lt: st(function(e, t, n) { - for (var r = n < 0 ? n + t : n; --r >= 0;) e.push(r); - return e - }), - gt: st(function(e, t, n) { - for (var r = n < 0 ? n + t : n; ++r < t;) e.push(r); - return e - }) - } - }, f = y.compareDocumentPosition ? function(e, t) { - return e === t ? (l = !0, 0) : (!e.compareDocumentPosition || !t.compareDocumentPosition ? e.compareDocumentPosition : e.compareDocumentPosition(t) & 4) ? -1 : 1 - } : function(e, t) { - if (e === t) return l = !0, 0; - if (e.sourceIndex && t.sourceIndex) return e.sourceIndex - t.sourceIndex; - var n, r, i = [], - s = [], - o = e.parentNode, - u = t.parentNode, - a = o; - if (o === u) return ot(e, t); - if (!o) return -1; - if (!u) return 1; - while (a) i.unshift(a), a = a.parentNode; - a = u; - while (a) s.unshift(a), a = a.parentNode; - n = i.length, r = s.length; - for (var f = 0; f < n && f < r; f++) - if (i[f] !== s[f]) return ot(i[f], s[f]); - return f === n ? ot(e, s[f], -1) : ot(i[f], t, 1) - }, [0, 0].sort(f), h = !l, nt.uniqueSort = function(e) { - var t, n = [], - r = 1, - i = 0; - l = h, e.sort(f); - if (l) { - for (; t = e[r]; r++) t === e[r - 1] && (i = n.push(r)); - while (i--) e.splice(n[i], 1) - } - return e - }, nt.error = function(e) { - throw new Error("Syntax error, unrecognized expression: " + e) - }, a = nt.compile = function(e, t) { - var n, r = [], - i = [], - s = A[d][e + " "]; - if (!s) { - t || (t = ut(e)), n = t.length; - while (n--) s = ht(t[n]), s[d] ? r.push(s) : i.push(s); - s = A(e, pt(i, r)) - } - return s - }, g.querySelectorAll && function() { - var e, t = vt, - n = /'|\\/g, - r = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, - i = [":focus"], - s = [":active"], - u = y.matchesSelector || y.mozMatchesSelector || y.webkitMatchesSelector || y.oMatchesSelector || y.msMatchesSelector; - K(function(e) { - e.innerHTML = "", e.querySelectorAll("[selected]").length || i.push("\\[" + O + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)"), e.querySelectorAll(":checked").length || i.push(":checked") - }), K(function(e) { - e.innerHTML = "

    ", e.querySelectorAll("[test^='']").length && i.push("[*^$]=" + O + "*(?:\"\"|'')"), e.innerHTML = "", e.querySelectorAll(":enabled").length || i.push(":enabled", ":disabled") - }), i = new RegExp(i.join("|")), vt = function(e, r, s, o, u) { - if (!o && !u && !i.test(e)) { - var a, f, l = !0, - c = d, - h = r, - p = r.nodeType === 9 && e; - if (r.nodeType === 1 && r.nodeName.toLowerCase() !== "object") { - a = ut(e), (l = r.getAttribute("id")) ? c = l.replace(n, "\\$&") : r.setAttribute("id", c), c = "[id='" + c + "'] ", f = a.length; - while (f--) a[f] = c + a[f].join(""); - h = z.test(e) && r.parentNode || r, p = a.join(",") - } - if (p) try { - return S.apply(s, x.call(h.querySelectorAll(p), 0)), s - } catch (v) {} finally { - l || r.removeAttribute("id") - } - } - return t(e, r, s, o, u) - }, u && (K(function(t) { - e = u.call(t, "div"); - try { - u.call(t, "[test!='']:sizzle"), s.push("!=", H) - } catch (n) {} - }), s = new RegExp(s.join("|")), nt.matchesSelector = function(t, n) { - n = n.replace(r, "='$1']"); - if (!o(t) && !s.test(n) && !i.test(n)) try { - var a = u.call(t, n); - if (a || e || t.document && t.document.nodeType !== 11) return a - } catch (f) {} - return nt(n, null, null, [t]).length > 0 - }) - }(), i.pseudos.nth = i.pseudos.eq, i.filters = mt.prototype = i.pseudos, i.setFilters = new mt, nt.attr = v.attr, v.find = nt, v.expr = nt.selectors, v.expr[":"] = v.expr.pseudos, v.unique = nt.uniqueSort, v.text = nt.getText, v.isXMLDoc = nt.isXML, v.contains = nt.contains - }(e); - var nt = /Until$/, - rt = /^(?:parents|prev(?:Until|All))/, - it = /^.[^:#\[\.,]*$/, - st = v.expr.match.needsContext, - ot = { - children: !0, - contents: !0, - next: !0, - prev: !0 - }; - v.fn.extend({ - find: function(e) { - var t, n, r, i, s, o, u = this; - if (typeof e != "string") return v(e).filter(function() { - for (t = 0, n = u.length; t < n; t++) - if (v.contains(u[t], this)) return !0 - }); - o = this.pushStack("", "find", e); - for (t = 0, n = this.length; t < n; t++) { - r = o.length, v.find(e, this[t], o); - if (t > 0) - for (i = r; i < o.length; i++) - for (s = 0; s < r; s++) - if (o[s] === o[i]) { - o.splice(i--, 1); - break - } - } - return o - }, - has: function(e) { - var t, n = v(e, this), - r = n.length; - return this.filter(function() { - for (t = 0; t < r; t++) - if (v.contains(this, n[t])) return !0 - }) - }, - not: function(e) { - return this.pushStack(ft(this, e, !1), "not", e) - }, - filter: function(e) { - return this.pushStack(ft(this, e, !0), "filter", e) - }, - is: function(e) { - return !!e && (typeof e == "string" ? st.test(e) ? v(e, this.context).index(this[0]) >= 0 : v.filter(e, this).length > 0 : this.filter(e).length > 0) - }, - closest: function(e, t) { - var n, r = 0, - i = this.length, - s = [], - o = st.test(e) || typeof e != "string" ? v(e, t || this.context) : 0; - for (; r < i; r++) { - n = this[r]; - while (n && n.ownerDocument && n !== t && n.nodeType !== 11) { - if (o ? o.index(n) > -1 : v.find.matchesSelector(n, e)) { - s.push(n); - break - } - n = n.parentNode - } - } - return s = s.length > 1 ? v.unique(s) : s, this.pushStack(s, "closest", e) - }, - index: function(e) { - return e ? typeof e == "string" ? v.inArray(this[0], v(e)) : v.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.prevAll().length : -1 - }, - add: function(e, t) { - var n = typeof e == "string" ? v(e, t) : v.makeArray(e && e.nodeType ? [e] : e), - r = v.merge(this.get(), n); - return this.pushStack(ut(n[0]) || ut(r[0]) ? r : v.unique(r)) - }, - addBack: function(e) { - return this.add(e == null ? this.prevObject : this.prevObject.filter(e)) - } - }), v.fn.andSelf = v.fn.addBack, v.each({ - parent: function(e) { - var t = e.parentNode; - return t && t.nodeType !== 11 ? t : null - }, - parents: function(e) { - return v.dir(e, "parentNode") - }, - parentsUntil: function(e, t, n) { - return v.dir(e, "parentNode", n) - }, - next: function(e) { - return at(e, "nextSibling") - }, - prev: function(e) { - return at(e, "previousSibling") - }, - nextAll: function(e) { - return v.dir(e, "nextSibling") - }, - prevAll: function(e) { - return v.dir(e, "previousSibling") - }, - nextUntil: function(e, t, n) { - return v.dir(e, "nextSibling", n) - }, - prevUntil: function(e, t, n) { - return v.dir(e, "previousSibling", n) - }, - siblings: function(e) { - return v.sibling((e.parentNode || {}).firstChild, e) - }, - children: function(e) { - return v.sibling(e.firstChild) - }, - contents: function(e) { - return v.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : v.merge([], e.childNodes) - } - }, function(e, t) { - v.fn[e] = function(n, r) { - var i = v.map(this, t, n); - return nt.test(e) || (r = n), r && typeof r == "string" && (i = v.filter(r, i)), i = this.length > 1 && !ot[e] ? v.unique(i) : i, this.length > 1 && rt.test(e) && (i = i.reverse()), this.pushStack(i, e, l.call(arguments).join(",")) - } - }), v.extend({ - filter: function(e, t, n) { - return n && (e = ":not(" + e + ")"), t.length === 1 ? v.find.matchesSelector(t[0], e) ? [t[0]] : [] : v.find.matches(e, t) - }, - dir: function(e, n, r) { - var i = [], - s = e[n]; - while (s && s.nodeType !== 9 && (r === t || s.nodeType !== 1 || !v(s).is(r))) s.nodeType === 1 && i.push(s), s = s[n]; - return i - }, - sibling: function(e, t) { - var n = []; - for (; e; e = e.nextSibling) e.nodeType === 1 && e !== t && n.push(e); - return n - } - }); - var ct = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - ht = / jQuery\d+="(?:null|\d+)"/g, - pt = /^\s+/, - dt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - vt = /<([\w:]+)/, - mt = /]", "i"), - Et = /^(?:checkbox|radio)$/, - St = /checked\s*(?:[^=]|=\s*.checked.)/i, - xt = /\/(java|ecma)script/i, - Tt = /^\s*\s*$/g, - Nt = { - option: [1, ""], - legend: [1, "
    ", "
    "], - thead: [1, "", "
    "], - tr: [2, "", "
    "], - td: [3, "", "
    "], - col: [2, "", "
    "], - area: [1, "", ""], - _default: [0, "", ""] - }, - Ct = lt(i), - kt = Ct.appendChild(i.createElement("div")); - Nt.optgroup = Nt.option, Nt.tbody = Nt.tfoot = Nt.colgroup = Nt.caption = Nt.thead, Nt.th = Nt.td, v.support.htmlSerialize || (Nt._default = [1, "X
    ", "
    "]), v.fn.extend({ - text: function(e) { - return v.access(this, function(e) { - return e === t ? v.text(this) : this.empty().append((this[0] && this[0].ownerDocument || i).createTextNode(e)) - }, null, e, arguments.length) - }, - wrapAll: function(e) { - if (v.isFunction(e)) return this.each(function(t) { - v(this).wrapAll(e.call(this, t)) - }); - if (this[0]) { - var t = v(e, this[0].ownerDocument).eq(0).clone(!0); - this[0].parentNode && t.insertBefore(this[0]), t.map(function() { - var e = this; - while (e.firstChild && e.firstChild.nodeType === 1) e = e.firstChild; - return e - }).append(this) - } - return this - }, - wrapInner: function(e) { - return v.isFunction(e) ? this.each(function(t) { - v(this).wrapInner(e.call(this, t)) - }) : this.each(function() { - var t = v(this), - n = t.contents(); - n.length ? n.wrapAll(e) : t.append(e) - }) - }, - wrap: function(e) { - var t = v.isFunction(e); - return this.each(function(n) { - v(this).wrapAll(t ? e.call(this, n) : e) - }) - }, - unwrap: function() { - return this.parent().each(function() { - v.nodeName(this, "body") || v(this).replaceWith(this.childNodes) - }).end() - }, - append: function() { - return this.domManip(arguments, !0, function(e) { - (this.nodeType === 1 || this.nodeType === 11) && this.appendChild(e) - }) - }, - prepend: function() { - return this.domManip(arguments, !0, function(e) { - (this.nodeType === 1 || this.nodeType === 11) && this.insertBefore(e, this.firstChild) - }) - }, - before: function() { - if (!ut(this[0])) return this.domManip(arguments, !1, function(e) { - this.parentNode.insertBefore(e, this) - }); - if (arguments.length) { - var e = v.clean(arguments); - return this.pushStack(v.merge(e, this), "before", this.selector) - } - }, - after: function() { - if (!ut(this[0])) return this.domManip(arguments, !1, function(e) { - this.parentNode.insertBefore(e, this.nextSibling) - }); - if (arguments.length) { - var e = v.clean(arguments); - return this.pushStack(v.merge(this, e), "after", this.selector) - } - }, - remove: function(e, t) { - var n, r = 0; - for (; - (n = this[r]) != null; r++) - if (!e || v.filter(e, [n]).length) !t && n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), v.cleanData([n])), n.parentNode && n.parentNode.removeChild(n); - return this - }, - empty: function() { - var e, t = 0; - for (; - (e = this[t]) != null; t++) { - e.nodeType === 1 && v.cleanData(e.getElementsByTagName("*")); - while (e.firstChild) e.removeChild(e.firstChild) - } - return this - }, - clone: function(e, t) { - return e = e == null ? !1 : e, t = t == null ? e : t, this.map(function() { - return v.clone(this, e, t) - }) - }, - html: function(e) { - return v.access(this, function(e) { - var n = this[0] || {}, - r = 0, - i = this.length; - if (e === t) return n.nodeType === 1 ? n.innerHTML.replace(ht, "") : t; - if (typeof e == "string" && !yt.test(e) && (v.support.htmlSerialize || !wt.test(e)) && (v.support.leadingWhitespace || !pt.test(e)) && !Nt[(vt.exec(e) || ["", ""])[1].toLowerCase()]) { - e = e.replace(dt, "<$1>"); - try { - for (; r < i; r++) n = this[r] || {}, n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), n.innerHTML = e); - n = 0 - } catch (s) {} - } - n && this.empty().append(e) - }, null, e, arguments.length) - }, - replaceWith: function(e) { - return ut(this[0]) ? this.length ? this.pushStack(v(v.isFunction(e) ? e() : e), "replaceWith", e) : this : v.isFunction(e) ? this.each(function(t) { - var n = v(this), - r = n.html(); - n.replaceWith(e.call(this, t, r)) - }) : (typeof e != "string" && (e = v(e).detach()), this.each(function() { - var t = this.nextSibling, - n = this.parentNode; - v(this).remove(), t ? v(t).before(e) : v(n).append(e) - })) - }, - detach: function(e) { - return this.remove(e, !0) - }, - domManip: function(e, n, r) { - e = [].concat.apply([], e); - var i, s, o, u, a = 0, - f = e[0], - l = [], - c = this.length; - if (!v.support.checkClone && c > 1 && typeof f == "string" && St.test(f)) return this.each(function() { - v(this).domManip(e, n, r) - }); - if (v.isFunction(f)) return this.each(function(i) { - var s = v(this); - e[0] = f.call(this, i, n ? s.html() : t), s.domManip(e, n, r) - }); - if (this[0]) { - i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 && (o = s); - if (s) { - n = n && v.nodeName(s, "tr"); - for (u = i.cacheable || c - 1; a < c; a++) r.call(n && v.nodeName(this[a], "table") ? Lt(this[a], "tbody") : this[a], a === u ? o : v.clone(o, !0, !0)) - } - o = s = null, l.length && v.each(l, function(e, t) { - t.src ? v.ajax ? v.ajax({ - url: t.src, - type: "GET", - dataType: "script", - async: !1, - global: !1, - "throws": !0 - }) : v.error("no ajax") : v.globalEval((t.text || t.textContent || t.innerHTML || "").replace(Tt, "")), t.parentNode && t.parentNode.removeChild(t) - }) - } - return this - } - }), v.buildFragment = function(e, n, r) { - var s, o, u, a = e[0]; - return n = n || i, n = !n.nodeType && n[0] || n, n = n.ownerDocument || n, e.length === 1 && typeof a == "string" && a.length < 512 && n === i && a.charAt(0) === "<" && !bt.test(a) && (v.support.checkClone || !St.test(a)) && (v.support.html5Clone || !wt.test(a)) && (o = !0, s = v.fragments[a], u = s !== t), s || (s = n.createDocumentFragment(), v.clean(e, n, s, r), o && (v.fragments[a] = u && s)), { - fragment: s, - cacheable: o - } - }, v.fragments = {}, v.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" - }, function(e, t) { - v.fn[e] = function(n) { - var r, i = 0, - s = [], - o = v(n), - u = o.length, - a = this.length === 1 && this[0].parentNode; - if ((a == null || a && a.nodeType === 11 && a.childNodes.length === 1) && u === 1) return o[t](this[0]), this; - for (; i < u; i++) r = (i > 0 ? this.clone(!0) : this).get(), v(o[i])[t](r), s = s.concat(r); - return this.pushStack(s, e, o.selector) - } - }), v.extend({ - clone: function(e, t, n) { - var r, i, s, o; - v.support.html5Clone || v.isXMLDoc(e) || !wt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (kt.innerHTML = e.outerHTML, kt.removeChild(o = kt.firstChild)); - if ((!v.support.noCloneEvent || !v.support.noCloneChecked) && (e.nodeType === 1 || e.nodeType === 11) && !v.isXMLDoc(e)) { - Ot(e, o), r = Mt(e), i = Mt(o); - for (s = 0; r[s]; ++s) i[s] && Ot(r[s], i[s]) - } - if (t) { - At(e, o); - if (n) { - r = Mt(e), i = Mt(o); - for (s = 0; r[s]; ++s) At(r[s], i[s]) - } - } - return r = i = null, o - }, - clean: function(e, t, n, r) { - var s, o, u, a, f, l, c, h, p, d, m, g, y = t === i && Ct, - b = []; - if (!t || typeof t.createDocumentFragment == "undefined") t = i; - for (s = 0; - (u = e[s]) != null; s++) { - typeof u == "number" && (u += ""); - if (!u) continue; - if (typeof u == "string") - if (!gt.test(u)) u = t.createTextNode(u); - else { - y = y || lt(t), c = t.createElement("div"), y.appendChild(c), u = u.replace(dt, "<$1>"), a = (vt.exec(u) || ["", ""])[1].toLowerCase(), f = Nt[a] || Nt._default, l = f[0], c.innerHTML = f[1] + u + f[2]; - while (l--) c = c.lastChild; - if (!v.support.tbody) { - h = mt.test(u), p = a === "table" && !h ? c.firstChild && c.firstChild.childNodes : f[1] === "" && !h ? c.childNodes : []; - for (o = p.length - 1; o >= 0; --o) v.nodeName(p[o], "tbody") && !p[o].childNodes.length && p[o].parentNode.removeChild(p[o]) - }!v.support.leadingWhitespace && pt.test(u) && c.insertBefore(t.createTextNode(pt.exec(u)[0]), c.firstChild), u = c.childNodes, c.parentNode.removeChild(c) - } - u.nodeType ? b.push(u) : v.merge(b, u) - } - c && (u = c = y = null); - if (!v.support.appendChecked) - for (s = 0; - (u = b[s]) != null; s++) v.nodeName(u, "input") ? _t(u) : typeof u.getElementsByTagName != "undefined" && v.grep(u.getElementsByTagName("input"), _t); - if (n) { - m = function(e) { - if (!e.type || xt.test(e.type)) return r ? r.push(e.parentNode ? e.parentNode.removeChild(e) : e) : n.appendChild(e) - }; - for (s = 0; - (u = b[s]) != null; s++) - if (!v.nodeName(u, "script") || !m(u)) n.appendChild(u), typeof u.getElementsByTagName != "undefined" && (g = v.grep(v.merge([], u.getElementsByTagName("script")), m), b.splice.apply(b, [s + 1, 0].concat(g)), s += g.length) - } - return b - }, - cleanData: function(e, t) { - var n, r, i, s, o = 0, - u = v.expando, - a = v.cache, - f = v.support.deleteExpando, - l = v.event.special; - for (; - (i = e[o]) != null; o++) - if (t || v.acceptData(i)) { - r = i[u], n = r && a[r]; - if (n) { - if (n.events) - for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle); - a[r] && (delete a[r], f ? delete i[u] : i.removeAttribute ? i.removeAttribute(u) : i[u] = null, v.deletedIds.push(r)) - } - } - } - }), - function() { - var e, t; - v.uaMatch = function(e) { - e = e.toLowerCase(); - var t = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || []; - return { - browser: t[1] || "", - version: t[2] || "0" - } - }, e = v.uaMatch(o.userAgent), t = {}, e.browser && (t[e.browser] = !0, t.version = e.version), t.chrome ? t.webkit = !0 : t.webkit && (t.safari = !0), v.browser = t, v.sub = function() { - function e(t, n) { - return new e.fn.init(t, n) - } - v.extend(!0, e, this), e.superclass = this, e.fn = e.prototype = this(), e.fn.constructor = e, e.sub = this.sub, e.fn.init = function(r, i) { - return i && i instanceof v && !(i instanceof e) && (i = e(i)), v.fn.init.call(this, r, i, t) - }, e.fn.init.prototype = e.fn; - var t = e(i); - return e - } - }(); - var Dt, Pt, Ht, Bt = /alpha\([^)]*\)/i, - jt = /opacity=([^)]*)/, - Ft = /^(top|right|bottom|left)$/, - It = /^(none|table(?!-c[ea]).+)/, - qt = /^margin/, - Rt = new RegExp("^(" + m + ")(.*)$", "i"), - Ut = new RegExp("^(" + m + ")(?!px)[a-z%]+$", "i"), - zt = new RegExp("^([-+])=(" + m + ")", "i"), - Wt = { - BODY: "block" - }, - Xt = { - position: "absolute", - visibility: "hidden", - display: "block" - }, - Vt = { - letterSpacing: 0, - fontWeight: 400 - }, - $t = ["Top", "Right", "Bottom", "Left"], - Jt = ["Webkit", "O", "Moz", "ms"], - Kt = v.fn.toggle; - v.fn.extend({ - css: function(e, n) { - return v.access(this, function(e, n, r) { - return r !== t ? v.style(e, n, r) : v.css(e, n) - }, e, n, arguments.length > 1) - }, - show: function() { - return Yt(this, !0) - }, - hide: function() { - return Yt(this) - }, - toggle: function(e, t) { - var n = typeof e == "boolean"; - return v.isFunction(e) && v.isFunction(t) ? Kt.apply(this, arguments) : this.each(function() { - (n ? e : Gt(this)) ? v(this).show(): v(this).hide() - }) - } - }), v.extend({ - cssHooks: { - opacity: { - get: function(e, t) { - if (t) { - var n = Dt(e, "opacity"); - return n === "" ? "1" : n - } - } - } - }, - cssNumber: { - fillOpacity: !0, - fontWeight: !0, - lineHeight: !0, - opacity: !0, - orphans: !0, - widows: !0, - zIndex: !0, - zoom: !0 - }, - cssProps: { - "float": v.support.cssFloat ? "cssFloat" : "styleFloat" - }, - style: function(e, n, r, i) { - if (!e || e.nodeType === 3 || e.nodeType === 8 || !e.style) return; - var s, o, u, a = v.camelCase(n), - f = e.style; - n = v.cssProps[a] || (v.cssProps[a] = Qt(f, a)), u = v.cssHooks[n] || v.cssHooks[a]; - if (r === t) return u && "get" in u && (s = u.get(e, !1, i)) !== t ? s : f[n]; - o = typeof r, o === "string" && (s = zt.exec(r)) && (r = (s[1] + 1) * s[2] + parseFloat(v.css(e, n)), o = "number"); - if (r == null || o === "number" && isNaN(r)) return; - o === "number" && !v.cssNumber[a] && (r += "px"); - if (!u || !("set" in u) || (r = u.set(e, r, i)) !== t) try { - f[n] = r - } catch (l) {} - }, - css: function(e, n, r, i) { - var s, o, u, a = v.camelCase(n); - return n = v.cssProps[a] || (v.cssProps[a] = Qt(e.style, a)), u = v.cssHooks[n] || v.cssHooks[a], u && "get" in u && (s = u.get(e, !0, i)), s === t && (s = Dt(e, n)), s === "normal" && n in Vt && (s = Vt[n]), r || i !== t ? (o = parseFloat(s), r || v.isNumeric(o) ? o || 0 : s) : s - }, - swap: function(e, t, n) { - var r, i, s = {}; - for (i in t) s[i] = e.style[i], e.style[i] = t[i]; - r = n.call(e); - for (i in t) e.style[i] = s[i]; - return r - } - }), e.getComputedStyle ? Dt = function(t, n) { - var r, i, s, o, u = e.getComputedStyle(t, null), - a = t.style; - return u && (r = u.getPropertyValue(n) || u[n], r === "" && !v.contains(t.ownerDocument, t) && (r = v.style(t, n)), Ut.test(r) && qt.test(n) && (i = a.width, s = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = r, r = u.width, a.width = i, a.minWidth = s, a.maxWidth = o)), r - } : i.documentElement.currentStyle && (Dt = function(e, t) { - var n, r, i = e.currentStyle && e.currentStyle[t], - s = e.style; - return i == null && s && s[t] && (i = s[t]), Ut.test(i) && !Ft.test(t) && (n = s.left, r = e.runtimeStyle && e.runtimeStyle.left, r && (e.runtimeStyle.left = e.currentStyle.left), s.left = t === "fontSize" ? "1em" : i, i = s.pixelLeft + "px", s.left = n, r && (e.runtimeStyle.left = r)), i === "" ? "auto" : i - }), v.each(["height", "width"], function(e, t) { - v.cssHooks[t] = { - get: function(e, n, r) { - if (n) return e.offsetWidth === 0 && It.test(Dt(e, "display")) ? v.swap(e, Xt, function() { - return tn(e, t, r) - }) : tn(e, t, r) - }, - set: function(e, n, r) { - return Zt(e, n, r ? en(e, t, r, v.support.boxSizing && v.css(e, "boxSizing") === "border-box") : 0) - } - } - }), v.support.opacity || (v.cssHooks.opacity = { - get: function(e, t) { - return jt.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : "" - }, - set: function(e, t) { - var n = e.style, - r = e.currentStyle, - i = v.isNumeric(t) ? "alpha(opacity=" + t * 100 + ")" : "", - s = r && r.filter || n.filter || ""; - n.zoom = 1; - if (t >= 1 && v.trim(s.replace(Bt, "")) === "" && n.removeAttribute) { - n.removeAttribute("filter"); - if (r && !r.filter) return - } - n.filter = Bt.test(s) ? s.replace(Bt, i) : s + " " + i - } - }), v(function() { - v.support.reliableMarginRight || (v.cssHooks.marginRight = { - get: function(e, t) { - return v.swap(e, { - display: "inline-block" - }, function() { - if (t) return Dt(e, "marginRight") - }) - } - }), !v.support.pixelPosition && v.fn.position && v.each(["top", "left"], function(e, t) { - v.cssHooks[t] = { - get: function(e, n) { - if (n) { - var r = Dt(e, t); - return Ut.test(r) ? v(e).position()[t] + "px" : r - } - } - } - }) - }), v.expr && v.expr.filters && (v.expr.filters.hidden = function(e) { - return e.offsetWidth === 0 && e.offsetHeight === 0 || !v.support.reliableHiddenOffsets && (e.style && e.style.display || Dt(e, "display")) === "none" - }, v.expr.filters.visible = function(e) { - return !v.expr.filters.hidden(e) - }), v.each({ - margin: "", - padding: "", - border: "Width" - }, function(e, t) { - v.cssHooks[e + t] = { - expand: function(n) { - var r, i = typeof n == "string" ? n.split(" ") : [n], - s = {}; - for (r = 0; r < 4; r++) s[e + $t[r] + t] = i[r] || i[r - 2] || i[0]; - return s - } - }, qt.test(e) || (v.cssHooks[e + t].set = Zt) - }); - var rn = /%20/g, - sn = /\[\]$/, - on = /\r?\n/g, - un = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, - an = /^(?:select|textarea)/i; - v.fn.extend({ - serialize: function() { - return v.param(this.serializeArray()) - }, - serializeArray: function() { - return this.map(function() { - return this.elements ? v.makeArray(this.elements) : this - }).filter(function() { - return this.name && !this.disabled && (this.checked || an.test(this.nodeName) || un.test(this.type)) - }).map(function(e, t) { - var n = v(this).val(); - return n == null ? null : v.isArray(n) ? v.map(n, function(e, n) { - return { - name: t.name, - value: e.replace(on, "\r\n") - } - }) : { - name: t.name, - value: n.replace(on, "\r\n") - } - }).get() - } - }), v.param = function(e, n) { - var r, i = [], - s = function(e, t) { - t = v.isFunction(t) ? t() : t == null ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) - }; - n === t && (n = v.ajaxSettings && v.ajaxSettings.traditional); - if (v.isArray(e) || e.jquery && !v.isPlainObject(e)) v.each(e, function() { - s(this.name, this.value) - }); - else - for (r in e) fn(r, e[r], n, s); - return i.join("&").replace(rn, "+") - }; - var ln, cn, hn = /#.*$/, - pn = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, - dn = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, - vn = /^(?:GET|HEAD)$/, - mn = /^\/\//, - gn = /\?/, - yn = /)<[^<]*)*<\/script>/gi, - bn = /([?&])_=[^&]*/, - wn = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, - En = v.fn.load, - Sn = {}, - xn = {}, - Tn = ["*/"] + ["*"]; - try { - cn = s.href - } catch (Nn) { - cn = i.createElement("a"), cn.href = "", cn = cn.href - } - ln = wn.exec(cn.toLowerCase()) || [], v.fn.load = function(e, n, r) { - if (typeof e != "string" && En) return En.apply(this, arguments); - if (!this.length) return this; - var i, s, o, u = this, - a = e.indexOf(" "); - return a >= 0 && (i = e.slice(a, e.length), e = e.slice(0, a)), v.isFunction(n) ? (r = n, n = t) : n && typeof n == "object" && (s = "POST"), v.ajax({ - url: e, - type: s, - dataType: "html", - data: n, - complete: function(e, t) { - r && u.each(r, o || [e.responseText, t, e]) - } - }).done(function(e) { - o = arguments, u.html(i ? v("
    ").append(e.replace(yn, "")).find(i) : e) - }), this - }, v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(e, t) { - v.fn[t] = function(e) { - return this.on(t, e) - } - }), v.each(["get", "post"], function(e, n) { - v[n] = function(e, r, i, s) { - return v.isFunction(r) && (s = s || i, i = r, r = t), v.ajax({ - type: n, - url: e, - data: r, - success: i, - dataType: s - }) - } - }), v.extend({ - getScript: function(e, n) { - return v.get(e, t, n, "script") - }, - getJSON: function(e, t, n) { - return v.get(e, t, n, "json") - }, - ajaxSetup: function(e, t) { - return t ? Ln(e, v.ajaxSettings) : (t = e, e = v.ajaxSettings), Ln(e, t), e - }, - ajaxSettings: { - url: cn, - isLocal: dn.test(ln[1]), - global: !0, - type: "GET", - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - processData: !0, - async: !0, - accepts: { - xml: "application/xml, text/xml", - html: "text/html", - text: "text/plain", - json: "application/json, text/javascript", - "*": Tn - }, - contents: { - xml: /xml/, - html: /html/, - json: /json/ - }, - responseFields: { - xml: "responseXML", - text: "responseText" - }, - converters: { - "* text": e.String, - "text html": !0, - "text json": v.parseJSON, - "text xml": v.parseXML - }, - flatOptions: { - context: !0, - url: !0 - } - }, - ajaxPrefilter: Cn(Sn), - ajaxTransport: Cn(xn), - ajax: function(e, n) { - function T(e, n, s, a) { - var l, y, b, w, S, T = n; - if (E === 2) return; - E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s)); - if (e >= 200 && e < 300 || e === 304) c.ifModified && (S = x.getResponseHeader("Last-Modified"), S && (v.lastModified[r] = S), S = x.getResponseHeader("Etag"), S && (v.etag[r] = S)), e === 304 ? (T = "notmodified", l = !0) : (l = On(c, w), T = l.state, y = l.data, b = l.error, l = !b); - else { - b = T; - if (!T || e) T = "error", e < 0 && (e = 0) - } - x.status = e, x.statusText = (n || T) + "", l ? d.resolveWith(h, [y, T, x]) : d.rejectWith(h, [x, T, b]), x.statusCode(g), g = t, f && p.trigger("ajax" + (l ? "Success" : "Error"), [x, c, l ? y : b]), m.fireWith(h, [x, T]), f && (p.trigger("ajaxComplete", [x, c]), --v.active || v.event.trigger("ajaxStop")) - } - typeof e == "object" && (n = e, e = t), n = n || {}; - var r, i, s, o, u, a, f, l, c = v.ajaxSetup({}, n), - h = c.context || c, - p = h !== c && (h.nodeType || h instanceof v) ? v(h) : v.event, - d = v.Deferred(), - m = v.Callbacks("once memory"), - g = c.statusCode || {}, - b = {}, - w = {}, - E = 0, - S = "canceled", - x = { - readyState: 0, - setRequestHeader: function(e, t) { - if (!E) { - var n = e.toLowerCase(); - e = w[n] = w[n] || e, b[e] = t - } - return this - }, - getAllResponseHeaders: function() { - return E === 2 ? i : null - }, - getResponseHeader: function(e) { - var n; - if (E === 2) { - if (!s) { - s = {}; - while (n = pn.exec(i)) s[n[1].toLowerCase()] = n[2] - } - n = s[e.toLowerCase()] - } - return n === t ? null : n - }, - overrideMimeType: function(e) { - return E || (c.mimeType = e), this - }, - abort: function(e) { - return e = e || S, o && o.abort(e), T(0, e), this - } - }; - d.promise(x), x.success = x.done, x.error = x.fail, x.complete = m.add, x.statusCode = function(e) { - if (e) { - var t; - if (E < 2) - for (t in e) g[t] = [g[t], e[t]]; - else t = e[x.status], x.always(t) - } - return this - }, c.url = ((e || c.url) + "").replace(hn, "").replace(mn, ln[1] + "//"), c.dataTypes = v.trim(c.dataType || "*").toLowerCase().split(y), c.crossDomain == null && (a = wn.exec(c.url.toLowerCase()), c.crossDomain = !(!a || a[1] === ln[1] && a[2] === ln[2] && (a[3] || (a[1] === "http:" ? 80 : 443)) == (ln[3] || (ln[1] === "http:" ? 80 : 443)))), c.data && c.processData && typeof c.data != "string" && (c.data = v.param(c.data, c.traditional)), kn(Sn, c, n, x); - if (E === 2) return x; - f = c.global, c.type = c.type.toUpperCase(), c.hasContent = !vn.test(c.type), f && v.active++ === 0 && v.event.trigger("ajaxStart"); - if (!c.hasContent) { - c.data && (c.url += (gn.test(c.url) ? "&" : "?") + c.data, delete c.data), r = c.url; - if (c.cache === !1) { - var N = v.now(), - C = c.url.replace(bn, "$1_=" + N); - c.url = C + (C === c.url ? (gn.test(c.url) ? "&" : "?") + "_=" + N : "") - } - }(c.data && c.hasContent && c.contentType !== !1 || n.contentType) && x.setRequestHeader("Content-Type", c.contentType), c.ifModified && (r = r || c.url, v.lastModified[r] && x.setRequestHeader("If-Modified-Since", v.lastModified[r]), v.etag[r] && x.setRequestHeader("If-None-Match", v.etag[r])), x.setRequestHeader("Accept", c.dataTypes[0] && c.accepts[c.dataTypes[0]] ? c.accepts[c.dataTypes[0]] + (c.dataTypes[0] !== "*" ? ", " + Tn + "; q=0.01" : "") : c.accepts["*"]); - for (l in c.headers) x.setRequestHeader(l, c.headers[l]); - if (!c.beforeSend || c.beforeSend.call(h, x, c) !== !1 && E !== 2) { - S = "abort"; - for (l in { - success: 1, - error: 1, - complete: 1 - }) x[l](c[l]); - o = kn(xn, c, n, x); - if (!o) T(-1, "No Transport"); - else { - x.readyState = 1, f && p.trigger("ajaxSend", [x, c]), c.async && c.timeout > 0 && (u = setTimeout(function() { - x.abort("timeout") - }, c.timeout)); - try { - E = 1, o.send(b, T) - } catch (k) { - if (!(E < 2)) throw k; - T(-1, k) - } - } - return x - } - return x.abort() - }, - active: 0, - lastModified: {}, - etag: {} - }); - var Mn = [], - _n = /\?/, - Dn = /(=)\?(?=&|$)|\?\?/, - Pn = v.now(); - v.ajaxSetup({ - jsonp: "callback", - jsonpCallback: function() { - var e = Mn.pop() || v.expando + "_" + Pn++; - return this[e] = !0, e - } - }), v.ajaxPrefilter("json jsonp", function(n, r, i) { - var s, o, u, a = n.data, - f = n.url, - l = n.jsonp !== !1, - c = l && Dn.test(f), - h = l && !c && typeof a == "string" && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Dn.test(a); - if (n.dataTypes[0] === "jsonp" || c || h) return s = n.jsonpCallback = v.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, o = e[s], c ? n.url = f.replace(Dn, "$1" + s) : h ? n.data = a.replace(Dn, "$1" + s) : l && (n.url += (_n.test(f) ? "&" : "?") + n.jsonp + "=" + s), n.converters["script json"] = function() { - return u || v.error(s + " was not called"), u[0] - }, n.dataTypes[0] = "json", e[s] = function() { - u = arguments - }, i.always(function() { - e[s] = o, n[s] && (n.jsonpCallback = r.jsonpCallback, Mn.push(s)), u && v.isFunction(o) && o(u[0]), u = o = t - }), "script" - }), v.ajaxSetup({ - accepts: { - script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /javascript|ecmascript/ - }, - converters: { - "text script": function(e) { - return v.globalEval(e), e - } - } - }), v.ajaxPrefilter("script", function(e) { - e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1) - }), v.ajaxTransport("script", function(e) { - if (e.crossDomain) { - var n, r = i.head || i.getElementsByTagName("head")[0] || i.documentElement; - return { - send: function(s, o) { - n = i.createElement("script"), n.async = "async", e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, i) { - if (i || !n.readyState || /loaded|complete/.test(n.readyState)) n.onload = n.onreadystatechange = null, r && n.parentNode && r.removeChild(n), n = t, i || o(200, "success") - }, r.insertBefore(n, r.firstChild) - }, - abort: function() { - n && n.onload(0, 1) - } - } - } - }); - var Hn, Bn = e.ActiveXObject ? function() { - for (var e in Hn) Hn[e](0, 1) - } : !1, - jn = 0; - v.ajaxSettings.xhr = e.ActiveXObject ? function() { - return !this.isLocal && Fn() || In() - } : Fn, - function(e) { - v.extend(v.support, { - ajax: !!e, - cors: !!e && "withCredentials" in e - }) - }(v.ajaxSettings.xhr()), v.support.ajax && v.ajaxTransport(function(n) { - if (!n.crossDomain || v.support.cors) { - var r; - return { - send: function(i, s) { - var o, u, a = n.xhr(); - n.username ? a.open(n.type, n.url, n.async, n.username, n.password) : a.open(n.type, n.url, n.async); - if (n.xhrFields) - for (u in n.xhrFields) a[u] = n.xhrFields[u]; - n.mimeType && a.overrideMimeType && a.overrideMimeType(n.mimeType), !n.crossDomain && !i["X-Requested-With"] && (i["X-Requested-With"] = "XMLHttpRequest"); - try { - for (u in i) a.setRequestHeader(u, i[u]) - } catch (f) {} - a.send(n.hasContent && n.data || null), r = function(e, i) { - var u, f, l, c, h; - try { - if (r && (i || a.readyState === 4)) { - r = t, o && (a.onreadystatechange = v.noop, Bn && delete Hn[o]); - if (i) a.readyState !== 4 && a.abort(); - else { - u = a.status, l = a.getAllResponseHeaders(), c = {}, h = a.responseXML, h && h.documentElement && (c.xml = h); - try { - c.text = a.responseText - } catch (p) {} - try { - f = a.statusText - } catch (p) { - f = "" - }!u && n.isLocal && !n.crossDomain ? u = c.text ? 200 : 404 : u === 1223 && (u = 204) - } - } - } catch (d) { - i || s(-1, d) - } - c && s(u, f, c, l) - }, n.async ? a.readyState === 4 ? setTimeout(r, 0) : (o = ++jn, Bn && (Hn || (Hn = {}, v(e).unload(Bn)), Hn[o] = r), a.onreadystatechange = r) : r() - }, - abort: function() { - r && r(0, 1) - } - } - } - }); - var qn, Rn, Un = /^(?:toggle|show|hide)$/, - zn = new RegExp("^(?:([-+])=|)(" + m + ")([a-z%]*)$", "i"), - Wn = /queueHooks$/, - Xn = [Gn], - Vn = { - "*": [function(e, t) { - var n, r, i = this.createTween(e, t), - s = zn.exec(t), - o = i.cur(), - u = +o || 0, - a = 1, - f = 20; - if (s) { - n = +s[2], r = s[3] || (v.cssNumber[e] ? "" : "px"); - if (r !== "px" && u) { - u = v.css(i.elem, e, !0) || n || 1; - do a = a || ".5", u /= a, v.style(i.elem, e, u + r); while (a !== (a = i.cur() / o) && a !== 1 && --f) - } - i.unit = r, i.start = u, i.end = s[1] ? u + (s[1] + 1) * n : n - } - return i - }] - }; - v.Animation = v.extend(Kn, { - tweener: function(e, t) { - v.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" "); - var n, r = 0, - i = e.length; - for (; r < i; r++) n = e[r], Vn[n] = Vn[n] || [], Vn[n].unshift(t) - }, - prefilter: function(e, t) { - t ? Xn.unshift(e) : Xn.push(e) - } - }), v.Tween = Yn, Yn.prototype = { - constructor: Yn, - init: function(e, t, n, r, i, s) { - this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = s || (v.cssNumber[n] ? "" : "px") - }, - cur: function() { - var e = Yn.propHooks[this.prop]; - return e && e.get ? e.get(this) : Yn.propHooks._default.get(this) - }, - run: function(e) { - var t, n = Yn.propHooks[this.prop]; - return this.options.duration ? this.pos = t = v.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : Yn.propHooks._default.set(this), this - } - }, Yn.prototype.init.prototype = Yn.prototype, Yn.propHooks = { - _default: { - get: function(e) { - var t; - return e.elem[e.prop] == null || !!e.elem.style && e.elem.style[e.prop] != null ? (t = v.css(e.elem, e.prop, !1, ""), !t || t === "auto" ? 0 : t) : e.elem[e.prop] - }, - set: function(e) { - v.fx.step[e.prop] ? v.fx.step[e.prop](e) : e.elem.style && (e.elem.style[v.cssProps[e.prop]] != null || v.cssHooks[e.prop]) ? v.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now - } - } - }, Yn.propHooks.scrollTop = Yn.propHooks.scrollLeft = { - set: function(e) { - e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) - } - }, v.each(["toggle", "show", "hide"], function(e, t) { - var n = v.fn[t]; - v.fn[t] = function(r, i, s) { - return r == null || typeof r == "boolean" || !e && v.isFunction(r) && v.isFunction(i) ? n.apply(this, arguments) : this.animate(Zn(t, !0), r, i, s) - } - }), v.fn.extend({ - fadeTo: function(e, t, n, r) { - return this.filter(Gt).css("opacity", 0).show().end().animate({ - opacity: t - }, e, n, r) - }, - animate: function(e, t, n, r) { - var i = v.isEmptyObject(e), - s = v.speed(t, n, r), - o = function() { - var t = Kn(this, v.extend({}, e), s); - i && t.stop(!0) - }; - return i || s.queue === !1 ? this.each(o) : this.queue(s.queue, o) - }, - stop: function(e, n, r) { - var i = function(e) { - var t = e.stop; - delete e.stop, t(r) - }; - return typeof e != "string" && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() { - var t = !0, - n = e != null && e + "queueHooks", - s = v.timers, - o = v._data(this); - if (n) o[n] && o[n].stop && i(o[n]); - else - for (n in o) o[n] && o[n].stop && Wn.test(n) && i(o[n]); - for (n = s.length; n--;) s[n].elem === this && (e == null || s[n].queue === e) && (s[n].anim.stop(r), t = !1, s.splice(n, 1)); - (t || !r) && v.dequeue(this, e) - }) - } - }), v.each({ - slideDown: Zn("show"), - slideUp: Zn("hide"), - slideToggle: Zn("toggle"), - fadeIn: { - opacity: "show" - }, - fadeOut: { - opacity: "hide" - }, - fadeToggle: { - opacity: "toggle" - } - }, function(e, t) { - v.fn[e] = function(e, n, r) { - return this.animate(t, e, n, r) - } - }), v.speed = function(e, t, n) { - var r = e && typeof e == "object" ? v.extend({}, e) : { - complete: n || !n && t || v.isFunction(e) && e, - duration: e, - easing: n && t || t && !v.isFunction(t) && t - }; - r.duration = v.fx.off ? 0 : typeof r.duration == "number" ? r.duration : r.duration in v.fx.speeds ? v.fx.speeds[r.duration] : v.fx.speeds._default; - if (r.queue == null || r.queue === !0) r.queue = "fx"; - return r.old = r.complete, r.complete = function() { - v.isFunction(r.old) && r.old.call(this), r.queue && v.dequeue(this, r.queue) - }, r - }, v.easing = { - linear: function(e) { - return e - }, - swing: function(e) { - return .5 - Math.cos(e * Math.PI) / 2 - } - }, v.timers = [], v.fx = Yn.prototype.init, v.fx.tick = function() { - var e, n = v.timers, - r = 0; - qn = v.now(); - for (; r < n.length; r++) e = n[r], !e() && n[r] === e && n.splice(r--, 1); - n.length || v.fx.stop(), qn = t - }, v.fx.timer = function(e) { - e() && v.timers.push(e) && !Rn && (Rn = setInterval(v.fx.tick, v.fx.interval)) - }, v.fx.interval = 13, v.fx.stop = function() { - clearInterval(Rn), Rn = null - }, v.fx.speeds = { - slow: 600, - fast: 200, - _default: 400 - }, v.fx.step = {}, v.expr && v.expr.filters && (v.expr.filters.animated = function(e) { - return v.grep(v.timers, function(t) { - return e === t.elem - }).length - }); - var er = /^(?:body|html)$/i; - v.fn.offset = function(e) { - if (arguments.length) return e === t ? this : this.each(function(t) { - v.offset.setOffset(this, e, t) - }); - var n, r, i, s, o, u, a, f = { - top: 0, - left: 0 - }, - l = this[0], - c = l && l.ownerDocument; - if (!c) return; - return (r = c.body) === l ? v.offset.bodyOffset(l) : (n = c.documentElement, v.contains(n, l) ? (typeof l.getBoundingClientRect != "undefined" && (f = l.getBoundingClientRect()), i = tr(c), s = n.clientTop || r.clientTop || 0, o = n.clientLeft || r.clientLeft || 0, u = i.pageYOffset || n.scrollTop, a = i.pageXOffset || n.scrollLeft, { - top: f.top + u - s, - left: f.left + a - o - }) : f) - }, v.offset = { - bodyOffset: function(e) { - var t = e.offsetTop, - n = e.offsetLeft; - return v.support.doesNotIncludeMarginInBodyOffset && (t += parseFloat(v.css(e, "marginTop")) || 0, n += parseFloat(v.css(e, "marginLeft")) || 0), { - top: t, - left: n - } - }, - setOffset: function(e, t, n) { - var r = v.css(e, "position"); - r === "static" && (e.style.position = "relative"); - var i = v(e), - s = i.offset(), - o = v.css(e, "top"), - u = v.css(e, "left"), - a = (r === "absolute" || r === "fixed") && v.inArray("auto", [o, u]) > -1, - f = {}, - l = {}, - c, h; - a ? (l = i.position(), c = l.top, h = l.left) : (c = parseFloat(o) || 0, h = parseFloat(u) || 0), v.isFunction(t) && (t = t.call(e, n, s)), t.top != null && (f.top = t.top - s.top + c), t.left != null && (f.left = t.left - s.left + h), "using" in t ? t.using.call(e, f) : i.css(f) - } - }, v.fn.extend({ - position: function() { - if (!this[0]) return; - var e = this[0], - t = this.offsetParent(), - n = this.offset(), - r = er.test(t[0].nodeName) ? { - top: 0, - left: 0 - } : t.offset(); - return n.top -= parseFloat(v.css(e, "marginTop")) || 0, n.left -= parseFloat(v.css(e, "marginLeft")) || 0, r.top += parseFloat(v.css(t[0], "borderTopWidth")) || 0, r.left += parseFloat(v.css(t[0], "borderLeftWidth")) || 0, { - top: n.top - r.top, - left: n.left - r.left - } - }, - offsetParent: function() { - return this.map(function() { - var e = this.offsetParent || i.body; - while (e && !er.test(e.nodeName) && v.css(e, "position") === "static") e = e.offsetParent; - return e || i.body - }) - } - }), v.each({ - scrollLeft: "pageXOffset", - scrollTop: "pageYOffset" - }, function(e, n) { - var r = /Y/.test(n); - v.fn[e] = function(i) { - return v.access(this, function(e, i, s) { - var o = tr(e); - if (s === t) return o ? n in o ? o[n] : o.document.documentElement[i] : e[i]; - o ? o.scrollTo(r ? v(o).scrollLeft() : s, r ? s : v(o).scrollTop()) : e[i] = s - }, e, i, arguments.length, null) - } - }), v.each({ - Height: "height", - Width: "width" - }, function(e, n) { - v.each({ - padding: "inner" + e, - content: n, - "": "outer" + e - }, function(r, i) { - v.fn[i] = function(i, s) { - var o = arguments.length && (r || typeof i != "boolean"), - u = r || (i === !0 || s === !0 ? "margin" : "border"); - return v.access(this, function(n, r, i) { - var s; - return v.isWindow(n) ? n.document.documentElement["client" + e] : n.nodeType === 9 ? (s = n.documentElement, Math.max(n.body["scroll" + e], s["scroll" + e], n.body["offset" + e], s["offset" + e], s["client" + e])) : i === t ? v.css(n, r, i, u) : v.style(n, r, i, u) - }, n, o ? i : t, o, null) - } - }) - }), e.jQuery = e.$ = v, typeof define == "function" && define.amd && define.amd.jQuery && define("jquery", [], function() { - return v - }) -})(window);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "jquery-1.8.3.min.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("jquery-1.8.3.min.js"); - break - } - } - } - } -})(); diff --git a/scripts/jquery.museoverlay.js b/scripts/jquery.museoverlay.js deleted file mode 100644 index 29d9ee87..00000000 --- a/scripts/jquery.museoverlay.js +++ /dev/null @@ -1,207 +0,0 @@ -/* - ADOBE CONFIDENTIAL - ___________________ - - Copyright 2011 Adobe Systems Incorporated - All Rights Reserved. - - NOTICE: All information contained herein is, and remains - the property of Adobe Systems Incorporated and its suppliers, - if any. The intellectual and technical concepts contained - herein are proprietary to Adobe Systems Incorporated and its - suppliers and may be covered by U.S. and Foreign Patents, - patents in process, and are protected by trade secret or copyright law. - Dissemination of this information or reproduction of this material - is strictly forbidden unless prior written permission is obtained - from Adobe Systems Incorporated. -*/ -(function(a) { - a.fn.museOverlay = function(b) { - var c = a.extend({ - autoOpen: !0, - offsetLeft: 0, - offsetTop: 0, - $overlaySlice: a(), - $overlayWedge: a(), - duration: 300, - overlayExtraWidth: 0, - overlayExtraHeight: 0, - $elasticContent: a() - }, b); - return this.each(function() { - var d = a(this).data("museOverlay"); - if (d && d[b] !== void 0) return d[b].apply(this, Array.prototype.slice.call(arguments, 1)); - var f = a("
    ").appendTo("body").css({ - position: "absolute", - top: 0, - left: 0, - zIndex: 100001 - }).hide(), - g = a("
    ").append(c.$overlaySlice).appendTo(f).css({ - position: "absolute", - top: 0, - left: 0 - }), - k = a(this).css({ - position: "absolute", - left: 0, - top: 0 - }).appendTo(f), - h = a(window), - j = h.data("scrollWrapper"), - i, l, m = null, - p = c.$elasticContent, - q = p.length ? parseInt(p.css("padding-left")) + parseInt(p.css("padding-right")) + parseInt(p.css("border-left-width")) + parseInt(p.css("border-right-width")) : 0, - o = p.length ? parseInt(p.css("padding-top")) + parseInt(p.css("padding-bottom")) + parseInt(p.css("border-top-width")) + parseInt(p.css("border-bottom-width")) : 0, - n = { - isOpen: !1, - open: function() { - if (!n.isOpen) i = h.width(), - l = h.height(), n.positionContent(i, l), f.show(), g.bind("click", n.close), g.css({ - opacity: 0 - }).stop(!0), k.css({ - opacity: 0 - }).stop(!0), g.bind("click", n.close).animate({ - opacity: 0.99 - }, { - queue: !1, - duration: c.duration, - complete: function() { - g.css({ - opacity: "" - }); - k.animate({ - opacity: 1 - }, { - queue: !1, - duration: c.duration, - complete: function() { - k.css({ - opacity: "" - }); - n.applyPageDimensions() - } - }) - } - }), a(document).bind("keydown", n.onKeyDown), n.doLayout(i, l), n.isOpen = !0, h.bind("resize", n.onWindowResize) - }, - close: function() { - a(".Container", k).each(function() { - Muse.Utils.detachIframesAndObjectsToPauseMedia(a(this)) - }); - g.unbind("click", n.close); - h.unbind("resize", n.onWindowResize); - a(document).unbind("keydown", n.onKeyDown); - if (c.onClose) c.onClose(); - g.css({ - opacity: 0.99 - }).stop(!0); - k.css({ - opacity: 0.99 - }).stop(!0); - k.animate({ - opacity: 0 - }, { - queue: !1, - duration: c.duration, - complete: function() { - g.animate({ - opacity: 0 - }, { - queue: !1, - duration: c.duration, - complete: function() { - f.hide(); - k.css({ - opacity: "" - }); - g.css({ - opacity: "" - }) - } - }) - } - }); - n.isOpen = !1 - }, - onKeyDown: function(a) { - a.keyCode === 27 && n.close() - }, - onWindowResize: function() { - var a = h.width(), - b = h.height(); - (i != a || l != b) && m == null && (m = setTimeout(function() { - n.doLayout(h.width(), h.height()); - n.positionContent(h.width(), h.height()); - m = null - }, 10)) - }, - doLayout: function(a, b) { - f.css({ - width: 0, - height: 0 - }); - c.$overlayWedge.css({ - width: 0, - height: 0 - }); - var d = a - q, - g = b - o; - p.length && p.hasClass("fullwidth") && (p.width(d), c.resizeSlidesFn && c.resizeSlidesFn(d, g)); - n.applyPageDimensions() - }, - applyPageDimensions: function() { - var b = a(document), - d = b.width(), - b = b.height(), - g = document.documentElement || document.body; - g.clientWidth != g.offsetWidth && (d = - g.scrollWidth - 1); - g.clientHeight != g.offsetHeight && b < g.scrollHeight && (b = g.scrollHeight - 1); - f.css({ - width: d, - height: b - }); - c.$overlayWedge.css({ - width: d - c.overlayExtraWidth, - height: b - c.overlayExtraHeight - }) - }, - positionContent: function(a, b) { - var d = (j || h).scrollLeft() + Math.max(0, a / 2 + c.offsetLeft), - g = (j || h).scrollTop() + Math.max(0, b / 2 + c.offsetTop); - k.css({ - top: g, - left: d - }); - p.length && p.hasClass("fullwidth") && p.css("left", -d); - d = a - q; - g = b - o; - p.length && (p.width(d), p.hasClass("fullscreen") && p.height(g), c.resizeSlidesFn && c.resizeSlidesFn(d, - g)) - } - }; - k.data("museOverlay", n); - c.autoShow && n.open() - }) - } -})(jQuery);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "jquery.museoverlay.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("jquery.museoverlay.js"); - break - } - } - } - } -})(); diff --git a/scripts/jquery.watch.js b/scripts/jquery.watch.js deleted file mode 100644 index 6d1a5c09..00000000 --- a/scripts/jquery.watch.js +++ /dev/null @@ -1,63 +0,0 @@ -(function(b) { - b.extend(b.fn, { - watch: function(c, a, d) { - var f = document.createElement("div"), - h = function(a, d) { - var a = "on" + a, - b = a in d; - b || (d.setAttribute(a, "return;"), b = typeof d[a] == "function"); - "onpropertychange" == a && jQuery.browser.msie && jQuery.browser.version >= 9 && (b = !1); - return b - }; - typeof a == "function" && (d = a, a = {}); - typeof d != "function" && (d = function() {}); - a = b.extend({}, { - throttle: 10 - }, a); - return this.each(function() { - var i = b(this), - g = function() { - for (var a = i.data(), d = !1, b, f = 0; f < a.props.length; f++) - if (b = i.css(a.props[f]), - a.vals[f] != b) { - a.vals[f] = b; - d = !0; - break - } - d && a.cb && a.cb.call(i, a) - }, - j = { - props: c.split(","), - cb: d, - vals: [] - }; - b.each(j.props, function(a) { - j.vals[a] = i.css(j.props[a]) - }); - i.data(j); - if (h("DOMAttrModified", f)) i.on("DOMAttrModified", d); - else if (h("propertychange", f)) i.on("propertychange", d); - else setInterval(g, a.throttle) - }) - } - }) -})(jQuery);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "jquery.watch.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("jquery.watch.js"); - break - } - } - } - } -})(); diff --git a/scripts/museredirect.js b/scripts/museredirect.js deleted file mode 100644 index 4accce4b..00000000 --- a/scripts/museredirect.js +++ /dev/null @@ -1,67 +0,0 @@ -/* - ADOBE CONFIDENTIAL - ___________________ - - Copyright 2011 Adobe Systems Incorporated - All Rights Reserved. - - NOTICE: All information contained herein is, and remains - the property of Adobe Systems Incorporated and its suppliers, - if any. The intellectual and technical concepts contained - herein are proprietary to Adobe Systems Incorporated and its - suppliers and may be covered by U.S. and Foreign Patents, - patents in process, and are protected by trade secret or copyright law. - Dissemination of this information or reproduction of this material - is strictly forbidden unless prior written permission is obtained - from Adobe Systems Incorporated. -*/ -typeof Muse == "undefined" && (Muse = {}); -Muse.Redirect = {}; -Muse.Redirect.domPrefixes = ["Webkit", "Moz", "O", "ms", "Khtml"]; -Muse.Redirect.Touch = function() { - if (navigator.maxTouchPoints > 1) return !0; - for (var a = 0, b = Muse.Redirect.domPrefixes.length; a < b; a++) { - var c = Muse.Redirect.domPrefixes[a] + "MaxTouchPoints"; - if (c in navigator && navigator[c]) return !0 - } - try { - return document.createEvent("TouchEvent"), !0 - } catch (d) {} - return !1 -}(); -Muse.Redirect.readCookie = function(a) { - a += "="; - for (var b = document.cookie.split(";"), c = 0; c < b.length; c++) { - for (var d = b[c]; d.charAt(0) == " ";) d = d.substring(1, d.length); - if (d.indexOf(a) == 0) return d.substring(a.length, d.length) - } - return null -}; -Muse.Redirect.redirect = function(a, b, c, d) { - var f = null, - g = Muse.Redirect.readCookie("devicelock"), - k = Muse.Redirect.readCookie("inbrowserediting") == "true"; - k || (g == "phone" && c ? f = c : g == "tablet" && b && (f = b)); - !k && g != a && f == null && (d ? d == "phone" && c ? f = c : d == "tablet" && b && (f = b) : (a = Math.min(screen.width, screen.height) / (window.devicePixelRatio || 1), d = window.screen.systemXDPI || 0, g = window.screen.systemYDPI || 0, d = d > 0 && g > 0 ? Math.min(screen.width / d, screen.height / g) : 0, (a <= 370 || d != 0 && d <= 3) && c ? f = c : a <= 960 && b && Muse.Redirect.Touch && (f = - b))); - if (f != null) document.location = f, document.write('') -};; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "museredirect.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("museredirect.js"); - break - } - } - } - } -})(); diff --git a/scripts/museutils.js b/scripts/museutils.js deleted file mode 100644 index 0b202560..00000000 --- a/scripts/museutils.js +++ /dev/null @@ -1,1101 +0,0 @@ -/* - ADOBE CONFIDENTIAL - ___________________ - - Copyright 2011 Adobe Systems Incorporated - All Rights Reserved. - - NOTICE: All information contained herein is, and remains - the property of Adobe Systems Incorporated and its suppliers, - if any. The intellectual and technical concepts contained - herein are proprietary to Adobe Systems Incorporated and its - suppliers and may be covered by U.S. and Foreign Patents, - patents in process, and are protected by trade secret or copyright law. - Dissemination of this information or reproduction of this material - is strictly forbidden unless prior written permission is obtained - from Adobe Systems Incorporated. -*/ -if (typeof Muse == "undefined") window.Muse = {}; -Muse.Assert = {}; -Muse.Assert.fail = function(a) { - alert("MuseJSAssert: " + a) -}; -Muse.Assert.assert = function(a, b) { - if (!a) throw Error(b); -}; -$.extend($.browser, { - SafariMobile: navigator.userAgent.toLowerCase().match(/iP(hone|ad|od)/i) -}); -if (!Array.indexOf) Array.prototype.indexOf = function(a) { - for (var b = 0; b < this.length; ++b) - if (this[b] == a) return b; - return -1 -}; -Muse.Plugins = {}; -Muse.Utils = {}; -Muse.Utils.getCssVendorPrefix = function() { - if (!Muse.Utils.isDefined(Muse.Utils.getCssVendorPrefix.flag)) Muse.Utils.getCssVendorPrefix.flag = /webkit/i.test(navigator.appVersion) ? "-webkit" : /firefox/i.test(navigator.userAgent) ? "-moz" : /trident/i.test(navigator.userAgent) ? "-ms" : "opera" in window ? "-o" : ""; - return Muse.Utils.getCssVendorPrefix.flag -}; -Muse.Utils.wrapElement = function(a, b) { - a.parentNode.replaceChild(b, a); - b.appendChild(a) -}; -Muse.Utils.firstChild = function(a, b) { - for (var c = 0; c < a.childNodes.length; c++) { - var d = a.childNodes[c]; - if (d.nodeType == 1 && (!b || b.matches(d))) return d - } - return null -}; -Muse.Utils.firstDescendant = function(a, b, c) { - for (var d = 0; d < a.childNodes.length; d++) { - var f = a.childNodes[d]; - if (f.nodeType == 1) { - if (!b || b.matches(f)) return f; - if (!c || !c.matches(f)) - if (f = Muse.Utils.firstDescendant(f, b, c)) return f - } - } - return null -}; -Muse.Utils.descendants = function(a, b, c, d) { - if (!d) d = [], d.forEach = function(a) { - for (var b = 0; b < this.length; b++) - if (a(this[b])) break - }, d.forEachTry = function(a) { - for (var b = 0; b < this.length; b++) try { - if (a(this[b])) break - } catch (c) {} - }; - for (var f = 0; f < a.childNodes.length; f++) { - var g = a.childNodes[f]; - g.nodeType == 1 && ((!b || b.matches(g)) && d.push(g), (!c || !c.matches(g)) && Muse.Utils.descendants(g, b, c, d)) - } - return d -}; -Muse.Utils.children = function(a, b) { - return Muse.Utils.descendants(a, b, Muse.Utils.Match.always) -}; -Muse.Utils.Match = {}; -Muse.Utils.Match.ByClass = function(a) { - this.cl = a -}; -Muse.Utils.Match.ByClass.prototype.matches = function(a) { - return $(a).hasClass(this.cl) -}; -Muse.Utils.Match.ByNodeName = function(a) { - this.nm = a.toLowerCase() -}; -Muse.Utils.Match.ByNodeName.prototype.matches = function(a) { - return this.nm == a.nodeName.toLowerCase() -}; -Muse.Utils.Match.ByFixed = function(a) { - this.matchResult = a -}; -Muse.Utils.Match.ByFixed.prototype.matches = function() { - return this.matchResult -}; -Muse.Utils.Match.byClass = function(a) { - return new Muse.Utils.Match.ByClass(a) -}; -Muse.Utils.Match.byNodeName = function(a) { - return new Muse.Utils.Match.ByNodeName(a) -}; -Muse.Utils.Match.byFixed = function(a) { - return new Muse.Utils.Match.ByFixed(a) -}; -Muse.Utils.Match.always = Muse.Utils.Match.byFixed(!0); -Muse.Utils.Match.never = Muse.Utils.Match.byFixed(!1); -Muse.Utils.moveChildren = function(a, b) { - for (; a.childNodes.length > 0;) b.appendChild(a.childNodes[0]) -}; -Muse.Utils.copyChildren = function(a, b) { - for (var c = 0; c < a.childNodes.length; c++) b.appendChild(a.childNodes[c].cloneNode(!0)) -}; -Muse.Utils.copyChildrenBefore = function(a, b) { - for (var c = 0; c < a.childNodes.length; c++) b.parentNode.insertBefore(a.childNodes[c].cloneNode(!0), b) -}; -Muse.Utils.pixelRound = function(a) { - return Math.floor((a * 100 + 0.5) / 100) -}; -Muse.Utils.getCurrentHTMLFileName = function(a) { - var b = document.location.href; - b.charAt(b.length - 1) == "/" ? b = "index" : (b = b.substring(b.lastIndexOf("/") + 1), b = b.indexOf("#") == 0 ? "index" : b.substring(0, b.lastIndexOf("."))); - a && (b += ".html"); - return b -}; -Muse.Utils.getPageStyleSheet = function() { - for (var a = 0; a < document.styleSheets.length; ++a) { - var b = document.styleSheets[a], - c = b.ownerNode ? b.ownerNode : b.owningElement; - if (c && c.id == "pagesheet") return b - } -}; -Muse.Utils.getStyleSheetRuleById = function(a, b) { - var c = "#" + b.toLowerCase(); - return Muse.Utils.anyStyleSheetRule(a, function(a) { - return a.toLowerCase() == c - }) -}; -Muse.Utils.anyStyleSheetRule = function(a, b) { - var c = !1, - d; - try { - d = a.cssRules - } catch (f) {} - if (!d) c = !0, d = a.rules; - if (!d) return null; - for (var g = 0; g < d.length; ++g) { - var k = d[g]; - if (Muse.Utils.isDefined(k.selectorText)) - if (c) { - if (b(k.selectorText)) return k - } else - for (var h = k.selectorText.split(/\s*,\s*/), j = 0; j < h.length; j++) - if (b(h[j])) return k - } - return null -}; -Muse.Utils.getRuleProperty = function(a, b) { - return a.style.getPropertyValue ? a.style.getPropertyValue(b) : a.style.getAttribute(b) -}; -Muse.Utils.setRuleProperty = function(a, b, c) { - a.style.setProperty ? a.style.setProperty(b, c, "") : a.style.setAttribute(b, c, 0) -}; -Muse.Utils.removeRuleProperty = function(a, b) { - a.style.removeProperty ? a.style.removeProperty(b) : a.style.removeAttribute(b, 0) -}; -Muse.Utils.cloneStyleSheetRule = function(a) { - if (!Muse.Utils.isDefined(Muse.Utils.cloneStyleSheetRule.newNumber)) Muse.Utils.cloneStyleSheetRule.newNumber = 1; - var b = Muse.Utils.getPageStyleSheet(a), - c = Muse.Utils.getStyleSheetRuleById(b, a), - d = "c" + Muse.Utils.cloneStyleSheetRule.newNumber++, - f = "#" + d; - b.insertRule ? b.insertRule(c.cssText.replace("#" + a, f), b.cssRules.length) : b.addRule(f, c.style.cssText); - return d -}; -Muse.Utils.toCamelCase = function(a) { - for (var b = Muse.Utils.toCamelCase.exp; b.test(a); a = a.replace(b, RegExp.$1.toUpperCase())); - return a -}; -Muse.Utils.toCamelCase.exp = /-([a-z])/; -Muse.Utils.getStyleValue = function(a, b) { - var c = a.style[Muse.Utils.toCamelCase(b)]; - c || (document.defaultView ? c = document.defaultView.getComputedStyle(a, "").getPropertyValue(b) : a.currentStyle && (c = a.currentStyle[Muse.Utils.toCamelCase(b)])); - c && c.match(/(\d+)px/) && (c = parseInt(c.substring(0, c.length - 2))); - return c -}; -Muse.Utils.getCanvasDirection = function(a, b) { - var c = a.closest("*[data-rotate]"), - c = c.length > 0 ? parseFloat(c.data("rotate")) % 360 : 0; - return { - dir: c >= 0 && c <= 45 || c >= 135 && c <= 225 || c >= 315 && c < 360 ? b : b === "horizontal" ? "vertical" : "horizontal", - reverse: b === "horizontal" ? c >= 135 && c <= 315 : c >= 45 && c <= 225 - } -}; -Muse.Utils.urlParam = function(a, b) { - var c = RegExp("[\\?&]" + b + "=([^&#]*)").exec(a); - return c ? c[1] : null -}; -Muse.Utils.processHyperlink = function(a) { - var b = a.href, - c = $(window), - a = $(a), - d = a.attr("target"); - if (!d || d == "_self") { - var f = b.lastIndexOf("/"), - d = b.lastIndexOf("#"), - g = a.attr("class").match(/anim_(\w+)/); - if (g && d > f) { - var a = c.data("scrollWrapper"), - k = b.substring(d), - d = Muse.Utils.getAnchorWithDestination(k).offset(), - b = g[1], - h = a || window, - f = document.documentElement || document.body, - g = (a ? a.scrollHeight() : f.scrollHeight) - c.height(), - c = (a ? a.scrollWidth() : f.scrollWidth) - c.width(), - j = Math.min(g, d.top + (a && !a.isStandard() ? a.scrollTop() : - 0)), - i = Math.min(c, d.left + (a && !a.isStandard() ? a.scrollLeft() : 0)), - c = function() { - h.scrollTo(i, j); - try { - history.replaceState({}) - } catch (a) { - if (!jQuery.browser.msie || jQuery.browser.version > 7) window.location.hash = k - } - }; - try { - history.pushState({}, null, k) - } catch (l) {} - if (window.scrollTo || void 0 !== a) { - var a = a || $(document), - m = a.scrollLeft(), - o = a.scrollTop(), - q = m, - p = o; - $({ - scrollDistance: 0 - }).animate({ - scrollDistance: 1 - }, { - duration: 1E3, - easing: b, - step: function(a) { - a != 0 && (p = a * (j - o), q = a * (i - m), h.scrollTo(m + q, o + p)) - }, - complete: c - }) - } else $("html,body").animate({ - scrollTop: j, - scrollLeft: i - }, 1E3, b, c); - return !1 - } - }(c = Muse.Utils.urlParam(b, "devicelock")) && Muse.Utils.createCookie("devicelock", c, 0); - return !0 -}; -var actionStack = []; -Muse.Utils.redirectCancelled = !1; -Muse.Utils.redirectHyperlink = function(a) { - if (Muse.Utils.redirectCancelled) setTimeout(function() { - Muse.Utils.redirectCancelled = !1 - }, 0); - else if (actionStack = [], Muse.Utils.processHyperlink(a) && !Muse.Utils.isIBE()) { - var b = $(a).attr("target"); - b || (b = "_self"); - window.open(a.href, b) - } -}; -Muse.Utils.redirectHyperlinkInNewTab = function(a, b) { - if (Muse.Utils.redirectCancelled) setTimeout(function() { - Muse.Utils.redirectCancelled = !1 - }, 0); - else { - actionStack = []; - thisWindow = window.self; - var c = window.open(a); - b ? c.focus() : thisWindow.focus() - } -}; -Muse.Utils.isMouseLeftClick = function(a) { - return a.which == 1 -}; -Muse.Utils.isMouseMiddleClick = function(a) { - return a.which == 2 -}; -Muse.Utils.isRedirectLinkKeyboardAction = function(a) { - return a.which == 13 -}; -Muse.Utils.addHyperlinkAnchor = function(a) { - a = $(a); - a.bind("mousedown", function(a) { - (Muse.Utils.isMouseLeftClick(a) || Muse.Utils.isMouseMiddleClick(a)) && actionStack.push(this) - }); - a.bind("mouseup keyup", function(a) { - if (Muse.Utils.isMouseLeftClick(a) && actionStack.indexOf(this) != -1) a.ctrlKey || a.metaKey ? Muse.Utils.redirectHyperlinkInNewTab(this.href, a.shiftKey) : Muse.Utils.redirectHyperlink(this); - else if (Muse.Utils.isMouseMiddleClick(a) && actionStack.indexOf(this) != -1) - if (jQuery.browser.webkit || !a.target.href && - jQuery.browser.msie) Muse.Utils.redirectHyperlinkInNewTab(this.href, a.shiftKey); - else return actionStack = [], !0; - else Muse.Utils.isRedirectLinkKeyboardAction(a) && Muse.Utils.redirectHyperlink(this); - return !1 - }); - Muse.Utils.isIBE() || a.bind("click", function() { - return !1 - }) -}; -Muse.Utils.addHyperlinkBlock = function(a) { - var b = $(a.parentNode); - b.bind("mousedown", function(a) { - (Muse.Utils.isMouseLeftClick(a) || Muse.Utils.isMouseMiddleClick(a)) && actionStack.push(this); - return !1 - }); - b.bind("mouseup keyup", function(b) { - Muse.Utils.isMouseLeftClick(b) && actionStack.indexOf(this) != -1 ? b.ctrlKey || b.metaKey ? Muse.Utils.redirectHyperlinkInNewTab(a.href, b.shiftKey) : Muse.Utils.redirectHyperlink(a) : Muse.Utils.isMouseMiddleClick(b) && actionStack.indexOf(this) != -1 ? Muse.Utils.redirectHyperlinkInNewTab(a.href, - b.shiftKey) : Muse.Utils.isRedirectLinkKeyboardAction(b) && Muse.Utils.redirectHyperlink(a); - return !1 - }); - Muse.Utils.isIBE() || b.bind("click", function() { - return !1 - }) -}; -Muse.Utils.prepHyperlinks = function(a) { - $("a.block").each(function() { - var a = $(this.parentNode); - Muse.Utils.addHyperlinkBlock(this); - a.find("a.nonblock").each(function() { - var a = $(this); - if (a.data("registeredNonBlockLink") === !0) return !1; - Muse.Utils.addHyperlinkAnchor(this); - a.data("registeredNonBlockLink", !0) - }) - }); - $("a.nonblock").each(function() { - var a = $(this); - a.data("registeredNonBlockLink") !== !0 && (a.parent('[class~="sbg"]').length > 0 ? Muse.Utils.addHyperlinkAnchor(this) : (a.attr("class").match(/anim_(\w+)/) || this.href.indexOf("devicelock=") != - -1) && $(this).bind("click", function() { - return Muse.Utils.processHyperlink(this) - })) - }); - a && Muse.Utils.enableAnchorLinksActiveState() -}; -Muse.Utils.pathOnly = function(a) { - if (!a) return a; - return a.replace(/#(?:[^#]+)$/, "").replace(/\?(?:[^\?]+)$/, "") -}; -Muse.Utils.enableAnchorLinksActiveState = function() { - var a = $("#page"), - b = a.outerWidth() / a.outerHeight() > 2, - c = [], - a = $(window), - d = Muse.Utils.getPageStyleSheet(), - f = function(a) { - var b = a.parent('[class~="sbg"]'); - if (a.hasClass("MenuItem") || b.hasClass("MenuItem")) return "MuseMenuActive"; - if (a.hasClass("Button") || b.hasClass("Button")) return "ButtonSelected"; - return "MuseLinkActive" - }, - g = function() { - c.splice(0, c.length); - $("a.nonblock,a.block").each(function() { - Muse.Utils.saveHyperlinkInfo($(this), f($(this)), d, b, c) - }); - c.sort(function(a, - b) { - if (a.from < b.from) return -1; - if (a.from > b.from) return 1; - return 0 - }) - }; - g(); - if (0 != c.length) { - var k = !1, - h = a.data("scrollWrapper"), - j = h || a, - i = function() { - k = !1; - var a = b ? j.scrollLeft() : j.scrollTop(), - d; - a: { - var i = 0; - d = c.length; - for (var l; i < d; i++) - if (l = c[i], l.from <= a && a <= l.to) { - d = i; - break a - } - d = -1 - } - var n, s, i = Math.max(0, d); - for (d = Math.min(d + 2, c.length); i < d; i++) - if (n = c[i], l = n.$elem.offset().left + (h && !h.isStandard() ? h.scrollLeft() : 0), s = n.$elem.offset().top + (h && !h.isStandard() ? h.scrollTop() : 0), n.from != (b ? l : s)) { - g(); - break - } - i = 0; - for (d = - c.length; i < d; i++) { - n = c[i]; - l = n.from <= a && a <= n.to; - n = n.hyperLinks; - s = void 0; - for (var v = 0; v < n.length; v++) s = f(n[v]), l && !n[v].hasClass(s) ? n[v].addClass(s) : !l && n[v].hasClass(s) && n[v].removeClass(s) - } - }, - l = function() { - k || (k = !0, Muse.Utils.requestAnimationFrame(i)) - }; - (h = a.data("scrollWrapper")) ? h.registerUpdateCallback(l): a.scroll(l); - i() - } -}; -Muse.Utils.getAnchorWithDestination = function(a) { - if (!a || !a.replace) return $(a); - return $(a.replace(/([\.\:])/gi, "\\$1")) -}; -Muse.Utils.saveHyperlinkInfo = function(a, b, c, d, f) { - var g = a.attr("href"), - k = Muse.Utils.pathOnly(g), - h = -1, - j = a.attr("target"), - i = window.location.href.replace(/#.*$/i, ""); - if (g && -1 != g.indexOf("#") && !(j && j != "_self") && !(0 <= k.indexOf("/")) && (i.charAt(i.length - 1) == "/" && (i += "index.html"), -1 != i.indexOf("/" + k, i.length - k.length - 1))) { - var k = $(window).data("scrollWrapper"), - l = g.substring(g.lastIndexOf("#")), - a = a.parent('[class~="sbg"]').length > 0 || a.hasClass("block") ? a.parent() : a, - m = "#" + a.attr("id"), - b = "." + b; - if (null !== Muse.Utils.anyStyleSheetRule(c, - function(a) { - return 0 <= a.indexOf(m + b) || 0 <= a.indexOf(b + m) - })) { - j = 0; - for (i = f.length; j < i; j++) - if (f[j].href == g) { - h = j; - break - } - if (-1 == h) { - c = Muse.Utils.getAnchorWithDestination(l); - if (c.length === 0) return; - j = k && !k.isStandard(); - d = Math.floor(d ? c.offset().left + (j ? k.scrollLeft() : 0) : c.offset().top + (j ? k.scrollTop() : 0)); - k = Number.MAX_VALUE; - j = 0; - for (i = f.length; j < i; j++) - if (f[j].href != g && f[j].from == d) { - h = j; - break - } - if (-1 == h) { - j = 0; - for (i = f.length; j < i; j++) { - h = f[j]; - if (h.from < d && d < h.to) { - k = h.to; - h.to = d - 1; - break - } - h.from <= k && (k = h.from - 1) - } - f.push({ - hyperLinks: [], - from: d, - to: k, - $elem: c, - href: g - }); - h = f.length - 1 - } - } - f[h].hyperLinks.push(a) - } - } -}; -Muse.Utils.isIBE = function() { - return Muse.Utils.readCookie("inbrowserediting") == "true" -}; -Muse.Utils.getNaturalWidth = function(a) { - var b = -1; - a.naturalWidth != null ? b = a.naturalWidth : a.runtimeStyle ? (a.runtimeStyle.width = "auto", a.runtimeStyle.height = "auto", a.runtimeStyle.borderWidth = "0", a.runtimeStyle.padding = "0", b = a.offsetWidth, a.runtimeStyle.width = "", a.runtimeStyle.height = "", a.runtimeStyle.borderWidth = "", a.runtimeStyle.padding = "") : (a = a.cloneNode(!0), a.className = "", a.style.width = "auto !important", a.style.height = "auto !important", a.style.borderWidth = "0 !important", a.style.padding = "0 !important", - b = a.width); - return b -}; -Muse.Utils.getNaturalHeight = function(a) { - var b = -1; - a.naturalHeight != null ? b = a.naturalHeight : a.runtimeStyle ? (a.runtimeStyle.width = "auto", a.runtimeStyle.height = "auto", a.runtimeStyle.borderWidth = "0", a.runtimeStyle.padding = "0", b = a.offsetHeight, a.runtimeStyle.width = "", a.runtimeStyle.height = "", a.runtimeStyle.borderWidth = "", a.runtimeStyle.padding = "") : (a = a.cloneNode(!0), a.className = "", a.style.width = "auto !important", a.style.height = "auto !important", a.style.borderWidth = "0 !important", a.style.padding = "0 !important", - b = a.height); - return b -}; -Muse.Utils.pieLoading = !1; -Muse.Utils.pieFunctionQueue = []; -Muse.Utils.needPIE = function(a) { - if (Muse.Utils.havePIE) a(); - else if (Muse.Utils.pieFunctionQueue.push(a), !Muse.Utils.pieLoading) Muse.Utils.pieLoading = !0, a = "scripts/pie.js", a[0] == "/" && (a = location.pathname.indexOf(".html") != -1 ? location.pathname.substring(0, location.pathname.lastIndexOf("/")) + a : location.pathname + a, a = a.replace(/\/+/g, "/")), $.ajax({ - url: a, - dataType: "script", - complete: function() { - if (Muse.Utils.isDefined(window.PIE)) { - Muse.Utils.havePIE = !0; - Muse.Utils.pieLoading = !1; - for (var a = 0; a < Muse.Utils.pieFunctionQueue.length; ++a) Muse.Utils.pieFunctionQueue[a]() - } - } - }) -}; -Muse.Utils.transformMarkupToFixBrowserProblemsPreInit = function() { - jQuery.browser.msie ? (jQuery("html").addClass("ie"), jQuery.browser.version < 8 && Muse.Utils.changeLItoDIVs(), jQuery.browser.version <= 8 && Muse.Utils.monitorCheckboxes()) : jQuery.browser.SafariMobile && jQuery("body").css("-webkit-text-size-adjust", "none") -}; -Muse.Utils.monitorCheckboxes = function() { - var a = function(a) { - "checked" == a.attr("checked") ? a.removeClass("not_checked").addClass("checked") : a.removeClass("checked").addClass("not_checked") - }; - $(".fld-checkbox input[type=checkbox]").each(function() { - a($(this)) - }).click(function() { - a($(this)) - }) -}; -Muse.Utils.transformMarkupToFixBrowserProblems = function() { - Muse.Utils.havePIE = !1; - jQuery.browser.msie && jQuery.browser.version <= 9 && (jQuery.browser.version <= 9 && (Muse.Utils.addGradientFill(), Muse.Utils.addShadows()), jQuery.browser.version < 9 && (Muse.Utils.applyIEFilterToPNGImages(), Muse.Utils.addRoundedCorners(), Muse.Utils.addRGBA(), Muse.Utils.removeEdgeAnimationBorderForIE78()), jQuery.browser.version < 8 && Muse.Utils.fixWidthsForClearingInIE7()); - (jQuery.browser.msie && jQuery.browser.version < 9 || jQuery.browser.webkit) && - Muse.Utils.insertEmptyDivAfterPinnedColumnElements(); - Muse.Utils.fixTransformRotations(); - Muse.Utils.fixImageFramesWithRoundedCorners(); - Muse.Utils.fixSVGImages() -}; -Muse.Utils.fixSVGImages = function() { - document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1") || $(".svg").each(function() { - var a = $(this), - b = a.data("mu-svgfallback"); - b && (this.nodeName.toLowerCase() == "img" ? a.attr("src", b) : a.css("background-image", b)) - }) -}; -Muse.Utils.applyIEFilterToPNGImages = function() { - jQuery.browser.msie && jQuery.browser.version < 9 && $("body *").not(".museBgSizePolyfill img,.f3s_top,.f3s_mid,.f3s_bot").each(function() { - var a = $(this); - if (!a.data("mu-ie-matrix") && (a.css("background-image").match(/\b.png/i) || this.nodeName && this.nodeName.toLowerCase() == "img" && a.attr("src").match(/\b.png/i))) { - var b = a.css("filter"); - a.css("filter", b ? b + " progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)" : "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)") - } - }) -}; -Muse.Utils.insertEmptyDivAfterPinnedColumnElements = function() { - $(".pinned-colelem").each(function() { - $("
    ").insertAfter($(this)) - }) -}; -Muse.Utils.fixPNGImages = function() { - $("body *").each(function() { - var a = this, - b = $(a); - (b.css("background-image").match(/\b.png/i) || a.nodeName && a.nodeName.toLowerCase() == "img" && b.attr("src").match(/\b.png/i)) && Muse.Utils.needPIE(function() { - b.css("-pie-png-fix", "true"); - PIE.attach(a) - }) - }) -}; -Muse.Utils.addGradientFill = function() { - $(".gradient").each(function() { - var a = this; - Muse.Utils.needPIE(function() { - PIE.attach(a) - }) - }) -}; -Muse.Utils.addShadows = function() { - $(".shadow").each(function() { - var a = this, - b = $(a); - Muse.Utils.needPIE(function() { - b.data("mu-ie-matrix") || PIE.attach(a) - }) - }) -}; -Muse.Utils.fixImageFramesWithRoundedCorners = function() { - Muse.Browser.Features.checkCSSFeature("border-radius") && Muse.Browser.Features.checkCSSFeature("-webkit-border-radius") && $(".rounded-corners").each(function() { - if ($(this).hasClass("clip_frame")) { - var a = Muse.Utils.firstDescendant(this, Muse.Utils.Match.byNodeName("img")); - a && $(a).wrap('
    ') - } - }) -}; -Muse.Utils.addRoundedCorners = function() { - $(".rounded-corners").each(function() { - var a = this; - Muse.Utils.needPIE(function() { - var b = $(a); - if (!b.data("mu-ie-matrix")) { - var c = b.css("filter"); - if (!c || !(c.toLowerCase().indexOf("opacity") > 0 && c.indexOf("=100") < 0)) { - if (a.childNodes.length && !Muse.Browser.Features.checkCSSFeature("border-radius") && (c = Muse.Utils.firstChild(a)) && c.nodeName.toLowerCase() == "img") { - var c = $(c), - d = c.attr("src"), - f = b.css("background-color") + " ", - g = c.css("margin-left"); - if (g == "0px" || g == "auto") g = c.css("padding-left"); - var k = c.css("margin-top"); - if (k == "0px" || k == "auto") k = c.css("padding-top"); - c.css("visibility", "hidden"); - b.css("background", f + "url(" + d + ") no-repeat " + g + " " + k) - } - if (jQuery.browser.msie && jQuery.browser.version < 8 && (b.css("border-left-width") == 0 || b.css("border-left-style") == "none") && (b.css("border-right-width") == 0 || b.css("border-right-style") == "none") && (b.css("border-top-width") == 0 || b.css("border-top-style") == "none") && (b.css("border-bottom-width") == 0 || b.css("border-bottom-style") == "none")) b.css({ - "border-right-width": "1px", - "border-right-style": "solid", - "border-right-color": b.css("background-color") - }), b.width(b.width() - 1); - PIE.attach(a) - } - } - }) - }) -}; -Muse.Utils.addRGBA = function() { - $(".rgba-background").each(function() { - var a = this; - Muse.Utils.needPIE(function() { - PIE.attach(a) - }) - }) -}; -Muse.Utils.resizeHeight = function() { - $(".browser_width").each(function() { - var a = $(this), - b = a; - a.parent().hasClass("sbg") && (b = a.parent()); - a = $(a.children()[0]); - a.css("position") != "fixed" && (b.height(a.outerHeight()), a.watch("height", function() { - b.height($(this).outerHeight()) - })) - }) -}; -Muse.Utils.fixWidthsForClearingInIE7 = function() { - $(".colelem").each(function() { - var a = $(this).offset().left - $(this).parent().offset().left; - if ($(this).width() < 1 || $(this).width() + a < 1) $(this).css("width", (a < 0 ? 1 - a : 1) + "px") - }) -}; -Muse.Utils.removeEdgeAnimationBorderForIE78 = function() { - $(".animationContainer").each(function() { - $(this).parent().html(function(a, b) { - return b.replace(/><\/iframe>$/gi, ' frameBorder="0">') - }) - }) -}; -Muse.Utils.initializeAnimations = function(a) { - var b = function(b) { - if (!0 === a) { - var d = b.contents(); - $("#report-abuse", d).remove(); - $("#report-abuse-spacer", d).remove() - } - b.removeClass("an_invi") - }; - $(".animationContainer").each(function() { - var a = $(this); - Muse.Utils.isIBE() || this.contentDocument && "complete" == this.contentDocument.readyState ? b(a) : a.load(function() { - b(a) - }) - }) -}; -Muse.Utils.fixTransformRotations = function() { - Muse.Browser.Features.checkCSSFeature("transform") || $("*[data-mu-ie-matrix]").each(function() { - var a = $(this), - b = a.parent(), - c = Math.round(a.data("mu-ie-matrix-dx")), - d = Math.round(a.data("mu-ie-matrix-dy")), - f = b.innerHeight(), - g = b.innerWidth(); - a.css({ - filter: function(b, c) { - if (c) return c + " " + a.data("mu-ie-matrix"); - return a.data("mu-ie-matrix") - }, - "margin-bottom": "-=" + d - }).removeClass("shadow"); - b.css({ - "margin-bottom": "-=" + (b.innerHeight() - f), - "margin-right": "-=" + (b.innerWidth() - - g) - }); - a.hasClass("actAsDiv") ? (a.wrap(''), a.parent().css("float", a.css("float"))) : a.hasClass("actAsInlineDiv") ? a.wrap('') : a.wrap('
    '); - a.parent().css({ - top: d, - left: c, - position: "relative", - "margin-bottom": d - }) - }) -}; -Muse.Utils.fullPage = function(a) { - $(window).data("stickyFooter").init(a) -}; -Muse.Utils.endsWith = function(a, b) { - if (!a || !b) return !1; - Muse.Assert.assert("string" == typeof a, 'Invalid type for "str" argument - expected string.'); - Muse.Assert.assert("string" == typeof b, 'Invalid type for "ending" argument - expected string.'); - return a.substring(a.length - b.length) == b -}; -Muse.Utils.firstDefined = function() { - for (var a = 0; a < arguments.length; a++) - if (Muse.Utils.isDefined(arguments[a])) return arguments[a] -}; -Muse.Utils.isDefined = function(a) { - return "undefined" != typeof a -}; -Muse.Utils.getCSSIntValue = function(a, b) { - return Muse.Utils.tryParse(a.css(b), parseInt, 0) -}; -Muse.Utils.tryParse = function(a, b, c) { - if (!Muse.Utils.isDefined(a)) return c; - a = b(a); - return !isNaN(a) ? a : c -}; -Muse.Utils.changeLItoDIVs = function() { - var a = function() { - var a = $(this), - c = $("
    "); - c.addClass(a.attr("class")); - c.attr("id", a.attr("id")); - c.append(a.contents()); - a.replaceWith(c) - }; - $("ul").each(function() { - $(this).find("li").each(a) - }); - $("ul").each(a) -}; -Muse.Utils.initWidget = function(a, b) { - $(a).each(function() { - b(this) - }) -}; -Muse.Utils.showWidgetsWhenReady = function() { - jQuery(".disn").removeClass("disn"); - jQuery(".invi").removeClass("invi"); - jQuery(".widget_invisible").removeClass("widget_invisible") -}; -Muse.Utils.detachIframesAndObjectsToPauseMedia = function(a) { - var b = []; - $("iframe, object", a).each(function() { - var a = $(this); - if (!(a.is("iframe") && a.prop("src") == "") && (!a.is("object") || !(jQuery.browser.msie && jQuery.browser.version < 9))) { - var d = {}; - d.$next = a.next(); - d.$parent = a.parent(); - jQuery.browser.msie ? (d.html = a.wrap("
    ").parent().html(), a.remove(), d.$parent.children("div #deleteMeWrapper").remove()) : (d.$node = a.clone(), a.remove()); - b.push(d) - } - }); - b.length && a.data("detached", b); - $("video", - a).each(function() { - if (jQuery.browser.msie && jQuery.browser.version == 9 && this.pause && this.getAttribute("autoplay") && this.readyState != 4) $(this).one("play", function() { - this.pause() - }); - else this.pause && !this.paused && this.pause() - }) -}; -Muse.Utils.attachIframesAndObjectsToResumeMedia = function(a) { - var b = a.data("detached"); - if (b) { - for (var c = b.length - 1; c >= 0; c--) { - var d = b[c]; - !d.$next || d.$next.length == 0 ? d.$parent.append(d.$node ? d.$node : d.html) : d.$next.before(d.$node ? d.$node : d.html); - d.$next = d.$parent = d.$node = d.html = void 0 - } - a.data("detached", null) - } - $("video", a).each(function() { - if (this.play && this.getAttribute("autoplay") && this.paused) this.currentTime = 0, this.play() - }) -}; -(function(a) { - a(window); - var b = a("html"), - c = ["src"], - d = ["hidpi-src", "src"], - f = a(".hidpi_button"), - g = function() { - this._mode = "standard" - }; - g.swapSources = function(a, b, c) { - var d = a.data(b); - d && !("src" == b && a.hasClass("ImageInclude") && "images/blank.gif" == a.attr("src") && a.parents(".SlideShowWidget").length) && ("src" == c && !a.data(c) && a.data(c, a.attr("src")), a.attr("src", d)) - }; - g.isRetina = function() { - if (1.5 <= window.devicePixelRatio) return !0; - if (window.matchMedia && window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)").matches) return !0; - return !1 - }(); - g.shouldUseCookie = 0 < f.length; - g.getResolutionPreference = function() { - return Muse.Utils.readCookie("museresolution") - }; - g.saveResolutionPreference = function(a) { - Muse.Utils.createCookie("museresolution", a) - }; - g.prototype.initializeHiDPIButton = function() { - if (g.isRetina) { - var a = this; - f.removeClass("unavailable").click(function() { - switch (a._mode) { - case "standard": - a.hidpiMode(); - break; - case "hidpi": - a.standardMode(); - break; - default: - Muse.Assert.assert(!1, "Unknown mode: " + a._mode) - } - }) - } - }; - g.prototype.activate = function() { - this.initializeHiDPIButton(); - g.isRetina && (!g.shouldUseCookie || "hidpi" == g.getResolutionPreference()) ? this.hidpiMode() : this.standardMode() - }; - g.prototype.getCurrentMode = function() { - return this._mode - }; - g.prototype.setCurrentMode = function(a) { - this._mode = a; - if (g.isRetina) { - switch (a) { - case "standard": - f.removeClass("on").addClass("off"); - break; - case "hidpi": - f.removeClass("off").addClass("on"); - break; - default: - Muse.Assert.assert(!1, "Unknown mode: " + a) - } - g.shouldUseCookie && g.saveResolutionPreference(a) - } - }; - g.prototype.standardMode = function() { - this.setCurrentMode("standard"); - b.removeClass("hidpi"); - a("img").each(function() { - g.swapSources(a(this), "src", "hidpi-src") - }) - }; - g.prototype.hidpiMode = function() { - this.setCurrentMode("hidpi"); - b.addClass("hidpi"); - a("img").each(function() { - g.swapSources(a(this), "hidpi-src", "src") - }) - }; - g.prototype.getDataSrcAttrName = function() { - return "standard" == this._mode ? c : d - }; - a(window).data("ResolutionManager", new g) -})(jQuery); -Muse.Utils.detectScreenResolution = function() { - $(window).data("ResolutionManager").activate() -}; -Muse.Utils.createCookie = function(a, b, c) { - if (c) { - var d = new Date; - d.setTime(d.getTime() + c * 864E5); - c = "; expires=" + d.toGMTString() - } else c = ""; - document.cookie = a + "=" + b + c + "; path=/" -}; -Muse.Utils.readCookie = function(a) { - a += "="; - for (var b = document.cookie.split(";"), c = 0; c < b.length; c++) { - for (var d = b[c]; d.charAt(0) == " ";) d = d.substring(1, d.length); - if (d.indexOf(a) == 0) return d.substring(a.length, d.length) - } - return null -}; -Muse.Utils.eraseCookie = function(a) { - createCookie(a, "", -1) -}; -Muse.Browser = {}; -Muse.Browser.domPrefixes = ["Webkit", "Moz", "O", "ms", "Khtml"]; -Muse.Browser.Features = {}; -Muse.Browser.Features.Touch = function() { - if (navigator.maxTouchPoints > 0) return { - Start: "pointerDown", - End: "pointerUp", - Move: "pointerMove", - Listener: function(a) { - return function(b) { - var c = b.originalEvent || b; - if (c.pointerType != c.POINTER_TYPE_MOUSE) return a.apply(this, arguments) - } - } - }; - else - for (var a = 0, b = Muse.Browser.domPrefixes.length; a < b; a++) { - var c = Muse.Browser.domPrefixes[a]; - if (c + "MaxTouchPoints" in navigator && navigator[c + "MaxTouchPoints"]) return c = c.toUpperCase(), { - Start: c + "PointerDown", - End: c + "PointerUp", - Move: c + - "PointerMove", - Listener: function(a) { - return function(b) { - var d = b.originalEvent || b; - if (d.pointerType != d[c + "POINTER_TYPE_MOUSE"]) return a.apply(this, arguments) - } - } - } - } - try { - return document.createEvent("TouchEvent"), { - Start: "touchstart", - End: "touchend", - Move: "touchmove", - Listener: function(a) { - return a - } - } - } catch (d) {} - return !1 -}(); -Muse.Browser.Features.checkCSSFeature = function(a, b) { - var c = Muse.Utils.toCamelCase(a), - b = b || document.createElement("div"); - if (c in b.style) return !0; - for (var c = c.charAt(0).toUpperCase() + c.substr(1), d = 0, f = Muse.Browser.domPrefixes.length; d < f; d++) - if (Muse.Browser.domPrefixes[d] + c in b.style) return Muse.Browser.domPrefixes[d]; - return !1 -}; -Muse.Browser.Features.checkCSSValueCompatibility = function(a, b) { - var c = document.createElement("div"), - a = Muse.Utils.toCamelCase(a), - d = Muse.Browser.Features.checkCSSFeature(a, c); - if (d) d !== !0 && (a = d + a.charAt(0).toUpperCase() + a.substr(1)); - else return !1; - d = c.style[a]; - c.style[a] = b; - if (c.style[a] !== d || b === d) return !0; - for (var f = 0; f < Muse.Browser.domPrefixes.length; f++) { - var g = "-" + Muse.Browser.domPrefixes[f].toLowerCase() + "-" + b; - c.style[a] = g; - if (c.style[a] !== d) return Muse.Browser.domPrefixes[f] - } - return !1 -}; -Muse.Browser.Bugs = {}; -Muse.Browser.Bugs.ClearNeedsOuterWidth = function() { - var a = document.createElement("div"); - a.id = "mbbcnow00"; - a.innerHTML = '
    a
    '; - var b = document.createElement("div"), - c = document.createElement("div"); - document.body.appendChild(a); - a.appendChild(b); - a.appendChild(c); - b.innerHTML = "a"; - b.id = "mbbcnow01"; - c.innerHTML = "b"; - c.id = "mbbcnow02"; - b = c.getBoundingClientRect().top - b.getBoundingClientRect().top; - document.body.removeChild(a); - return b < 1 -}(); -Muse.Browser.Bugs.CannotHandleClearBoth = function() { - return jQuery.browser.msie && 7 == jQuery.browser.version -}(); -Muse.Browser.Bugs.ScrollWidthHeightIncludesBorder = function() { - var a = !1, - b = $("
    ").css({ - border: "1px solid #000000;", - width: 100, - height: 100, - position: "absolute", - top: -99999, - left: -99999, - padding: 0, - margin: 0, - overflow: "auto" - }).appendTo(document.body)[0]; - b.scrollHeight !== b.clientHeight && (a = !0); - $(b).remove(); - return a -}(); -(function(a) { - var b = a(window), - c = a("body"), - d = function() { - this.pendingRequest = void 0; - this.enabled = !0 - }; - d.prototype.init = function(d) { - this.$spacer = a(d + " .verticalspacer"); - this.$page = a(d); - this.spacerMinHeight = 1; - this.$spacer.css("min-height", this.spacerMinHeight); - this.$spacer.height() < this.spacerMinHeight && this.$spacer.height(Math.floor(this.spacerMinHeight + 1)); - this.spacerHeight = this.$spacer.height(); - this.pageMarginTop = Muse.Utils.getCSSIntValue(c, "padding-top") + Muse.Utils.getCSSIntValue(c, "margin-top"); - this.pageMarginBottom = - Muse.Utils.getCSSIntValue(c, "padding-bottom") + Muse.Utils.getCSSIntValue(c, "margin-bottom"); - this.pageResizeWatchEnabled = !0; - this.alwaysVertScroll = c.hasClass("always_vert_scroll"); - this.updateSpacerMargin = 0 != Muse.Utils.getCSSIntValue(this.$spacer, "margin-bottom"); - var g = this; - if (Muse.Browser.Bugs.CannotHandleClearBoth && 0 != Muse.Utils.getCSSIntValue(this.$spacer, "margin-bottom")) this.$spacer.css("margin-bottom", 0), this.updateSpacerMargin = !1; - this.calculateInitialSpacerHeight(); - this.$page.watch("height", function() { - g.onPageHeightChanged() - }); - b.resize(function() { - g.doUpdate() - }); - this.initialized = !0; - this.doUpdate(this.pendingRequest) - }; - d.prototype.updateScrollClass = function(a) { - var a = this.spacerMinHeight < Math.floor(a * 100) / 100, - b = !1; - this.alwaysVertScroll || (a && !c.hasClass("no_vert_scroll") ? (c.addClass("no_vert_scroll"), b = !0) : !a && c.hasClass("no_vert_scroll") && (c.removeClass("no_vert_scroll"), b = !0)); - b && this.$spacer.css("height") - }; - d.prototype.doUpdate = function(a) { - if (this.enabled) - if (this.initialized) { - parseInt(a) || (a = 0); - this.updateSpacerMargin && this.$spacer.css("margin-bottom", -(this.$spacer.offset().top - this.pageMarginTop)); - var c = this.$page.outerHeight(!0), - d = c - this.spacerHeight, - a = Math.max(this.spacerMinHeight, b.height() - this.pageMarginTop - this.pageMarginBottom - d - a); - if (a != this.spacerHeight) { - this.pageResizeWatchEnabled = !1; - this.updateScrollClass(a); - this.$spacer.css("height", a); - if (a < this.spacerHeight && c == this.$page.outerHeight(!0)) a = this.spacerHeight, this.updateScrollClass(a), this.$spacer.css("height", a); - this.pageResizeWatchEnabled = !0 - } - return this.spacerHeight = a - } else this.pendingRequest = - a - }; - d.prototype.calculateInitialSpacerHeight = function() { - for (var a = 0, b = 0; b++ < 20;) { - var c = this.doUpdate(); - if (c <= a) break; - a = c - } - }; - d.prototype.onPageHeightChanged = function(a) { - this.pageResizeWatchEnabled && this.doUpdate(a) - }; - d.prototype.enable = function() { - this.enabled = !0 - }; - d.prototype.disable = function() { - this.enabled = !1 - }; - b.data("stickyFooter", new d("#page")) -})(jQuery); -Muse.Utils.requestAnimationFrame = function() { - return window.webkitRequestAnimationFrame && window.webkitRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame && window.mozRequestAnimationFrame.bind(window) || window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || function(a) { - window.setTimeout(a, 20) - } -}(); -Muse.Utils.animationFrameFx = function(a, b) { - var c = a.fx; - a.extend(c, a.fx); - var d, f = a(b).data("stickyFooter"), - g = function() { - d && (Muse.Utils.requestAnimationFrame(g), c.tick(), f.doUpdate()) - }; - c.timer = function(b) { - b() && a.timers.push(b) && !d && (d = !0, g()) - }; - c.stop = function() { - d = !1 - }; - a.fn.animationFrameFx = c -}(jQuery, this);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "museutils.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("museutils.js"); - break - } - } - } - } -})(); diff --git a/scripts/musewpslideshow.js b/scripts/musewpslideshow.js deleted file mode 100644 index 28773cf4..00000000 --- a/scripts/musewpslideshow.js +++ /dev/null @@ -1,595 +0,0 @@ -/* - ADOBE CONFIDENTIAL - ___________________ - - Copyright 2012 Adobe Systems Incorporated - All Rights Reserved. - - NOTICE: All information contained herein is, and remains - the property of Adobe Systems Incorporated and its suppliers, - if any. The intellectual and technical concepts contained - herein are proprietary to Adobe Systems Incorporated and its - suppliers and may be covered by U.S. and Foreign Patents, - patents in process, and are protected by trade secret or copyright law. - Dissemination of this information or reproduction of this material - is strictly forbidden unless prior written permission is obtained - from Adobe Systems Incorporated. -*/ -(function(a, b, c, d, f) { - c.Plugins.SlideShowCaptions = { - defaultOptions: { - captionClassName: "SSSlideCaption" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d._attachBehavior(b) - }) - }, - _attachBehavior: function(a) { - var b = a._findWidgetElements("." + a.options.captionClassName); - if (b.length) a._sscpCaptions = b, b.css("display", "none"), a.slides.bind("wp-panel-show", function(a, c) { - b.eq(c.panelIndex).css("display", "block") - }), a.slides.bind("wp-panel-hide", - function(a, c) { - b.eq(c.panelIndex).css("display", "none") - }), a.bind("ready", function() { - b.eq(a.slides.activeIndex).css("display", "block") - }) - } - }; - c.Plugins.SlideShowLabel = { - defaultOptions: { - labelClassName: "SlideShowLabel" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d._attachBehavior(b) - }) - }, - _attachBehavior: function(a) { - var b = this, - c = a._findWidgetElements("." + a.options.labelClassName); - if (c.length) a._$sslpLabels = c, a.slides.bind("wp-panel-show", - function() { - b._updateLabels(a) - }), a.bind("ready", function() { - b._updateLabels(a) - }) - }, - _findAllTextNodes: function(a, b) { - b = b || []; - switch (a.nodeType) { - case 3: - b.push(a); - break; - case 1: - if (a.nodeName.toLowerCase() !== "script") - for (var c = a.firstChild; c;) this._findAllTextNodes(c, b), c = c.nextSibling - } - a.nextSibling && this._findAllTextNodes(a.nextSibling, b); - return b - }, - _updateLabels: function(a) { - var b = this, - c = a.slides, - d = c.activeIndex + 1, - f = c.$element.length; - a._$sslpLabels.each(function() { - for (var a = b._findAllTextNodes(this), c = a.length, - g = 0, h = function(a) { - return ++g === 1 ? d : g === 2 ? f : a - }, p = 0; p < c; p++) { - var n = a[p], - s = n.nodeValue, - v = s.replace(/\d+/g, h); - if (v !== s) n.nodeValue = v - } - }) - } - }; - c.Plugins.Lightbox = { - defaultOptions: { - lightboxPartsSelector: ".PamphletLightboxPart", - closeBtnClassName: "PamphletCloseButton" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b._sslbpAutoPlay = c.autoPlay; - c.autoPlay = !1; - b.bind("before-transform-markup", function() { - d._beforeTransformMarkup(b) - }); - b.bind("attach-behavior", function() { - d._attachBehavior(b) - }) - }, - _beforeTransformMarkup: function(a) { - a._sslbpShownInitially = !0; - var b = a._findWidgetElements("." + a.options.slideClassName); - if (b.filter(":hidden").length == 0) a._sslbpSlideOffset = b.offset(); - else { - a._sslbpShownInitially = !1; - var d = a._findWidgetElements("." + a.options.viewClassName); - a._sslbpSlideOffset = { - top: c.Utils.getCSSIntValue(d, "top") + c.Utils.getCSSIntValue(b, "top"), - left: c.Utils.getCSSIntValue(d, "left") + c.Utils.getCSSIntValue(b, "left") - } - } - }, - _attachBehavior: function(a) { - var b = this, - d = a.options; - a.tabs.$element.bind(d.event, - function() { - b._openLightbox(a) - }); - a.slides.bind("wp-panel-before-show", function() { - b._openLightbox(a) - }); - if (c.Browser.Features.Touch && d.elastic === "fullScreen") a.slides.$element.not("a[href]").on("click", function() { - b._closeLightbox(a) - }); - a._$sslbpCloseBtn = a._findWidgetElements("." + d.closeBtnClassName).bind("click", function() { - b._closeLightbox(a) - }); - b._initializeMarkup(a) - }, - _initializeMarkup: function(b) { - var d = b.options, - f = d.elastic !== "off", - j = b._findWidgetElements("." + d.viewClassName), - i = b.slides.$element, - l = j, - m = b._sslbpSlideOffset, - o = i.outerWidth(), - q = i.outerHeight(), - p = b._findWidgetElements(d.lightboxPartsSelector), - l = a(j[0].parentNode).filter("." + d.clipClassName); - l.length === 0 && (l = j); - p.each(function(d, k) { - var i = a(k); - if (i.css("position") !== "fixed") { - var j = b._sslbpShownInitially ? i.offset() : { - top: c.Utils.getCSSIntValue(i, "top"), - left: c.Utils.getCSSIntValue(i, "left") - }, - l = { - top: j.top - m.top - }; - if (!f) l.left = j.left - m.left; - i.css(l) - } - }).addClass("popup_element"); - var n = a('
    ').css({ - left: 0, - top: 0, - width: "auto", - height: "auto", - padding: 0, - margin: 0, - zIndex: "auto" - }), - s; - f && (s = a("
    "), d.elastic === "fullScreen" ? s.addClass("fullscreen") : d.elastic === "fullWidth" && s.addClass("fullwidth"), s.css({ - paddingLeft: j.css("padding-left"), - paddingRight: j.css("padding-right"), - paddingTop: j.css("padding-top"), - paddingBottom: j.css("padding-bottom"), - borderColor: j.css("border-left-color"), - borderStyle: j.css("border-left-style"), - borderLeftWidth: j.css("border-left-width"), - borderRightWidth: j.css("border-right-width"), - borderTopWidth: j.css("border-top-width"), - borderBottomWidth: j.css("border-bottom-width") - }), s.append(l), s.append(p), n.css({ - border: "none" - })); - j.removeAttr("id"); - var v = a("
    ").insertBefore(i[0]); - n.append(j.children().not("." + d.slideClassName)); - j.append(i); - n.css({ - visibility: "hidden" - }).appendTo(document.body); - var j = n.outerWidth(), - x = n.outerHeight(); - n.detach().css({ - visibility: "" - }); - l.css({ - position: d.elastic === "fullScreen" ? "relative" : "absolute", - padding: 0, - left: d.elastic === "fullWidth" ? "" : 0, - top: 0, - borderWidth: 0, - background: "none" - }); - d.elastic !== "fullScreen" && l.css({ - width: o, - height: q - }); - d.transitionStyle === "fading" && i.css({ - position: "absolute", - left: 0, - top: 0 - }); - var y; - if (b._fstpPositionSlides || b._csspResizeFullScreenImages) y = function(a, c) { - b._fstpPositionSlides && b._fstpPositionSlides(a, c); - b._csspResizeFullScreenImages && b._csspResizeFullScreenImages(b, b.slides.$element, d.heroFitting) - }; - o = -o / 2; - q = -q / 2; - l = a("
    ").css({ - position: "absolute" - }).append(f ? s : l); - f || l.append(p); - l.museOverlay({ - autoOpen: !1, - offsetLeft: o, - offsetTop: q, - overlayExtraWidth: j, - overlayExtraHeight: x, - $overlaySlice: n, - $overlayWedge: v, - onClose: function() { - b.stop(); - b.slides.hidePanel(b.slides.activeElement) - }, - $elasticContent: s, - resizeSlidesFn: y - }); - if (a.browser.msie && a.browser.version < 9) { - var F = n[0]; - c.Utils.needPIE(function() { - PIE.detach(F); - PIE.attach(F) - }) - } - b._$sslbpOverlay = l; - b._csspIsImageSlideShow || i.each(function() { - c.Utils.detachIframesAndObjectsToPauseMedia(a(this)) - }) - }, - _openLightbox: function(b) { - var d = b._$sslbpOverlay; - d.data("museOverlay").isOpen || (d.museOverlay("open"), - b._sslbpAutoPlay && b.play()); - b._csspIsImageSlideShow || c.Utils.attachIframesAndObjectsToResumeMedia(a(b.slides.activeElement)) - }, - _closeLightbox: function(b) { - b._$sslbpOverlay.data("museOverlay").isOpen && (b._$sslbpOverlay.museOverlay("close"), b._csspIsImageSlideShow || c.Utils.detachIframesAndObjectsToPauseMedia(a(b.slides.activeElement))) - } - }; - c.Plugins.ContentSlideShow = { - defaultOptions: { - displayInterval: 3E3, - transitionDuration: 500, - transitionStyle: "fading", - contentLayout_runtime: "stack", - event: "click", - deactivationEvent: "none", - hideAllContentsFirst: !1, - shuffle: !1, - resumeAutoplay: !1, - resumeAutoplayInterval: 3E3, - elastic: "off" - }, - slideShowOverrides: { - slideshowClassName: "SlideShowWidget", - viewClassName: "SlideShowContentPanel", - slideClassName: "SSSlide", - slideLinksClassName: "SSSlideLinks", - slideLinkClassName: "SSSlideLink", - slideLinkActiveClassName: "SSSlideLinkSelected", - slideCountClassName: "SSSlideCount", - firstBtnClassName: "SSFirstButton", - lastBtnClassName: "SSLastButton", - prevBtnClassName: "SSPreviousButton", - nextBtnClassName: "SSNextButton", - playBtnClassName: "SSPlayButton", - stopBtnClassName: "SSStopButton", - closeBtnClassName: "SSCloseButton", - heroFitting: "fitContentProportionally", - thumbFitting: "fillFrameProportionally", - lightboxPartsSelector: ".SlideShowCaptionPanel, .SSFirstButton, .SSPreviousButton, .SSNextButton, .SSLastButton, .SlideShowLabel, .SSCloseButton", - lightboxEnabled_runtime: !1 - }, - compositionOverrides: { - slideshowClassName: "PamphletWidget", - viewClassName: "ContainerGroup", - slideClassName: "Container", - slideLinkClassName: "Thumb", - slideLinkActiveClassName: "PamphletThumbSelected", - prevBtnClassName: "PamphletPrevButton", - nextBtnClassName: "PamphletNextButton", - closeBtnClassName: "PamphletCloseButton", - lightboxPartsSelector: ".PamphletLightboxPart" - }, - initialize: function(d, f) { - var h = this, - j = d.$element.hasClass("SlideShowWidget"), - i = j ? h.slideShowOverrides : h.compositionOverrides; - d._csspIsImageSlideShow = j; - this._restartTimer = 0; - a.extend(f, a.extend({}, h.defaultOptions, i, f)); - if (f.hideAllContentsFirst) f.defaultIndex = -1; - if (f.lightboxEnabled_runtime) f.contentLayout_runtime = "lightbox"; - if (f.elastic !== - "off") d._csspPositionImage = h._positionImage; - j && (b.Widget.ContentSlideShow.slideImageIncludePlugin.initialize(d, f), c.Plugins.SlideShowLabel.initialize(d, f), c.Plugins.SlideShowCaptions.initialize(d, f)); - f.transitionStyle == "fading" ? b.Widget.ContentSlideShow.fadingTransitionPlugin.initialize(d, f) : c.Browser.Features.Touch && f.enableSwipe === !0 ? b.Widget.ContentSlideShow.swipeTransitionPlugin.initialize(d, f) : b.Widget.ContentSlideShow.filmstripTransitionPlugin.initialize(d, f); - b.Widget.ContentSlideShow.alignPartsToPagePlugin.initialize(d, - f); - if (f.contentLayout_runtime === "lightbox") { - if (f.elastic !== "off") d._csspResizeFullScreenImages = h._resizeFullScreenImages; - c.Plugins.Lightbox.initialize(d, f) - } - f.shuffle === !0 && b.Widget.ContentSlideShow.shufflePlayPlugin.initialize(d, f); - d.bind("transform-markup", function() { - h._transformMarkup(d) - }); - d.bind("attach-behavior", function() { - h._attachBehavior(d) - }) - }, - _transformMarkup: function(b) { - var d = b.options, - f = b._findWidgetElements("." + d.viewClassName); - if (d.transitionStyle !== "fading") { - var j = a('
    '), - i = b._findWidgetElements("." + d.slideClassName), - b = i.outerWidth(), - i = i.outerHeight(); - if (d.elastic === "fullScreen") j.addClass("fullscreen"); - else { - var l = { - position: "relative", - width: b + "px", - height: i + "px", - overflow: "hidden" - }, - m = f.css("position"); - if (m === "absolute") l.position = m, l.left = f.css("left"), l.top = f.css("top"); - else if (m === "fixed") { - var o = c.Utils.getStyleSheetRuleById(c.Utils.getPageStyleSheet(), f.get(0).id); - l.position = m; - l.left = c.Utils.getRuleProperty(o, "left"); - l.top = c.Utils.getRuleProperty(o, "top"); - l.bottom = c.Utils.getRuleProperty(o, "bottom"); - l.right = c.Utils.getRuleProperty(o, "right") - } - j.css(l) - } - d.elastic !== "fullScreen" && f.css({ - width: b + "px", - height: i + "px" - }); - f.css({ - position: "relative", - top: "0", - left: "0", - margin: "0", - overflow: "hidden" - }).wrap(j) - } else m = f.css("position"), d.elastic !== "fullScreen" && m !== "fixed" && f.css({ - width: "0", - height: "0" - }) - }, - _attachBehavior: function(b) { - var f = this, - h = b.options, - j = b.tabs, - i = b.slides.$element, - l = h.slideLinkActiveClassName, - m = h.contentLayout_runtime === "lightbox"; - if (h.elastic !== "off" && - (f._resizeFullScreenImages(b, b.slides.$element, h.heroFitting), !m)) a(d).on("orientationchange resize", function() { - f._resizeFullScreenImages(b, b.slides.$element, h.heroFitting) - }); - if (m) h.hideAllContentsFirst = !0; - if (j) { - var o = j.$element; - h.event === "mouseover" && o.bind("mouseenter", function() { - var b = a(this); - b.data("enter", !0); - j.selectTab(o.index(b)) - }); - h.deactivationEvent === "mouseout_trigger" ? o.bind("mouseleave", function() { - var c = a(this); - c.data("enter", !1); - b.slides.hidePanel(o.index(c)) - }) : h.deactivationEvent === - "mouseout_both" && (o.bind("mouseleave", function() { - var c = a(this), - d = o.index(c), - f = i.eq(d); - c.data("enter", !1); - c.data("setTimeout") || (c.data("setTimeout", !0), setTimeout(function() { - !f.data("enter") && !c.data("enter") && b.slides.hidePanel(d); - c.data("setTimeout", !1) - }, 300)) - }), i.bind("mouseenter", function() { - a(this).data("enter", !0) - }), i.bind("mouseleave", function() { - var c = a(this), - d = i.index(c), - f = o.eq(d); - c.data("enter", !1); - f.data("setTimeout") || (f.data("setTimeout", !0), setTimeout(function() { - !c.data("enter") && !f.data("enter") && - b.slides.hidePanel(d); - f.data("setTimeout", !1) - }, 300)) - })) - } - j && l && (h.hideAllContentsFirst || j.$element.eq(j.options.defaultIndex).addClass(l), b.slides.bind("wp-panel-show", function(a, b) { - j.$element.eq(b.panelIndex).addClass(l) - }).bind("wp-panel-hide", function(a, b) { - j.$element.eq(b.panelIndex).removeClass(l) - })); - f._attachStopOnClickHandler(b, b.$firstBtn); - f._attachStopOnClickHandler(b, b.$lastBtn); - f._attachStopOnClickHandler(b, b.$previousBtn); - f._attachStopOnClickHandler(b, b.$nextBtn); - f._attachStopOnClickHandler(b, - b.$playBtn); - f._attachStopOnClickHandler(b, b.$stopBtn); - f._attachStopOnClickHandler(b, b.$closeBtn); - j && !m && f._attachStopOnClickHandler(b, j.$element); - b._csspIsImageSlideShow || (b.slides.bind("wp-panel-hide", function(b, d) { - c.Utils.detachIframesAndObjectsToPauseMedia(a(d.panel)) - }).bind("wp-panel-show", function(b, d) { - c.Utils.attachIframesAndObjectsToResumeMedia(a(d.panel)) - }), i.each(function() { - (this != b.slides.activeElement || h.hideAllContentsFirst) && c.Utils.detachIframesAndObjectsToPauseMedia(a(this)) - })) - }, - _startRestartTimer: function(a) { - this._stopRestartTimer(); - this._restartTimer = setTimeout(function() { - a.play(!0) - }, a.options.resumeAutoplayInterval + a.options.transitionDuration) - }, - _stopRestartTimer: function() { - this._restartTimer && clearTimeout(this._restartTimer); - this._restartTimer = 0 - }, - _attachStopOnClickHandler: function(a, b) { - var c = this; - b.bind(a.options.event === "click" ? "click" : "mouseover", function() { - a.stop(); - (a.options.autoPlay || a._sslbpAutoPlay) && a.options.resumeAutoplay && 0 < a.options.resumeAutoplayInterval && c._startRestartTimer(a) - }) - }, - _hitTest: function(a, b) { - b.outerWidth() === - 0 && (b = b.children(".popup_anchor").children(".popup_element").eq(0)); - var c = b.offset(), - c = { - x: c.left, - y: c.top, - width: b.outerWidth(), - height: b.outerHeight() - }; - return a.pageX >= c.x && a.pageX <= c.x + c.width && a.pageY >= c.y && a.pageY <= c.y + c.height - }, - _layoutThumbs: function(b) { - var d = b.options, - f = c.Utils.getStyleValue; - b._findWidgetElements("." + d.slideLinksClassName).each(function() { - var b = a(this).find("." + d.slideLinkClassName); - firstThumb = b[0]; - tWidth = f(firstThumb, "width"); - tHeight = f(firstThumb, "height"); - gapH = f(firstThumb, "margin-right"); - gapV = f(firstThumb, "margin-bottom"); - borderL = f(firstThumb, "border-left-width"); - borderR = f(firstThumb, "border-right-width"); - borderT = f(firstThumb, "border-top-width"); - borderB = f(firstThumb, "border-bottom-width"); - gWidth = f(this, "width"); - paddingL = f(this, "padding-left"); - paddingT = f(this, "padding-top"); - maxNumThumb = Math.floor((gWidth + gapH) / (tWidth + borderL + borderR + gapH)); - gStyle = this.runtimeStyle ? this.runtimeStyle : this.style; - numRow = Math.ceil(b.length / maxNumThumb); - firstRowNum = b.length < maxNumThumb ? b.length : maxNumThumb; - leftPos = leftMostPos = c.Utils.pixelRound((gWidth - (tWidth + borderL + borderR) * firstRowNum - gapH * (firstRowNum - 1)) / 2) + paddingL; - topPos = paddingT; - numInRow = 1; - gStyle.height = (tHeight + borderT + borderB) * numRow + gapV * (numRow - 1) + "px"; - b.each(function() { - numInRow > firstRowNum && (numInRow = 1, leftPos = leftMostPos, topPos += tHeight + borderT + borderB + gapV); - numInRow++ > 1 && (leftPos += tWidth + borderL + borderR + gapH); - var a = this.runtimeStyle ? this.runtimeStyle : this.style; - a.marginRight = "0px"; - a.marginBottom = "0px"; - a.left = leftPos + "px"; - a.top = topPos + - "px" - }) - }) - }, - _resizeFullScreenImages: function(b, c, d) { - c.each(function() { - a(this).find("img").each(function() { - this.complete && !a(this).hasClass(b.options.imageIncludeClassName) && b._csspPositionImage(this, d, b.options.elastic) - }) - }) - }, - _setupImagePositioning: function(b, c, d, f) { - var i = this; - c.each(function() { - a(this).find("img").each(function() { - var b = this; - b.complete ? i._positionImage(b, d, f) : a(b).load(function() { - i._positionImage(b, d, f) - }) - }) - }) - }, - _positionImage: function(b, k, h, j, i) { - var l = a(d), - m = b.runtimeStyle ? b.runtimeStyle : - b.style, - o = h === "fullWidth" || h === "fullScreen", - q = h === "fullHeight" || h === "fullScreen", - p = k == "fitContentProportionally"; - $img = a(b); - o = o ? d.innerWidth ? d.innerWidth : l.width() : p ? $img.data("width") : $img.parent().width(); - l = q ? d.innerHeight ? d.innerHeight : l.height() : p ? $img.data("height") : $img.parent().height(); - j = j !== f ? j : c.Utils.getNaturalWidth(b); - b = i !== f ? i : c.Utils.getNaturalHeight(b); - h !== "off" && (j === 0 && (j = $img.data("imageWidth")), b === 0 && (b = $img.data("imageHeight"))); - if (o == j && l == b) m.marginTop = "0px", m.marginLeft = "0px"; - else { - q = j; - i = b; - if (k == "fillFrameProportionally") { - if (h !== "off" || j > o && b > l) k = j / o, h = b / l, k < h ? (i = b / k, q = o) : (i = l, q = j / h) - } else if (k == "fitContentProportionally" && (h !== "off" || j > o || b > l)) k = j / o, h = b / l, k > h ? (i = b / k, q = j / k) : (i = b / h, q = j / h); - m.width = c.Utils.pixelRound(q) + "px"; - m.height = c.Utils.pixelRound(i) + "px"; - m.marginTop = c.Utils.pixelRound((l - i) / 2) + "px"; - m.marginLeft = c.Utils.pixelRound((o - q) / 2) + "px" - } - } - }; - a.extend(b.Widget.ContentSlideShow.slideImageIncludePlugin.defaultOptions, { - imageIncludeClassName: "ImageInclude", - slideLoadingClassName: "SSSlideLoading" - }); - b.Widget.ContentSlideShow.prototype.defaultPlugins = [c.Plugins.ContentSlideShow]; - b.Widget.ContentSlideShow.prototype._getAjaxSrcForImage = function(b) { - for (var c = a(d).data("ResolutionManager").getDataSrcAttrName(), f = c.length, j, i = 0; i < f; i++) - if ((j = b.data(c[i])) && j.length) return j; - return b.data("src") - } -})(jQuery, WebPro, Muse, window);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "musewpslideshow.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("musewpslideshow.js"); - break - } - } - } - } -})(); diff --git a/scripts/pie.js b/scripts/pie.js deleted file mode 100644 index b09e8c37..00000000 --- a/scripts/pie.js +++ /dev/null @@ -1,2306 +0,0 @@ -/* -PIE: CSS3 rendering for IE -Version 1.0beta5 -http://css3pie.com -Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. - -2013.04.17 change made to PIE.BackgroundRenderer (hideBackground() and destroy()) to fix a bug related to fill images not loading on objects with rounded corners. Copyright (c) 2013 Adobe Systems Incorporated All Rights Reserved. -*/ -(function() { - var a = document, - b = window.PIE; - if (!b) { - b = window.PIE = { - CSS_PREFIX: "-pie-", - STYLE_PREFIX: "Pie", - CLASS_PREFIX: "pie_", - tableCellTags: { - TD: 1, - TH: 1 - }, - childlessElements: { - TABLE: 1, - THEAD: 1, - TBODY: 1, - TFOOT: 1, - TR: 1, - INPUT: 1, - TEXTAREA: 1, - SELECT: 1, - OPTION: 1, - IMG: 1, - HR: 1 - }, - focusableElements: { - A: 1, - INPUT: 1, - TEXTAREA: 1, - SELECT: 1, - BUTTON: 1 - }, - inputButtonTypes: { - submit: 1, - button: 1, - reset: 1 - }, - emptyFn: function() {} - }; - try { - a.execCommand("BackgroundImageCache", !1, !0) - } catch (d) {}(function() { - for (var c = 4, f = a.createElement("div"), d = f.getElementsByTagName("i"); f.innerHTML = - "<\!--[if gt IE " + ++c + "]>", d[0];); - b.ieVersion = c; - if (c === 6) b.CSS_PREFIX = b.CSS_PREFIX.replace(/^-/, ""); - b.ieDocMode = a.documentMode || b.ieVersion; - f.innerHTML = ''; - c = f.firstChild; - c.style.behavior = "url(#default#VML)"; - b.supportsVML = typeof c.adj === "object" - })(); - (function() { - var c, f = 0, - d = {}; - b.Util = { - createVmlElement: function(b) { - c || (c = a.createDocumentFragment(), c.namespaces.add("css3vml", "urn:schemas-microsoft-com:vml")); - return c.createElement("css3vml:" + b) - }, - getUID: function(c) { - return c && - c._pieId || (c._pieId = "_" + ++f) - }, - merge: function(c) { - var b, a, f, d, g = arguments; - b = 1; - for (a = g.length; b < a; b++) - for (f in d = g[b], d) d.hasOwnProperty(f) && (c[f] = d[f]); - return c - }, - withImageSize: function(c, b, a) { - var f = d[c], - l, m; - f ? Object.prototype.toString.call(f) === "[object Array]" ? f.push([b, a]) : b.call(a, f) : (m = d[c] = [ - [b, a] - ], l = new Image, l.onload = function() { - f = d[c] = { - w: l.width, - h: l.height - }; - for (var b = 0, a = m.length; b < a; b++) m[b][0].call(m[b][1], f); - l.onload = null - }, l.src = c) - } - } - })(); - b.GradientUtil = { - getGradientMetrics: function(c, a, d, i) { - function h() { - n = - k >= 90 && k < 270 ? a : 0; - p = k < 180 ? d : 0; - o = a - n; - q = d - p - } - - function j() { - for (; k < 0;) k += 360; - k %= 360 - } - var k = i.angle, - i = i.gradientStart, - l, m, n, p, o, q, r, s; - if (i) i = i.coords(c, a, d), l = i.x, m = i.y; - k ? (k = k.degrees(), j(), h(), i || (l = n, m = p), i = b.GradientUtil.perpendicularIntersect(l, m, k, o, q), c = i[0], i = i[1]) : i ? (c = a - l, i = d - m) : (l = m = c = 0, i = d); - r = c - l; - s = i - m; - k === void 0 && (k = !r ? s < 0 ? 90 : 270 : !s ? r < 0 ? 180 : 0 : -Math.atan2(s, r) / Math.PI * 180, j(), h()); - return { - angle: k, - startX: l, - startY: m, - endX: c, - endY: i, - startCornerX: n, - startCornerY: p, - endCornerX: o, - endCornerY: q, - deltaX: r, - deltaY: s, - lineLength: b.GradientUtil.distance(l, m, c, i) - } - }, - perpendicularIntersect: function(c, b, a, d, h) { - return a === 0 || a === 180 ? [d, b] : a === 90 || a === 270 ? [c, h] : (a = Math.tan(-a * Math.PI / 180), c = a * c - b, b = -1 / a, d = b * d - h, h = b - a, [(d - c) / h, (a * d - b * c) / h]) - }, - distance: function(c, b, a, d) { - c = a - c; - b = d - b; - return Math.abs(c === 0 ? b : b === 0 ? c : Math.sqrt(c * c + b * b)) - } - }; - b.Observable = function() { - this.observers = []; - this.indexes = {} - }; - b.Observable.prototype = { - observe: function(c) { - var a = b.Util.getUID(c), - d = this.indexes, - i = this.observers; - if (!(a in d)) d[a] = i.length, i.push(c) - }, - unobserve: function(c) { - var c = b.Util.getUID(c), - a = this.indexes; - c && c in a && (delete this.observers[a[c]], delete a[c]) - }, - fire: function() { - for (var c = this.observers, b = c.length; b--;) c[b] && c[b]() - } - }; - b.Heartbeat = new b.Observable; - b.Heartbeat.run = function() { - var c = this; - if (!c.running) setInterval(function() { - c.fire() - }, 250), c.running = 1 - }; - (function() { - function c() { - b.OnUnload.fire(); - window.detachEvent("onunload", c); - window.PIE = null - } - b.OnUnload = new b.Observable; - window.attachEvent("onunload", c); - b.OnUnload.attachManagedEvent = - function(c, b, a) { - c.attachEvent(b, a); - this.observe(function() { - c.detachEvent(b, a) - }) - } - })(); - b.OnResize = new b.Observable; - b.OnUnload.attachManagedEvent(window, "onresize", function() { - b.OnResize.fire() - }); - (function() { - function c() { - b.OnScroll.fire() - } - b.OnScroll = new b.Observable; - b.OnUnload.attachManagedEvent(window, "onscroll", c); - b.OnResize.observe(c) - })(); - (function() { - var c; - b.OnUnload.attachManagedEvent(window, "onbeforeprint", function() { - c = b.Element.destroyAll() - }); - b.OnUnload.attachManagedEvent(window, "onafterprint", - function() { - if (c) { - for (var a = 0, d = c.length; a < d; a++) b.attach(c[a]); - c = 0 - } - }) - })(); - b.OnMouseup = new b.Observable; - b.OnUnload.attachManagedEvent(a, "onmouseup", function() { - b.OnMouseup.fire() - }); - b.Length = function() { - function c(c) { - this.val = c - } - var d = a.createElement("length-calc"), - g = a.documentElement, - i = d.style, - h = {}, - j = ["mm", "cm", "in", "pt", "pc"], - k = j.length, - l = {}; - i.position = "absolute"; - i.top = i.left = "-9999px"; - for (g.appendChild(d); k--;) d.style.width = "100" + j[k], h[j[k]] = d.offsetWidth / 100; - g.removeChild(d); - d.style.width = "1em"; - c.prototype = { - unitRE: /(px|em|ex|mm|cm|in|pt|pc|%)$/, - getNumber: function() { - var c = this.num; - if (c === void 0) c = this.num = parseFloat(this.val); - return c - }, - getUnit: function() { - var f; - var c = this.unit; - if (!c) f = this.unit = (c = this.val.match(this.unitRE)) && c[0] || "px", c = f; - return c - }, - isPercentage: function() { - return this.getUnit() === "%" - }, - pixels: function(c, b) { - var a = this.getNumber(), - d = this.getUnit(); - switch (d) { - case "px": - return a; - case "%": - return a * (typeof b === "function" ? b() : b) / 100; - case "em": - return a * this.getEmPixels(c); - case "ex": - return a * - this.getEmPixels(c) / 2; - default: - return a * h[d] - } - }, - getEmPixels: function(c) { - var a = c.currentStyle.fontSize, - g, i; - return a.indexOf("px") > 0 ? parseFloat(a) : c.tagName in b.childlessElements ? (i = this, g = c.parentNode, b.getLength(a).pixels(g, function() { - return i.getEmPixels(g) - })) : (c.appendChild(d), a = d.offsetWidth, d.parentNode === c && c.removeChild(d), a) - } - }; - b.getLength = function(b) { - return l[b] || (l[b] = new c(b)) - }; - return c - }(); - b.BgPosition = function() { - function c(c) { - this.tokens = c - } - var a = b.getLength("50%"), - d = { - top: 1, - center: 1, - bottom: 1 - }, - i = { - left: 1, - center: 1, - right: 1 - }; - c.prototype = { - getValues: function() { - if (!this._values) { - var c = this.tokens, - j = c.length, - k = b.Tokenizer, - l = k.Type, - m = b.getLength("0"), - l = l.IDENT, - m = ["left", m, "top", m]; - j === 1 && (c.push(new k.Token(l, "center")), j++); - if (j === 2) l & (c[0].tokenType | c[1].tokenType) && c[0].tokenValue in d && c[1].tokenValue in i && c.push(c.shift()), c[0].tokenType & l ? c[0].tokenValue === "center" ? m[1] = a : m[0] = c[0].tokenValue : c[0].isLengthOrPercent() && (m[1] = b.getLength(c[0].tokenValue)), c[1].tokenType & l ? c[1].tokenValue === - "center" ? m[3] = a : m[2] = c[1].tokenValue : c[1].isLengthOrPercent() && (m[3] = b.getLength(c[1].tokenValue)); - this._values = m - } - return this._values - }, - coords: function(c, b, a) { - var d = this.getValues(), - f = d[1].pixels(c, b), - c = d[3].pixels(c, a); - return { - x: d[0] === "right" ? b - f : f, - y: d[2] === "bottom" ? a - c : c - } - } - }; - return c - }(); - b.BgSize = function() { - function c(c, b) { - this.w = c; - this.h = b - } - c.prototype = { - pixels: function(c, b, a, d, j) { - var k = this.w, - l = this.h, - m = b / a; - d /= j; - k === "contain" ? (k = d > m ? b : a * d, l = d > m ? b / d : a) : k === "cover" ? (k = d < m ? b : a * d, l = d < m ? b / d : a) : k === "auto" ? - (l = l === "auto" ? j : l.pixels(c, a), k = l * d) : (k = k.pixels(c, b), l = l === "auto" ? k / d : l.pixels(c, a)); - return { - w: k, - h: l - } - } - }; - c.DEFAULT = new c("auto", "auto"); - return c - }(); - b.Angle = function() { - function c(c) { - this.val = c - } - c.prototype = { - unitRE: /[a-z]+$/i, - getUnit: function() { - return this._unit || (this._unit = this.val.match(this.unitRE)[0].toLowerCase()) - }, - degrees: function() { - var c = this._deg, - b; - if (c === void 0) c = this.getUnit(), b = parseFloat(this.val, 10), c = this._deg = c === "deg" ? b : c === "rad" ? b / Math.PI * 180 : c === "grad" ? b / 400 * 360 : c === "turn" ? b * 360 : 0; - return c - } - }; - return c - }(); - b.Color = function() { - function c(c) { - this.val = c - } - var a = {}; - c.rgbaRE = /\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/; - c.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", - 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", - darkkhaki: "BDB76B", - darkmagenta: "8B008B", - darkolivegreen: "556B2F", - darkorange: "FF8C00", - darkorchid: "9932CC", - darkred: "8B0000", - darksalmon: "E9967A", - darkseagreen: "8FBC8F", - darkslateblue: "483D8B", - darkslategray: "2F4F4F", - darkturquoise: "00CED1", - darkviolet: "9400D3", - deeppink: "FF1493", - deepskyblue: "00BFFF", - dimgray: "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", - 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", - lightgreen: "90EE90", - lightgrey: "D3D3D3", - lightpink: "FFB6C1", - lightsalmon: "FFA07A", - lightseagreen: "20B2AA", - lightskyblue: "87CEFA", - lightslategray: "789", - lightsteelblue: "B0C4DE", - lightyellow: "FFFFE0", - lime: "0F0", - limegreen: "32CD32", - linen: "FAF0E6", - magenta: "F0F", - maroon: "800000", - mediumauqamarine: "66CDAA", - mediumblue: "0000CD", - mediumorchid: "BA55D3", - mediumpurple: "9370D8", - 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: "688E23", - orange: "FFA500", - orangered: "FF4500", - orchid: "DA70D6", - palegoldenrod: "EEE8AA", - palegreen: "98FB98", - paleturquoise: "AFEEEE", - palevioletred: "D87093", - papayawhip: "FFEFD5", - peachpuff: "FFDAB9", - peru: "CD853F", - pink: "FFC0CB", - plum: "DDA0DD", - powderblue: "B0E0E6", - purple: "800080", - 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", - 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" - }; - c.prototype = { - parse: function() { - if (!this._color) { - var b = this.val, - a; - if (a = b.match(c.rgbaRE)) this._color = "rgb(" + a[1] + "," + a[2] + "," + a[3] + ")", this._alpha = parseFloat(a[4]); - else { - if ((a = b.toLowerCase()) in c.names) b = "#" + c.names[a]; - this._color = b; - this._alpha = b === "transparent" ? 0 : 1 - } - } - }, - colorValue: function(c) { - this.parse(); - return this._color === "currentColor" ? c.currentStyle.color : this._color - }, - alpha: function() { - this.parse(); - return this._alpha - } - }; - b.getColor = function(b) { - return a[b] || (a[b] = new c(b)) - }; - return c - }(); - b.Tokenizer = function() { - function c(c) { - this.css = c; - this.ch = 0; - this.tokens = []; - this.tokenIndex = 0 - } - var a = c.Type = { - ANGLE: 1, - CHARACTER: 2, - COLOR: 4, - DIMEN: 8, - FUNCTION: 16, - IDENT: 32, - LENGTH: 64, - NUMBER: 128, - OPERATOR: 256, - PERCENT: 512, - STRING: 1024, - URL: 2048 - }; - c.Token = function(c, b) { - this.tokenType = c; - this.tokenValue = b - }; - c.Token.prototype = { - isLength: function() { - return this.tokenType & - a.LENGTH || this.tokenType & a.NUMBER && this.tokenValue === "0" - }, - isLengthOrPercent: function() { - return this.isLength() || this.tokenType & a.PERCENT - } - }; - c.prototype = { - whitespace: /\s/, - number: /^[\+\-]?(\d*\.)?\d+/, - url: /^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i, - ident: /^\-?[_a-z][\w-]*/i, - string: /^("([^"]*)"|'([^']*)')/, - operator: /^[\/,]/, - hash: /^#[\w]+/, - hashColor: /^#([\da-f]{6}|[\da-f]{3})/i, - unitTypes: { - px: a.LENGTH, - em: a.LENGTH, - ex: a.LENGTH, - mm: a.LENGTH, - cm: a.LENGTH, - "in": a.LENGTH, - pt: a.LENGTH, - pc: a.LENGTH, - deg: a.ANGLE, - rad: a.ANGLE, - grad: a.ANGLE - }, - colorFunctions: { - rgb: 1, - rgba: 1, - hsl: 1, - hsla: 1 - }, - next: function(d) { - function i(b, a) { - var f = new c.Token(b, a); - d || (n.tokens.push(f), n.tokenIndex++); - return f - } - - function h() { - n.tokenIndex++; - return null - } - var j, k, l, m, n = this; - if (this.tokenIndex < this.tokens.length) return this.tokens[this.tokenIndex++]; - for (; this.whitespace.test(this.css.charAt(this.ch));) this.ch++; - if (this.ch >= this.css.length) return h(); - k = this.ch; - j = this.css.substring(this.ch); - l = j.charAt(0); - switch (l) { - case "#": - if (m = j.match(this.hashColor)) return this.ch += - m[0].length, i(a.COLOR, m[0]); - break; - case '"': - case "'": - if (m = j.match(this.string)) return this.ch += m[0].length, i(a.STRING, m[2] || m[3] || ""); - break; - case "/": - case ",": - return this.ch++, i(a.OPERATOR, l); - case "u": - if (m = j.match(this.url)) return this.ch += m[0].length, i(a.URL, m[2] || m[3] || m[4] || "") - } - if (m = j.match(this.number)) { - l = m[0]; - this.ch += l.length; - if (j.charAt(l.length) === "%") return this.ch++, i(a.PERCENT, l + "%"); - if (m = j.substring(l.length).match(this.ident)) return l += m[0], this.ch += m[0].length, i(this.unitTypes[m[0].toLowerCase()] || - a.DIMEN, l); - return i(a.NUMBER, l) - } - if (m = j.match(this.ident)) { - l = m[0]; - this.ch += l.length; - if (l.toLowerCase() in b.Color.names || l === "currentColor" || l === "transparent") return i(a.COLOR, l); - if (j.charAt(l.length) === "(") { - this.ch++; - if (l.toLowerCase() in this.colorFunctions) { - j = function(c) { - return c && c.tokenType & a.NUMBER - }; - m = function(c) { - return c && c.tokenType & (a.NUMBER | a.PERCENT) - }; - var p = function(c, b) { - return c && c.tokenValue === b - }, - o = function() { - return n.next(1) - }; - if ((l.charAt(0) === "r" ? m(o()) : j(o())) && p(o(), ",") && m(o()) && p(o(), - ",") && m(o()) && (l === "rgb" || l === "hsa" || p(o(), ",") && j(o())) && p(o(), ")")) return i(a.COLOR, this.css.substring(k, this.ch)); - return h() - } - return i(a.FUNCTION, l) - } - return i(a.IDENT, l) - } - this.ch++; - return i(a.CHARACTER, l) - }, - hasNext: function() { - var c = this.next(); - this.prev(); - return !!c - }, - prev: function() { - return this.tokens[this.tokenIndex-- - 2] - }, - all: function() { - for (; this.next();); - return this.tokens - }, - until: function(c, b) { - for (var a = [], d, f; d = this.next();) { - if (c(d)) { - f = !0; - this.prev(); - break - } - a.push(d) - } - return b && !f ? null : a - } - }; - return c - }(); - b.BoundsInfo = function(c) { - this.targetElement = c - }; - b.BoundsInfo.prototype = { - _locked: 0, - positionChanged: function() { - var c = this._lastBounds, - b; - return !c || (b = this.getBounds()) && (c.x !== b.x || c.y !== b.y) - }, - sizeChanged: function() { - var c = this._lastBounds, - b; - return !c || (b = this.getBounds()) && (c.w !== b.w || c.h !== b.h) - }, - getLiveBounds: function() { - var c = this.targetElement, - a = c.getBoundingClientRect(), - d = b.ieDocMode === 9; - return { - x: a.left, - y: a.top, - w: d ? c.offsetWidth : a.right - a.left, - h: d ? c.offsetHeight : a.bottom - a.top - } - }, - getBounds: function() { - return this._locked ? - this._lockedBounds || (this._lockedBounds = this.getLiveBounds()) : this.getLiveBounds() - }, - hasBeenQueried: function() { - return !!this._lastBounds - }, - lock: function() { - ++this._locked - }, - unlock: function() { - if (!--this._locked) { - if (this._lockedBounds) this._lastBounds = this._lockedBounds; - this._lockedBounds = null - } - } - }; - (function() { - function c(c) { - var a = b.Util.getUID(c); - return function() { - if (this._locked) { - var b = this._lockedValues || (this._lockedValues = {}); - return a in b ? b[a] : b[a] = c.call(this) - } else return c.call(this) - } - } - b.StyleInfoBase = { - _locked: 0, - newStyleInfo: function(c) { - function a(c) { - this.targetElement = c; - this._lastCss = this.getCss() - } - b.Util.merge(a.prototype, b.StyleInfoBase, c); - a._propsCache = {}; - return a - }, - getProps: function() { - var c = this.getCss(), - b = this.constructor._propsCache; - return c ? c in b ? b[c] : b[c] = this.parseCss(c) : null - }, - getCss: c(function() { - var c = this.targetElement, - a = this.constructor, - d = c.style, - c = c.currentStyle, - h = this.cssProperty, - j = this.styleProperty, - k = a._prefixedCssProp || (a._prefixedCssProp = b.CSS_PREFIX + h), - a = a._prefixedStyleProp || - (a._prefixedStyleProp = b.STYLE_PREFIX + j.charAt(0).toUpperCase() + j.substring(1)); - return d[a] || c.getAttribute(k) || d[j] || c.getAttribute(h) - }), - isActive: c(function() { - return !!this.getProps() - }), - changed: c(function() { - var c = this.getCss(), - b = c !== this._lastCss; - this._lastCss = c; - return b - }), - cacheWhenLocked: c, - lock: function() { - ++this._locked - }, - unlock: function() { - --this._locked || delete this._lockedValues - } - } - })(); - b.BackgroundStyleInfo = b.StyleInfoBase.newStyleInfo({ - cssProperty: b.CSS_PREFIX + "background", - styleProperty: b.STYLE_PREFIX + - "Background", - attachIdents: { - scroll: 1, - fixed: 1, - local: 1 - }, - repeatIdents: { - "repeat-x": 1, - "repeat-y": 1, - repeat: 1, - "no-repeat": 1 - }, - originAndClipIdents: { - "padding-box": 1, - "border-box": 1, - "content-box": 1 - }, - positionIdents: { - top: 1, - right: 1, - bottom: 1, - left: 1, - center: 1 - }, - sizeIdents: { - contain: 1, - cover: 1 - }, - propertyNames: { - CLIP: "backgroundClip", - COLOR: "backgroundColor", - IMAGE: "backgroundImage", - ORIGIN: "backgroundOrigin", - POSITION: "backgroundPosition", - REPEAT: "backgroundRepeat", - SIZE: "backgroundSize" - }, - parseCss: function(c) { - function a(c) { - return c && - c.isLengthOrPercent() || c.tokenType & n && c.tokenValue in s - } - - function d(c) { - return c && (c.isLengthOrPercent() && b.getLength(c.tokenValue) || c.tokenValue === "auto" && "auto") - } - var i = this.targetElement.currentStyle, - h, j, k, l = b.Tokenizer.Type, - m = l.OPERATOR, - n = l.IDENT, - p = l.COLOR, - o, q, r = 0, - s = this.positionIdents, - w, u, v = { - bgImages: [] - }; - if (this.getCss3()) { - h = new b.Tokenizer(c); - for (k = {}; j = h.next();) - if (o = j.tokenType, q = j.tokenValue, !k.imgType && o & l.FUNCTION && q === "linear-gradient") { - w = { - stops: [], - imgType: q - }; - for (u = {}; j = h.next();) { - o = j.tokenType; - q = j.tokenValue; - if (o & l.CHARACTER && q === ")") { - u.color && w.stops.push(u); - w.stops.length > 1 && b.Util.merge(k, w); - break - } - if (o & p) { - if (w.angle || w.gradientStart) { - j = h.prev(); - if (j.tokenType !== m) break; - h.next() - } - u = { - color: b.getColor(q) - }; - j = h.next(); - j.isLengthOrPercent() ? u.offset = b.getLength(j.tokenValue) : h.prev() - } else if (o & l.ANGLE && !w.angle && !u.color && !w.stops.length) w.angle = new b.Angle(j.tokenValue); - else if (a(j) && !w.gradientStart && !u.color && !w.stops.length) h.prev(), w.gradientStart = new b.BgPosition(h.until(function(c) { - return !a(c) - }, !1)); - else if (o & m && q === ",") u.color && (w.stops.push(u), u = {}); - else break - } - } else if (!k.imgType && o & l.URL) k.imgUrl = q, k.imgType = "image"; - else if (a(j) && !k.bgPosition) h.prev(), k.bgPosition = new b.BgPosition(h.until(function(c) { - return !a(c) - }, !1)); - else if (o & n) - if (q in this.repeatIdents && !k.imgRepeat) k.imgRepeat = q; - else if (q in this.originAndClipIdents && !k.bgOrigin) k.bgOrigin = q, (j = h.next()) && j.tokenType & n && j.tokenValue in this.originAndClipIdents ? k.bgClip = j.tokenValue : (k.bgClip = q, h.prev()); - else if (q in this.attachIdents && - !k.bgAttachment) k.bgAttachment = q; - else return null; - else if (o & p && !v.color) v.color = b.getColor(q); - else if (o & m && q === "/" && !k.bgSize && k.bgPosition) - if (j = h.next(), j.tokenType & n && j.tokenValue in this.sizeIdents) k.bgSize = new b.BgSize(j.tokenValue); - else if (j = d(j)) o = d(h.next()), o || (o = j, h.prev()), k.bgSize = new b.BgSize(j, o); - else return null; - else if (o & m && q === "," && k.imgType) k.origString = c.substring(r, h.ch - 1), r = h.ch, v.bgImages.push(k), k = {}; - else return null; - if (k.imgType) k.origString = c.substring(r), v.bgImages.push(k) - } else this.withActualBg(b.ieDocMode < - 9 ? function() { - var c = this.propertyNames, - a = i[c.POSITION + "X"], - d = i[c.POSITION + "Y"], - f = i[c.IMAGE], - g = i[c.COLOR]; - if (g !== "transparent") v.color = b.getColor(g); - if (f !== "none") v.bgImages = [{ - imgType: "image", - imgUrl: (new b.Tokenizer(f)).next().tokenValue, - imgRepeat: i[c.REPEAT], - bgPosition: new b.BgPosition((new b.Tokenizer(a + " " + d)).all()) - }] - } : function() { - var c = this.propertyNames, - a = /\s*,\s*/, - d = i[c.IMAGE].split(a), - f = i[c.COLOR], - g, h, j, k, l, m; - if (f !== "transparent") v.color = b.getColor(f); - if ((k = d.length) && d[0] !== "none") { - f = i[c.REPEAT].split(a); - g = i[c.POSITION].split(a); - h = i[c.ORIGIN].split(a); - j = i[c.CLIP].split(a); - c = i[c.SIZE].split(a); - v.bgImages = []; - for (a = 0; a < k; a++) - if ((l = d[a]) && l !== "none") m = c[a].split(" "), v.bgImages.push({ - origString: l + " " + f[a] + " " + g[a] + " / " + c[a] + " " + h[a] + " " + j[a], - imgType: "image", - imgUrl: (new b.Tokenizer(l)).next().tokenValue, - imgRepeat: f[a], - bgPosition: new b.BgPosition((new b.Tokenizer(g[a])).all()), - bgOrigin: h[a], - bgClip: j[a], - bgSize: new b.BgSize(m[0], m[1]) - }) - } - }); - return v.color || v.bgImages[0] ? v : null - }, - withActualBg: function(c) { - var a = - b.ieDocMode > 8, - d = this.propertyNames, - i = this.targetElement.runtimeStyle, - h = i[d.IMAGE], - j = i[d.COLOR], - k = i[d.REPEAT], - l, m, n, p; - h && (i[d.IMAGE] = ""); - j && (i[d.COLOR] = ""); - k && (i[d.REPEAT] = ""); - a && (l = i[d.CLIP], m = i[d.ORIGIN], p = i[d.POSITION], n = i[d.SIZE], l && (i[d.CLIP] = ""), m && (i[d.ORIGIN] = ""), p && (i[d.POSITION] = ""), n && (i[d.SIZE] = "")); - c = c.call(this); - h && (i[d.IMAGE] = h); - j && (i[d.COLOR] = j); - k && (i[d.REPEAT] = k); - a && (l && (i[d.CLIP] = l), m && (i[d.ORIGIN] = m), p && (i[d.POSITION] = p), n && (i[d.SIZE] = n)); - return c - }, - getCss: b.StyleInfoBase.cacheWhenLocked(function() { - return this.getCss3() || - this.withActualBg(function() { - var c = this.targetElement.currentStyle, - b = this.propertyNames; - return c[b.COLOR] + " " + c[b.IMAGE] + " " + c[b.REPEAT] + " " + c[b.POSITION + "X"] + " " + c[b.POSITION + "Y"] - }) - }), - getCss3: b.StyleInfoBase.cacheWhenLocked(function() { - var c = this.targetElement; - return c.style[this.styleProperty] || c.currentStyle.getAttribute(this.cssProperty) - }), - isPngFix: function() { - var c = 0; - if (b.ieVersion < 7) c = this.targetElement, c = "" + (c.style[b.STYLE_PREFIX + "PngFix"] || c.currentStyle.getAttribute(b.CSS_PREFIX + "png-fix")) === - "true"; - return c - }, - isActive: b.StyleInfoBase.cacheWhenLocked(function() { - return (this.getCss3() || this.isPngFix()) && !!this.getProps() - }) - }); - b.BorderStyleInfo = b.StyleInfoBase.newStyleInfo({ - sides: ["Top", "Right", "Bottom", "Left"], - namedWidths: { - thin: "1px", - medium: "3px", - thick: "5px" - }, - parseCss: function() { - var c = {}, - a = {}, - d = {}, - i = !1, - h = !0, - j = !0, - k = !0; - this.withActualBorder(function() { - var f; - for (var l = this.targetElement.currentStyle, m = 0, n, p, o, q, r, s, w; m < 4; m++) o = this.sides[m], w = o.charAt(0).toLowerCase(), n = a[w] = l["border" + o + "Style"], - p = l["border" + o + "Color"], o = l["border" + o + "Width"], m > 0 && (n !== q && (j = !1), p !== r && (h = !1), o !== s && (k = !1)), q = n, r = p, s = o, d[w] = b.getColor(p), f = c[w] = b.getLength(a[w] === "none" ? "0" : this.namedWidths[o] || o), o = f, o.pixels(this.targetElement) > 0 && (i = !0) - }); - return i ? { - widths: c, - styles: a, - colors: d, - widthsSame: k, - colorsSame: h, - stylesSame: j - } : null - }, - getCss: b.StyleInfoBase.cacheWhenLocked(function() { - var c = this.targetElement, - a = c.currentStyle, - d; - c.tagName in b.tableCellTags && c.offsetParent.currentStyle.borderCollapse === "collapse" || this.withActualBorder(function() { - d = - a.borderWidth + "|" + a.borderStyle + "|" + a.borderColor - }); - return d - }), - withActualBorder: function(c) { - var b = this.targetElement.runtimeStyle, - a = b.borderWidth, - d = b.borderColor; - if (a) b.borderWidth = ""; - if (d) b.borderColor = ""; - c = c.call(this); - if (a) b.borderWidth = a; - if (d) b.borderColor = d; - return c - } - }); - (function() { - b.BorderRadiusStyleInfo = b.StyleInfoBase.newStyleInfo({ - cssProperty: "border-radius", - styleProperty: "borderRadius", - parseCss: function(c) { - var a = null, - d, h, j, k, l = !1; - if (c) { - h = new b.Tokenizer(c); - var m = function() { - for (var c = [], a; - (j = - h.next()) && j.isLengthOrPercent();) { - k = b.getLength(j.tokenValue); - a = k.getNumber(); - if (a < 0) return null; - a > 0 && (l = !0); - c.push(k) - } - return c.length > 0 && c.length < 5 ? { - tl: c[0], - tr: c[1] || c[0], - br: c[2] || c[0], - bl: c[3] || c[1] || c[0] - } : null - }; - if (c = m()) j ? j.tokenType & b.Tokenizer.Type.OPERATOR && j.tokenValue === "/" && (d = m()) : d = c, l && c && d && (a = { - x: c, - y: d - }) - } - return a - } - }); - var c = b.getLength("0"), - c = { - tl: c, - tr: c, - br: c, - bl: c - }; - b.BorderRadiusStyleInfo.ALL_ZERO = { - x: c, - y: c - } - })(); - b.BorderImageStyleInfo = b.StyleInfoBase.newStyleInfo({ - cssProperty: "border-image", - styleProperty: "borderImage", - repeatIdents: { - stretch: 1, - round: 1, - repeat: 1, - space: 1 - }, - parseCss: function(c) { - var a = null, - d, i, h, j, k, l, m = 0, - n = b.Tokenizer.Type, - p = n.IDENT, - o = n.NUMBER, - q = n.PERCENT; - if (c) { - d = new b.Tokenizer(c); - for (var a = {}, r = function(c) { - return c && c.tokenType & n.OPERATOR && c.tokenValue === "/" - }, s = function(c) { - return c && c.tokenType & p && c.tokenValue === "fill" - }, w = function() { - j = d.until(function(c) { - return !(c.tokenType & (o | q)) - }); - s(d.next()) && !a.fill ? a.fill = !0 : d.prev(); - r(d.next()) ? (m++, k = d.until(function(c) { - return !c.isLengthOrPercent() && - !(c.tokenType & p && c.tokenValue === "auto") - }), r(d.next()) && (m++, l = d.until(function(c) { - return !c.isLength() - }))) : d.prev() - }; c = d.next();) - if (i = c.tokenType, h = c.tokenValue, i & (o | q) && !j) d.prev(), w(); - else if (s(c) && !a.fill) a.fill = !0, w(); - else if (i & p && this.repeatIdents[h] && !a.repeat) { - if (a.repeat = { - h: h - }, c = d.next()) c.tokenType & p && this.repeatIdents[c.tokenValue] ? a.repeat.v = c.tokenValue : d.prev() - } else if (i & n.URL && !a.src) a.src = h; - else return null; - if (!a.src || !j || j.length < 1 || j.length > 4 || k && k.length > 4 || m === 1 && k.length < 1 || l && - l.length > 4 || m === 2 && l.length < 1) return null; - if (!a.repeat) a.repeat = { - h: "stretch" - }; - if (!a.repeat.v) a.repeat.v = a.repeat.h; - c = function(c, a) { - return { - t: a(c[0]), - r: a(c[1] || c[0]), - b: a(c[2] || c[0]), - l: a(c[3] || c[1] || c[0]) - } - }; - a.slice = c(j, function(c) { - return b.getLength(c.tokenType & o ? c.tokenValue + "px" : c.tokenValue) - }); - if (k && k[0]) a.widths = c(k, function(c) { - return c.isLengthOrPercent() ? b.getLength(c.tokenValue) : c.tokenValue - }); - if (l && l[0]) a.outset = c(l, function(c) { - return c.isLength() ? b.getLength(c.tokenValue) : c.tokenValue - }) - } - return a - } - }); - b.BoxShadowStyleInfo = b.StyleInfoBase.newStyleInfo({ - cssProperty: "box-shadow", - styleProperty: "boxShadow", - parseCss: function(c) { - var a, d = b.getLength, - i = b.Tokenizer.Type, - h; - if (c) { - h = new b.Tokenizer(c); - a = { - outset: [], - inset: [] - }; - for (c = function() { - for (var c, k, l, m, n, p; c = h.next();) - if (l = c.tokenValue, k = c.tokenType, k & i.OPERATOR && l === ",") break; - else if (c.isLength() && !n) h.prev(), n = h.until(function(c) { - return !c.isLength() - }); - else if (k & i.COLOR && !m) m = l; - else if (k & i.IDENT && l === "inset" && !p) p = !0; - else return !1; - c = n && n.length; - if (c > 1 && - c < 5) return (p ? a.inset : a.outset).push({ - xOffset: d(n[0].tokenValue), - yOffset: d(n[1].tokenValue), - blur: d(n[2] ? n[2].tokenValue : "0"), - spread: d(n[3] ? n[3].tokenValue : "0"), - color: b.getColor(m || "currentColor") - }), !0; - return !1 - }; c();); - } - return a && (a.inset.length || a.outset.length) ? a : null - } - }); - b.VisibilityStyleInfo = b.StyleInfoBase.newStyleInfo({ - getCss: b.StyleInfoBase.cacheWhenLocked(function() { - var c = this.targetElement.currentStyle; - return c.visibility + "|" + c.display - }), - parseCss: function() { - var c = this.targetElement, - a = c.runtimeStyle, - c = c.currentStyle, - b = a.visibility, - d; - a.visibility = ""; - d = c.visibility; - a.visibility = b; - return { - visible: d !== "hidden", - displayed: c.display !== "none" - } - }, - isActive: function() { - return !1 - } - }); - b.RendererBase = { - newRenderer: function(c) { - function a(c, b, d, f) { - this.targetElement = c; - this.boundsInfo = b; - this.styleInfos = d; - this.parent = f - } - b.Util.merge(a.prototype, b.RendererBase, c); - return a - }, - isPositioned: !1, - needsUpdate: function() { - return !1 - }, - prepareUpdate: b.emptyFn, - updateProps: function() { - this.destroy(); - this.isActive() && this.draw() - }, - updatePos: function() { - this.isPositioned = !0 - }, - updateSize: function() { - this.isActive() ? this.draw() : this.destroy() - }, - addLayer: function(c, a) { - this.removeLayer(c); - for (var b = this._layers || (this._layers = []), d = c + 1, h = b.length, j; d < h; d++) - if (j = b[d]) break; - b[c] = a; - this.getBox().insertBefore(a, j || null) - }, - getLayer: function(c) { - var a = this._layers; - return a && a[c] || null - }, - removeLayer: function(c) { - var a = this.getLayer(c), - b = this._box; - a && b && (b.removeChild(a), this._layers[c] = null) - }, - getShape: function(c, d, g, i) { - var h = this._shapes || (this._shapes = {}), - j = h[c]; - if (!j) j = h[c] = b.Util.createVmlElement("shape"), - d && j.appendChild(j[d] = b.Util.createVmlElement(d)), i && (g = this.getLayer(i), g || (this.addLayer(i, a.createElement("group" + i)), g = this.getLayer(i))), g.appendChild(j), c = j.style, c.position = "absolute", c.left = c.top = 0, c.behavior = "url(#default#VML)"; - return j - }, - deleteShape: function(c) { - var a = this._shapes, - b = a && a[c]; - b && (b.parentNode.removeChild(b), delete a[c]); - return !!b - }, - getRadiiPixels: function(c) { - var a = this.targetElement, - b = this.boundsInfo.getBounds(), - d = b.w, - h = b.h, - j, k, l, m, n, p, b = c.x.tl.pixels(a, d); - j = c.y.tl.pixels(a, - h); - k = c.x.tr.pixels(a, d); - l = c.y.tr.pixels(a, h); - m = c.x.br.pixels(a, d); - n = c.y.br.pixels(a, h); - p = c.x.bl.pixels(a, d); - c = c.y.bl.pixels(a, h); - d = Math.min(d / (b + k), h / (l + n), d / (p + m), h / (j + c)); - d < 1 && (b *= d, j *= d, k *= d, l *= d, m *= d, n *= d, p *= d, c *= d); - return { - x: { - tl: b, - tr: k, - br: m, - bl: p - }, - y: { - tl: j, - tr: l, - br: n, - bl: c - } - } - }, - getBoxPath: function(c, a, b) { - var a = a || 1, - d, h, j = this.boundsInfo.getBounds(); - h = j.w * a; - var j = j.h * a, - k = this.styleInfos.borderRadiusInfo, - l = Math.floor, - m = Math.ceil, - n = c ? c.t * a : 0, - p = c ? c.r * a : 0, - o = c ? c.b * a : 0, - c = c ? c.l * a : 0, - q, r, s, w, u; - b || k.isActive() ? - (d = this.getRadiiPixels(b || k.getProps()), b = d.x.tl * a, k = d.y.tl * a, q = d.x.tr * a, r = d.y.tr * a, s = d.x.br * a, w = d.y.br * a, u = d.x.bl * a, a *= d.y.bl, h = "m" + l(c) + "," + l(k) + "qy" + l(b) + "," + l(n) + "l" + m(h - q) + "," + l(n) + "qx" + m(h - p) + "," + l(r) + "l" + m(h - p) + "," + m(j - w) + "qy" + m(h - s) + "," + m(j - o) + "l" + l(u) + "," + m(j - o) + "qx" + l(c) + "," + m(j - a) + " x e") : h = "m" + l(c) + "," + l(n) + "l" + m(h - p) + "," + l(n) + "l" + m(h - p) + "," + m(j - o) + "l" + l(c) + "," + m(j - o) + "xe"; - return h - }, - getBox: function() { - var c = this.parent.getLayer(this.boxZIndex), - b; - if (!c) c = a.createElement(this.boxName), b = - c.style, b.position = "absolute", b.top = b.left = 0, this.parent.addLayer(this.boxZIndex, c); - return c - }, - hideBorder: function() { - var c = this.targetElement, - d = c.currentStyle, - g = c.runtimeStyle, - i = c.tagName, - h = b.ieVersion === 6, - j; - if (h && (i in b.childlessElements || i === "FIELDSET") || i === "BUTTON" || i === "INPUT" && c.type in b.inputButtonTypes) { - g.borderWidth = ""; - i = this.styleInfos.borderInfo.sides; - for (j = i.length; j--;) h = i[j], g["padding" + h] = "", g["padding" + h] = b.getLength(d["padding" + h]).pixels(c) + b.getLength(d["border" + h + "Width"]).pixels(c) + - (b.ieVersion !== 8 && j % 2 ? 1 : 0); - g.borderWidth = 0 - } else if (h) { - if (c.childNodes.length !== 1 || c.firstChild.tagName !== "ie6-mask") { - d = a.createElement("ie6-mask"); - i = d.style; - i.visibility = "visible"; - for (i.zoom = 1; i = c.firstChild;) d.appendChild(i); - c.appendChild(d); - g.visibility = "hidden" - } - } else g.borderColor = "transparent" - }, - unhideBorder: function() {}, - destroy: function() { - this.parent.removeLayer(this.boxZIndex); - delete this._shapes; - delete this._layers - } - }; - b.RootRenderer = b.RendererBase.newRenderer({ - isActive: function() { - var c = this.childRenderers, - a; - for (a in c) - if (c.hasOwnProperty(a) && c[a].isActive()) return !0; - return !1 - }, - needsUpdate: function() { - return this.styleInfos.visibilityInfo.changed() - }, - updatePos: function() { - if (this.isActive()) { - var c = this.getPositioningElement(), - d = c, - g, c = c.currentStyle, - i = c.position, - h = this.getBox().style, - j = 0, - k = 0, - k = this.boundsInfo.getBounds(); - if (i === "fixed" && b.ieVersion > 6) j = k.x, k = k.y, d = i; - else { - do d = d.offsetParent; while (d && d.currentStyle.position === "static"); - d ? (g = d.getBoundingClientRect(), d = d.currentStyle, j = k.x - g.left - (parseFloat(d.borderLeftWidth) || - 0), k = k.y - g.top - (parseFloat(d.borderTopWidth) || 0)) : (d = a.documentElement, j = k.x + d.scrollLeft - d.clientLeft, k = k.y + d.scrollTop - d.clientTop); - d = "absolute" - } - h.position = d; - h.left = j; - h.top = k; - h.zIndex = i === "static" ? -1 : c.zIndex; - this.isPositioned = !0 - } - }, - updateSize: b.emptyFn, - updateVisibility: function() { - var c = this.styleInfos.visibilityInfo.getProps(); - this.getBox().style.display = c.visible && c.displayed ? "" : "none" - }, - updateProps: function() { - this.isActive() ? this.updateVisibility() : this.destroy() - }, - getPositioningElement: function() { - var c = - this.targetElement; - return c.tagName in b.tableCellTags ? c.offsetParent : c - }, - getBox: function() { - var c = this._box, - b; - if (!c) b = this.getPositioningElement(), c = this._box = a.createElement("css3-container"), c.style.direction = "ltr", this.updateVisibility(), b.parentNode.insertBefore(c, b); - return c - }, - finishUpdate: b.emptyFn, - destroy: function() { - var c = this._box, - a; - c && (a = c.parentNode) && a.removeChild(c); - delete this._box; - delete this._layers - } - }); - b.BackgroundRenderer = b.RendererBase.newRenderer({ - boxZIndex: 2, - boxName: "background", - needsUpdate: function() { - var c = this.styleInfos; - return c.backgroundInfo.changed() || c.borderRadiusInfo.changed() - }, - isActive: function() { - var c = this.styleInfos; - return c.borderImageInfo.isActive() || c.borderRadiusInfo.isActive() || c.backgroundInfo.isActive() || c.boxShadowInfo.isActive() && c.boxShadowInfo.getProps().inset - }, - draw: function() { - var c = this.boundsInfo.getBounds(); - c.w && c.h && (this.drawBgColor(), this.drawBgImages()) - }, - drawBgColor: function() { - var c = this.styleInfos.backgroundInfo.getProps(), - a = this.boundsInfo.getBounds(), - b = this.targetElement, - d = c && c.color, - h, j; - if (d && d.alpha() > 0) { - if (this.hideBackground(), c = this.getShape("bgColor", "fill", this.getBox(), 1), h = a.w, a = a.h, c.stroked = !1, c.coordsize = h * 2 + "," + a * 2, c.coordorigin = "1,1", c.path = this.getBoxPath(null, 2), j = c.style, j.width = h, j.height = a, c.fill.color = d.colorValue(b), b = d.alpha(), b < 1) c.fill.opacity = b - } else this.deleteShape("bgColor") - }, - drawBgImages: function() { - var c = this.styleInfos.backgroundInfo.getProps(), - a = this.boundsInfo.getBounds(), - c = c && c.bgImages, - b, d, h, j, k; - if (c) { - this.hideBackground(); - d = a.w; - h = a.h; - for (k = c.length; k--;) a = c[k], b = this.getShape("bgImage" + k, "fill", this.getBox(), 2), b.stroked = !1, b.fill.type = "tile", b.fillcolor = "none", b.coordsize = d * 2 + "," + h * 2, b.coordorigin = "1,1", b.path = this.getBoxPath(0, 2), j = b.style, j.width = d, j.height = h, a.imgType === "linear-gradient" ? this.addLinearGradient(b, a) : (b.fill.src = a.imgUrl, this.positionBgImage(b, k)) - } - for (k = c ? c.length : 0; this.deleteShape("bgImage" + k++);); - }, - positionBgImage: function(c, a) { - var d = this; - b.Util.withImageSize(c.fill.src, function(i) { - var h = d.targetElement, - j = d.boundsInfo.getBounds(), - k = j.w, - j = j.h; - if (k && j) { - var l = c.fill, - m = d.styleInfos, - n = m.borderInfo.getProps(), - p = n && n.widths, - n = p ? p.t.pixels(h) : 0, - o = p ? p.r.pixels(h) : 0, - q = p ? p.b.pixels(h) : 0, - p = p ? p.l.pixels(h) : 0, - m = m.backgroundInfo.getProps().bgImages[a], - h = m.bgPosition ? m.bgPosition.coords(h, k - i.w - p - o, j - i.h - n - q) : { - x: 0, - y: 0 - }, - m = m.imgRepeat, - q = o = 0, - r = k + 1, - s = j + 1, - w = b.ieVersion === 8 ? 0 : 1, - p = Math.round(h.x) + p + 0.5, - n = Math.round(h.y) + n + 0.5; - l.position = p / k + "," + n / j; - if (m && m !== "repeat") { - if (m === "repeat-x" || m === "no-repeat") o = n + 1, s = n + i.h + w; - if (m === "repeat-y" || m === "no-repeat") q = p + 1, r = p + i.w + w; - c.style.clip = "rect(" + o + "px," + r + "px," + s + "px," + q + "px)" - } - } - }) - }, - addLinearGradient: function(c, a) { - var d = this.targetElement, - i = this.boundsInfo.getBounds(), - h = i.w, - j = i.h, - i = c.fill, - k = a.stops, - l = k.length, - m = Math.PI, - n = b.GradientUtil, - p = n.perpendicularIntersect, - o = n.distance, - n = n.getGradientMetrics(d, h, j, a), - q = n.angle, - r = n.startX, - s = n.startY, - w = n.startCornerX, - u = n.startCornerY, - v = n.endCornerX, - C = n.endCornerY, - t = n.deltaX, - y = n.deltaY, - n = n.lineLength, - h = q % 90 ? Math.atan2(t * h / j, y) / m * 180 : - q + 90; - h += 180; - h %= 360; - v = p(w, u, q, v, C); - j = o(w, u, v[0], v[1]); - m = []; - v = p(r, s, q, w, u); - o = o(r, s, v[0], v[1]) / j * 100; - p = []; - for (q = 0; q < l; q++) p.push(k[q].offset ? k[q].offset.pixels(d, n) : q === 0 ? 0 : q === l - 1 ? n : null); - for (q = 1; q < l; q++) { - if (p[q] === null) { - r = p[q - 1]; - n = q; - do s = p[++n]; while (s === null); - p[q] = r + (s - r) / (n - q + 1) - } - p[q] = Math.max(p[q], p[q - 1]) - } - for (q = 0; q < l; q++) m.push(o + p[q] / j * 100 + "% " + k[q].color.colorValue(d)); - i.angle = h; - i.type = "gradient"; - i.method = "sigma"; - i.color = k[0].color.colorValue(d); - i.color2 = k[l - 1].color.colorValue(d); - i.colors ? i.colors.value = - m.join(",") : i.colors = m.join(",") - }, - hideBackground: function() { - var c = this.targetElement.runtimeStyle; - if (!this.isMuseBGPolyfill()) c.backgroundImage = "url(about:blank)"; - c.backgroundColor = "transparent" - }, - destroy: function() { - b.RendererBase.destroy.call(this); - var c = this.targetElement.runtimeStyle; - if (!this.isMuseBGPolyfill()) c.backgroundImage = ""; - c.backgroundColor = "" - }, - isMuseBGPolyfill: function() { - return $(this.targetElement.children[0]).hasClass("museBgSizePolyfill") - } - }); - b.BorderRenderer = b.RendererBase.newRenderer({ - boxZIndex: 4, - boxName: "border", - needsUpdate: function() { - var c = this.styleInfos; - return c.borderInfo.changed() || c.borderRadiusInfo.changed() - }, - isActive: function() { - var c = this.styleInfos; - return (c.borderRadiusInfo.isActive() || c.backgroundInfo.isActive()) && !c.borderImageInfo.isActive() && c.borderInfo.isActive() - }, - draw: function() { - var c = this.targetElement, - a = this.styleInfos.borderInfo.getProps(), - b = this.boundsInfo.getBounds(), - d = b.w, - b = b.h, - h, j, k, l, m; - if (a) { - this.hideBorder(); - a = this.getBorderSegments(2); - l = 0; - for (m = a.length; l < m; l++) k = - a[l], h = this.getShape("borderPiece" + l, k.stroke ? "stroke" : "fill", this.getBox()), h.coordsize = d * 2 + "," + b * 2, h.coordorigin = "1,1", h.path = k.path, j = h.style, j.width = d, j.height = b, h.filled = !!k.fill, h.stroked = !!k.stroke, k.stroke ? (h = h.stroke, h.weight = k.weight + "px", h.color = k.color.colorValue(c), h.dashstyle = k.stroke === "dashed" ? "2 2" : k.stroke === "dotted" ? "1 1" : "solid", h.linestyle = k.stroke === "double" && k.weight > 2 ? "ThinThin" : "Single") : h.fill.color = k.fill.colorValue(c); - for (; this.deleteShape("borderPiece" + l++);); - } - }, - getBorderSegments: function(c) { - var a = - this.targetElement, - b, d, h, j = this.styleInfos.borderInfo, - k = [], - l, m, n, p, o = Math.round, - q, r, s; - if (j.isActive()) - if (b = j.getProps(), j = b.widths, r = b.styles, s = b.colors, b.widthsSame && b.stylesSame && b.colorsSame) s.t.alpha() > 0 && (b = j.t.pixels(a), n = b / 2, k.push({ - path: this.getBoxPath({ - t: n, - r: n, - b: n, - l: n - }, c), - stroke: r.t, - color: s.t, - weight: b - })); - else { - c = c || 1; - b = this.boundsInfo.getBounds(); - d = b.w; - h = b.h; - b = o(j.t.pixels(a)); - n = o(j.r.pixels(a)); - p = o(j.b.pixels(a)); - var a = o(j.l.pixels(a)), - w = { - t: b, - r: n, - b: p, - l: a - }, - a = this.styleInfos.borderRadiusInfo; - a.isActive() && (q = this.getRadiiPixels(a.getProps())); - l = Math.floor; - m = Math.ceil; - var u = function(c, a) { - return q ? q[c][a] : 0 - }, - v = function(a, b, f, g, j, k) { - var n = u("x", a), - o = u("y", a), - q = a.charAt(1) === "r", - a = a.charAt(0) === "b"; - return n > 0 && o > 0 ? (k ? "al" : "ae") + (q ? m(d - n) : l(n)) * c + "," + (a ? m(h - o) : l(o)) * c + "," + (l(n) - b) * c + "," + (l(o) - f) * c + "," + g * 65535 + "," + 2949075 * (j ? 1 : -1) : (k ? "m" : "l") + (q ? d - b : b) * c + "," + (a ? h - f : f) * c - }, - C = function(a, b, f, g) { - var j = a === "t" ? l(u("x", "tl")) * c + "," + m(b) * c : a === "r" ? m(d - b) * c + "," + l(u("y", "tr")) * c : a === "b" ? m(d - u("x", "br")) * - c + "," + l(h - b) * c : l(b) * c + "," + m(h - u("y", "bl")) * c, - a = a === "t" ? m(d - u("x", "tr")) * c + "," + m(b) * c : a === "r" ? m(d - b) * c + "," + m(h - u("y", "br")) * c : a === "b" ? l(u("x", "bl")) * c + "," + l(h - b) * c : l(b) * c + "," + l(u("y", "tl")) * c; - return f ? (g ? "m" + a : "") + "l" + j : (g ? "m" + j : "") + "l" + a - }, - a = function(c, a, b, d, f, g) { - var i = c === "l" || c === "r", - h = w[c], - j, n; - h > 0 && r[c] !== "none" && s[c].alpha() > 0 && (j = w[i ? c : a], a = w[i ? a : c], n = w[i ? c : b], b = w[i ? b : c], r[c] === "dashed" || r[c] === "dotted" ? (k.push({ - path: v(d, j, a, g + 45, 0, 1) + v(d, 0, 0, g, 1, 0), - fill: s[c] - }), k.push({ - path: C(c, h / 2, 0, 1), - stroke: r[c], - weight: h, - color: s[c] - }), k.push({ - path: v(f, n, b, g, 0, 1) + v(f, 0, 0, g - 45, 1, 0), - fill: s[c] - })) : k.push({ - path: v(d, j, a, g + 45, 0, 1) + C(c, h, 0, 0) + v(f, n, b, g, 0, 0) + (r[c] === "double" && h > 2 ? v(f, n - l(n / 3), b - l(b / 3), g - 45, 1, 0) + C(c, m(h / 3 * 2), 1, 0) + v(d, j - l(j / 3), a - l(a / 3), g, 1, 0) + "x " + v(d, l(j / 3), l(a / 3), g + 45, 0, 1) + C(c, l(h / 3), 1, 0) + v(f, l(n / 3), l(b / 3), g, 0, 0) : "") + v(f, 0, 0, g - 45, 1, 0) + C(c, 0, 1, 0) + v(d, 0, 0, g, 1, 0), - fill: s[c] - })) - }; - a("t", "l", "r", "tl", "tr", 90); - a("r", "t", "b", "tr", "br", 0); - a("b", "r", "l", "br", "bl", -90); - a("l", "b", "t", "bl", "tl", -180) - } - return k - }, - destroy: function() { - if (this.finalized || - !this.styleInfos.borderImageInfo.isActive()) this.targetElement.runtimeStyle.borderColor = ""; - b.RendererBase.destroy.call(this) - } - }); - b.BorderImageRenderer = b.RendererBase.newRenderer({ - boxZIndex: 5, - pieceNames: ["t", "tr", "r", "br", "b", "bl", "l", "tl", "c"], - needsUpdate: function() { - return this.styleInfos.borderImageInfo.changed() - }, - isActive: function() { - return this.styleInfos.borderImageInfo.isActive() - }, - draw: function() { - this.getBox(); - var c = this.styleInfos.borderImageInfo.getProps(), - a = this.styleInfos.borderInfo.getProps(), - d = this.boundsInfo.getBounds(), - i = this.targetElement, - h = this.pieces; - b.Util.withImageSize(c.src, function(j) { - function k(c, a, b, d, f) { - var c = h[c].style, - g = Math.max; - c.width = g(a, 0); - c.height = g(b, 0); - c.left = d; - c.top = f - } - - function l(c, a, b) { - for (var d = 0, f = c.length; d < f; d++) h[c[d]].imagedata[a] = b - } - var m = d.w, - n = d.h, - p = b.getLength("0"), - o = c.widths || (a ? a.widths : { - t: p, - r: p, - b: p, - l: p - }), - p = o.t.pixels(i), - q = o.r.pixels(i), - r = o.b.pixels(i), - o = o.l.pixels(i), - s = c.slice, - w = s.t.pixels(i), - u = s.r.pixels(i), - v = s.b.pixels(i), - s = s.l.pixels(i); - k("tl", o, p, - 0, 0); - k("t", m - o - q, p, o, 0); - k("tr", q, p, m - q, 0); - k("r", q, n - p - r, m - q, p); - k("br", q, r, m - q, n - r); - k("b", m - o - q, r, o, n - r); - k("bl", o, r, 0, n - r); - k("l", o, n - p - r, 0, p); - k("c", m - o - q, n - p - r, o, p); - l(["tl", "t", "tr"], "cropBottom", (j.h - w) / j.h); - l(["tl", "l", "bl"], "cropRight", (j.w - s) / j.w); - l(["bl", "b", "br"], "cropTop", (j.h - v) / j.h); - l(["tr", "r", "br"], "cropLeft", (j.w - u) / j.w); - l(["l", "r", "c"], "cropTop", w / j.h); - l(["l", "r", "c"], "cropBottom", v / j.h); - l(["t", "b", "c"], "cropLeft", s / j.w); - l(["t", "b", "c"], "cropRight", u / j.w); - h.c.style.display = c.fill ? "" : "none" - }, - this) - }, - getBox: function() { - var c = this.parent.getLayer(this.boxZIndex), - d, g, i, h = this.pieceNames, - j = h.length; - if (!c) { - c = a.createElement("border-image"); - d = c.style; - d.position = "absolute"; - this.pieces = {}; - for (i = 0; i < j; i++) g = this.pieces[h[i]] = b.Util.createVmlElement("rect"), g.appendChild(b.Util.createVmlElement("imagedata")), d = g.style, d.behavior = "url(#default#VML)", d.position = "absolute", d.top = d.left = 0, g.imagedata.src = this.styleInfos.borderImageInfo.getProps().src, g.stroked = !1, g.filled = !1, c.appendChild(g); - this.parent.addLayer(this.boxZIndex, - c) - } - return c - }, - prepareUpdate: function() { - if (this.isActive()) { - var c = this.targetElement, - a = c.runtimeStyle, - b = this.styleInfos.borderImageInfo.getProps().widths; - a.borderStyle = "solid"; - if (b) a.borderTopWidth = b.t.pixels(c) + "px", a.borderRightWidth = b.r.pixels(c) + "px", a.borderBottomWidth = b.b.pixels(c) + "px", a.borderLeftWidth = b.l.pixels(c) + "px"; - this.hideBorder() - } - }, - destroy: function() { - var c = this.targetElement.runtimeStyle; - c.borderStyle = ""; - if (this.finalized || !this.styleInfos.borderInfo.isActive()) c.borderColor = c.borderWidth = - ""; - b.RendererBase.destroy.call(this) - } - }); - b.BoxShadowOutsetRenderer = b.RendererBase.newRenderer({ - boxZIndex: 1, - boxName: "outset-box-shadow", - needsUpdate: function() { - var c = this.styleInfos; - return c.boxShadowInfo.changed() || c.borderRadiusInfo.changed() - }, - isActive: function() { - var c = this.styleInfos.boxShadowInfo; - return c.isActive() && c.getProps().outset[0] - }, - draw: function() { - function c(c, b, h, j, l, m, n) { - c = a.getShape("shadow" + c + b, "fill", i, k - c); - b = c.fill; - c.coordsize = p * 2 + "," + o * 2; - c.coordorigin = "1,1"; - c.stroked = !1; - c.filled = !0; - b.color = l.colorValue(d); - if (m) b.type = "gradienttitle", b.color2 = b.color, b.opacity = 0; - c.path = n; - u = c.style; - u.left = h; - u.top = j; - u.width = p; - u.height = o; - return c - } - for (var a = this, d = this.targetElement, i = this.getBox(), h = this.styleInfos, j = h.boxShadowInfo.getProps().outset, h = h.borderRadiusInfo.getProps(), k = j.length, l = k, m, n = this.boundsInfo.getBounds(), p = n.w, o = n.h, n = b.ieVersion === 8 ? 1 : 0, q = ["tl", "tr", "br", "bl"], r, s, w, u, v, C, t, y, H, I, F, E, J, K; l--;) { - s = j[l]; - v = s.xOffset.pixels(d); - C = s.yOffset.pixels(d); - m = s.spread.pixels(d); - t = - s.blur.pixels(d); - s = s.color; - y = -m - t; - if (!h && t) h = b.BorderRadiusStyleInfo.ALL_ZERO; - y = this.getBoxPath({ - t: y, - r: y, - b: y, - l: y - }, 2, h); - if (t) - if (H = (m + t) * 2 + p, I = (m + t) * 2 + o, F = t * 2 / H, E = t * 2 / I, t - m > p / 2 || t - m > o / 2) - for (m = 4; m--;) r = q[m], J = r.charAt(0) === "b", K = r.charAt(1) === "r", r = c(l, r, v, C, s, t, y), w = r.fill, w.focusposition = (K ? 1 - F : F) + "," + (J ? 1 - E : E), w.focussize = "0,0", r.style.clip = "rect(" + ((J ? I / 2 : 0) + n) + "px," + (K ? H : H / 2) + "px," + (J ? I : I / 2) + "px," + ((K ? H / 2 : 0) + n) + "px)"; - else r = c(l, "", v, C, s, t, y), w = r.fill, w.focusposition = F + "," + E, w.focussize = 1 - F * 2 + "," + - (1 - E * 2); - else if (r = c(l, "", v, C, s, t, y), v = s.alpha(), v < 1) r.fill.opacity = v - } - } - }); - b.ImgRenderer = b.RendererBase.newRenderer({ - boxZIndex: 6, - boxName: "imgEl", - needsUpdate: function() { - var c = this.styleInfos; - return this.targetElement.src !== this._lastSrc || c.borderRadiusInfo.changed() - }, - isActive: function() { - var c = this.styleInfos; - return c.borderRadiusInfo.isActive() || c.backgroundInfo.isPngFix() - }, - draw: function() { - this._lastSrc = k; - this.hideActualImg(); - var c = this.getShape("img", "fill", this.getBox()), - a = c.fill, - d = this.boundsInfo.getBounds(), - i = d.w, - d = d.h, - h = this.styleInfos.borderInfo.getProps(), - j = h && h.widths, - h = this.targetElement, - k = h.src, - l = Math.round, - m = h.currentStyle, - n = b.getLength; - if (!j || b.ieVersion < 7) j = b.getLength("0"), j = { - t: j, - r: j, - b: j, - l: j - }; - c.stroked = !1; - a.type = "frame"; - a.src = k; - a.position = (i ? 0.5 / i : 0) + "," + (d ? 0.5 / d : 0); - c.coordsize = i * 2 + "," + d * 2; - c.coordorigin = "1,1"; - c.path = this.getBoxPath({ - t: l(j.t.pixels(h) + n(m.paddingTop).pixels(h)), - r: l(j.r.pixels(h) + n(m.paddingRight).pixels(h)), - b: l(j.b.pixels(h) + n(m.paddingBottom).pixels(h)), - l: l(j.l.pixels(h) + n(m.paddingLeft).pixels(h)) - }, - 2); - c = c.style; - c.width = i; - c.height = d - }, - hideActualImg: function() { - this.targetElement.runtimeStyle.filter = "alpha(opacity=0)" - }, - destroy: function() { - b.RendererBase.destroy.call(this); - this.targetElement.runtimeStyle.filter = "" - } - }); - b.IE9RootRenderer = b.RendererBase.newRenderer({ - updatePos: b.emptyFn, - updateSize: b.emptyFn, - updateVisibility: b.emptyFn, - updateProps: b.emptyFn, - outerCommasRE: /^,+|,+$/g, - innerCommasRE: /,+/g, - setBackgroundLayer: function(c, a) { - (this._bgLayers || (this._bgLayers = []))[c] = a || void 0 - }, - finishUpdate: function() { - var c = - this._bgLayers, - a; - if (c && (a = c.join(",").replace(this.outerCommasRE, "").replace(this.innerCommasRE, ",")) !== this._lastBg) this._lastBg = this.targetElement.runtimeStyle.background = a - }, - destroy: function() { - this.targetElement.runtimeStyle.background = ""; - delete this._bgLayers - } - }); - b.IE9BackgroundRenderer = b.RendererBase.newRenderer({ - bgLayerZIndex: 1, - needsUpdate: function() { - return this.styleInfos.backgroundInfo.changed() - }, - isActive: function() { - var c = this.styleInfos; - return c.backgroundInfo.isActive() || c.borderImageInfo.isActive() - }, - draw: function() { - var c = this.styleInfos.backgroundInfo.getProps(), - a, d, i = 0, - h, j; - if (c) { - a = []; - if (d = c.bgImages) - for (; h = d[i++];) h.imgType === "linear-gradient" ? (j = this.getBgAreaSize(h.bgOrigin), j = (h.bgSize || b.BgSize.DEFAULT).pixels(this.targetElement, j.w, j.h, j.w, j.h), a.push("url(data:image/svg+xml," + escape(this.getGradientSvg(h, j.w, j.h)) + ") " + this.bgPositionToString(h.bgPosition) + " / " + j.w + "px " + j.h + "px " + (h.bgAttachment || "") + " " + (h.bgOrigin || "") + " " + (h.bgClip || ""))) : a.push(h.origString); - c.color && a.push(c.color.val); - this.parent.setBackgroundLayer(this.bgLayerZIndex, a.join(",")) - } - }, - bgPositionToString: function(c) { - return c ? c.tokens.map(function(c) { - return c.tokenValue - }).join(" ") : "0 0" - }, - getBgAreaSize: function(c) { - var a = this.targetElement, - d = this.boundsInfo.getBounds(), - i = d.w, - d = d.h, - h; - if (c !== "border-box" && (h = this.styleInfos.borderInfo.getProps()) && (h = h.widths)) i -= h.l.pixels(a) + h.l.pixels(a), d -= h.t.pixels(a) + h.b.pixels(a); - if (c === "content-box") c = b.getLength, h = a.currentStyle, i -= c(h.paddingLeft).pixels(a) + c(h.paddingRight).pixels(a), - d -= c(h.paddingTop).pixels(a) + c(h.paddingBottom).pixels(a); - return { - w: i, - h: d - } - }, - getGradientSvg: function(c, a, d) { - var i = this.targetElement, - h = c.stops, - j = h.length, - k = b.GradientUtil.getGradientMetrics(i, a, d, c), - c = k.startX, - l = k.startY, - m = k.endX, - n = k.endY, - k = k.lineLength, - p, o, q, r, s; - p = []; - for (o = 0; o < j; o++) p.push(h[o].offset ? h[o].offset.pixels(i, k) : o === 0 ? 0 : o === j - 1 ? k : null); - for (o = 1; o < j; o++) - if (p[o] === null) { - r = p[o - 1]; - q = o; - do s = p[++q]; while (s === null); - p[o] = r + (s - r) / (q - o + 1) - } - a = ['' - ]; - for (o = 0; o < j; o++) a.push(''); - a.push(''); - return a.join("") - }, - destroy: function() { - this.parent.setBackgroundLayer(this.bgLayerZIndex) - } - }); - b.IE9BorderImageRenderer = b.RendererBase.newRenderer({ - REPEAT: "repeat", - STRETCH: "stretch", - ROUND: "round", - bgLayerZIndex: 0, - needsUpdate: function() { - return this.styleInfos.borderImageInfo.changed() - }, - isActive: function() { - return this.styleInfos.borderImageInfo.isActive() - }, - draw: function() { - var c = this, - a = c.styleInfos.borderImageInfo.getProps(), - d = c.styleInfos.borderInfo.getProps(), - i = c.boundsInfo.getBounds(), - h = a.repeat, - j = h.h, - k = h.v, - l = c.targetElement, - m = 0; - b.Util.withImageSize(a.src, function(h) { - function p(c, a, b, d, f, g, i, h, l, m) { - N.push(''); - O.push(''); - L++ - } - var o = i.w, - q = i.h, - r = h.w, - s = h.h, - w = c.imageToDataURI(a.src, r, s), - u = c.REPEAT, - v = c.STRETCH, - h = c.ROUND, - C = Math.ceil, - t = b.getLength("0"), - y = a.widths || (d ? d.widths : { - t: t, - r: t, - b: t, - l: t - }), - t = y.t.pixels(l), - H = y.r.pixels(l), - I = y.b.pixels(l), - y = y.l.pixels(l), - F = a.slice, - E = F.t.pixels(l), - J = F.r.pixels(l), - K = F.b.pixels(l), - F = F.l.pixels(l), - G = o - y - H, - M = q - t - I, - B = r - F - J, - x = s - E - K, - A = j === v ? G : B * t / E, - z = k === v ? M : x * H / J, - D = j === v ? G : B * I / K, - v = k === v ? M : x * y / F, - N = [], - O = [], - L = 0; - j === h && (A -= (A - (G % A || A)) / C(G / A), D -= (D - (G % D || D)) / C(G / D)); - k === h && (z -= (z - (M % z || z)) / C(M / z), v -= (v - (M % v || v)) / C(M / v)); - h = ['']; - p(0, 0, y, t, 0, 0, F, E, y, t); - p(y, 0, G, t, F, 0, B, E, - A, t); - p(o - H, 0, H, t, r - J, 0, J, E, H, t); - p(0, t, y, M, 0, E, F, x, y, v); - a.fill && p(y, t, G, M, F, E, B, x, A || D || B, v || z || x); - p(o - H, t, H, M, r - J, E, J, x, H, z); - p(0, q - I, y, I, 0, s - K, F, K, y, I); - p(y, q - I, G, I, F, s - K, B, K, D, I); - p(o - H, q - I, H, I, r - J, s - K, J, K, H, I); - h.push("" + N.join("\n") + "" + O.join("\n") + ""); - c.parent.setBackgroundLayer(c.bgLayerZIndex, "url(data:image/svg+xml," + escape(h.join("")) + ") no-repeat border-box border-box"); - m && c.parent.finishUpdate() - }, c); - m = 1 - }, - imageToDataURI: function() { - var c = {}; - return function(b, d, i) { - var h = c[b], - j; - if (!h) h = new Image, j = a.createElement("canvas"), h.src = b, j.width = d, j.height = i, j.getContext("2d").drawImage(h, 0, 0), h = c[b] = j.toDataURL(); - return h - } - }(), - prepareUpdate: b.BorderImageRenderer.prototype.prepareUpdate, - destroy: function() { - var c = this.targetElement.runtimeStyle; - this.parent.setBackgroundLayer(this.bgLayerZIndex); - c.borderColor = c.borderStyle = c.borderWidth = "" - } - }); - b.Element = function() { - function c(c) { - var a = q.slice.call(arguments, 1), - b = a.length; - setTimeout(function() { - for (; b--;) c.className += " " + a[b] - }, 0) - } - - function d(c) { - var a = - q.slice.call(arguments, 1), - b = a.length; - setTimeout(function() { - for (; b--;) { - var d = c, - f = a[b], - f = o[f] || (o[f] = RegExp("\\b" + f + "\\b", "g")); - d.className = d.className.replace(f, "") - } - }, 0) - } - - function g(g) { - function i() { - if (!O) { - var c, d, f = b.ieDocMode, - k = g.currentStyle, - l = k.getAttribute(h) === "true"; - S = k.getAttribute(j); - S = f > 7 ? S !== "false" : S === "true"; - if (!N) { - N = 1; - g.runtimeStyle.zoom = 1; - for (var k = g, m = 1; k = k.previousSibling;) - if (k.nodeType === 1) { - m = 0; - break - } - m && (g.className += " " + n) - } - A.lock(); - if (l && (d = A.getBounds()) && (c = a.documentElement || a.body) && - (d.y > c.clientHeight || d.x > c.clientWidth || d.y + d.h < 0 || d.x + d.w < 0)) R || (R = 1, b.OnScroll.observe(i)); - else { - O = 1; - R = N = 0; - b.OnScroll.unobserve(i); - f === 9 ? (z = { - backgroundInfo: new b.BackgroundStyleInfo(g), - borderImageInfo: new b.BorderImageStyleInfo(g), - borderInfo: new b.BorderStyleInfo(g) - }, D = [z.backgroundInfo, z.borderImageInfo], x = new b.IE9RootRenderer(g, A, z), c = [new b.IE9BackgroundRenderer(g, A, z, x), new b.IE9BorderImageRenderer(g, A, z, x)]) : (z = { - backgroundInfo: new b.BackgroundStyleInfo(g), - borderInfo: new b.BorderStyleInfo(g), - borderImageInfo: new b.BorderImageStyleInfo(g), - borderRadiusInfo: new b.BorderRadiusStyleInfo(g), - boxShadowInfo: new b.BoxShadowStyleInfo(g), - visibilityInfo: new b.VisibilityStyleInfo(g) - }, D = [z.backgroundInfo, z.borderInfo, z.borderImageInfo, z.borderRadiusInfo, z.boxShadowInfo, z.visibilityInfo], x = new b.RootRenderer(g, A, z), c = [new b.BoxShadowOutsetRenderer(g, A, z, x), new b.BackgroundRenderer(g, A, z, x), new b.BorderRenderer(g, A, z, x), new b.BorderImageRenderer(g, A, z, x)], g.tagName === "IMG" && c.push(new b.ImgRenderer(g, - A, z, x)), x.childRenderers = c); - B = [x].concat(c); - if (c = g.currentStyle.getAttribute(b.CSS_PREFIX + "watch-ancestors")) { - c = parseInt(c, 10); - d = 0; - for (l = g.parentNode; l && (c === "NaN" || d++ < c);) G(l, "onpropertychange", E), G(l, "onmouseenter", C), G(l, "onmouseleave", t), G(l, "onmousedown", y), l.tagName in b.focusableElements && (G(l, "onfocus", I), G(l, "onblur", F)), l = l.parentNode - } - S && (b.Heartbeat.observe(q), b.Heartbeat.run()); - q(1) - } - L || (L = 1, f < 9 && G(g, "onmove", o), G(g, "onresize", o), G(g, "onpropertychange", v), G(g, "onmouseenter", C), G(g, "onmouseleave", - t), G(g, "onmousedown", y), g.tagName in b.focusableElements && (G(g, "onfocus", I), G(g, "onblur", F)), b.OnResize.observe(o), b.OnUnload.observe(M)); - A.unlock() - } - } - - function o() { - A && A.hasBeenQueried() && q() - } - - function q(c) { - if (!Q) - if (O) { - var a, b = B.length; - J(); - for (a = 0; a < b; a++) B[a].prepareUpdate(); - if (c || A.positionChanged()) - for (a = 0; a < b; a++) B[a].updatePos(); - if (c || A.sizeChanged()) - for (a = 0; a < b; a++) B[a].updateSize(); - x.finishUpdate(); - K() - } else N || i() - } - - function v() { - var c, a = B.length, - b; - c = event; - if (!Q && !(c && c.propertyName in p)) - if (O) { - J(); - for (c = 0; c < a; c++) B[c].prepareUpdate(); - for (c = 0; c < a; c++) b = B[c], b.isPositioned || b.updatePos(), b.needsUpdate() && b.updateProps(); - x.finishUpdate(); - K() - } else N || i() - } - - function C() { - c(g, k) - } - - function t() { - d(g, k, l) - } - - function y() { - c(g, l); - b.OnMouseup.observe(H) - } - - function H() { - d(g, l); - b.OnMouseup.unobserve(H) - } - - function I() { - c(g, m) - } - - function F() { - d(g, m) - } - - function E() { - var c = event.propertyName; - (c === "className" || c === "id") && v() - } - - function J() { - A.lock(); - for (var c = D.length; c--;) D[c].lock() - } - - function K() { - for (var c = D.length; c--;) D[c].unlock(); - A.unlock() - } - - function G(c, a, b) { - c.attachEvent(a, b); - P.push([c, a, b]) - } - - function M() { - if (L) { - for (var c = P.length, a; c--;) a = P[c], a[0].detachEvent(a[1], a[2]); - b.OnUnload.unobserve(M); - L = 0; - P = [] - } - } - var B, x, A = new b.BoundsInfo(g), - z, D, N, O, L, P = [], - R, Q, S; - this.init = i; - this.update = q; - this.destroy = function() { - if (!Q) { - var c, a; - M(); - Q = 1; - if (B) { - c = 0; - for (a = B.length; c < a; c++) B[c].finalized = 1, B[c].destroy() - } - S && b.Heartbeat.unobserve(q); - b.OnResize.unobserve(q); - B = A = z = D = g = null - } - }; - this.el = g - } - var i = {}, - h = b.CSS_PREFIX + "lazy-init", - j = b.CSS_PREFIX + "poll", - k = b.CLASS_PREFIX + "hover", - l = b.CLASS_PREFIX + "active", - m = b.CLASS_PREFIX + "focus", - n = b.CLASS_PREFIX + "first-child", - p = { - background: 1, - bgColor: 1, - display: 1 - }, - o = {}, - q = []; - g.getInstance = function(c) { - var a = b.Util.getUID(c); - return i[a] || (i[a] = new g(c)) - }; - g.destroy = function(c) { - var c = b.Util.getUID(c), - a = i[c]; - a && (a.destroy(), delete i[c]) - }; - g.destroyAll = function() { - var c = [], - a; - if (i) { - for (var b in i) i.hasOwnProperty(b) && (a = i[b], c.push(a.el), a.destroy()); - i = {} - } - return c - }; - return g - }(); - b.supportsVML = b.supportsVML; - b.attach = function(c) { - b.ieDocMode < - 10 && b.supportsVML && b.Element.getInstance(c).init() - }; - b.detach = function(c) { - b.Element.destroy(c) - } - } -})(); diff --git a/scripts/touchswipe.js b/scripts/touchswipe.js deleted file mode 100644 index 72077a20..00000000 --- a/scripts/touchswipe.js +++ /dev/null @@ -1,484 +0,0 @@ -(function(a) { - typeof define === "function" && define.amd && define.amd.jQuery ? define(["jquery"], a) : a(jQuery) -})(function(a) { - function b(b) { - if (b && b.allowPageScroll === void 0 && (b.swipe !== void 0 || b.swipeStatus !== void 0)) b.allowPageScroll = i; - if (b.click !== void 0 && b.tap === void 0) b.tap = b.click; - b || (b = {}); - b = a.extend({}, a.fn.swipe.defaults, b); - return this.each(function() { - var g = a(this), - d = g.data(R); - d || (d = new c(this, b), g.data(R, d)) - }) - } - - function c(b, c) { - function ha(b) { - if (t.data(R + "_intouch") !== !0 && !(a(b.target).closest(c.excludedElements, - t).length > 0)) { - var g = b.originalEvent ? b.originalEvent : b, - d, k = r ? g.touches[0] : g; - A = F; - r ? B = g.touches.length : b.preventDefault(); - G = 0; - K = H = null; - N = O = D = 0; - I = 1; - L = 0; - w = Ba(); - Y = Ca(); - Z = V = 0; - if (!r || B === c.fingers || c.fingers === x || W()) { - if (ia(0, k), aa = P(), B == 2 && (ia(1, g.touches[1]), O = N = ja(w[0].start, w[1].start)), c.swipeStatus || c.pinchStatus) d = J(g, A) - } else d = !1; - if (d === !1) return A = z, J(g, A), d; - else c.hold && (ka = setTimeout(a.proxy(function() { - t.trigger("hold", [g.target]); - c.hold && (d = c.hold.call(t, g, g.target)) - }, this), c.longTapThreshold)), - ba(!0); - return null - } - } - - function la(b) { - var o = b.originalEvent ? b.originalEvent : b; - if (!(A === C || A === z || ta())) { - var p, q = ua(r ? o.touches[0] : o); - X = P(); - if (r) B = o.touches.length; - c.hold && clearTimeout(ka); - A = u; - B == 2 && (O == 0 ? (ia(1, o.touches[1]), O = N = ja(w[0].start, w[1].start)) : (ua(o.touches[1]), N = ja(w[0].end, w[1].end), K = I < 1 ? j : h), I = (N / O * 1).toFixed(2), L = Math.abs(O - N)); - if (B === c.fingers || c.fingers === x || !r || W()) { - var n; - n = q.start; - var m = q.end; - n = Math.round(Math.atan2(m.y - n.y, n.x - m.x) * 180 / Math.PI); - n < 0 && (n = 360 - Math.abs(n)); - n = H = n <= 45 && - n >= 0 ? d : n <= 360 && n >= 315 ? d : n >= 135 && n <= 225 ? f : n > 45 && n < 135 ? k : g; - if (c.allowPageScroll === i || W()) b.preventDefault(); - else switch (m = c.allowPageScroll === l, n) { - case d: - (c.swipeLeft && m || !m && c.allowPageScroll != s) && b.preventDefault(); - break; - case f: - (c.swipeRight && m || !m && c.allowPageScroll != s) && b.preventDefault(); - break; - case g: - (c.swipeUp && m || !m && c.allowPageScroll != v) && b.preventDefault(); - break; - case k: - (c.swipeDown && m || !m && c.allowPageScroll != v) && b.preventDefault() - } - G = Math.round(Math.sqrt(Math.pow(q.end.x - q.start.x, 2) + Math.pow(q.end.y - - q.start.y, 2))); - D = X - aa; - b = H; - n = G; - n = Math.max(n, va(b)); - Y[b].distance = n; - if (c.swipeStatus || c.pinchStatus) p = J(o, A); - if (!c.triggerOnTouchEnd || c.triggerOnTouchLeave) b = !0, c.triggerOnTouchLeave && (b = a(this), n = b.offset(), b = { - left: n.left, - right: n.left + b.outerWidth(), - top: n.top, - bottom: n.top + b.outerHeight() - }, b = q.end.x > b.left && q.end.x < b.right && q.end.y > b.top && q.end.y < b.bottom), !c.triggerOnTouchEnd && b ? A = ma(u) : c.triggerOnTouchLeave && !b && (A = ma(C)), (A == z || A == C) && J(o, A) - } else A = z, J(o, A); - p === !1 && (A = z, J(o, A)) - } - } - - function na(a) { - var b = - a.originalEvent; - if (r && b.touches.length > 0) return V = P(), Z = event.touches.length + 1, !0; - ta() && (B = Z); - X = P(); - D = X - aa; - oa() || !pa() ? (A = z, J(b, A)) : c.triggerOnTouchEnd || c.triggerOnTouchEnd == !1 && A === u ? (a.preventDefault(), A = C, J(b, A)) : !c.triggerOnTouchEnd && c.tap ? (A = C, S(b, A, q)) : A === u && (A = z, J(b, A)); - ba(!1); - return null - } - - function T() { - N = O = aa = X = B = 0; - I = 1; - Z = V = 0; - ba(!1) - } - - function qa(a) { - a = a.originalEvent; - c.triggerOnTouchLeave && (A = ma(C), J(a, A)) - } - - function wa() { - t.unbind(ca, ha); - t.unbind(da, T); - t.unbind(ra, la); - t.unbind(sa, na); - U && t.unbind(U, - qa); - ba(!1) - } - - function ma(a) { - var b = a, - g = c.maxTimeThreshold ? D >= c.maxTimeThreshold ? !1 : !0 : !0, - d = pa(), - k = oa(); - !g || k ? b = z : d && a == u && (!c.triggerOnTouchEnd || c.triggerOnTouchLeave) ? b = C : !d && a == C && c.triggerOnTouchLeave && (b = z); - return b - } - - function J(a, b) { - var g = void 0; - if (xa() && ya() || ya()) g = S(a, b, m); - else if ((za() && W() || W()) && g !== !1) g = S(a, b, o); - Aa() && c.doubleTap && g !== !1 ? g = S(a, b, p) : D > c.longTapThreshold && G < y && c.longTap && g !== !1 ? g = S(a, b, n) : (B === 1 || !r) && (isNaN(G) || G < c.threshold) && c.tap && g !== !1 && (g = S(a, b, q)); - b === z && T(a); - b === C && - (r ? a.touches.length == 0 && T(a) : T(a)); - return g - } - - function S(b, i, l) { - var s = void 0; - if (l == m) { - t.trigger("swipeStatus", [i, H || null, G || 0, D || 0, B, w]); - if (c.swipeStatus && (s = c.swipeStatus.call(t, b, i, H || null, G || 0, D || 0, B, w), s === !1)) return !1; - if (i == C && xa()) { - t.trigger("swipe", [H, G, D, B, w]); - if (c.swipe && (s = c.swipe.call(t, b, H, G, D, B, w), s === !1)) return !1; - switch (H) { - case d: - t.trigger("swipeLeft", [H, G, D, B, w]); - c.swipeLeft && (s = c.swipeLeft.call(t, b, H, G, D, B, w)); - break; - case f: - t.trigger("swipeRight", [H, G, D, B, w]); - c.swipeRight && (s = c.swipeRight.call(t, - b, H, G, D, B, w)); - break; - case g: - t.trigger("swipeUp", [H, G, D, B, w]); - c.swipeUp && (s = c.swipeUp.call(t, b, H, G, D, B, w)); - break; - case k: - t.trigger("swipeDown", [H, G, D, B, w]), c.swipeDown && (s = c.swipeDown.call(t, b, H, G, D, B, w)) - } - } - } - if (l == o) { - t.trigger("pinchStatus", [i, K || null, L || 0, D || 0, B, I, w]); - if (c.pinchStatus && (s = c.pinchStatus.call(t, b, i, K || null, L || 0, D || 0, B, I, w), s === !1)) return !1; - if (i == C && za()) switch (K) { - case h: - t.trigger("pinchIn", [K || null, L || 0, D || 0, B, I, w]); - c.pinchIn && (s = c.pinchIn.call(t, b, K || null, L || 0, D || 0, B, I, w)); - break; - case j: - t.trigger("pinchOut", [K || null, L || 0, D || 0, B, I, w]), c.pinchOut && (s = c.pinchOut.call(t, b, K || null, L || 0, D || 0, B, I, w)) - } - } - if (l == q) { - if (i === z || i === C) clearTimeout(ea), clearTimeout(ka), c.doubleTap && !Aa() ? (Q = P(), ea = setTimeout(a.proxy(function() { - Q = null; - t.trigger("tap", [b.target]); - c.tap && (s = c.tap.call(t, b, b.target)) - }, this), c.doubleTapThreshold)) : (Q = null, t.trigger("tap", [b.target]), c.tap && (s = c.tap.call(t, b, b.target))) - } else if (l == p) { - if (i === z || i === C) clearTimeout(ea), Q = null, t.trigger("doubletap", [b.target]), c.doubleTap && (s = c.doubleTap.call(t, - b, b.target)) - } else if (l == n && (i === z || i === C)) clearTimeout(ea), Q = null, t.trigger("longtap", [b.target]), c.longTap && (s = c.longTap.call(t, b, b.target)); - return s - } - - function pa() { - var a = !0; - c.threshold !== null && (a = G >= c.threshold); - return a - } - - function oa() { - var a = !1; - c.cancelThreshold !== null && H !== null && (a = va(H) - G >= c.cancelThreshold); - return a - } - - function za() { - var a = B === c.fingers || c.fingers === x || !r, - b = w[0].end.x !== 0, - g; - g = c.pinchThreshold !== null ? L >= c.pinchThreshold : !0; - return a && b && g - } - - function W() { - return !(!c.pinchStatus && !c.pinchIn && - !c.pinchOut) - } - - function xa() { - var a = c.maxTimeThreshold ? D >= c.maxTimeThreshold ? !1 : !0 : !0, - b = pa(), - g = B === c.fingers || c.fingers === x || !r, - d = w[0].end.x !== 0; - return !oa() && d && g && b && a - } - - function ya() { - return !(!c.swipe && !c.swipeStatus && !c.swipeLeft && !c.swipeRight && !c.swipeUp && !c.swipeDown) - } - - function Aa() { - if (Q == null) return !1; - var a = P(); - return !!c.doubleTap && a - Q <= c.doubleTapThreshold - } - - function ta() { - var a = !1; - V && P() - V <= c.fingerReleaseThreshold && (a = !0); - return a - } - - function ba(a) { - a === !0 ? (t.bind(ra, la), t.bind(sa, na), U && t.bind(U, qa)) : - (t.unbind(ra, la, !1), t.unbind(sa, na, !1), U && t.unbind(U, qa, !1)); - t.data(R + "_intouch", a === !0) - } - - function ia(a, b) { - w[a].identifier = b.identifier !== void 0 ? b.identifier : 0; - w[a].start.x = w[a].end.x = b.pageX || b.clientX; - w[a].start.y = w[a].end.y = b.pageY || b.clientY; - return w[a] - } - - function ua(a) { - var b; - a: { - for (b = 0; b < w.length; b++) - if (w[b].identifier == (a.identifier !== void 0 ? a.identifier : 0)) { - b = w[b]; - break a - } - b = void 0 - } - b.end.x = a.pageX || a.clientX; - b.end.y = a.pageY || a.clientY; - return b - } - - function Ba() { - for (var a = [], b = 0; b <= 5; b++) a.push({ - start: { - x: 0, - y: 0 - }, - end: { - x: 0, - y: 0 - }, - identifier: 0 - }); - return a - } - - function va(a) { - if (Y[a]) return Y[a].distance - } - - function Ca() { - var a = {}; - a[d] = fa(d); - a[f] = fa(f); - a[g] = fa(g); - a[k] = fa(k); - return a - } - - function fa(a) { - return { - direction: a, - distance: 0 - } - } - - function ja(a, b) { - var c = Math.abs(a.x - b.x), - g = Math.abs(a.y - b.y); - return Math.round(Math.sqrt(c * c + g * g)) - } - - function P() { - return (new Date).getTime() - } - var ga = r || M || !c.fallbackToMouseEvents, - ca = ga ? M ? E ? "MSPointerDown" : "pointerdown" : "touchstart" : "mousedown", - ra = ga ? M ? E ? "MSPointerMove" : "pointermove" : "touchmove" : - "mousemove", - sa = ga ? M ? E ? "MSPointerUp" : "pointerup" : "touchend" : "mouseup", - U = ga ? null : "mouseleave", - da = M ? E ? "MSPointerCancel" : "pointercancel" : "touchcancel", - G = 0, - H = null, - D = 0, - O = 0, - N = 0, - I = 1, - L = 0, - K = 0, - Y = null, - t = a(b), - A = "start", - B = 0, - w = null, - aa = 0, - X = 0, - V = 0, - Z = 0, - Q = 0, - ea = null, - ka = null; - try { - t.bind(ca, ha), t.bind(da, T) - } catch (Da) { - a.error("events not supported " + ca + "," + da + " on jQuery.swipe") - } - this.enable = function() { - t.bind(ca, ha); - t.bind(da, T); - return t - }; - this.disable = function() { - wa(); - return t - }; - this.destroy = function() { - wa(); - t.data(R, null); - return t - }; - this.option = function(b, g) { - if (c[b] !== void 0) - if (g === void 0) return c[b]; - else c[b] = g; - else a.error("Option " + b + " does not exist on jQuery.swipe.options"); - return null - } - } - var d = "left", - f = "right", - g = "up", - k = "down", - h = "in", - j = "out", - i = "none", - l = "auto", - m = "swipe", - o = "pinch", - q = "tap", - p = "doubletap", - n = "longtap", - s = "horizontal", - v = "vertical", - x = "all", - y = 10, - F = "start", - u = "move", - C = "end", - z = "cancel", - r = "ontouchstart" in window, - E = window.navigator.msPointerEnabled && !window.navigator.pointerEnabled, - M = window.navigator.pointerEnabled || window.navigator.msPointerEnabled, - R = "TouchSwipe"; - a.fn.swipe = function(c) { - var g = a(this), - d = g.data(R); - if (d && typeof c === "string") - if (d[c]) return d[c].apply(this, Array.prototype.slice.call(arguments, 1)); - else a.error("Method " + c + " does not exist on jQuery.swipe"); - else if (!d && (typeof c === "object" || !c)) return b.apply(this, arguments); - return g - }; - a.fn.swipe.defaults = { - fingers: 1, - threshold: 75, - cancelThreshold: null, - pinchThreshold: 20, - maxTimeThreshold: null, - fingerReleaseThreshold: 250, - longTapThreshold: 500, - doubleTapThreshold: 200, - swipe: null, - swipeLeft: null, - swipeRight: null, - swipeUp: null, - swipeDown: null, - swipeStatus: null, - pinchIn: null, - pinchOut: null, - pinchStatus: null, - click: null, - tap: null, - doubleTap: null, - longTap: null, - hold: null, - triggerOnTouchEnd: !0, - triggerOnTouchLeave: !1, - allowPageScroll: "auto", - fallbackToMouseEvents: !0, - excludedElements: "label, button, input, select, textarea, a, .noSwipe" - }; - a.fn.swipe.phases = { - PHASE_START: F, - PHASE_MOVE: u, - PHASE_END: C, - PHASE_CANCEL: z - }; - a.fn.swipe.directions = { - LEFT: d, - RIGHT: f, - UP: g, - DOWN: k, - IN: h, - OUT: j - }; - a.fn.swipe.pageScroll = { - NONE: i, - HORIZONTAL: s, - VERTICAL: v, - AUTO: l - }; - a.fn.swipe.fingers = { - ONE: 1, - TWO: 2, - THREE: 3, - ALL: x - } -});; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "touchswipe.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("touchswipe.js"); - break - } - } - } - } -})(); diff --git a/scripts/webpro.js b/scripts/webpro.js deleted file mode 100644 index 02c8e738..00000000 --- a/scripts/webpro.js +++ /dev/null @@ -1,1713 +0,0 @@ -/* - - Copyright (c) 2012. Adobe Systems Incorporated. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - Neither the name of Adobe Systems Incorporated nor the names of its - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ -(function(a, b) { - function c() {} - var d = { - version: 0.1, - inherit: function(a, b) { - var c = function() {}; - c.prototype = b.prototype; - a.prototype = new c; - a.prototype.constructor = a; - a.prototype._super = b - }, - ensureArray: function() { - var b = [], - c = arguments.length; - c > 0 && (b = c > 1 || !a.isArray(arguments[0]) ? a.makeArray(arguments) : arguments[0]); - return b - }, - scopedFind: function(b, c, d, h) { - for (var d = " " + d + " ", j = [], b = a(b).find(c), c = b.length, h = a(h)[0], i = 0; i < c; i++) - for (var l = b[i], m = l; m;) { - if (m.className && (" " + m.className + " ").indexOf(d) !== -1) { - m === h && - j.push(l); - break - } - m = m.parentNode - } - return a(j) - } - }; - a.extend(c.prototype, { - bind: function(b, c, d) { - return a(this).bind(b, c, d) - }, - unbind: function(b, c) { - return a(this).unbind(b, c) - }, - trigger: function(b, c) { - var d = a.Event(b); - a(this).trigger(d, c); - return d - } - }); - d.EventDispatcher = c; - b.WebPro = d -})(jQuery, window, document); -(function(a, b) { - var c = 1; - b.ImageLoader = function(c) { - b.EventDispatcher.call(); - var f = this; - this.options = a.extend({}, this.defaultOptions, c); - this._currentEntry = null; - this._queue = []; - this._isRunning = this._needsSort = !1; - this._loader = new Image; - this._loadFunc = function() { - f._handleLoad() - }; - this._loadErrorFunc = function() { - f._handleError() - }; - this._timeoutFunc = function() { - f.trigger("wp-image-loader-timeout", this._currentEntry); - f._loadNext() - } - }; - b.inherit(b.ImageLoader, b.EventDispatcher); - a.extend(b.ImageLoader.prototype, { - defaultOptions: { - timeoutInterval: 1E3 - }, - add: function(d, f) { - if (d) { - urls = b.ensureArray(d); - for (var g = 0; g < urls.length; g++) { - var k = a.extend({ - reqId: c++, - src: urls[g], - width: 0, - height: 0, - priority: 50, - callback: null, - data: null - }, f); - this._queue.push(k); - this._needsSort = !0; - this.trigger("wp-image-loader-add", k) - } - this._isRunning && !this._currentEntry && this._loadNext() - } - }, - reprioritize: function(a, b) { - if (!(this._currentEntry && this._currentEntry.src == a)) { - var c; - for (c = 0; c < this._queue.length; ++c) - if (this._queue[c].src == a) break; - if (c != 0 && c < this._queue.length) this._queue = this._queue.splice(c, - b ? this._queue.length - c : 1).concat(this._queue) - } - }, - start: function() { - if (!this._isRunning) this._isRunning = !0, this._loadNext(), this.trigger("wp-image-loader-start") - }, - stop: function() { - if (this._isRunning) this._currentEntry && this._queue.unshift(this._currentEntry), this._resetLoader(), this._isRunning = !1, this.trigger("wp-image-loader-stop") - }, - clearQueue: function() { - var a = this._isRunning; - this.stop(); - this._queue.length = 0; - a && this.start() - }, - isQueueEmpty: function() { - return this._queue.length == 0 - }, - _loadNext: function() { - var d; - this._resetLoader(); - var a = this._queue; - if (a.length) { - if (this._needsSort) d = this._queue = a.sort(function(a, b) { - var c = a.priority - b.priority; - return c ? c : a.reqId - b.reqId - }), a = d, this._needsSort = !1; - this._currentEntry = a = a.shift(); - var b = this._loader; - b.onload = this._loadFunc; - b.onerror = this._loadErrorFunc; - b.src = a.src - } - }, - _resetLoader: function() { - var a = this._loader; - a.onload = null; - a.onerror = null; - this._currentEntry = a.src = null; - if (this._timeoutTimerId) clearTimeout(this._timeoutTimerId), this._timeoutTimerId = 0 - }, - _handleLoad: function() { - var a = - this._loader, - b = this._currentEntry; - b.width = a.width; - b.height = a.height; - b.callback && b.callback(b.src, b.width, b.height, b.data); - this.trigger("wp-image-loader-load-success", b); - this._loadNext() - }, - _handleError: function() { - this.trigger("wp-image-loader-load-error", this._currentEntry); - this._loadNext() - } - }) -})(jQuery, WebPro, window, document); -(function(a, b) { - function c() { - b.EventDispatcher.call(this); - this._initialize.apply(this, arguments) - } - b.inherit(c, b.EventDispatcher); - a.extend(c.prototype, { - defaultOptions: {}, - _widgetName: "Widget", - _initialize: function() { - var b; - this.plugins = []; - var c = this.trigger("before-setup"); - c.isDefaultPrevented() || (b = this._setUp.apply(this, arguments), this.trigger("setup")); - c = this.trigger("before-init-plugins"); - c.isDefaultPrevented() || (this._initializePlugins(b), this.trigger("init-plugins")); - this.options = a.extend({}, this.defaultOptions, - b); - c = this.trigger("before-extract-data"); - c.isDefaultPrevented() || (this._extractData(), this.trigger("extract-data")); - c = this.trigger("before-transform-markup"); - c.isDefaultPrevented() || (this._transformMarkup(), this.trigger("transform-markup")); - c = this.trigger("before-attach-behavior"); - c.isDefaultPrevented() || (this._attachBehavior(), this.trigger("attach-behavior")); - c = this.trigger("before-ready"); - c.isDefaultPrevented() || (this._ready(), this.trigger("ready")) - }, - _setUp: function(b, c) { - this.$element = a(b); - return c - }, - _initializePlugins: function(a) { - for (var a = a || {}, b = ((typeof a.useDefaultPlugins === "undefined" || a.useDefaultPlugins) && this.defaultPlugins ? this.defaultPlugins : []).concat(a.plugins || []), b = b.sort(function(a, b) { - a = typeof a.priority === "number" ? a.priority : 50; - b = typeof b.priority === "number" ? b.priority : 50; - return a - b - }), c = 0; c < b.length; c++) { - var k = b[c]; - k && k.initialize && k.initialize(this, a) - } - this.plugins = b - }, - _extractData: function() {}, - _transformMarkup: function() {}, - _attachBehavior: function() {}, - _ready: function() {} - }); - b.Widget = - c; - b.widget = function(c, f, g) { - var k = g && f || b.Widget, - g = g || f || {}, - f = function() { - k.apply(this, arguments); - this._widgetName = c - }; - b.inherit(f, k); - a.extend(f.prototype, g); - f.prototype.defaultOptions = a.extend({}, k.prototype.defaultOptions, g.defaultOptions); - var g = c.split("."), - h = g.length; - namespace = h > 1 && g[0] || "Widget"; - c = g[h - 1]; - b[namespace][c] = f - } -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.Button", b.Widget, { - defaultOptions: { - hoverClass: "wp-button-hover", - activeClass: "wp-button-down", - disabledClass: "wp-button-disabled", - disabled: !1, - callback: null - }, - _attachBehavior: function() { - var b = this, - d = function(f) { - b.mouseDown = !1; - b.$element.removeClass(b.options.activeClass); - !b.options.disabled && b.options.callback && b.options.callback.call(this, f); - a(b.$element).off("mouseup", d) - }; - this.mouseDown = !1; - this.$element.on("mouseover", function() { - b.options.disabled || b.$element.addClass(b.options.hoverClass + - (b.mouseDown ? " " + b.options.activeClass : "")) - }).on("mouseleave", function() { - b.$element.removeClass(b.options.hoverClass + " " + b.options.activeClass); - a(b.$element).off("mouseup", d) - }).on("mousedown", function() { - if (!b.options.disabled) b.mouseDown = !0, b.$element.addClass(b.options.activeClass), a(b.$element).on("mouseup", d) - }); - this.disabled(this.options.disabled) - }, - disabled: function(a) { - if (typeof a === "boolean") this.options.disabled = a, this.$element[a ? "addClass" : "removeClass"](this.options.disabledClass); - return this.options.disabled - } - }); - a.fn.wpButton = function(a) { - this.each(function() { - new b.Widget.Button(this, a) - }); - return this - } -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.RadioGroup", b.Widget, { - _widgetName: "radio-group", - defaultOptions: { - defaultIndex: 0, - hoverClass: "wp-radio-hover", - downClass: "wp-radio-down", - disabledClass: "wp-radio-disabled", - checkedClass: "wp-radio-checked", - disabled: !1, - toggleStateEnabled: !1 - }, - _attachBehavior: function() { - var a = this; - this.buttons = []; - this.activeElement = null; - this.activeIndex = -1; - this.$element.each(function() { - a.buttons.push(a._addButtonBehavior(this)) - }); - this.disabled(this.options.disabled) - }, - _addButtonBehavior: function(a) { - var d = - this, - f = new b.Widget.Button(a, { - hoverClass: this.options.hoverClass, - downClass: this.options.downClass, - disabledClass: this.options.disabledClass, - callback: function(b) { - return d._handleClick(b, f, a) - } - }); - return f - }, - _handleClick: function(a, b, f) { - this.options.disabled || this.checkButton(f) - }, - _getElementIndex: function(b) { - return b ? a.inArray(b, this.$element.get()) : -1 - }, - _getElementByIndex: function(a) { - return a >= 0 ? this.$element.eq(a)[0] : null - }, - _getElement: function(a) { - return typeof a === "number" ? this._getElementByIndex(a) : a - }, - checkButton: function(b) { - var b = this._getElement(b), - d = this.activeElement, - f = this.options.checkedClass; - b !== d ? (d && a(d).removeClass(f), b && a(b).addClass(f)) : this.options.toggleStateEnabled && b && (a(b).removeClass(f), b = null); - this.activeElement = b; - this.activeIndex = this._getElementIndex(b) - }, - disabled: function(b) { - if (typeof b === "boolean") this.disabled = b, a.each(this.buttons, function() { - this.disabled(b) - }); - return this.options.disabled - } - }); - a.fn.wpRadioGroup = function(a) { - new b.Widget.RadioGroup(this, a); - return this - } -})(jQuery, - WebPro, window, document); -(function(a, b) { - b.widget("Widget.TabGroup", b.Widget.RadioGroup, { - defaultOptions: { - defaultIndex: 0, - hoverClass: "wp-tab-hover", - downClass: "wp-tab-down", - disabledClass: "wp-tab-disabled", - checkedClass: "wp-tab-active", - disabled: !1, - toggleStateEnabled: !1 - }, - selectTab: function(a) { - this.checkButton(a) - }, - checkButton: function(a) { - var b = this._getElement(a), - f = this._getElementIndex(b), - b = { - tab: b, - tabIndex: f - }; - this.trigger("wp-tab-before-select", b); - this._super.prototype.checkButton.apply(this, arguments); - this.trigger("wp-tab-select", b) - } - }); - a.fn.wpTabGroup = function(a) { - new b.Widget.TabGroup(this, a); - return this - } -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.PanelGroup", b.Widget, { - _widgetName: "panel-group", - defaultOptions: { - defaultIndex: 0, - panelClass: "wp-panel", - activeClass: "wp-panel-active", - toggleStateEnabled: !1, - tabGroups: null - }, - _setUp: function() { - var a = this; - this.tabGroups = []; - this._tabCallback = function(b, f) { - a._handleTabSelect(b, f) - }; - this.showLock = 0; - this.tabDriver = null; - return this._super.prototype._setUp.apply(this, arguments) - }, - _attachBehavior: function() { - this.activeElement = null; - this.activeIndex = -1; - this.$element.addClass(this.options.panelClass); - var a = this.options.defaultIndex; - typeof a === "number" && a >= 0 && this.showPanel(a); - this.addTabGroup(this.options.tabGroups) - }, - _getElementIndex: function(b) { - return b ? a.inArray(b, this.$element.get()) : -1 - }, - _getElementByIndex: function(a) { - return this.$element.eq(a)[0] - }, - _getElement: function(a) { - return typeof a === "number" ? this._getElementByIndex(a) : a - }, - showPanel: function(b) { - if (!this.showLock) { - ++this.showLock; - var d = this._getElement(b), - f = this.activeElement, - g = this.options.activeClass; - if (d) - if (d !== f) { - b = { - panel: d, - panelIndex: this._getElementIndex(d) - }; - this.trigger("wp-panel-before-show", b); - f && this.hidePanel(f); - a(d).addClass(g); - this.activeElement = d; - this.activeIndex = this._getElementIndex(d); - d = this.tabGroups; - for (f = 0; f < d.length; f++) g = d[f], g !== this.tabDriver && g.selectTab(this.activeIndex); - this.trigger("wp-panel-show", b) - } else this.options.toggleStateEnabled && this.hidePanel(d); - --this.showLock - } - }, - hidePanel: function(b) { - if (b = typeof b === "number" ? this.$element.eq(b)[0] : b) { - var d = { - panel: b, - panelIndex: this._getElementIndex(b) - }; - this.trigger("wp-panel-before-hide", - d); - a(b).removeClass(this.options.activeClass); - if (b === this.activeElement) this.activeElement = null, this.activeIndex = -1; - this.trigger("wp-panel-hide", d) - } - }, - _handleTabSelect: function(a, b) { - if (!this.showLock) this.tabDriver = a.target, this.showPanel(b.tabIndex), this.tabDriver = null - }, - addTabGroup: function(c) { - if (c) - for (var c = b.ensureArray(c), d = c.length, f = 0; f < d; f++) { - var g = c[f]; - a.inArray(this.tabGroups, g) === -1 && (this.tabGroups.push(g), g.selectTab(this.activeIndex), g.bind("wp-tab-select", this._tabCallback)) - } - }, - removeTabGroup: function(c) { - for (var c = - b.ensureArray(c), d = c.length, f = 0; f < d; f++) { - var g = c[f]; - sets = this.tabGroups; - loc = a.inArray(sets, g); - loc !== -1 && sets.splice(loc, 1) - } - } - }); - a.fn.wpPanelGroup = function(a) { - new b.Widget.PanelGroup(this, a); - return this - } -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.Disclosure", b.Widget, { - defaultOptions: { - widgetClassName: "wp-disclosure-panels", - tabClassName: "wp-disclosure-panels-tab", - tabHoverClassName: "wp-disclosure-panels-tab-hover", - tabDownClassName: "wp-disclosure-panels-tab-down", - panelClassName: "wp-disclosure-panels-panel", - tabActiveClassName: "wp-disclosure-panels-tab-active", - panelActiveClassName: "wp-disclosure-panels-panel-active", - defaultIndex: 0, - toggleStateEnabled: !1 - }, - _attachBehavior: function() { - var a = this.$element[0], - d = this.options.widgetClassName, - f = b.scopedFind(a, "." + this.options.tabClassName, d, a), - a = b.scopedFind(a, "." + this.options.panelClassName, d, a); - this.tabs = new b.Widget.TabGroup(f, { - hoverClass: this.options.tabHoverClassName, - downClass: this.options.tabDownClassName, - checkedClass: this.options.tabActiveClassName, - toggleStateEnabled: this.options.toggleStateEnabled - }); - this.panels = new b.Widget.PanelGroup(a, { - panelClass: this.options.panelClassName, - activeClass: this.options.panelActiveClassName, - defaultIndex: this.options.defaultIndex, - toggleStateEnabled: this.options.toggleStateEnabled - }); - this.panels.addTabGroup(this.tabs) - } - }); - b.widget("Widget.TabbedPanels", b.Widget.Disclosure, { - defaultOptions: { - widgetClassName: "wp-tabbed-panels-panels", - tabClassName: "wp-tabbed-panels-panels-tab", - tabHoverClassName: "wp-tabbed-panels-panels-tab-hover", - tabDownClassName: "wp-tabbed-panels-panels-tab-down", - tabActiveClassName: "wp-tabbed-panels-panels-tab-active", - panelClassName: "wp-tabbed-panels-panels-panel", - panelActiveClassName: "wp-tabbed-panels-panels-panel-active", - toggleStateEnabled: !1 - } - }); - b.widget("Widget.Accordion", - b.Widget.Disclosure, { - defaultOptions: { - widgetClassName: "wp-accordion", - tabClassName: "wp-accordion-tab", - tabHoverClassName: "wp-accordion-tab-hover", - tabDownClassName: "wp-accordion-tab-down", - tabActiveClassName: "wp-accordion-tab-active", - panelClassName: "wp-accordion-panel", - panelActiveClassName: "wp-accordion-panel-active", - toggleStateEnabled: !1 - } - }) -})(jQuery, WebPro, window, document); -(function(a, b) { - b.Widget.Disclosure.DisplayPropertyTransitionPlugin = { - defaultOptions: {}, - initialize: function(b, d) { - var f = this; - a.extend(d, a.extend({}, f.defaultOptions, d)); - b.bind("attach-behavior", function() { - f._attachBehavior(b) - }) - }, - _attachBehavior: function(a) { - var a = a.panels, - b = a.$element, - f = a.activeIndex; - a.bind("wp-panel-show", function(a, b) { - b.panel.style.display = "block" - }); - a.bind("wp-panel-hide", function(a, b) { - b.panel.style.display = "none" - }); - b.each(function(a) { - this.style.display = a !== f ? "none" : "block" - }) - } - }; - b.Widget.Disclosure.AccordionTransitionPlugin = { - defaultOptions: { - transitionDirection: "vertical", - transitionDuration: 500, - dispatchTransitionEvents: !0 - }, - initialize: function(b, d) { - var f = this; - a.extend(d, a.extend({}, f.defaultOptions, d)); - b.bind("attach-behavior", function() { - f._attachBehavior(b) - }) - }, - _attachBehavior: function(b) { - var d = this, - f = b.panels, - g = f.$element, - k = f.activeIndex, - h = b.options.transitionDirection, - j = b.options.widgetClassName === "AccordionWidget" ? a(g[0]).closest("*[data-rotate]") : null; - if (j && j.length > 0) b.options.marginBottom = Muse.Utils.getCSSIntValue(j, - "margin-bottom"), b.options.originalHeight = j[0].scrollHeight; - b.options.rotatedAccordion = j; - f.bind("wp-panel-show", function(a, g) { - d._showPanel(b, g) - }); - f.bind("wp-panel-hide", function(a, g) { - d._hidePanel(b, g) - }); - g.each(function(b) { - if (b !== k) { - a(this).css("overflow", "hidden"); - if (h === "vertical" || h === "both") this.style.height = "0"; - if (h === "horizontal" || h === "both") this.style.width = "0" - } - }) - }, - _updateMarginBottomForRotatedAccordion: function(a) { - a.options.rotatedAccordion.css("margin-bottom", Math.round(a.options.marginBottom - - (a.options.rotatedAccordion[0].scrollHeight - a.options.originalHeight)) + "px") - }, - _transitionPanel: function(b, d, f) { - a("body").trigger("wp-page-height-change", d - b); - if ((b = f.options.rotatedAccordion) && b.length > 0) { - if (f.options.originalHeight == 0 && "undefined" !== typeof d) f.options.marginBottom = Muse.Utils.getCSSIntValue(b, "margin-bottom"), f.options.originalHeight = b[0].scrollHeight; - this._updateMarginBottomForRotatedAccordion(f) - } - }, - _showPanel: function(b, d) { - var f = b.options, - g = f.transitionDirection, - k = a(d.panel), - h = {}, - j = f.dispatchTransitionEvents, - i = this, - l = k.height(), - m = function(a) { - a = parseInt(a.elem.style.height); - i._transitionPanel(l, a, b); - l = a - }; - if (g === "vertical" || g === "both") h.height = k[0].scrollHeight + "px"; - if (g === "horizontal" || g === "both") h.width = k[0].scrollWidth + "px"; - k.stop(!0, !0).queue("animationFrameFx", a.animationFrameFx).animate(h, { - duration: f.transitionDuration, - progress: j ? m : null, - queue: "animationFrameFx", - complete: function() { - var a = { - overflow: "" - }; - if (g === "vertical" || g === "both") a.height = "auto"; - if (g === "horizontal" || g === - "both") a.width = "auto"; - k.css(a); - (a = b.options.rotatedAccordion) && a.length > 0 && i._updateMarginBottomForRotatedAccordion(b) - } - }).dequeue("animationFrameFx") - }, - _hidePanel: function(b, d) { - var f = b.options, - g = f.transitionDirection, - k = a(d.panel), - h = {}, - j = f.dispatchTransitionEvents, - i = this, - l = k.height(), - m = function(a) { - a = parseInt(a.elem.style.height); - i._transitionPanel(l, a, b); - l = a - }; - if (g === "vertical" || g === "both") h.height = "0"; - if (g === "horizontal" || g === "both") h.width = "0"; - k.stop(!0, !0).queue("animationFrameFx", a.animationFrameFx).animate(h, { - duration: f.transitionDuration, - queue: "animationFrameFx", - progress: j ? m : null, - complete: function() { - k.css("overflow", "hidden"); - var a = b.options.rotatedAccordion; - a && a.length > 0 && i._updateMarginBottomForRotatedAccordion(b) - } - }).dequeue("animationFrameFx") - } - } -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.SlideShowBase", b.Widget, { - _widgetName: "slideshow-base", - defaultOptions: { - displayInterval: 6E3, - autoPlay: !1, - loop: !0, - playOnce: !1 - }, - _setUp: function() { - var a = this; - this._ssTimer = 0; - this._ssTimerTriggered = !1; - this._ssTimerCallback = function() { - a._ssTimerTriggered = !0; - a.next(); - a._ssTimerTriggered = !1 - }; - return b.Widget.prototype._setUp.apply(this, arguments) - }, - _ready: function() { - this.options.autoPlay && this.play() - }, - play: function(a) { - e = this.trigger("wp-slideshow-before-play"); - e.isDefaultPrevented() || - (this._startTimer(!1, a), this.trigger("wp-slideshow-play")) - }, - stop: function() { - e = this.trigger("wp-slideshow-before-stop"); - e.isDefaultPrevented() || (this._stopTimer(), this.trigger("wp-slideshow-stop")) - }, - isPlaying: function() { - return this._ssTimer !== 0 - }, - _startTimer: function(a, b) { - this._stopTimer(); - var f = b ? 0 : this.options.displayInterval; - a && (f += this.options.transitionDuration); - this._ssTimer = setTimeout(this._ssTimerCallback, f) - }, - _stopTimer: function() { - this._ssTimer && clearTimeout(this._ssTimer); - this._ssTimer = 0 - }, - _executeCall: function(a, b) { - e = this.trigger("wp-slideshow-before-" + a); - e.isDefaultPrevented() || (this["_" + a].apply(this, b) && this.stop(), this.isPlaying() && this._startTimer(!0), this.trigger("wp-slideshow-" + a)) - }, - first: function() { - return this._executeCall("first", arguments) - }, - last: function() { - return this._executeCall("last", arguments) - }, - previous: function() { - return this._executeCall("previous", arguments) - }, - next: function() { - return this._executeCall("next", arguments) - }, - goTo: function() { - return this._executeCall("goTo", - arguments) - }, - close: function() { - return this._executeCall("close", arguments) - }, - _first: function() {}, - _last: function() {}, - _previous: function() {}, - _next: function() {}, - _goTo: function() {}, - _close: function() {} - }) -})(jQuery, WebPro, window, document); -(function(a, b) { - b.widget("Widget.ContentSlideShow", b.Widget.SlideShowBase, { - _widgetName: "content-slideshow", - defaultOptions: { - slideshowClassName: "wp-slideshow", - clipClassName: "wp-slideshow-clip", - viewClassName: "wp-slideshow-view", - slideClassName: "wp-slideshow-slide", - slideLinkClassName: "wp-slideshow-slide-link", - firstBtnClassName: "wp-slideshow-first-btn", - lastBtnClassName: "wp-slideshow-last-btn", - prevBtnClassName: "wp-slideshow-prev-btn", - nextBtnClassName: "wp-slideshow-next-btn", - playBtnClassName: "wp-slideshow-play-btn", - stopBtnClassName: "wp-slideshow-stop-btn", - closeBtnClassName: "wp-slideshow-close-btn", - playingClassName: "wp-slideshow-playing" - }, - _findWidgetElements: function(a) { - var d = this.$element[0]; - return b.scopedFind(d, a, this.options.slideshowClassName, d) - }, - _attachBtnHandler: function(a, b) { - var f = this; - this["$" + b + "Btn"] = this._findWidgetElements("." + a).bind("click", function(a) { - f[b](); - a.preventDefault() - }) - }, - _getAjaxSrcForImage: function(a) { - return a.data("src") - }, - _reprioritizeImageLoadingIfRequired: function(b) { - !this._isLoaded(b) && - this._cssilLoader && !this._cssilLoader.isQueueEmpty() && (b = a(this.slides.$element[b]), this._cssilLoader.reprioritize(this._getAjaxSrcForImage(b.is("img") ? b : b.find("img")), this.isPlaying())) - }, - _attachBehavior: function() { - var a = this, - d = this.options; - this._super.prototype._attachBehavior.call(this); - this._panelShowCallback = function() { - a._ssTimerTriggered || a.isPlaying() && a._startTimer(!1) - }; - this.$element.addClass(d.slideshowClassName); - var f = this._findWidgetElements("." + d.slideClassName), - g = this._findWidgetElements("." + - d.slideLinkClassName), - k = d.event === "click" && d.deactivationEvent === "mouseout_click"; - this.slides = new b.Widget.PanelGroup(f, { - defaultIndex: d.defaultIndex || 0, - toggleStateEnabled: k - }); - this.slides.bind("wp-panel-show", this._panelShowCallback); - this.tabs = null; - if (g.length) this.tabs = new b.Widget.TabGroup(g, { - defaultIndex: d.defaultIndex || 0, - toggleStateEnabled: k - }), this.slides.addTabGroup(this.tabs); - this.slides.bind("wp-panel-before-show", function(b, g) { - a._reprioritizeImageLoadingIfRequired(g.panelIndex) - }); - this._attachBtnHandler(d.firstBtnClassName, - "first"); - this._attachBtnHandler(d.lastBtnClassName, "last"); - this._attachBtnHandler(d.prevBtnClassName, "previous"); - this._attachBtnHandler(d.nextBtnClassName, "next"); - this._attachBtnHandler(d.playBtnClassName, "play"); - this._attachBtnHandler(d.stopBtnClassName, "stop"); - this._attachBtnHandler(d.closeBtnClassName, "close"); - this.bind("wp-slideshow-play", function() { - this.$element.addClass(d.playingClassName) - }); - this.bind("wp-slideshow-stop", function() { - this.$element.removeClass(d.playingClassName) - }) - }, - _first: function() { - this.slides.showPanel(0) - }, - _last: function() { - var a = this.slides; - a.showPanel(a.$element.length - 1) - }, - _previous: function() { - var a = this.slides, - b = a.$element.length, - f = a.activeIndex, - b = (f < 1 ? b : f) - 1; - !this.options.loop && 0 == f ? this.isPlaying() && this.stop() : a.showPanel(b) - }, - _next: function() { - var a = this.slides, - b = a.activeIndex, - f = (b + 1) % a.$element.length; - !this.options.loop && 0 == f ? this.isPlaying() && this.stop() : this.options.playOnce && 0 == f && this.isPlaying() ? this.stop() : (!this.isPlaying() || this._isLoaded(b) && this._isLoaded(f)) && a.showPanel(f) - }, - _goTo: function() { - var a = - this.slides; - a.showPanel.apply(a, arguments) - }, - _close: function() { - var a = this.slides; - a.hidePanel(a.activeElement) - }, - _isLoaded: function(b) { - if (this._csspIsImageSlideShow && (b = a(this.slides.$element[b]), b = b.is("img") ? b : b.find("img"), b.length > 0 && (b.hasClass(this.options.imageIncludeClassName) || !b[0].complete))) return !1; - return !0 - } - }) -})(jQuery, WebPro, window, document); -(function(a, b, c, d, f) { - b.Widget.ContentSlideShow.fadingTransitionPlugin = { - defaultOptions: { - transitionDuration: 500 - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d.attachBehavior(b) - }) - }, - attachBehavior: function(b) { - var k = this, - h = b.slides, - j = h.$element, - i = h.activeIndex, - l = b._findWidgetElements("." + b.options.viewClassName); - h.bind("wp-panel-show", function(c, d) { - k._showElement(b, a(d.panel)); - b.options.contentLayout_runtime === "stack" && k._showElement(b, - b.$closeBtn) - }).bind("wp-panel-hide", function(c, d) { - k._hideElement(b, a(d.panel)) - }); - b.options.contentLayout_runtime === "stack" && b.bind("wp-slideshow-close", function() { - k._hideElement(b, b.$closeBtn) - }); - for (var m = 0; m < j.length; m++) - if (m !== i) j[m].style.display = "none"; - if (b.options.elastic === "fullWidth") { - var o = a(c), - q = a(d.body), - p = function(c) { - c === f && (c = Math.max(o.width(), parseInt(q.css("min-width")))); - b.options.contentLayout_runtime !== "lightbox" && l.css("left", l.position().left - l.offset().left); - l.width(c); - k._showElement(b, - a(h.activeElement)) - }; - p(); - for (m = 0; m < j.length; m++) { - var n = a(j[m]); - n.width("100%"); - n.addClass("borderbox") - } - if (b.options.contentLayout_runtime === "lightbox") b._fstpPositionSlides = p; - else o.on("orientationchange resize", function() { - p() - }) - } - i === -1 && b.options.contentLayout_runtime === "stack" && b.$closeBtn.hide(); - if (Muse.Browser.Features.Touch && b.options.enableSwipe === !0) { - var s = b.options.transitionDuration; - b._ftpSwipeNoInterrupt = !1; - j.each(function() { - var c = a(this); - c.data("opacity", c.css("opacity")); - var d = Muse.Utils.getCanvasDirection(c, - "horizontal"), - f = d.dir === "horizontal", - h = d.reverse; - c.swipe({ - triggerOnTouchEnd: !0, - allowPageScroll: f ? "vertical" : "horizontal", - threshold: 75, - swipeStatus: function(a, c, d, i) { - b.stop(); - if (c == "move" && (f && (d == "left" || d == "right") || !f && (d == "up" || d == "down"))) k._scrollTo(b, -1, i * (!h && (d == "left" || d == "up") || h && (d == "right" || d == "down") ? 1 : -1), 0); - else if (c == "cancel") k._scrollTo(b, b.slides.activeIndex, 0, s); - else if (c == "end") { - a = b.slides.activeIndex; - c = -1; - if (f && (d == "right" && !h || d == "left" && h) || !f && (d == "down" && !h || d == "up" && h)) c = - a - 1 < 0 ? j.length - 1 : a - 1; - else if (f && (d == "left" && !h || d == "right" && h) || !f && (d == "up" && !h || d == "down" && h)) c = a + 1 > j.length - 1 ? 0 : a + 1; - c != -1 && k._scrollTo(b, c, 0, s) - } - } - }) - }) - } - }, - _showElement: function(a, b) { - var c = !1, - d = function() { - c || (c = !0, b.show().css("opacity", "")) - }, - f = setTimeout(d, a.options.transitionDuration + 10); - b.stop(!1, !0).fadeIn(a.options.transitionDuration, function() { - clearTimeout(f); - d() - }) - }, - _hideElement: function(a, b) { - var c = !1, - d = function() { - c || (c = !0, b.hide().css("opacity", "")) - }, - f = setTimeout(d, a.options.transitionDuration + - 10); - b.stop(!1, !0).fadeOut(a.options.transitionDuration, function() { - clearTimeout(f); - d() - }) - }, - _scrollTo: function(b, c, d, f) { - if (!b._ftpSwipeNoInterrupt) { - var i = b.slides.$element, - l = b.slides.activeIndex, - m = c == -1; - c == -1 && (c = d < 0 ? l - 1 < 0 ? i.length - 1 : l - 1 : l + 1 > i.length - 1 ? 0 : l + 1); - var o = a(i[l]), - q = a(i[c]); - if (!m && d == 0 || l == c) { - b._ftpSwipeNoInterrupt = !0; - var p = 0, - n = !1, - s = function() { - if (!n && (n = !0, q.show().css("opacity", ""), c != l && b.slides.showPanel(c), ++p == i.length)) b._ftpSwipeNoInterrupt = !1 - }; - if (q.css("opacity") != q.data("opacity")) { - var v = - setTimeout(s, f + 10); - q.stop(!1, !0).animate({ - opacity: q.data("opacity") - }, f, function() { - clearTimeout(v); - s() - }) - } else s(); - i.each(function(d) { - var h = a(this), - o = !1, - l = function() { - if (!o && (o = !0, h.hide().css("opacity", ""), ++p == i.length)) b._ftpSwipeNoInterrupt = !1 - }, - q; - d != c && (h.css("display") != "none" && h.css("opacity") != 0 ? (q = setTimeout(l, f + 10), h.stop(!1, !0).animate({ - opacity: 0 - }, f, function() { - clearTimeout(q); - l() - })) : l()) - }) - } else d = Math.abs(d), m = o.width(), d > m && (d = m), d = q.data("opacity") * (d / m), m = o.data("opacity") * (1 - d), o.stop(!1, !0).animate({ - opacity: m - }, f), q.stop(!1, !0).show().animate({ - opacity: d - }, f) - } - } - }; - b.Widget.ContentSlideShow.filmstripTransitionPlugin = { - defaultOptions: { - transitionDuration: 500, - transitionStyle: "horizontal" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d.attachBehavior(b) - }) - }, - attachBehavior: function(b) { - var k = this, - h = a(c), - j = a(d.body), - i = function() { - return l.elastic === "fullWidth" ? Math.max(h.width(), parseInt(j.css("min-width"))) : p.width() - }, - l = b.options, - m = l.transitionStyle === "horizontal", - o = b.slides, - q = o.$element, - p = b._findWidgetElements("." + l.clipClassName), - n = b._findWidgetElements("." + l.viewClassName), - s = i(), - v = p.height(), - x = { - top: "0", - left: "0" - }, - y = p.css("position"); - y !== "absolute" && y !== "fixed" && l.elastic !== "fullScreen" && p.css("position", "relative"); - n.css("position") !== "absolute" && (x.position = "relative"); - b._fstp$Clip = p; - b._fstp$View = n; - b._fstpStyleProp = m ? "left" : "top"; - b._fstpStylePropZero = m ? "top" : "left"; - o.bind("wp-panel-show", function(a, c) { - k._goToSlide(b, c.panel, - l.transitionDuration); - b.options.contentLayout_runtime === "stack" && b.$closeBtn.stop(!0).fadeIn(l.transitionDuration) - }); - b.options.contentLayout_runtime === "stack" && b.bind("wp-slideshow-close", function() { - p.css({ - opacity: 0.99 - }).stop(!0).animate({ - opacity: 0 - }, { - queue: !1, - duration: l.transitionDuration, - complete: function() { - x[b._fstpStyleProp] = (m ? p.width() : p.height()) + "px"; - x[b._fstpStylePropZero] = "0"; - n.css(x); - p.css({ - opacity: "" - }) - } - }); - b.$closeBtn.stop(!0).fadeOut(l.transitionDuration) - }); - b._fstpRequestType = null; - b.bind("wp-slideshow-before-previous wp-slideshow-before-next", - function(a) { - b._fstpRequestType = a.type.replace(/.*-/, ""); - b._fstpOldActiveIndex = b.slides.activeIndex - }).bind("wp-slideshow-previous wp-slideshow-next", function() { - b._fstpRequestType = null; - b._fstpOldActiveIndex = -1 - }); - var F = function(a, c) { - if (a === f || c === f) a = i(), c = p.height(); - l.elastic === "fullWidth" && (c = p.height(), p.width(a), l.contentLayout_runtime !== "lightbox" && p.css("left", p.position().left - p.offset().left), n.width(a)); - for (var d = 0, h = m ? a : c, j = b._fstpStyleProp, s = b._fstpStylePropZero, v = 0; v < q.length; v++) { - var u = - q[v].style; - u[s] = "0"; - u[j] = d + "px"; - u.margin = "0"; - u.position = "absolute"; - d += h - } - k._goToSlide(b, o.activeElement, 0); - return d - }, - y = F(); - if (l.elastic === "fullWidth") - for (var u = 0; u < q.length; u++) { - var C = a(q[u]); - C.width("100%"); - C.addClass("borderbox") - } - if (l.elastic !== "off") - if (l.contentLayout_runtime === "lightbox") b._fstpPositionSlides = F; - else h.on("orientationchange resize", function() { - F() - }); - else x[m ? "width" : "height"] = y + "px", x[m ? "height" : "width"] = (m ? v : s) + "px"; - o.activeElement || (x[b._fstpStyleProp] = (m ? s : v) + "px", x[b._fstpStylePropZero] = - "0", b.options.contentLayout_runtime === "stack" && b.$closeBtn.hide()); - x.overflow = "visible"; - n.css(x); - k._goToSlide(b, o.activeElement, l.transitionDuration) - }, - _goToSlide: function(b, c, d) { - if (b) { - var f = a(c), - i = b._fstp$View, - l = b._fstpStyleProp, - m = l === "left" ? "offsetLeft" : "offsetTop", - o = l === "left" ? "offsetWidth" : "offsetHeight", - q = c ? -c[m] : b._fstp$Clip[0][o], - p = {}; - p[l] = q + "px"; - var n = b._fstpRequestType, - s = b._fstpOldActiveIndex; - if (n && s !== -1) { - var v = b.slides.activeIndex, - x = b.slides.$element.length - 1; - if (v !== s) { - var y = 0; - n === "previous" && - s === 0 && v === x ? y = -c[o] : n === "next" && s === x && v === 0 && (b = b.slides.$element[s], y = b[m] + b[o]); - y && (p[l] = -y + "px", f.css(l, y + "px")) - } - } - i.stop(!1, !0).animate(p, d, function() { - y && (f.css(l, -q + "px"), i.css(l, q + "px")) - }) - } - } - }; - b.Widget.ContentSlideShow.alignPartsToPagePlugin = { - defaultOptions: { - alignPartToPageClassName: "wp-slideshow-align-part-to-page" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d.attachBehavior(b) - }) - }, - attachBehavior: function(b) { - if (!("fullWidth" !== - b.options.elastic || !b.$element.hasClass("align_parts_to_page") || "fixed" !== b.$element.css("position") || b.options.contentLayout_runtime === "lightbox")) { - var d = a(c), - f = a("#page"), - j = b.options, - i = function() { - var c = f.offset().left + "px"; - a("." + j.alignPartToPageClassName, b.$element).each(function() { - a(this).css("margin-left", c) - }) - }; - b.$element.children().each(function() { - var b = a(this); - 0 < a("." + j.viewClassName, b).length || b.addClass(j.alignPartToPageClassName) - }); - i(); - d.on("orientationchange resize", function() { - i() - }) - } - } - }; - b.Widget.ContentSlideShow.swipeTransitionPlugin = { - defaultOptions: { - transitionDuration: 500, - transitionStyle: "horizontal" - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, c)); - b.bind("attach-behavior", function() { - d.attachBehavior(b) - }) - }, - attachBehavior: function(b) { - var k = this, - h = a(c), - j = a(d.body), - i = function() { - return l.elastic === "fullWidth" ? Math.max(h.width(), parseInt(j.css("min-width"))) : p.width() - }, - l = b.options, - m = l.transitionStyle === "horizontal", - o = b.slides, - q = o.$element, - p = b._findWidgetElements("." + - l.clipClassName), - n = b._findWidgetElements("." + l.viewClassName), - s = i(), - v = p.height(), - x = function(a, b) { - if (a === f || b === f) a = i(), b = p.height(); - return m ? a : b - }, - y = x(); - viewProps = { - top: "0", - left: "0" - }; - p.css("position") !== "absolute" && l.elastic !== "fullScreen" && p.css("position", "relative"); - n.css("position") !== "absolute" && (viewProps.position = "relative"); - b._fstp$Clip = p; - b._fstp$View = n; - b._fstpStyleProp = m ? "left" : "top"; - b._fstpStylePropZero = m ? "top" : "left"; - o.bind("wp-panel-show", function() { - var a = b.slides.activeIndex * x(), - c = b.options.transitionDuration; - a == 0 && b.slides.activeIndex == 0 && !l.shuffle && b.isPlaying() && (c = 0); - k._scrollTo(b, a, c); - b.options.contentLayout_runtime === "stack" && b.$closeBtn.stop(!0).fadeIn(c) - }); - b.options.contentLayout_runtime === "stack" && b.bind("wp-slideshow-close", function() { - p.css({ - opacity: 0.99 - }).stop(!0).animate({ - opacity: 0 - }, { - queue: !1, - duration: l.transitionDuration, - complete: function() { - k._scrollTo(b, -x(), 0); - p.css({ - opacity: "" - }) - } - }); - b.$closeBtn.stop(!0).fadeOut(b.options.transitionDuration) - }); - b._fstpRequestType = null; - b.bind("wp-slideshow-before-previous wp-slideshow-before-next", - function(a) { - b._fstpRequestType = a.type.replace(/.*-/, ""); - b._fstpOldActiveIndex = b.slides.activeIndex - }).bind("wp-slideshow-previous wp-slideshow-next", function() { - b._fstpRequestType = null; - b._fstpOldActiveIndex = -1 - }); - var F = function(a, c) { - if (a === f || c === f) a = i(), c = p.height(); - l.elastic === "fullWidth" && (c = p.height(), p.width(a), l.contentLayout_runtime !== "lightbox" && p.css("left", p.position().left - p.offset().left), n.width(a)); - for (var d = 0, h = m ? a : c, j = b._fstpStyleProp, s = b._fstpStylePropZero, v = 0; v < q.length; v++) { - var r = - q[v].style; - r[s] = "0"; - r[j] = d + "px"; - r.margin = "0"; - r.position = "absolute"; - d += h - } - n.css(m ? "width" : "height", d); - k._scrollTo(b, o.activeIndex * h, 0); - return d - }, - u = F(); - if (l.elastic === "fullWidth") - for (var C = 0; C < q.length; C++) { - var z = a(q[C]); - z.width("100%"); - z.addClass("borderbox") - } - if (l.elastic !== "off") - if (l.lightboxEnabled_runtime) b._fstpPositionSlides = F; - else h.on("orientationchange resize", function() { - F() - }); - else viewProps[m ? "width" : "height"] = u + "px", viewProps[m ? "height" : "width"] = (m ? v : s) + "px"; - viewProps.overflow = "visible"; - n.css(viewProps); - var s = Muse.Utils.getCanvasDirection(n, l.transitionStyle), - r = s.dir === "horizontal", - E = s.reverse, - M = b.options.transitionDuration; - n.swipe({ - triggerOnTouchEnd: !0, - allowPageScroll: r ? "vertical" : "horizontal", - threshold: 75, - swipeStatus: function(a, c, d, f) { - b.stop(); - y = x(); - if (c == "move" && (r && (d == "left" || d == "right") || !r && (d == "up" || d == "down"))) d = y * b.slides.activeIndex + f * (!E && (d == "left" || d == "up") || E && (d == "right" || d == "down") ? 1 : -1), k._scrollTo(b, d, 0); - else if (c == "cancel") d = y * b.slides.activeIndex, k._scrollTo(b, d, M); - else if (c == - "end") { - a = -1; - if (r && (d == "right" && !E || d == "left" && E) || !r && (d == "down" && !E || d == "up" && E)) a = Math.max(b.slides.activeIndex - 1, 0); - else if (r && (d == "left" && !E || d == "right" && E) || !r && (d == "up" && !E || d == "down" && E)) a = Math.min(b.slides.activeIndex + 1, n.children().length - 1); - a != -1 && (d = y * a, k._scrollTo(b, d, M), a != b.slides.activeIndex && b.slides.showPanel(a)) - } - } - }); - o.activeElement ? (s = o.activeIndex * y, k._scrollTo(b, s, 0)) : (k._scrollTo(b, -y, 0), b.options.contentLayout_runtime === "stack" && b.$closeBtn.hide()) - }, - _scrollTo: function(a, b, c) { - var g; - var d = Muse.Browser.Features.checkCSSFeature("transition-duration"), - f = Muse.Browser.Features.checkCSSFeature("transform"); - if (!(d === !1 || f === !1)) { - var l = a._fstp$View.get(0); - l.style[(d === !0 ? "" : "-" + d.toLowerCase() + "-") + "transition-duration"] = (c / 1E3).toFixed(1) + "s"; - b = -b; - g = (c = a.options.transitionStyle === "horizontal") ? b : 0, a = g; - b = c ? 0 : b; - f = (f === !0 ? "" : "-" + f.toLowerCase() + "-") + "transform"; - c = "translate3d(" + a + "px, " + b + "px, 0px)"; - d = l.style[f]; - l.style[f] = c; - l.style[f] === d && d !== c && (l.style[f] = "translate(" + a + "px, " + b + "px)") - } - } - }; - b.Widget.ContentSlideShow.slideImageIncludePlugin = { - defaultOptions: { - imageIncludeClassName: "wp-slideshow-slide-image-include", - slideLoadingClassName: "wp-slideshow-slide-loading" - }, - initialize: function(c, d) { - var f = this; - a.extend(d, a.extend({}, f.defaultOptions, d)); - c._cssilLoader = new b.ImageLoader; - c.bind("attach-behavior", function() { - f._attachBehavior(c) - }) - }, - _attachBehavior: function(a) { - for (var b = this, c = a._cssilLoader, d = a._findWidgetElements("." + a.options.slideClassName), f = d.length, l = "." + a.options.imageIncludeClassName, - m = a.options.slideLoadingClassName, o = function(c, d, f, h) { - b._handleImageLoad(a, c, d, f, h) - }, q = 0; q < f; q++) { - var p = d.eq(a._shuffleArray ? a._shuffleArray[q] : q), - n = p.is("img") ? p : p.find(l), - s = n[0]; - if (s) { - var v = a._getAjaxSrcForImage(n) || s.href; - if (v) n = { - width: n.data("width"), - height: n.data("height"), - $ele: n, - $slide: p - }, s.style.visibility = "hidden", c.add(v, { - callback: o, - data: n - }), p.addClass(m) - } - } - a._cssilLoader.start() - }, - _handleImageLoad: function(a, b, c, d, f) { - var l = f.$ele, - m = l[0]; - m.src = b; - a.options.elastic !== "off" ? (l.data("imageWidth", - c), l.data("imageHeight", d), a._csspPositionImage(m, a.options.heroFitting, a.options.elastic, c, d)) : (m.width = f.width || c, m.height = f.height || d); - m.style.visibility = ""; - l.removeClass(a.options.imageIncludeClassName); - f.$slide.removeClass(a.options.slideLoadingClassName); - a.isPlaying() && a.slides.$element[a.slides.activeIndex] == f.$slide[0] && a._startTimer(!1) - } - }; - b.Widget.ContentSlideShow.shufflePlayPlugin = { - defaultOptions: { - randomDefaultIndex: !0 - }, - initialize: function(b, c) { - var d = this; - a.extend(c, a.extend({}, d.defaultOptions, - c)); - b._shuffleArray = []; - b._shuffleNextDict = {}; - b._realNext = b._next; - b._next = function() { - d._handleNext(b) - }; - b._shufflePlayCount = 1; - b.bind("before-attach-behavior", function() { - d._reshuffle(b); - if (c.randomDefaultIndex && typeof c.defaultIndex === "undefined") b.options.defaultIndex = b._shuffleArray[0] - }) - }, - _fisherYatesArrayShuffle: function(a) { - if (a && a.length) - for (var b = a.length; --b;) { - var c = Math.floor(Math.random() * (b + 1)), - d = a[c]; - a[c] = a[b]; - a[b] = d - } - }, - _reshuffle: function(a) { - var b = a._shuffleArray, - c = {}, - d = a.slides ? a.slides.$element.length : - a._findWidgetElements("." + a.options.slideClassName).length; - if (b.length !== d) - for (var f = b.length = 0; f < d; f++) b[f] = f; - this._fisherYatesArrayShuffle(b); - for (f = 0; f < d; f++) c[b[f]] = b[(f + 1) % d]; - a._shuffleNextDict = c; - a._shufflePlayCount = 1 - }, - _handleNext: function(a) { - if (a.isPlaying()) { - var b = a.slides.activeIndex, - c = a._shuffleNextDict[b] || 0; - a._isLoaded(b) && a._isLoaded(c) && (a._goTo(c), ++a._shufflePlayCount >= a.slides.$element.length && (this._reshuffle(a), (!a.options.loop || a.options.playOnce) && a.stop())) - } else a._realNext() - } - } -})(jQuery, - WebPro, window, document); -(function(a, b, c) { - b.widget("Widget.Form", b.Widget, { - _widgetName: "form", - defaultOptions: { - validationEvent: "blur", - errorStateSensitivity: "low", - ajaxSubmit: !0, - fieldWrapperClass: "field", - formErrorClass: "form-error", - formSubmittedClass: "form-submitted", - formDeliveredClass: "form-delivered", - focusClass: "focus", - notEmptyClass: "not-empty", - emptyClass: "empty", - validClass: "valid", - invalidClass: "invalid", - requiredClass: "required" - }, - validationTypes: { - "always-valid": /.*/, - email: /^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, - alpha: /^[A-z\s]+$/, - numeric: /^[0-9]+$/, - phone: /^([0-9])?(\s)?(\([0-9]{3}\)|[0-9]{3}(\-)?)(\s)?[0-9]{3}(\s|\-)?[0-9]{4}(\s|\sext|\sx)?(\s)?[0-9]*$/, - captcha: function(a) { - return a.data("captchaValid") - }, - recaptcha: function() { - if ("undefined" == typeof Recaptcha) return !1; - var a = Recaptcha.get_response(); - return a && 0 < a.length - }, - checkbox: function() { - return !0 - }, - time: function(a) { - var a = a.find("input, textarea"), - b = a.val().replace(/[^0-9:APM]/g, ""); - if (b.indexOf(":") != -1 && b.match(/:/).length == 1) { - var c = b.split(":"), - k = parseInt(c[0]), - c = parseInt(c[1]); - if (k < 0 || k > 24) return !0; - if (c < 0 || c > 59) return !0 - } else return !1; - a.val(b); - return !0 - } - }, - _transformMarkup: function() { - var b = this; - b.hasCAPTCHA = !1; - b.hasReCAPTCHA = !1; - this.$element.find("." + this.options.fieldWrapperClass).each(function() { - var c = a(this); - switch (c.attr("data-type")) { - case "captcha": - b.hasCAPTCHA = !0; - c.find('input[name="CaptchaV2"]').remove(); - c.find('input[name="muse_CaptchaV2"]').attr("name", "CaptchaV2"); - break; - case "recaptcha": - b.hasReCAPTCHA = !0 - } - }) - }, - _extractData: function() { - this.event = this.options.validationEvent; - this.errorSensitivity = this.options.errorStateSensitivity; - this.classNames = { - focus: this.options.focusClass, - blur: this.options.emptyClass, - keydown: this.options.notEmptyClass - } - }, - _attachBehavior: function() { - var b = this; - this.$element.find("input, textarea").each(function() { - var c = a(this); - c.val() != "" && c.removeClass(b.options.emptyClass) - }); - this.$element.find("." + this.options.fieldWrapperClass).each(function() { - var c = a(this); - c.attr("data-type") == "captcha" && (c.data("captchaValid", !1), c.find('input[name="CaptchaV2"]').keyup(function() { - var g = - a(this).val(), - k = c.find('input[name="CaptchaHV2"]').val(); - b._validateCaptcha(k, g, function(a) { - c.data("captchaValid", a); - c.data("error-state") && b.errorSensitivity == "high" && b._validate(c) - }) - })); - c.find("input, textarea").val() != "" && c.addClass(b.classNames.keydown) - }); - this.$element.find("input, textarea").bind("focus blur keydown change propertychange", function(c) { - var g = b.classNames[c.type], - k = b.classNames.focus, - h = b.classNames.keydown, - j = b.classNames.blur, - i = a(this), - l = i.closest("." + b.options.fieldWrapperClass); - switch (c.type) { - case "focus": - l.addClass(g).removeClass(j); - break; - case "blur": - l.removeClass(k); - i.val() == "" && l.addClass(g).removeClass(h); - break; - case "keydown": - l.addClass(g).removeClass(j); - break; - case "change": - case "propertychange": - i.val() != "" ? l.addClass(h).removeClass(j) : l.addClass(j).removeClass(h) - } - }); - switch (this.event) { - case "blur": - case "keyup": - this.$element.find("." + this.options.fieldWrapperClass + " input, ." + this.options.fieldWrapperClass + " textarea").bind(this.event, function() { - b._validate(a(this).closest("." + - b.options.fieldWrapperClass)) - }); - case "submit": - this.$element.submit(function(c) { - var g = !0, - k = b.$element.find("." + b.options.fieldWrapperClass).length - 1; - b.$element.find("." + b.options.fieldWrapperClass).each(function(h) { - if ((g = b._validate(a(this)) ? g : !1) && h == k && b.options.ajaxSubmit) c.preventDefault(), b._submitForm(); - g || c.preventDefault() - }) - }) - } - }, - _validateCaptcha: function(b, c, g) { - c.length != 6 ? g(!1) : a.get("/ValidateCaptcha.ashx", { - key: b, - answer: c - }, function(a) { - g(a == "true") - }) - }, - _validateReCaptcha: function(b, c) { - a.get("/ValidateCaptcha.ashx", { - key: Recaptcha.get_challenge(), - answer: Recaptcha.get_response(), - imageVerificationType: "recaptcha" - }, function(a) { - a == "true" ? b() : c() - }) - }, - _submitForm: function() { - var b = this, - c = a("#ReCaptchaAnswer", b.$element), - g = a("#ReCaptchaChallenge", b.$element); - b.hasReCAPTCHA && 1 == c.length && 1 == g.length ? (c.val(Recaptcha.get_response()), g.val(Recaptcha.get_challenge()), b._validateReCaptcha(function() { - b._submitFormInternal() - }, function() { - a("." + b.options.fieldWrapperClass, b.$element).each(function() { - var c = a(this); - c.attr("data-type") == - "recaptcha" && b._switchState("invalid", c) - }); - Recaptcha.reload() - })) : b._submitFormInternal() - }, - _submitFormInternal: function() { - var b = this, - f = this.options.formSubmittedClass, - g = this.options.formDeliveredClass, - k = this.options.formErrorClass, - h = f + " " + g + " " + k, - j = this.$element.find("input[type=submit], button"); - a.ajax({ - url: this.$element.attr("action"), - type: "post", - data: this.$element.serialize(), - beforeSend: function() { - b.$element.removeClass(h); - b.$element.addClass(f); - b.$element.find("." + b.options.fieldWrapperClass).removeClass(b.options.focusClass); - j.attr("disabled", "disabled") - }, - complete: function(h) { - h && (h.status >= 400 || h.responseText && h.responseText.indexOf("= 0) && alert("Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."); - b.$element.removeClass(f); - var l = null; - if (h && h.responseText) try { - l = jQuery.parseJSON(h.responseText), l = l.FormProcessV2Response || l.FormResponse || l.MusePHPFormResponse || - l - } catch (m) {} - if (l && l.success) { - b.$element.addClass(g); - if (l.redirect) { - c.location.href = l.redirect; - return - } - b.$element[0].reset(); - b.hasCAPTCHA && b.$element.find("input:not([type=submit]), textarea").each(function() { - a(this).attr("disabled", "disabled") - }) - } else if (h = b._getFieldsWithError(l)) - for (l = 0; l < h.length; l++) b._switchState("invalid", h[l]); - else b.$element.addClass(k); - b.hasCAPTCHA || j.removeAttr("disabled"); - b.hasReCAPTCHA && Recaptcha.reload() - } - }) - }, - _getFieldsWithError: function(b) { - if (!b || !b.error || !b.error.fields || - !b.error.fields.length) return null; - for (var c = [], g = 0; g < b.error.fields.length; g++) { - var k = a('[name="' + b.error.fields[g].field + '"]', this.$element).parents("." + this.options.fieldWrapperClass); - 1 == k.length && c.push(k) - } - return c - }, - _validate: function(a) { - var b = a.attr("data-type") || "always-valid", - c = a.find("input, textarea"), - k = this.validationTypes[b], - b = a.attr("data-required") === "true", - h = "checkbox" == c.attr("type") ? typeof c.attr("checked") === "undefined" : c.val() == "", - c = k instanceof RegExp ? Boolean(c.val().match(k)) : - k(a); - if (b && h) return this._switchState("required", a); - if (!c) return this._switchState("invalid", a); - return this._switchState("valid", a) - }, - _switchState: function(a, b) { - function c() { - l._validate(b) - } - var k = b.attr("data-type"), - h = this.options.validClass, - j = this.options.invalidClass, - i = this.options.requiredClass; - b.removeClass(h + " " + j + " " + i); - if (a == "required" || a == "invalid") { - a == "invalid" ? b.addClass(j) : b.addClass(i); - if ("recaptcha" != k && this.errorSensitivity != "low") { - var l = this, - k = this.errorSensitivity == "high" ? "keyup" : "blur"; - b.data("error-state") || (b.data("error-state", !0), b.find("input, textarea").bind(k, c)) - } - return !1 - } - b.data("error-state") && (this.errorSensitivity == "high" ? this.event != "keyup" && b.data("error-state", !1).find("input, textarea").unbind("keyup", c) : this.errorSensitivity == "medium" && this.event != "blur" && b.data("error-state", !1).find("input, textarea").unbind("blur", c)); - b.addClass(h); - return !0 - } - }); - a.fn.wpForm = function(a) { - new b.Widget.Form(this, a); - return this - } -})(jQuery, WebPro, window, document);; -(function() { - if (!("undefined" == typeof Muse || "undefined" == typeof Muse.assets)) { - var a = function(a, b) { - for (var c = 0, d = a.length; c < d; c++) - if (a[c] == b) return c; - return -1 - }(Muse.assets.required, "webpro.js"); - if (-1 != a) { - Muse.assets.required.splice(a, 1); - for (var a = document.getElementsByTagName("meta"), b = 0, c = a.length; b < c; b++) { - var d = a[b]; - if ("generator" == d.getAttribute("name")) { - "2014.2.0.284" != d.getAttribute("content") && Muse.assets.outOfDate.push("webpro.js"); - break - } - } - } - } -})(); diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100644 index f0141f8d..00000000 --- a/sitemap.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - http://www.thepaperpilot.org/index.html - 2015-02-25 - weekly - 0.5 - - - - http://www.thepaperpilot.org/presskit.html - 2015-02-25 - weekly - 0.5 - - - http://www.thepaperpilot.org/Pathfinder.html - 2015-04-01 - weekly - 0.5 - - diff --git a/style.css b/style.css deleted file mode 100644 index 4bede45c..00000000 --- a/style.css +++ /dev/null @@ -1,121 +0,0 @@ -body { - padding: 15px 0; - font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; - color: #E0E0E0; - font-size: 0.9em; - line-height: 1.6em; - background: #000; -} -img { - width: 100%; -} -#navigation h1.nav-header { - padding: 0 15px; - margin-bottom: 0; -} -#navigation a.nav-header { - padding: 5px 15px; - font-weight: bold; -} -#navigation ul.uk-nav { - padding: 15px 0; -} -#navigation p { - padding-bottom: 10px; -} -#navigation li.language-select select { - float: right; -} -#content h2 { - font-family: Georgia, "Times New Roman", Times, serif; - s -} -#content img.header { - margin-bottom: 20px; -} -#content ul { - list-style-type: square; -} -#content li.done { - color: #E160E0; - text-decoration: line-through; -} -#content div.images div { - padding-bottom: 25px; -} -#content p.images-text { - margin-top: -15px; -} -#content .iframe-container { - position: relative; - /* Magic! Makes sure the container is high enough to show the entire iframe - * Thanks to http://andmag.se/2011/11/responsive-embeds/ */ - - padding-bottom: 56.5%; -} -#content iframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -@media (max-width: 767px) { - h2 { - margin-top: 25px; - } -} -/* Stars - * Thanks to http://codepen.io/keithclark/pen/zqcEd - -#space, .stars { - overflow: hidden; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; -} -.stars { - background-image: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)), radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0)); - background-repeat: repeat; - background-size: 200px 200px; - animation: zoom 10s infinite; - opacity: 0; -} -.stars:nth-child(1) { - background-position: 50% 50%; - animation-delay: 0s; -} -.stars:nth-child(2) { - background-position: 20% 60%; - animation-delay: 2s; -} -.stars:nth-child(3) { - background-position: -20% -30%; - animation-delay: 4s; -} -.stars:nth-child(4) { - background-position: 40% -80%; - animation-delay: 6s; -} -.stars:nth-child(5) { - background-position: -20% 30%; - animation-delay: 8s; -} -@keyframes zoom { - 0% { - opacity: 0; - transform: scale(0.5); - animation-timing-function: ease-in; - } - 85% { - opacity: 1; - transform: scale(2.8); - animation-timing-function: linear; - } - 100% { - opacity: 0; - transform: scale(3.5); - } -}*/