PageSourceSearch

https://www.tosatsuru.jp/js/user.js?cacheKey=1751544910

js tosatsuru.jp collected 2026-10-07 13:04:53 UTC 75,978 bytes, 1,084 lines download raw bytes

vendor: 1,198 bytes, lines 1-6
1/**
2 * Owl Carousel v2.2.1
3 * Copyright 2013-2017 David Deutsch
4 * Licensed under  ()
5 */
6!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:30
vendor: 30,897 bytes, line 6
60,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&rel=0&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},
6�
vendor: 10,676 bytes, lines 6-7
6
7a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
7
8
9
10
11
12$(function(){
13
14    // 00: システムページ内にタイトル文字を入力
15    $("#sysMain").append("<div class='clearfix'></div>");
16    $("#sysFormConfirm #sysMain").prepend("<h1 class='sysHeadline'><span>入力内容確認 <b>CONFIRM</b></span></h1>");
17    $("#sysMemberRegisterConfirm #sysMain").prepend("<h1 class='sysHeadline'><span>入力内容確認 <b>CONFIRM</b></span></h1>");
18    $("#sysBasket #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>カート情報<b>CART INFO</b></span></h1>");
19    $("#sysMemberRegisterIndex #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>新規会員登録<b>REGISTRATION</b></span></h1>");
20    $("#sysMypageLogin #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>マイページログイン<b>LOG IN</b></span></h1>");
21    $("#sysMypageLogout #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>ログアウト<b>LOG OUT</b></span></h1>");
22    $("#sysDestination #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>配送先の選択<b>DISTINATION</b></span></h1>");
23    $("#sysMypageIndex #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>マイページ<b>MY PAGE</b></span></h1>");
24    $("#sysMemberRegisterRegister #sysMain").prepend("<h1 class='sysHeadline' style='color: #000'><span>新規登録完了<b>COMPLETED</b></span></h1>");
25
26	//ID付与 商品ブロックのスライド化 TOPページ おすすめ商品
27	if($('.top_recommend_item ul').get(0)){
28		$.when(
29			$('.top_recommend_item ul').attr('id', 'recommend_slider'),
30			$('.top_recommend_item ul').addClass('owl-carousel')
31		)
32		.done(function() {
33		    // すべて成功した時の処理
34		    console.log('success');
35				$("#recommend_slider").fadeIn(500);
36				$('#recommend_slider').owlCarousel({
37					loop:true,
38					autoplay:true,
39					nav:true,
40					dot:true,
41					items:5,
42					//
43responsive : { //レスポンシブ対応
44            // ブレイクポイント 0以上
45            0 : {items : 3,
46            },
47            // ブレイクポイント 610以上
48            610 : {items : 3,
49            },
50            // ブレイクポイント 960以上
51            960 : {items : 5,
52            },
53            // ブレイクポイント 1280以上
54            1280 : {items : 6,
55            },
56}
57					//
58				});
59		})
60		.fail(function() {
61		    // エラーがあった時
62		    console.log('error');
63		});
64	}
65
66	if($("#slider").get(0)){
67		$.when(
68			//TOPスライダー
69			$('#slider').owlCarousel({
70                center: true,
71                loop:true,
72                autoplay:true,
73                nav:true,
74                dot:true,
75                responsive:{
76                    0: {
77                        items:1
78                    },
79                    960: {
80                        items:3,
81                        autoWidth:true
82                    },
83                },
84			})
85		).done(function(){
86			$("#slider").fadeIn(500);
87
88		}).fail(function(){
89			// エラーがあった時
90			console.log('slide_error');
91		});
92	}
93
94	//$('.owl-item.cloned').hide();
95	var owl_h = $('.top_slider').height();
96	console.log(owl_h);
97	if( owl_h === 1 ){
98		if (window.name != "xyz"){
99			console.log('reloaded');
100			location.reload();
101			window.name = "xyz";
102		}
103	}
104
105	//01: headerを追従式にするためのhtml編集
106	$('.header_h1_under,.header_h1,.header,.h_navi,.header_sp,.h_cart').wrapAll('<div class="header_wrap"><div class=\"header_wrap_inner\"></div></div>');
107
108	//02:PCナビゲーションの開閉
109	function navigationMenu(target){
110		var w = $(window).width();
111		var menu = [];
112		var menuButton = [];
113		var listNumber = [];
114		var menuList = [];
115		var menuState = -1;
116
117		function toggleMove(e){
118            console.log(menuState);
119            
120			if(menuState == e){
121				menuList[e].stop().animate({'height': 0 + 'px'}, 200 , function(){
122                            menuList[e].css({'display': 'none'});
123                            $('.active').removeClass('active');
124                            menuState = -1;
125                        });
126
127			}else if(menuState == -1){
128				menu[e].addClass('active');
129                menuList[e].css({'display': 'block'});
130                
131				if(w > 1200){
132					menuList[e].stop().animate({'height': listNumber[e] * 35 + 'px'}, 200, function(){
133						menuState = e;
134					});
135				}else{
136					menuList[e].stop().animate({'height': listNumber[e] * 50 + 'px'}, 400, function(){
137						menuState = e;
138					});
139                }
140                
141			}else{
142				$('.active').removeClass('active');
143				$('.toggleNav').stop().animate({'height': 0 + 'px'}, 200 , function(){
144                    $('.toggleNav').css({'display': 'none'});
145                    menu[e].addClass('active');
146                    menuList[e].css({'display': 'block'});
147                    
148                    if(w > 1200){
149                        menuList[e].stop().animate({'height': listNumber[e] * 35 + 'px'}, 200, function(){
150                            menuState = e;
151                        });
152                    }else{
153                        menuList[e].stop().animate({'height': listNumber[e] * 50 + 'px'}, 400, function(){
154                            menuState = e;
155                        });
156                    }
157				});
158			}
159		};
160
161		function init(){
162			$.each(target.find('li.tab1'),function(i){
163				menuButton[i] = $(this).find("section");
164
165				$.each(menuButton, function(index){
166					menu[index] = $(this).parent('li');
167					menuList[index] = $(this).children('.toggleNav');
168					listNumber[index] = menuList[index].find('li.tab2').length;
169
170					$(menuButton[index]).on({
171						'click': function(){
172							toggleMove(index);
173 						}
174					});
175		    	});
176			});
177		};
178
179		init();
180	};
181    navigationMenu($('#headNavigation'));
182
183	//03カート情報のポップアップ
184	function cartInfo(target){
185
186        function setCartButton(btn){
187			$(btn).on({
188				'mouseover': function(){
189					target.stop().css({'display': 'block'}).fadeIn(200, 'swing');
190				},
191				'mouseout': function(){
192				 	target.stop().fadeOut(200, 'swing', function(){target.css({'display': 'none'})});
193				}
194			});
195		};
196
197        function rootUrl() {
198            // aishipR 通常ページでは機能パーツタグ<#サイトURL>、SSL通信ページでは<#SSLルートURL>を指定した場合と同等のURLを取得
199
200            // 現在がSSL通信対象のページの場合 (戻り値: http://ssh.aispr.jp/[user])
201            if ("ssl.aispr.jp" === document.location.hostname) {
202                // ユーザー名を取得 (ssl通信ページの場合のpathname: /[user]/[page])
203                var u = document.location.pathname.split('/')[1];
204
205                return document.location.origin + "/" + u;
206            }
207
208            // 現在が通常ページである場合 (戻り値: [プロトコル名]://[ドメイン名])
209            return document.location.origin;
210       }
211
212		function init(){
213            // カートボタン用のDOM作成
214            var site_url = rootUrl();
215
216			$(target).wrapAll('<section id="cartInfo">');
217			$('<p>', {
218				'class': 'cartTxt',
219				'html': '<img src="' + site_url + '/img/top/cart_icon.png">カート<button id="itemCount" class="itemCount">2</button>'
220            }).appendTo($('#cartInfo'));
221            
222			$('<img>',{
223				'src': site_url + '/img/top/cart_icon.png',
224				'alt': 'カートのアイコン'
225            }).prependTo($('.sysCartInfoCartIn a'));
226            
227			setCartButton($('#cartInfo'));
228		};
229		init();
230	};
231	cartInfo($('.h_cart'));
232
233	//04: SPモーダルナビの制御
234	function spNavigation(target){
235		//既存のhtml要素を引数に格納
236		var logIn = $(".h_login");
237		var hSearch = $(".h_search");
238		var navigation = $(".sp_nav");
239
240		//DOM構造の制御
241		logIn.wrapAll('<section class="wrap1">');
242		hSearch.wrapAll('<section class="wrap1">');
243		navigation.wrapAll('<section class="wrap1">');
244		$(".wrap1").wrapAll('<div id="spNaviWrap">');
245		$("#spNaviWrap").wrapAll('<div class="h_spnavi">');
246
247		//jsで生成したDOMを引数に格納
248		var navBase = $(".h_spnavi");
249		var navWrap = $("#spNaviWrap");
250		var closeMenu = $("#closeMenu");
251        var closeMenu2 = $("#closeMenu2");
252
253		function navClose(){
254            //$( 'body' ).css( {position: 'static'} );
255            //$( 'html, body' ).prop( { scrollTop: current_scrollY } );
256			navWrap.stop().animate({'left': -100 + '%'});
257			navBase.stop().animate({'opacity': 0 }, {
258				'duration': 600,
259				'complete': function(){
260					navBase.css({'display': 'none', 'opacity': 1})
261				}
262			});
263		};
264
265		function init(){
266
267			target.on({
268				'click': function(){
269                    //current_scrollY = $( window ).scrollTop();
270                    //$( 'body' ).css( {position: 'fixed'} );
271					navBase.css({'display': 'block'});
272					navWrap.stop().animate({'left': 0 + 'px'}, 400);
273				}
274			});
275
276			closeMenu.on({
277				'click': function(){
278					navClose();
279				}
280			});
281
282            closeMenu2.on({
283				'click': function(){
284					navClose();
285				}
286			});
287		};
288
289		init();
290	};
291	spNavigation($("#navBtn"));
292
293    //05 アンカータグの有効化
294    window.onload=function(){
295            var urlHash = location.hash;
296            if( 0 < urlHash.length ){
297                location.hash = urlHash;
298                var scroll = $(urlHash).offset().top;
299                var h = $(window).width();
300
301                if(h > 1100){
302                    var adScroll = scroll - 150;
303                }else{
304                    var adScroll = scroll - 100;
305                }
306
307                $("html, body").animate({scrollTop: adScroll}, 0);
308            }
309    }
310
311    //06 ページロード時にカート内の商品数を取得して表示する処理
312	function itemCount(target){
313		var numberBox;
314        var itemNumber;
315        var items;
316
317		//カート内の商品数が0でなければ、ポップアップと商品数を表示
318		function count(){
319			numberBox = $('.sysCartInfoItemCount dd span');
320			itemNumber = numberBox.text();
321			items = Number(itemNumber);
322
323			if(items != 0 && items != undefined){
324				target.css({ 'display': 'inline-block'});
325				target.text(items);
326			}
327		};
328
329		function init(){
330			//商品詳細ページからカートに商品を追加した場合に、商品数表示を更新
331			$('#sysItemDetail .sysCartButton').on({
332				'click': function(){
333					setTimeout(count, 3000);
334				}
335			});
336
337			//商品カテゴリーページからカートに商品を追加した場合に、商品数表示を更新
338			$('#sysItemCategory .sysCartButton').on({
339				'click': function(){
340					setTimeout(count, 3000);
341				}
342			});
343
344        	count();
345		};
346
347		init();
348	};
349
350	//itemCount(ポップアップアイコン)をターゲットとしてitemCount関数を呼び出し
351	itemCount($('#itemCount'));
352	//PCとSPでパーツが違うのでトリガーを各々準備
353    itemCount($('#itemCount2'));
354
355 //07 商品リストの高さ揃え
356addEventListener('onSysAllContentLoaded', function () {
357(function($) {
358 $.fn.tile = function(columns) {
359   var tiles = [], max = 0;
360   if (!columns) columns = this.length;
361
362   this.each(function() {
363     // 高さを一旦リセット
364     this.style.removeProperty ? this.style.removeProperty("height") : this.style.removeAttribute("height");
365   });
366
367   return this.each(function(i) {
368     var c = i % columns;
369     if (c === 0) {
370       tiles = [];
371       max = 0;
372     }
373
374     var $tile = $(this);
375     tiles.push($tile);
376
377     var h = ($tile.css("box-sizing") === "border-box") ? $tile.outerHeight() : $tile.innerHeight();
378     if (h > max) max = h;
379
380     // 最後 or 行の終わりなら高さを揃える
381     if (c === columns - 1 || i === (this.length - 1)) {
382       $.each(tiles, function() {
383         $(this).height(max);
384       });
385     }
386   });
387 };
388})(jQuery);
389
390// 適用部分(そのままでOK)
391var object = $('.sysItemList li .sysItemName');
392var target = object.parent('div');
393target.addClass('itemDetailWrap');
394
395$(window).on('load', function() {
396 target.tile();
397});
398
399$(window).on('resize', function() {
400 target.tile();
401});
402});
403
404    //08 トップに戻るボタンの制御
405	function returnTop(target){
406
407		function showBtn(){
408			target.css({'display': 'block'});
409			target.stop().animate({'opacity': '1' }, 300);
410		};
411
412		function hideBtn(){
413			target.stop().animate({'opacity': '0' }, {
414				'duration': 300,
415				'complete': function(){
416					target.css({'display': 'none'})
417				}
418			});
419		};
420
421		function init(){
422			$(window).on({
423				'scroll': function(){
424					var scroll = $(window).scrollTop();
425
426                    if (scroll > 100){
427                        showBtn();
428                    }else{
429                        hideBtn();
430    				}
431                }
432			});
433		};
434
435		init();
436	};
437	returnTop($('#page-top'));
438
439	//9 特集一覧にテキストを表示させる
440	function showFeatureTxt(target){
441
442		function init(){
443			$.each(target.find('li'),function(){
444				var bnr = $(this).find('a');
445				var menuButton = $(this).find('img');
446				var bnrText = menuButton.attr('alt');
447
448				$('<p>', {
449					'class': 'featuresText',
450					'html':   bnrText
451				}).appendTo(bnr);
452			});
453		};
454
455		init();
456	};
457
458	showFeatureTxt($('.top_features'));
459});
460
461//商品ページ 成分のアコーディオン
462$(function(){
463    $('.contents_tr').hide();
464    $(".btn_tr").on("click", function() {
465        $('+.contents_tr',this).slideToggle(100);
466        $(this).toggleClass("active");
467	});
468});
469
470//smooth_scroll.js
471/**
472https://github.com/cferdinandi/smooth-scroll
473**/
474(function (root, factory) {
475	if ( typeof define === 'function' && define.amd ) {
476		define([], factory(root));
477	} else if ( typeof exports === 'object' ) {
478		module.exports = factory(root);
479	} else {
480		root.smoothScroll = factory(root);
481	}
482})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {
483
484	'use strict';
485
486	//
487	// Variables
488	//
489
490	var smoothScroll = {}; // Object for public APIs
491	var supports = 'querySelector' in document && 'addEventListener' in root; // Feature test
492	var settings, anchor, toggle, fixedHeader, headerHeight, eventTimeout, animationInterval;
493
494	// Default settings
495	var defaults = {
496		selector: '[data-scroll]',
497		selectorHeader: null,
498		speed: 500,
499		easing: 'easeInOutCubic',
500		offset: 0,
501		callback: function () {}
502	};
503
504
505	//
506	// Methods
507	//
508
509	/**
510	 * Merge two or more objects. Returns a new object.
511	 * @private
512	 * @param {Boolean}  deep     If true, do a deep (or recursive) merge [optional]
513	 * @param {Object}   objects  The objects to merge together
514	 * @returns {Object}          Merged values of defaults and options
515	 */
516	var extend = function () {
517
518		// Variables
519		var extended = {};
520		var deep = false;
521		var i = 0;
522		var length = arguments.length;
523
524		// Check if a deep merge
525		if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) {
526			deep = arguments[0];
527			i++;
528		}
529
530		// Merge the object into the extended object
531		var merge = function (obj) {
532			for ( var prop in obj ) {
533				if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) {
534					// If deep merge and property is an object, merge properties
535					if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) {
536						extended[prop] = extend( true, extended[prop], obj[prop] );
537					} else {
538						extended[prop] = obj[prop];
539					}
540				}
541			}
542		};
543
544		// Loop through each object and conduct a merge
545		for ( ; i < length; i++ ) {
546			var obj = arguments[i];
547			merge(obj);
548		}
549
550		return extended;
551
552	};
553
554	/**
555	 * Get the height of an element.
556	 * @private
557	 * @param  {Node} elem The element to get the height of
558	 * @return {Number}    The element's height in pixels
559	 */
560	var getHeight = function ( elem ) {
561		return Math.max( elem.scrollHeight, elem.offsetHeight, elem.clientHeight );
562	};
563
564	/**
565	 * Get the closest matching element up the DOM tree.
566	 * @private
567	 * @param  {Element} elem     Starting element
568	 * @param  {String}  selector Selector to match against
569	 * @return {Boolean|Element}  Returns null if not match found
570	 */
571	var getClosest = function ( elem, selector ) {
572
573		// Element.matches() polyfill
574		if (!Element.prototype.matches) {
575			Element.prototype.matches =
576				Element.prototype.matchesSelector ||
577				Element.prototype.mozMatchesSelector ||
578				Element.prototype.msMatchesSelector ||
579				Element.prototype.oMatchesSelector ||
580				Element.prototype.webkitMatchesSelector ||
581				function(s) {
582					var matches = (this.document || this.ownerDocument).querySelectorAll(s),
583						i = matches.length;
584					while (--i >= 0 && matches.item(i) !== this) {}
585					return i > -1;
586				};
587		}
588
589		// Get closest match
590		for ( ; elem && elem !== document; elem = elem.parentNode ) {
591			if ( elem.matches( selector ) ) return elem;
592		}
593
594		return null;
595
596	};
597
598	/**
599	 * Escape special characters for use with querySelector
600	 * @private
601	 * @param {String} id The anchor ID to escape
602	 * @author Mathias Bynens
603	 * @link https://github.com/mathiasbynens/CSS.escape
604	 */
605	var escapeCharacters = function ( id ) {
606
607		// Remove leading hash
608		if ( id.charAt(0) === '#' ) {
609			id = id.substr(1);
610		}
611
612		var string = String(id);
613		var length = string.length;
614		var index = -1;
615		var codeUnit;
616		var result = '';
617		var firstCodeUnit = string.charCodeAt(0);
618		while (++index < length) {
619			codeUnit = string.charCodeAt(index);
620			// Note: there’s no need to special-case astral symbols, surrogate
621			// pairs, or lone surrogates.
622
623			// If the character is NULL (U+0000), then throw an
624			// `InvalidCharacterError` exception and terminate these steps.
625			if (codeUnit === 0x0000) {
626				throw new InvalidCharacterError(
627					'Invalid character: the input contains U+0000.'
628				);
629			}
630
631			if (
632				// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
633				// U+007F, […]
634				(codeUnit >
634= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
635				// If the character is the first character and is in the range [0-9]
636				// (U+0030 to U+0039), […]
637				(index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
638				// If the character is the second character and is in the range [0-9]
639				// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
640				(
641					index === 1 &&
642					codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
643					firstCodeUnit === 0x002D
644				)
645			) {
646				// http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point
647				result += '\\' + codeUnit.toString(16) + ' ';
648				continue;
649			}
650
651			// If the character is not handled by one of the above rules and is
652			// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
653			// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
654			// U+005A), or [a-z] (U+0061 to U+007A), […]
655			if (
656				codeUnit >= 0x0080 ||
657				codeUnit === 0x002D ||
658				codeUnit === 0x005F ||
659				codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
660				codeUnit >= 0x0041 && codeUnit <= 0x005A ||
661				codeUnit >= 0x0061 && codeUnit <= 0x007A
662			) {
663				// the character itself
664				result += string.charAt(index);
665				continue;
666			}
667
668			// Otherwise, the escaped character.
669			// http://dev.w3.org/csswg/cssom/#escape-a-character
670			result += '\\' + string.charAt(index);
671
672		}
673
674		return '#' + result;
675
676	};
677
678	/**
679	 * Calculate the easing pattern
680	 * @private
681	 * @link https://gist.github.com/gre/1650294
682	 * @param {String} type Easing pattern
683	 * @param {Number} time Time animation should take to complete
684	 * @returns {Number}
685	 */
686	var easingPattern = function ( type, time ) {
687		var pattern;
688		if ( type === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity
689		if ( type === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity
690		if ( type === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration
691		if ( type === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity
692		if ( type === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity
693		if ( type === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration
694		if ( type === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity
695		if ( type === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity
696		if ( type === 'easeInOutQuart' ) pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration
697		if ( type === 'easeInQuint' ) pattern = time * time * time * time * time; // accelerating from zero velocity
698		if ( type === 'easeOutQuint' ) pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity
699		if ( type === 'easeInOutQuint' ) pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration
700		return pattern || time; // no easing, no acceleration
701	};
702
703	/**
704	 * Calculate how far to scroll
705	 * @private
706	 * @param {Element} anchor The anchor element to scroll to
707	 * @param {Number} headerHeight Height of a fixed header, if any
708	 * @param {Number} offset Number of pixels by which to offset scroll
709	 * @returns {Number}
710	 */
711	var getEndLocation = function ( anchor, headerHeight, offset ) {
712		var location = 0;
713		if (anchor.offsetParent) {
714			do {
715				location += anchor.offsetTop;
716				anchor = anchor.offsetParent;
717			} while (anchor);
718		}
719		location = Math.max(location - headerHeight - offset, 0);
720		return Math.min(location, getDocumentHeight() - getViewportHeight());
721	};
722
723	/**
724	 * Determine the viewport's height
725	 * @private
726	 * @returns {Number}
727	 */
728	var getViewportHeight = function() {
729		return Math.max( document.documentElement.clientHeight, root.innerHeight || 0 );
730	};
731
732	/**
733	 * Determine the document's height
734	 * @private
735	 * @returns {Number}
736	 */
737	var getDocumentHeight = function () {
738		return Math.max(
739			document.body.scrollHeight, document.documentElement.scrollHeight,
740			document.body.offsetHeight, document.documentElement.offsetHeight,
741			document.body.clientHeight, document.documentElement.clientHeight
742		);
743	};
744
745	/**
746	 * Convert data-options attribute into an object of key/value pairs
747	 * @private
748	 * @param {String} options Link-specific options as a data attribute string
749	 * @returns {Object}
750	 */
751	var getDataOptions = function ( options ) {
752		return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse( options );
753	};
754
755	/**
756	 * Get the height of the fixed header
757	 * @private
758	 * @param  {Node}   header The header
759	 * @return {Number}        The height of the header
760	 */
761	var getHeaderHeight = function ( header ) {
762		return !header ? 0 : ( getHeight( header ) + header.offsetTop );
763	};
764
765	/**
766	 * Bring the anchored element into focus
767	 * @private
768	 */
769	var adjustFocus = function ( anchor, endLocation, isNum ) {
770
771		// Don't run if scrolling to a number on the page
772		if ( isNum ) return;
773
774		// Otherwise, bring anchor element into focus
775		anchor.focus();
776		if ( document.activeElement.id !== anchor.id ) {
777			anchor.setAttribute( 'tabindex', '-1' );
778			anchor.focus();
779			anchor.style.outline = 'none';
780		}
781		root.scrollTo( 0 , endLocation );
782
783	};
784
785	/**
786	 * Start/stop the scrolling animation
787	 * @public
788	 * @param {Node|Number} anchor  The element or position to scroll to
789	 * @param {Element}     toggle  The element that toggled the scroll event
790	 * @param {Object}      options
791	 */
792	smoothScroll.animateScroll = function ( anchor, toggle, options ) {
793
794		// Options and overrides
795		var overrides = getDataOptions( toggle ? toggle.getAttribute('data-options') : null );
796		var animateSettings = extend( settings || defaults, options || {}, overrides ); // Merge user options with defaults
797
798		// Selectors and variables
799		var isNum = Object.prototype.toString.call( anchor ) === '[object Number]' ? true : false;
800		var anchorElem = isNum || !anchor.tagName ? null : anchor;
801		if ( !isNum && !anchorElem ) return;
802		var startLocation = root.pageYOffset; // Current location on the page
803		if ( animateSettings.selectorHeader && !fixedHeader ) {
804			// Get the fixed header if not already set
805			fixedHeader = document.querySelector( animateSettings.selectorHeader );
806		}
807		if ( !headerHeight ) {
808			// Get the height of a fixed header if one exists and not already set
809			headerHeight = getHeaderHeight( fixedHeader );
810		}
811		var endLocation = isNum ? anchor : getEndLocation( anchorElem, headerHeight, parseInt(animateSettings.offset, 10) ); // Location to scroll to
812		var distance = endLocation - startLocation; // distance to travel
813		var documentHeight = getDocumentHeight();
814		var timeLapsed = 0;
815		var percentage, position;
816
817		/**
818		 * Stop the scroll animation when it reaches its target (or the bottom/top of page)
819		 * @private
820		 * @param {Number} position Current position on the page
821		 * @param {Number} endLocation Scroll to location
822		 * @param {Number} animationInterval How much to scroll on this loop
823		 */
824		var stopAnimateScroll = function ( position, endLocation, animationInterval ) {
825			var currentLocation = root.pageYOffset;
826			if ( position == endLocation || currentLocation == endLocation || ( (root.innerHeight + currentLocation) >= documentHeight ) ) {
827
828				// Clear the animation timer
829				clearInterval(animationInterval);
830
831				// Bring the anchored element into focus
832				adjustFocus( anchor, endLocation, isNum );
833
834				// Run callback after animation complete
835				animateSettings.callback( anchor, toggle );
836
837			}
838		};
839
840		/**
841		 * Loop scrolling animation
842		 * @private
843		 */
844		var loopAnimateScroll = function () {
845			timeLapsed += 16;
846			percentage = ( timeLapsed / parseInt(animateSettings.speed, 10) );
847			percentage = ( percentage > 1 ) ? 1 : percentage;
848			position = startLocation + ( distance * easingPattern(animateSettings.easing, percentage) );
849			root.scrollTo( 0, Math.floor(position) );
850			stopAnimateScroll(position, endLocation, animationInterval);
851		};
852
853		/**
854		 * Set interval timer
855		 * @private
856		 */
857		var startAnimateScroll = function () {
858			clearInterval(animationInterval);
859			animationInterval = setInterval(loopAnimateScroll, 16);
860		};
861
862		/**
863		 * Reset position to fix weird iOS bug
864		 * @link https://github.com/cferdinandi/smooth-scroll/issues/45
865		 */
866		if ( root.pageYOffset === 0 ) {
867			root.scrollTo( 0, 0 );
868		}
869
870		// Start scrolling animation
871		startAnimateScroll();
872
873	};
874
875	/**
876	 * Handle has change event
877	 * @private
878	 */
879	var hashChangeHandler = function (event) {
880
881		// Get hash from URL
882		// var hash = decodeURIComponent( escapeCharacters( root.location.hash ) );
883		var hash;
884		try {
885			hash = escapeCharacters( decodeURIComponent( root.location.hash ) );
886		} catch(e) {
887			hash = escapeCharacters( root.location.hash );
888		}
889
890		// Only run if there's an anchor element to scroll to
891		if ( !anchor ) return;
892
893		// Reset the anchor element's ID
894		anchor.id = anchor.getAttribute( 'data-scroll-id' );
895
896		// Scroll to the anchored content
897		smoothScroll.animateScroll( anchor, toggle );
898
899		// Reset anchor and toggle
900		anchor = null;
901		toggle = null;
902
903	};
904
905	/**
906	 * If smooth scroll element clicked, animate scroll
907	 * @private
908	 */
909	var clickHandler = function (event) {
910
911		// Don't run if right-click or command/control + click
912		if ( event.button !== 0 || event.metaKey || event.ctrlKey ) return;
913
914		// Check if a smooth scroll link was clicked
915		toggle = getClosest( event.target, settings.selector );
916		if ( !toggle || toggle.tagName.toLowerCase() !== 'a' ) return;
917
918		// Only run if link is an anchor and points to the current page
919		if ( toggle.hostname !== root.location.hostname || toggle.pathname !== root.location.pathname || !/#/.test(toggle.href) ) return;
920
921		// Get the sanitized hash
922		// var hash = decodeURIComponent( escapeCharacters( toggle.hash ) );
923		// console.log(hash);
924		var hash;
925		try {
926			hash = escapeCharacters( decodeURIComponent( toggle.hash ) );
927		} catch(e) {
928			hash = escapeCharacters( toggle.hash );
929		}
930
931		// If the hash is empty, scroll to the top of the page
932		if ( hash === '#' ) {
933
934			// Prevent default link behavior
935			event.preventDefault();
936
937			// Set the anchored element
938			anchor = document.body;
939
940			// Save or create the ID as a data attribute and remove it (prevents scroll jump)
941			var id = anchor.id ? anchor.id : 'smooth-scroll-top';
942			anchor.setAttribute( 'data-scroll-id', id );
943			anchor.id = '';
944
945			// If no hash change event will happen, fire manually
946			// Otherwise, update the hash
947			if ( root.location.hash.substring(1) === id ) {
948				hashChangeHandler();
949			} else {
950				root.location.hash = id;
951			}
952
953			return;
954
955		}
956
957		// Get the anchored element
958		anchor = document.querySelector( hash );
959
960		// If anchored element exists, save the ID as a data attribute and remove it (prevents scroll jump)
961		if ( !anchor ) return;
962		anchor.setAttribute( 'data-scroll-id', anchor.id );
963		anchor.id = '';
964
965		// If no hash change event will happen, fire manually
966		if ( toggle.hash === root.location.hash ) {
967			event.preventDefault();
968			hashChangeHandler();
969		}
970
971	};
972
973	/**
974	 * On window scroll and resize, only run events at a rate of 15fps for better performance
975	 * @private
976	 * @param  {Function} eventTimeout Timeout function
977	 * @param  {Object} settings
978	 */
979	var resizeThrottler = function (event) {
980		if ( !eventTimeout ) {
981			eventTimeout = setTimeout(function() {
982				eventTimeout = null; // Reset timeout
983				headerHeight = getHeaderHeight( fixedHeader ); // Get the height of a fixed header if one exists
984			}, 66);
985		}
986	};
987
988	/**
989	 * Destroy the current initialization.
990	 * @public
991	 */
992	smoothScroll.destroy = function () {
993
994		// If plugin isn't already initialized, stop
995		if ( !settings ) return;
996
997		// Remove event listeners
998		document.removeEventListener( 'click', clickHandler, false );
999		root.removeEventListener( 'resize', resizeThrottler, false );
1000
1001		// Reset varaibles
1002		settings = null;
1003		anchor = null;
1004		toggle = null;
1005		fixedHeader = null;
1006		headerHeight = null;
1007		eventTimeout = null;
1008		animationInterval = null;
1009	};
1010
1011	/**
1012	 * Initialize Smooth Scroll
1013	 * @public
1014	 * @param {Object} options User settings
1015	 */
1016	smoothScroll.init = function ( options ) {
1017
1018		// feature test
1019		if ( !supports ) return;
1020
1021		// Destroy any existing initializations
1022		smoothScroll.destroy();
1023
1024		// Selectors and variables
1025		settings = extend( defaults, options || {} ); // Merge user options with defaults
1026		fixedHeader = settings.selectorHeader ? document.querySelector( settings.selectorHeader ) : null; // Get the fixed header
1027		headerHeight = getHeaderHeight( fixedHeader );
1028
1029		// When a toggle is clicked, run the click handler
1030		document.addEventListener( 'click', clickHandler, false );
1031
1032		// Listen for hash changes
1033		root.addEventListener('hashchange', hashChangeHandler, false);
1034
1035		// If window is resized and there's a fixed header, recalculate its size
1036		if ( fixedHeader ) {
1037			root.addEventListener( 'resize', resizeThrottler, false );
1038		}
1039
1040	};
1041
1042
1043	//
1044	// Public APIs
1045	//
1046
1047	return smoothScroll;
1048
1049});
1050
1051
1052//
1053//alert('OK?')
1054$(function(){
1055	$('.slde_login .sysContent div').each(function(){
1056		var txt = $(this).html();
1057		$(this).html(
1058			txt.replace(/こんにちは /g,'<small>こんにちは</small><br>').replace(/ さん/g,'<small>さん</small>')
1059		);
1060	});
1061	$('.sysItemPrice,.sysRetailPrice').each(function(){
1062		var txt = $(this).html();
1063		$(this).html(
1064			txt.replace(/円(税込)/g,'<small>円(税込)</small>').replace(/価格:/g,'<small>価格:</small>')
1065		);
1066	});
1067});
1068//
1069
1070// 登録フォームの文字変更
1071//$(function() {
1072//	// お名前の変更
1073//	if($(".sysName")[0] != undefined) {
1074//		var text = $(".sysName").html();
1075//		$(".sysName").html(text.replace("お名前", "変更後文字列"));
1076//	}
1077//
1078//	// お名前(フリガナ)の変更
1079//	if($(".sysNameKana")[0] != undefined) {
1080//		var text = $(".sysNameKana").html();
1081//		$(".sysNameKana").html(text.replace("お名前(フリガナ)", "変更後文字列"));
1082//	}
1083//
1084//});/* #END_OF_RESOURCE_FILE */

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